<chris2>
Encoding::ConverterNotFoundError: code converter not found (Windows-1258 to UTF-8)
<chris2>
it only detects the converter is not found when it needs it :>
<whitequark>
ugh
<chris2>
and i can't add new aliases without dropping into c :>
spuk has quit [Ping timeout: 244 seconds]
kogent has quit [Quit: kogent]
<whitequark>
chris2: ffi
<whitequark>
but that's evil
<chris2>
meh
<drbrain>
Fiddle?
<whitequark>
or ^
sebastiansier has joined #ruby-lang
kurko_ has joined #ruby-lang
spuk has joined #ruby-lang
sailias has joined #ruby-lang
seoaqua has joined #ruby-lang
jbsan has joined #ruby-lang
mwjcomputing has left #ruby-lang ["Leaving"]
mercwithamouth has quit [Ping timeout: 248 seconds]
mjio has quit []
pr0ton has quit [Quit: pr0ton]
Mon_Ouie has quit [Ping timeout: 248 seconds]
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
earthquake has quit [Quit: earthquake]
brianpWins has joined #ruby-lang
sebastiansier has quit [Ping timeout: 246 seconds]
sebastiansier has joined #ruby-lang
krohrbaugh has quit [Read error: Operation timed out]
mercwithamouth has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
gregmoreno has quit [Read error: Operation timed out]
bantic has quit [Quit: bantic]
<ged>
Hey @drbrain, you around/have time for an RDoc question?
<drbrain>
ged: what's up?
pr0ton has joined #ruby-lang
<ged>
I'm trying to use the 'setup_options' generator method for a custom generator, but the example seems to assume that RDoc::Options has a spell_dictionary= method...
<ged>
Is there a way to add the attribute for a custom option? I can't seem to find one.
sailias has quit [Quit: Leaving.]
<drbrain>
you probably have rdoc-spellcheck installed which uses the same API
<drbrain>
oh,
<drbrain>
hold on
<ged>
I get: undefined method `spell_dictionary=' for #<RDoc::Options:0x007fcce42234a0>
<drbrain>
looks like my example is incomplete
<ged>
But rdoc-spellcheck probably has the example of how to do that?
<drbrain>
sorry about that
<ged>
No worries.
<ged>
Just thought I was missing something obvious.
sebastiansier has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
<seoaqua>
hi all, how to define the CSV.foreach encoding? ENV['LANG']="zh_CN.UTF-8" doesn't work, cuz crond changes the system's default encoding in /etc/locale
<crazyhorse>
yeah i just uninstalled pg and reinstalled with a pg config pointing at a homebrew dir
<crazyhorse>
same result
<livinded>
If I have a ruby process that spawns a new thread and is doing a blocking operation (read) will that block the main ruby process since only one thread can run at a time?
sailias has quit [Ping timeout: 248 seconds]
sebastiansier has joined #ruby-lang
<livinded>
if not, do I need to use something like select and manually switch threads?
jtoy has quit [Quit: jtoy]
dorei has quit []
<charliesome>
livinded: ruby will release the GVL before doing blocking syscalls
<charliesome>
livinded: you can only have one ruby thread actually doing computation at once
<charliesome>
but you can have a bunch waiting on I/O
<charliesome>
nothing fancy that you have to do
havenwood has joined #ruby-lang
rsl has quit [Quit: Computer has gone to sleep.]
io_syl has quit [Ping timeout: 272 seconds]
<drbrain>
chris2: OS X?
<drbrain>
chris2: oh, I doubt popen has been extended with that stuff from spawn
mercwithamouth has quit [Ping timeout: 252 seconds]
sailias has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
hahuang65_ has quit [Quit: Computer has gone to sleep.]
FiXato has quit [Remote host closed the connection]
FiXato has joined #ruby-lang
hahuang65_ has joined #ruby-lang
hahuang65_ has quit [Read error: Operation timed out]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 248 seconds]
sebastiansier has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
r0bby has quit [Max SendQ exceeded]
r0bby has joined #ruby-lang
lsegal` has joined #ruby-lang
<yfeldblum>
how can i convert a hash into json in ruby-1.8 with the keys guaranteed to be in lexicographically sorted order?
lsegal` has quit [Client Quit]
lsegal has joined #ruby-lang
imajes has quit [Excess Flood]
<drbrain>
yfeldblum: build the JSON by hand, most likely
imajes has joined #ruby-lang
r0bby has quit [Ping timeout: 248 seconds]
mjio has quit []
krz has joined #ruby-lang
<livinded>
how can I read until 0x0 in ruby?
<drbrain>
livinded: gets "\0"
davidbalber|away is now known as davidbalbert
kurko_ has quit [Quit: Computer has gone to sleep.]
bluepojo_ has joined #ruby-lang
<livinded>
drbrain: it never stops reading
<livinded>
but the socket isn't sending anything
MehLaptop has joined #ruby-lang
<drbrain>
well, yes
bluepojo has quit [Read error: Operation timed out]
<drbrain>
a "\0" is different from nothing at all
<livinded>
errr, well how do I read until eof?
<drbrain>
livinded: read
<livinded>
that hangs as well
<drbrain>
it hasn't reached end of file hten
<drbrain>
then
<drbrain>
if the socket is still open read will wait until it closes (end of file) or there is an error
<drbrain>
if you want to abort the reading after a certain amount of time use IO.select and read_nonblock
bluepojo_ has quit [Ping timeout: 248 seconds]
havenwood has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
RobertBirnie has joined #ruby-lang
agile has joined #ruby-lang
MehLaptop has quit [Remote host closed the connection]
srbaker has quit [Quit: Computer has gone to sleep.]
toretore has quit [Quit: Leaving]
soypirate has quit [Read error: Connection reset by peer]
geopet has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
neverminding has joined #ruby-lang
baustin has quit [*.net *.split]
stardiviner has quit [*.net *.split]
djinni` has quit [*.net *.split]
chendo_ has quit [*.net *.split]
tallship has quit [*.net *.split]
Caius has quit [*.net *.split]
bcol has quit [*.net *.split]
zanea has quit [*.net *.split]
asio has quit [*.net *.split]
ggreer has quit [*.net *.split]
amerine has quit [Quit: Computer has gone to sleep.]
baustin has joined #ruby-lang
stardiviner has joined #ruby-lang
djinni` has joined #ruby-lang
77CAAQFXE has joined #ruby-lang
zanea has joined #ruby-lang
Caius has joined #ruby-lang
bcol has joined #ruby-lang
tallship has joined #ruby-lang
ggreer has joined #ruby-lang
asio has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
concerne_ has joined #ruby-lang
concerne_ has left #ruby-lang [#ruby-lang]
concernedcitizen has joined #ruby-lang
RobertBirnie has quit [Quit: RobertBirnie]
KA_ has quit [Quit: KA_]
amerine has joined #ruby-lang
sepp2k1 has quit [Remote host closed the connection]
r0bby has joined #ruby-lang
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
MehLaptop has joined #ruby-lang
dustint has joined #ruby-lang
bzalasky_ has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
geopet has quit [Quit: geopet]
bzalasky has quit [Remote host closed the connection]
geopet has joined #ruby-lang
davidbalbert is now known as davidbalber|away
dhruvasagar has quit [Ping timeout: 248 seconds]
concernedcitizen has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
io_syl has joined #ruby-lang
KA_ has joined #ruby-lang
dustint has quit [Quit: Leaving]
iamjarvo has joined #ruby-lang
torrieri has joined #ruby-lang
MehLaptop has quit [Remote host closed the connection]
CoverSlide has quit [Ping timeout: 276 seconds]
sn0wb1rd_ has joined #ruby-lang
imajes has quit [Excess Flood]
sn0wb1rd has quit [Ping timeout: 248 seconds]
sn0wb1rd_ is now known as sn0wb1rd
imajes has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
Domon has joined #ruby-lang
stonerfish has joined #ruby-lang
stonerfish has quit [Client Quit]
mjio has joined #ruby-lang
geopet has quit [Quit: geopet]
mistym has joined #ruby-lang
CoverSlide has joined #ruby-lang
vbatts has quit [Ping timeout: 255 seconds]
geopet has joined #ruby-lang
kgrz has joined #ruby-lang
<mehwork>
is => really 'dead'? I keep seeing it a lot still even though i get that : is used more for hashes. But what about things, especially in rails, where => is used a lot still
havenwood has joined #ruby-lang
kgrz has quit [Ping timeout: 252 seconds]
KA_ has quit [Quit: KA_]
<wmoxam>
mehwork: => is needed for non-symbol keys
torrieri has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
KA_ has joined #ruby-lang
imperator has left #ruby-lang ["Leaving"]
torrieri_ has joined #ruby-lang
torrieri has quit [Read error: Connection reset by peer]
tomzx_mac has quit [Read error: Operation timed out]
rippa has joined #ruby-lang
dankest has joined #ruby-lang
KA_ has quit [Quit: KA_]
wallerdev has quit [Quit: wallerdev]
geopet has quit [Quit: geopet]
<mehwork>
wmoxam: right but there are times it does and doesn't work even with symbols for me...
<mehwork>
For example this SASS doesn't work if i change :url => path to :url: path = simple_form_for @message, :url => path do |form|
ryanf_ has joined #ruby-lang
<ryanf>
mehwork: that's because ":url: path" is not real syntax
<mehwork>
oh because path isn't a symbol
<ryanf>
no
<mehwork>
yeah it is
<mehwork>
this works: = form.input :body, as: :text
<mehwork>
oh wait that's different
<ryanf>
do you not see the difference between those two examples
<mehwork>
i'm confused :(
<ryanf>
oh good
<ryanf>
mehwork: "url: path" is the same thing as ":url => path"
bzb has quit [Quit: I hate to quit but my bladder's full. :-(]
<mehwork>
thanks for helping me sharpen my vision. Not used to this syntax at all yet
<mehwork>
:)
Mon_Ouie has joined #ruby-lang
dankest has quit [Quit: Leaving...]
ryanf_ has quit [Ping timeout: 252 seconds]
rbright has joined #ruby-lang
rbright has quit [Changing host]
rbright has joined #ruby-lang
iamjarvo has quit [Quit: Leaving.]
imajes has quit [Excess Flood]
ryanf has quit [Ping timeout: 240 seconds]
rbright has quit [Client Quit]
geopet has joined #ruby-lang
imajes has joined #ruby-lang
<mehwork>
although, now i'm confused as to why you don't have to have {} around hashes like the above examples
dankest has joined #ruby-lang
<mehwork>
seems like almost everything is optional in ruby
kgrz has joined #ruby-lang
<mehwork>
just read up on it. Seems to be only for methods because of how they already treat arguments as hashes or something
kgrz has quit [Quit: Computer has gone to sleep.]
kgrz has joined #ruby-lang
RobertBirnie has joined #ruby-lang
noop has joined #ruby-lang
ryanf has joined #ruby-lang
mistym has quit [Remote host closed the connection]
unix has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
klebervirgilio has joined #ruby-lang
<Mon_Ouie>
It's just syntax sugar. If the last arguments are key => value pairs, it assumes they are supposed to form a hash
<mehwork>
like an orgy, i'm fine with it once i understand the rules
<mehwork>
the less typing, the better
tonni has quit [Remote host closed the connection]
mjio has quit []
klebervirgilio has quit [Ping timeout: 264 seconds]
rippa has joined #ruby-lang
bzalasky has joined #ruby-lang
seoaqua has quit [Quit: 离开]
tonni has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
nertzy2 has joined #ruby-lang
wmoxam has quit [Quit: leaving]
torrieri_ has quit [Quit: Leaving...]
nertzy has quit [Ping timeout: 245 seconds]
torrieri has joined #ruby-lang
fsvehla has joined #ruby-lang
dhruvasagar has joined #ruby-lang
vbatts has joined #ruby-lang
[1]Apollo has joined #ruby-lang
amerine has joined #ruby-lang
unix has quit [Ping timeout: 260 seconds]
Mon_Ouie has quit [Ping timeout: 257 seconds]
[1]Apollo has left #ruby-lang [#ruby-lang]
[1]Apollo has joined #ruby-lang
[1]Apollo has left #ruby-lang [#ruby-lang]
dcwu has joined #ruby-lang
[1]Apollo has joined #ruby-lang
unix has joined #ruby-lang
nXqd has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
unix has quit [Ping timeout: 246 seconds]
ApolloWire has joined #ruby-lang
ApolloWire has quit [Client Quit]
tonni has quit [Remote host closed the connection]
xalei has joined #ruby-lang
unix has joined #ruby-lang
brianpWins has joined #ruby-lang
zmack has joined #ruby-lang
zmack has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
amerine has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
geopet has quit [Quit: geopet]
Elico1 has joined #ruby-lang
livinded has quit [Ping timeout: 246 seconds]
techlife has quit [Ping timeout: 244 seconds]
[1]Apollo has left #ruby-lang [#ruby-lang]
ApolloWire has joined #ruby-lang
techlife has joined #ruby-lang
ApolloWire has quit [Client Quit]
[1]Apollo has joined #ruby-lang
<[1]Apollo>
Recommendations for defining a method in a base class that uses variables in classes that then inherit that base class?
<[1]Apollo>
ie. class TestBase
JohnBat26 has joined #ruby-lang
<[1]Apollo>
def test; puts @@classid; end
<[1]Apollo>
end
tonni has joined #ruby-lang
<[1]Apollo>
class TestDerived; @@classid = "test"; end
<[1]Apollo>
TestDerived.new.test
<[1]Apollo>
Kind of thing.
<ryanf>
[1]Apollo: you can just use an instance variable
<ryanf>
unless you mean class methods
<ryanf>
in which case I'd probably just use the template method pattern or something, since hopefully you aren't changing it after subclass definition time
torrieri has quit [Quit: Leaving...]
klebervirgilio has joined #ruby-lang
<[1]Apollo>
Thanks.
livinded has joined #ruby-lang
gnufied has joined #ruby-lang
klebervirgilio has quit [Ping timeout: 276 seconds]
francisfish has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
abstr4ct has quit []
unix has quit [Quit: WeeChat 0.4.0]
dr_bob has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
<andrewvos>
This bag is tough as fuck though. Quite like it
beho has joined #ruby-lang
Elico1 has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
Squarepy has joined #ruby-lang
lian_ has joined #ruby-lang
kristoff_ has joined #ruby-lang
lian_ has quit [Client Quit]
lian_ has joined #ruby-lang
lian_ has quit [Client Quit]
kristofferrr has quit [Ping timeout: 252 seconds]
cultureulterior_ has joined #ruby-lang
lianj has joined #ruby-lang
lianj has joined #ruby-lang
lianj has quit [Changing host]
kristoff_ has quit [Client Quit]
Squarepy has quit [Changing host]
Squarepy has joined #ruby-lang
kristofferrr has joined #ruby-lang
chendo_ has joined #ruby-lang
marr has joined #ruby-lang
Domon has quit [Remote host closed the connection]
<kristofferrr>
I'm trying to limit the results returned from a .map with both key and value. At the moment it returns a limited amount of values per key instead of total. I know why it it works the way it does, but not how to fix it. Any ideas? - http://pastie.org/private/fz8h6etd9xmzgh4xsistg
<andrewvos>
kristofferrr: Do you know about #select?
<andrewvos>
[1,2,3].select {|d| d==1} #=> [1]
<injekt>
andrewvos: he uses select in that paste :P
<andrewvos>
injekt: *facepalm*
<kristofferrr>
That won't work as I don't have specific values to look for.
<injekt>
I still dont really understand the code
fsvehla has quit [Ping timeout: 248 seconds]
<kristofferrr>
The select is used to filter out results I can't use (They're from a JSON result).
<GarethAdams>
kristofferrr: what is the first(3) line for? it sounds like you *want* it to return a limited amount
dcwu has joined #ruby-lang
<kristofferrr>
Okay there are several keys, they can be "exact", "substring", etc.
<kristofferrr>
I want to be able to limit the amount of results returned total, not per key.
<kristofferrr>
I guess what I need is a way to break out of .map
<kristofferrr>
Unless I should just use a loop.
<GarethAdams>
right, you want the first 3 key/value pairs from the hash that match the condition
skade has joined #ruby-lang
<judofyr>
kristofferrr: could you show us example input and expected output?
<kristofferrr>
Actually no, what I want is the first 3 values total, regardless of what the key is. I know the current code is per pair, but I don't know how to do it differently.
<kristofferrr>
judofyr: One second.
<GarethAdams>
the simple way is to move the .first(3) onto the result of the map
dhruvasagar has quit [Ping timeout: 260 seconds]
gokul has joined #ruby-lang
<GarethAdams>
but of course you'll end up evaluating the select for all items, not just the first 3 matches
<kristofferrr>
Hmm yeah, I guess I might have to do it like that. Should work.
<GarethAdams>
lazy-evaluated enumerators would be the perfect solution, but I still never got my head around those
apod has quit [Ping timeout: 264 seconds]
* judofyr
still doesn't understand the problem
<judofyr>
oh
dhruvasagar has joined #ruby-lang
Elico1 has quit [Quit: Elico1]
<judofyr>
kristofferrr: you want to avoid running the .select-block because you just want the 3 first element?
<judofyr>
s*
chendo_ has quit [Quit: Leaving...]
<kristofferrr>
Actually I want to avoid running anything after the .first - I just cut that out in the paste :/
<kristofferrr>
And here's a more complete example of my code: http://pastie.org/private/vm9ylvnpfnt4vl41sorcsq - I'm trying to avoid running the second .map on results that will be filtered anyway.
chendo_ has quit [Quit: Computer has gone to sleep.]
jxie has joined #ruby-lang
gokul has quit [Quit: Leaving]
tonni has quit [Remote host closed the connection]
beho has joined #ruby-lang
bzb has joined #ruby-lang
<soahccc>
Isn't there any other solution to track gem versions than gemnasium? I'm looking for something more instance based rather than project based and not limited to github.
skade has quit [Read error: Operation timed out]
sockmonk has joined #ruby-lang
rsl has joined #ruby-lang
mistym has joined #ruby-lang
noop has quit [Remote host closed the connection]
outoftime has joined #ruby-lang
methods has quit [Quit: Leaving.]
skade has joined #ruby-lang
jtoy has joined #ruby-lang
workmad3 is now known as wm3|away
melter has quit [Remote host closed the connection]
dblack__ has quit [Quit: dblack__]
tonni has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
stiang has joined #ruby-lang
stiang has quit [Client Quit]
banister`bbl has joined #ruby-lang
stiang has joined #ruby-lang
dblack__ has joined #ruby-lang
wmoxam has joined #ruby-lang
eklarskov has quit [Quit: leaving]
dr_bob has quit [Quit: Leaving.]
dblack_ has joined #ruby-lang
dblack__ has left #ruby-lang [#ruby-lang]
melter has joined #ruby-lang
enebo has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 252 seconds]
scampbell has joined #ruby-lang
sduckett has joined #ruby-lang
dr_bob has joined #ruby-lang
iamjarvo has joined #ruby-lang
geopet has joined #ruby-lang
dr_bob has quit [Client Quit]
beiter has quit [Quit: beiter]
sduckett has quit [Quit: leaving]
breakingthings has joined #ruby-lang
__BigO__ has joined #ruby-lang
kristofferrr has quit [Quit: ❤]
beiter has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
mistym has quit [Remote host closed the connection]
retro|cz has joined #ruby-lang
marr has quit [Ping timeout: 248 seconds]
__BigO__ has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
sebastiansier has quit [Remote host closed the connection]
__BigO__ has quit [Ping timeout: 276 seconds]
srbaker has joined #ruby-lang
agile has quit [Remote host closed the connection]
jonahR has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
kgrz has joined #ruby-lang
wm3|away is now known as workmad3
mercwithamouth has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
sailias has joined #ruby-lang
spuk has quit [Ping timeout: 244 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
methods has joined #ruby-lang
davidbalber|away is now known as davidbalbert
methods has left #ruby-lang [#ruby-lang]
<zzak>
good morning!
hackeron has quit [Read error: Connection reset by peer]
tonni has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving.]
duderonomy has joined #ruby-lang
Austin__1 has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
Austin__ has quit [Ping timeout: 240 seconds]
<ruby-lang975>
Can anyone help me out and tell me why this is giving me a "uninitialized constant CSV_Scripts::Session (NameError)"? http://pastie.org/6348198
<ruby-lang975>
Using latest RSpec and Ruby 2.0.0
bzalasky has quit [Remote host closed the connection]
<judofyr>
ruby-lang975: I'd put some "p :loaded" in the files to see what files are loaded
Austin__1 has quit [Quit: Leaving.]
<ruby-lang975>
It's strange, because it works for Cucumber and then give the error in RSpec
Austin__ has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
fire has joined #ruby-lang
davidbalbert is now known as davidbalber|away
Qfwfq has quit [Ping timeout: 255 seconds]
<ruby-lang975>
It seems like when I run RSpec and it gets to require 'csv_scripts/session', it loads 'spec/csv_scripts/session' instead of 'lib/csv_scripts/session'
dhruvasagar has joined #ruby-lang
mechanicles has joined #ruby-lang
ryanv-raptor has joined #ruby-lang
stiang has quit [Quit: stiang]
gnufied has joined #ruby-lang
rippa has joined #ruby-lang
duderonomy has quit [Quit: duderonomy]
bantic has joined #ruby-lang
Guest90390 is now known as ddd
geopet has quit [Quit: geopet]
<judofyr>
ruby-lang975: ah
<judofyr>
ruby-lang975: makes sense. the LOAD_PATH is different
kogent has joined #ruby-lang
dblack__ has joined #ruby-lang
dblack_ has joined #ruby-lang
llaskin has joined #ruby-lang
llaskin has quit [Changing host]
llaskin has joined #ruby-lang
<llaskin>
anyone here use TestUnit?
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo1 has joined #ruby-lang
<ruby-lang975>
judofyr: Thanks. Do you have a suggestion for fixing it? Do I need to specify the LOAD_PATH somewhere?
<injekt>
llaskin: probably lots of people, ask your question
<judofyr>
ruby-lang975: name your files _spec.rb
<judofyr>
llaskin: you should use MiniTest now :)
<ruby-lang975>
omg
<llaskin>
injekt: is a test unit supposed to run its tests one by one? or all at once?
<mfn>
what would be an idiomatic way to slice a string from the second character to the end? "foo" should become "oo". I'm not so happy with "foo".slice(1,"foo".length-1)
<judofyr>
llaskin: but yes, I ue it
<ruby-lang975>
I'm a moron
<ruby-lang975>
lol
<ruby-lang975>
judofyr: thanks
<judofyr>
mfn: .slice(1..-1)
<llaskin>
judofyr: i'm using mintest, but still following the old testunit conventions hence my question
<judofyr>
llaskin: you need to `require "minitest/autorun"` to run the test when you run the test file
<judofyr>
mfn: or [1..-1]
<injekt>
llaskin: none of them run concurrently by default
<llaskin>
injekt: how can I make them run concurrently?
dblack__ has left #ruby-lang [#ruby-lang]
gustavnils has joined #ruby-lang
<llaskin>
(i'm testing selenium tests, and want to spawn 10 tests at the same time to speed up time-to-test)
<ruby-lang975>
judofyr: thanks again. that did it.
realDAB has joined #ruby-lang
<whitequark>
O_o
<whitequark>
I was quite sure that the content of #order scope was passed by rails to the backend verbatim
<whitequark>
"don't put user input there" and all
<whitequark>
hell no. it gets his fucking greasy gsub and replaces desc to asc sometimes
<whitequark>
and also puts either of those before comma, breaking my little precious NULLS FIRST
__BigO__ has joined #ruby-lang
<mfn>
judofyr: argl, thanks. I tried "foo".slice(1,-1) .. but not the range. small semantics ;) thank you
slyphon has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 255 seconds]
dblack_ has left #ruby-lang [#ruby-lang]
tonni has joined #ruby-lang
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
mwjcomputing has joined #ruby-lang
beho has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
krohrbaugh has quit [Quit: Leaving.]
solars has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
banister`bbl has quit [Remote host closed the connection]
__BigO__ has quit [Remote host closed the connection]
mwjcomputing has quit [Quit: Leaving]
ruby-lang975 has quit [Quit: Page closed]
carloslopes has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
mytrile has quit [Remote host closed the connection]
imajes has joined #ruby-lang
io_syl has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 244 seconds]
imajes has quit [Excess Flood]
ckim has joined #ruby-lang
davidbalbert is now known as davidbalber|away
imajes has joined #ruby-lang
sush24 has joined #ruby-lang
beiter has quit [Quit: beiter]
bin7me has quit [Quit: Verlassend]
imajes has quit [Excess Flood]
judofyr has quit [Remote host closed the connection]
imajes has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
geopet has joined #ruby-lang
<injekt>
llaskin: no idea, maybe check out parallel_tests it's not something I would do and I dont think it's a good idea
<rue>
eeeenkjjeeeet
Squarepy has quit [Quit: Leaving]
__BigO__ has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
_MJ_4Q_ has joined #ruby-lang
llaskin has left #ruby-lang [#ruby-lang]
ckim has quit [Remote host closed the connection]
crazymykl has joined #ruby-lang
davidbalber|away is now known as davidbalbert
fsvehla has quit [Quit: fsvehla]
nXqd has quit [Ping timeout: 248 seconds]
bougyman has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby-lang
Kevin has joined #ruby-lang
dhruvasagar has joined #ruby-lang
Kevin is now known as Guest25657
kevinfagan has quit [Ping timeout: 248 seconds]
skade has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
realDAB has quit [Quit: realDAB]
Guest25657 has quit [Ping timeout: 248 seconds]
jerrytgarcia has joined #ruby-lang
nXqd has joined #ruby-lang
dankest has joined #ruby-lang
justinseiter has joined #ruby-lang
poga has joined #ruby-lang
xcombelle has joined #ruby-lang
sebastiansier has joined #ruby-lang
dblack__ has joined #ruby-lang
smathy has joined #ruby-lang
dblack__ has quit [Client Quit]
apeiros_ has joined #ruby-lang
sepp2k has quit [Ping timeout: 248 seconds]
davidbalbert is now known as davidbalber|away
<andrewvos>
uh
<smathy>
Ruby2 question, did initialize_dup switch from a public to a private method between 1.x and 2.0?
krohrbaugh has joined #ruby-lang
sepp2k has joined #ruby-lang
imajes has quit [Excess Flood]
<apeiros_>
initialize_dup?
<apeiros_>
you mean initialize_copy?
<apeiros_>
and initialize_copy was always private afair
dzhulk has joined #ruby-lang
<zzak>
`ri initialize_copy`
iamjarvo1 has quit [Quit: Leaving.]
<zzak>
its pretty barren
<whitequark>
smathy: *uses his psychic powers* I guess you want to wait until rails 3.2.13
<injekt>
smathy: yes
imajes has joined #ruby-lang
<injekt>
smathy: and yes that's the only latest rails incompatibility with 2.0
<smathy>
injekt, awesome, thanks for the confirmation.
<smathy>
whitequark, not sure if something changed overnight, but I was still having the problem on 3-2-stable yesterday.
<smathy>
…I was just looking for confirmation before submitting a PR - so thanks.
<whitequark>
smathy: 3-2-stable worked fine for me
<apeiros_>
so initialize_dup is an actual thing? wow… didn't know that one
<eam>
but, silly me I used .times on Range instead of .each
<eam>
I was going crazy because my conditional was like: break if foo[0..i] != bar[0..i]
<eam>
and I thought the "bad value for range" was a result of my conditional expression ...
<eam>
did not occur that it would be the call to break
crazyhorse has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
schaerli has joined #ruby-lang
jbelcher has joined #ruby-lang
jbelcher has quit [Client Quit]
jbelcher has joined #ruby-lang
<jbelcher>
All—I frequently run into problems building various Ruby-related projects, and I think there's just a lot of misconfiguration debt on my OSX machine. Does anyone have any words of advice to "start over" with my Ruby installation? There's ruby, gem, rvm, bundle, and homebrew on this machine
__butch__ has joined #ruby-lang
anonymuse has joined #ruby-lang
<apeiros_>
jbelcher: hope that you haven't touched system ruby (wouldn't know how to restore that other than system reinstall), uninstall homebrew ruby, rvm implode, then check what rubies exist (locate, find, whatever tool you prefer…)
rushed has joined #ruby-lang
<jbelcher>
apeiros_ no I don't think any of the base ruby has been touched
jerrytgarcia has quit [Read error: Connection reset by peer]
solars has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
dc5ala has joined #ruby-lang
solars has quit [Ping timeout: 244 seconds]
krz has quit [Quit: krz]
calveto has joined #ruby-lang
mechanic_ has joined #ruby-lang
mechanicles has quit [Read error: Connection reset by peer]
<havenwood>
jbelcher: To completely tear down rvm: rvm implode
mechanic_ has quit [Read error: Connection reset by peer]
[1]Apollo has joined #ruby-lang
mechanicles has joined #ruby-lang
slyphon has quit [Quit: slyphon]
sailias has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
calveto has left #ruby-lang [#ruby-lang]
mistym is now known as mistym_coffee
slyphon has joined #ruby-lang
jbelcher has quit [Quit: jbelcher]
sailias has quit [Ping timeout: 264 seconds]
nkr has quit [Ping timeout: 252 seconds]
shiningblue has joined #ruby-lang
solars has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
KA_ has joined #ruby-lang
reppard has joined #ruby-lang
maxmanders has joined #ruby-lang
musl has joined #ruby-lang
_MJ_4Q_ has quit [Remote host closed the connection]
sailias has joined #ruby-lang
krisvage has joined #ruby-lang
reppard has quit [Read error: Operation timed out]
_MJ_4Q_ has joined #ruby-lang
justinram has joined #ruby-lang
nkr has joined #ruby-lang
dankest has quit [Quit: Leaving...]
breakingthings has joined #ruby-lang
r0bby has quit [Ping timeout: 252 seconds]
lteo has quit [Quit: leaving]
[[johnonymous]] has joined #ruby-lang
pkrnj has joined #ruby-lang
_carloslopes has joined #ruby-lang
Weems has quit [Read error: Connection reset by peer]
geson has quit [Quit: leaving]
tylersmith has quit [Read error: Connection reset by peer]
pr0ton has joined #ruby-lang
rushed has quit [Quit: rushed]
carloslopes has quit [Ping timeout: 272 seconds]
solars has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Quit: Leaving.]
methods1 has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
rushed has joined #ruby-lang
pasties has quit [Ping timeout: 244 seconds]
pasties has joined #ruby-lang
hackeron has quit [Read error: Connection reset by peer]
rushed has quit [Client Quit]
rushed has joined #ruby-lang
beho has joined #ruby-lang
tylersmith has joined #ruby-lang
hackeron has joined #ruby-lang
ottbot has quit [Ping timeout: 276 seconds]
dankest has joined #ruby-lang
dankest has quit [Client Quit]
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
slyphon_ has joined #ruby-lang
hackeron has quit [Read error: Connection reset by peer]