apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
makepkgnotwar has quit [Max SendQ exceeded]
tosbourn has joined #ruby
makepkgnotwar has joined #ruby
michaeldeol has joined #ruby
xtsee has quit [Quit: Reconnecting]
xtsee has joined #ruby
Kricir has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
vim_shimm has joined #ruby
Azure has quit [Excess Flood]
doodlehaus has joined #ruby
Azure has joined #ruby
tosbourn has quit [Ping timeout: 256 seconds]
aghalarp has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
aghalarp has joined #ruby
ujihisa has joined #ruby
sevenseacat has joined #ruby
rbennace_ has quit [Ping timeout: 256 seconds]
scripore has quit [Quit: This computer has gone to sleep]
timanema has joined #ruby
Rapier- has quit [Quit: (null)]
FernandoBasso has quit [Quit: leaving]
sankaber has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
Azure has quit [Read error: Connection reset by peer]
marr has quit []
CloCkWeRX has joined #ruby
grindmodeon has joined #ruby
keen_ has quit [Read error: Connection reset by peer]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grindmodeon has quit [Client Quit]
keen_ has joined #ruby
<weaksauce> oh nice ruboto regists the pastebin content.
tkuchiki has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
<Radar> But does it format it nicely and separate out the files into separate files on the Gist?
<weaksauce> no clue Radar. does pastebin even have an option for that?
<Radar> Nope.
bruno- has quit [Ping timeout: 245 seconds]
<weaksauce> let's try
<ruboto> weaksauce, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/4b3d5d8ca0d19f3768b9
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<weaksauce> nope
<Radar> Yeah, it doesn't.
<dodobrain> out of curiosity, how do you paste multiple files in a gist ?
<dodobrain> i've never done it myself
<weaksauce> add new file button
<sevenseacat> how do so many people miss that button?
<dodobrain> lol :(
MatthewsFace has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
freerobby has joined #ruby
<weaksauce> perhaps it's because it's on the left?
<dodobrain> no idea, i cannot imagine how i have missed that button
Azure has joined #ruby
<weaksauce> dodobrain many people do so don't sweat it
robustus has quit [Ping timeout: 255 seconds]
<Radar> dodobrain: Did you find the button?
<Radar> And yeah, I think it's because it's in the bottom left too. People read diagonally from top left -> bottom right
<Radar> and add file should probably be a different colour to draw people's attention ot it
makepkgnotwar has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Ping timeout: 245 seconds]
<dodobrain> Radar, sure i did after you guys mentioned the button :)
<mozzarella> also, it's text, should be an icon instead
<dodobrain> it should be "+ file" with a different bg colour
amclain has quit [Quit: Leaving]
<dodobrain> but bleh, i admit it was my fault for not noticing such a big button. i guess i've been pasting only single snippets
<Radar> I did a quick mockup of what I think the button should look like http://imgur.com/bJKLAmM
<Radar> Without changing the colour
dfinning_ has quit [Remote host closed the connection]
<mozzarella> don't worry bro, I've never even noticed it
jonr22 has joined #ruby
<dodobrain> lol Radar
<mozzarella> still doesn't cut it
Azure has quit [Ping timeout: 256 seconds]
<mozzarella> the button should be on top with the "language" selection and everything else
<mozzarella> and it should be an icon
<Radar> People will still miss it
<Radar> Nobody changes those settings up the top
<sevenseacat> and it should be blinking
<Radar> they try to format it using like "------" or whatever and they miss it
<inavele> Hi anyone have a datamapper method to alphabetical order in .all query?
* lemur raises hand
<mozzarella> sevenseacat: blinking and marqueeing
<lemur> I do
work_op has joined #ruby
<lemur> Radar: what's your handle on twitter?
<Radar> lemur: Are you serious.
<sevenseacat> lol
<Radar> Rhetorical question.
<lemur> I assumed @radar, but it's common enough
* sevenseacat facepalms
makepkgnotwar has joined #ruby
<Radar> lemur: Well, here's my page on GitHub: http://github.com/radar
<Radar> lemur: Now use your powers of deduction to work out my Twitter handle.
<lemur> Ah, that'd help
<lemur> Christ, not even monday yet.
<mozzarella> I can't see the twitter button
zerowaitstate has quit [Quit: leaving]
oo_ has joined #ruby
<dodobrain> mozzarella, haha, good one!
yqt has quit [Ping timeout: 276 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
scripore has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
scripore has quit [Client Quit]
<shevy> oh a dodobrain
jeramy_s has joined #ruby
<shevy> didn't the dodos go extinct?
<dodobrain> i'm still here though :)
* shevy readies shotgun
dorei is now known as zzzxxxxx
zzzxxxxx is now known as dorei
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
_honning_ has joined #ruby
jonr22 has quit [Quit: WeeChat 1.1.1]
jonr22 has joined #ruby
ikeike443 has quit [Quit: Leaving...]
* lemur grabs popcorn
Filete has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
reinaldob has joined #ruby
<shevy> ah I could not shoot the poor dodos
<shevy> he is doomed to find no mate already punishment enough
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iasoon has joined #ruby
timanema has quit [Quit: leaving]
Rickmasta has joined #ruby
Azure has joined #ruby
Feyn has joined #ruby
reinaldob has quit [Ping timeout: 256 seconds]
mjuszczak has quit []
<weaksauce> dodos.each { |dodo| dodo.shoot }
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weaksauce> that could have been the nerdiest genocide joke in the history of irc
anaeem1_ has joined #ruby
<centrx> dodos.replace(dinosaurs)
Deele has joined #ruby
ascarter has joined #ruby
fwaokda has quit [Ping timeout: 256 seconds]
<shevy> guys be nice to the dodos
<shevy> evolution was not nice to them
iotouch has joined #ruby
<centrx> YOU! YOU were not nice to them!
<lemur> weaksauce: oi, dodos.each(&:shoot)
anaeem1_ has quit [Ping timeout: 252 seconds]
<weaksauce> lemur what if I told you I have an irrational fear of ampersands?
<lemur> I'd laugh mercilessly. Why?
<weaksauce> I don't, but it would explain not doing the more succinct each form
freerobby has quit [Quit: Leaving.]
mjuszczak has joined #ruby
<dodobrain> well, the jokes aside, i'm a newbie to ruby. just finished the ri20 tutorial reading the 'ruby from other langs' pages now
Nuck has quit [Quit: Computer has gone to sleep.]
<dodobrain> what does :name mean?
scripore has joined #ruby
iasoon has quit [Ping timeout: 256 seconds]
thumpba has quit [Remote host closed the connection]
<dodobrain> i assume it is a reference called 'name' to an object, is that correct? if yes, where would you use :name instead of @name to refer to an instance variable?
krisquigley has joined #ruby
<dodobrain> also, does this channel cater for rails questions as well or does it have a separate channel?
<drocsid> dodobrain: Sounds like you are pretty familiar with another language, but less so with ruby. Maybe this will help: https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/
<drocsid> dodobrain: I think there is a rails channel somewhere.
<drocsid> try #rails or something like that.
Azure has quit [Ping timeout: 256 seconds]
<dodobrain> well, that one is blank, #rubyonrails seems to exist with many people though
<dodobrain> drocsid, yeah i'm reading those 'ruby from other lang' pages now
<drocsid> Then that's probably a good place for ror specific stuff.
<dodobrain> anyway, back to my original question; i saw in the 20 min tutorial 'attr_accessor :instance_var' would this work with 'attr_accessor @instance_var' as well?
<dodobrain> or is @instance_var returning the value of the var?
krisquigley has quit [Ping timeout: 264 seconds]
havenwood has quit []
GnuYawk has joined #ruby
<dodobrain> ok, thats clear now from running through a testcase in irb
astrobunny has joined #ruby
fabrice31 has joined #ruby
symbol has joined #ruby
lidenskap has joined #ruby
ebbflowgo has joined #ruby
jeramy_s has joined #ruby
astrobunny has quit [Ping timeout: 255 seconds]
tchebb has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
merqlove has joined #ruby
juanpablo____ has joined #ruby
ghr has joined #ruby
aghalarp has quit [Max SendQ exceeded]
Kricir has joined #ruby
aghalarp has joined #ruby
dfinninger has joined #ruby
CpuID has joined #ruby
makepkgnotwar has quit [Quit: Textual IRC Client: www.textualapp.com]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki_ has joined #ruby
juanpablo____ has quit [Ping timeout: 250 seconds]
shellfu has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 264 seconds]
mrmargolis has joined #ruby
A205B064 has quit [Ping timeout: 252 seconds]
momomomomo_ has joined #ruby
astrobunny has joined #ruby
RegulationD has joined #ruby
momomomomo has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
dfinninger has quit [Ping timeout: 264 seconds]
longfeet has quit [Quit: Leaving]
riotjones has joined #ruby
ujihisa has quit [Ping timeout: 244 seconds]
psy_ has joined #ruby
aghalarp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy_ has quit [Max SendQ exceeded]
lewix has joined #ruby
psy_ has joined #ruby
anskeit has quit []
RegulationD has quit [Ping timeout: 256 seconds]
Axy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 264 seconds]
riotjones has quit [Ping timeout: 256 seconds]
Pupeno_ has joined #ruby
vim_shimm has quit [Ping timeout: 248 seconds]
zz_AlphaTech is now known as AlphaTech
Pupeno has quit [Ping timeout: 264 seconds]
<lemur> dodobrain: attr_* methods are macros that take a symbol as a name for defining the corresponding methods
symbol has quit [Quit: WeeChat 1.1]
momomomomo has quit [Quit: momomomomo]
yfeldblu_ has quit [Quit: Leaving...]
qwertme has joined #ruby
tchebb has joined #ruby
astrobunny has quit [Remote host closed the connection]
poguez_ has joined #ruby
iteratorP has quit [Quit: Leaving...]
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
pika_pika has joined #ruby
DEA7TH has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
iteratorP has joined #ruby
maximski has quit []
casshern2 has quit [Ping timeout: 265 seconds]
Arkantos has joined #ruby
Arkantos has left #ruby [#ruby]
qwertme has quit [Quit: leaving]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
markholmes has joined #ruby
mengu has quit [Ping timeout: 272 seconds]
grindmodeon has joined #ruby
sudog has quit [Ping timeout: 252 seconds]
doodlehaus has joined #ruby
oo_ has quit [Remote host closed the connection]
centrx has quit [Quit: Shutting down, Please wait...]
Kricir has joined #ruby
doodlehaus has quit [Ping timeout: 265 seconds]
arescorpio has joined #ruby
MatthewsFace has joined #ruby
rocknrollmarc has joined #ruby
rikai has quit [Ping timeout: 245 seconds]
Kricir has quit [Ping timeout: 240 seconds]
MatthewsFace has quit [Ping timeout: 256 seconds]
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
tchebb has quit [Read error: Connection reset by peer]
lidenskap has quit [Remote host closed the connection]
tchebb has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
tchebb has quit [Read error: Connection reset by peer]
ItSANgo_ has joined #ruby
ItSANg___ has quit [Ping timeout: 255 seconds]
jeramy_s has joined #ruby
amystephen has quit [Quit: amystephen]
tchebb has joined #ruby
michael_mbp has quit [Excess Flood]
rikai has joined #ruby
Guest11323 has quit [Remote host closed the connection]
bim has joined #ruby
bim has quit [Remote host closed the connection]
ghr has joined #ruby
tus has quit []
michael_mbp has joined #ruby
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nopolitica has joined #ruby
mjuszczak has quit []
dfinninger has joined #ruby
dorei has quit []
oo_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
oo_ has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
lidenskap has joined #ruby
nopolitica has quit [Quit: leaving]
mburns_ is now known as mburns
dfinninger has quit [Ping timeout: 264 seconds]
pika_pika has quit [Ping timeout: 245 seconds]
GeorgeThompson has quit [Ping timeout: 276 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Megtastique has joined #ruby
pskosinski has joined #ruby
JoshGlzBrk has joined #ruby
rshetty has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
Nuck has joined #ruby
rshetty has quit [Remote host closed the connection]
mitchellhenke has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
_pakchoi_ has joined #ruby
rubytor has quit [Remote host closed the connection]
Nuck has quit [Max SendQ exceeded]
Nuck has joined #ruby
mgberlin has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
lewix has quit []
_pakchoi_ has quit [Remote host closed the connection]
JoshGlzB_ has joined #ruby
JoshGlzBrk has quit [Ping timeout: 252 seconds]
JoshGlzBrk has joined #ruby
krisquigley has joined #ruby
ruby487 has joined #ruby
JoshGlzB_ has quit [Ping timeout: 250 seconds]
JoshGlzB_ has joined #ruby
ohaibbq has joined #ruby
Nuck has quit [Remote host closed the connection]
braincra- has quit [Quit: bye bye]
JoshGlzBrk has quit [Read error: Connection reset by peer]
inavele has quit [Ping timeout: 256 seconds]
thatslifeson_ has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
ruby487 has quit [Ping timeout: 246 seconds]
krisquigley has quit [Ping timeout: 265 seconds]
Axy has quit [Read error: Connection reset by peer]
_honning_ has quit [Ping timeout: 264 seconds]
thatslifeson has quit [Ping timeout: 245 seconds]
rbennacer has quit [Ping timeout: 246 seconds]
scripore has quit [Quit: This computer has gone to sleep]
Kricir has joined #ruby
fabrice31 has joined #ruby
multi_io has joined #ruby
braincrash has joined #ruby
Nuck has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Megtastique has quit []
Nuck has quit [Max SendQ exceeded]
kyrylo has joined #ruby
mjuszczak has joined #ruby
JoshGlzB_ has quit [Ping timeout: 250 seconds]
Nuck has joined #ruby
havenwood has joined #ruby
ParmesanCaesar has joined #ruby
Kricir has quit [Ping timeout: 256 seconds]
robustus has joined #ruby
<CaptainCibai> what would a sensible rate limit be for domain name availability lookups?
fabrice31 has quit [Ping timeout: 250 seconds]
scripore has joined #ruby
jeramy_s has quit [Quit: Peace out!]
juanpablo____ has joined #ruby
juanpablo____ has quit [Ping timeout: 245 seconds]
thatslifeson_ is now known as thatslifeson
JoshGlzBrk has joined #ruby
_pakchoi_ has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
thumpba has joined #ruby
JoshGlzBrk has quit [Max SendQ exceeded]
JoshGlzBrk has joined #ruby
RegulationD has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
sevvie has joined #ruby
scripore has quit [Quit: Leaving]
tosbourn has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ghr has quit [Ping timeout: 248 seconds]
dfinninger has joined #ruby
tosbourn has quit [Ping timeout: 245 seconds]
dfinninger has quit [Ping timeout: 250 seconds]
yfeldblu_ has joined #ruby
A205B064 has joined #ruby
NightMonkey has quit [Quit: ZNC - http://znc.in]
thumpba has quit []
yfeldblum has quit [Ping timeout: 252 seconds]
JoshGlzB_ has joined #ruby
rshetty has joined #ruby
justin_pdx has joined #ruby
JoshGlzBrk has quit [Ping timeout: 264 seconds]
LudicrousMango has joined #ruby
JoshGlzB_ has quit [Ping timeout: 276 seconds]
JoshGlzBrk has joined #ruby
oo_ has quit [Remote host closed the connection]
JoshGlzBrk has quit [Client Quit]
amdbcg has joined #ruby
MatthewsFace has joined #ruby
thumpba has joined #ruby
JoshGlzBrk has joined #ruby
mgberlin has quit [Remote host closed the connection]
lkba_ has quit [Read error: Connection reset by peer]
mrmargolis has quit [Remote host closed the connection]
lkba has joined #ruby
silentpost has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
oo_ has joined #ruby
rshetty_ has joined #ruby
iotouch has quit [Ping timeout: 255 seconds]
michael_mbp has joined #ruby
iotouch has joined #ruby
psy_ has quit [Quit: Leaving]
rshetty has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
mgberlin has joined #ruby
Musashi007 has joined #ruby
<Musashi007> evening
grindmodeon has quit [Quit: Leaving.]
doodlehaus has quit [Ping timeout: 252 seconds]
<Radar> hello Musashi007
zorak8 has joined #ruby
<Musashi007> :D
zorak8 has quit [Max SendQ exceeded]
merqlove has quit [Quit: Connection closed for inactivity]
zorak8 has joined #ruby
Alina-malina has quit [Ping timeout: 248 seconds]
iotouch has quit [Quit: This computer has gone to sleep]
ohaibbq has quit [Remote host closed the connection]
turtil has quit [Quit: WeeChat 1.1.1]
ohaibbq has joined #ruby
amystephen has joined #ruby
zubov has joined #ruby
anaeem1 has joined #ruby
psy_ has joined #ruby
musashi has joined #ruby
psy_ has quit [Max SendQ exceeded]
haxrbyte has joined #ruby
psy_ has joined #ruby
thumpba has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
ohaibbq has quit [Ping timeout: 245 seconds]
anaeem1_ has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
grindmodeon has joined #ruby
grindmodeon has quit [Client Quit]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
haxrbyte_ has joined #ruby
Dakuan has joined #ruby
sinkensabe has quit [Remote host closed the connection]
astrobunny has joined #ruby
jaygen has joined #ruby
rshetty_ has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
jaygen_ has quit [Ping timeout: 255 seconds]
sinkensabe has joined #ruby
amdbcg has quit [Ping timeout: 265 seconds]
qualityaddict has quit []
mengu has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 250 seconds]
dfinninger has joined #ruby
Morkel has joined #ruby
joelroa has joined #ruby
dfinninger has quit [Ping timeout: 251 seconds]
mengu has quit [Ping timeout: 276 seconds]
sinkensabe has quit [Ping timeout: 252 seconds]
joelroa has quit [Max SendQ exceeded]
djbkd has quit [Quit: Leaving...]
rshetty has joined #ruby
x1337807_ has joined #ruby
sinkensabe has joined #ruby
rshetty has quit [Remote host closed the connection]
x1337807x has quit [Ping timeout: 240 seconds]
Dakuan has quit [Remote host closed the connection]
mgberlin has quit [Remote host closed the connection]
mjuszczak has quit []
justin_pdx has quit [Quit: justin_pdx]
aghalarp has joined #ruby
mjuszczak has joined #ruby
serivich has joined #ruby
iotouch has joined #ruby
vim_shimm has joined #ruby
lxsameer has joined #ruby
joelroa has joined #ruby
Rickmasta has joined #ruby
krisquigley has joined #ruby
serivich has quit [Ping timeout: 264 seconds]
dagelf has quit [Ping timeout: 276 seconds]
eytanfb has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
rshetty has joined #ruby
tgunr has joined #ruby
Igorshp has joined #ruby
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
tgunr has quit [Client Quit]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
michaeldeol has quit [Client Quit]
grindmodeon has joined #ruby
fabrice31 has joined #ruby
Igorshp has quit [Ping timeout: 264 seconds]
red_horned_rihno has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
juanpablo____ has joined #ruby
juanpablo____ has quit [Ping timeout: 265 seconds]
vim_shimm has quit [Ping timeout: 250 seconds]
psy_ has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
Musashi007 has quit [Quit: Musashi007]
ParmesanCaesar has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby
_pakchoi_ has quit [Remote host closed the connection]
riotjones has joined #ruby
Symbiosisz has quit [Ping timeout: 264 seconds]
psy_ has joined #ruby
sinkensabe has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
riotjones has quit [Ping timeout: 245 seconds]
turtil has joined #ruby
ParmesanCaesar has joined #ruby
tosbourn has joined #ruby
wldcordeiro has joined #ruby
bluOxigen has joined #ruby
Zamerick has quit [Read error: Connection reset by peer]
rshetty has quit [Remote host closed the connection]
ramfjord has joined #ruby
rshetty has joined #ruby
ghr has joined #ruby
bim has joined #ruby
Symbiosisz has joined #ruby
bim is now known as Guest3776
spider-mario has quit [Ping timeout: 276 seconds]
rshetty has quit [Ping timeout: 245 seconds]
tosbourn has quit [Remote host closed the connection]
<tmadsen> clear
Guest3776 has quit [Ping timeout: 245 seconds]
arescorpio has quit [Excess Flood]
ghr has quit [Ping timeout: 255 seconds]
Musashi007 has quit [Quit: Musashi007]
ponga has joined #ruby
ohaibbq has joined #ruby
dfinninger has joined #ruby
<certainty> moin
dfinninger has quit [Ping timeout: 246 seconds]
framling has quit [Remote host closed the connection]
sigurding has joined #ruby
sumark has quit [Remote host closed the connection]
lidenskap has quit [Remote host closed the connection]
sumark has joined #ruby
greenbagels_ has joined #ruby
greenbagels_ has quit [Remote host closed the connection]
Asher2 has joined #ruby
greenbagels_ has joined #ruby
sigurding has quit [Client Quit]
mengu has joined #ruby
last_staff has joined #ruby
astrobunny has quit [Remote host closed the connection]
greenbagels has quit [Ping timeout: 245 seconds]
Asher has quit [Ping timeout: 264 seconds]
sigurding has joined #ruby
yetone has quit [Quit: Textual IRC Client: www.textualapp.com]
zorak8 has quit [Ping timeout: 240 seconds]
Guest24 is now known as lele
markholmes has joined #ruby
sinkensabe has joined #ruby
grindmodeon has quit [Quit: Leaving.]
AlphaTech is now known as zz_AlphaTech
charliesome has joined #ruby
charliesome has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
charliesome has joined #ruby
arup_r has joined #ruby
oo_ has joined #ruby
hmnhf has joined #ruby
oo_ has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
oo_ has joined #ruby
LudicrousMango has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
tosbourn has joined #ruby
tosbourn has quit [Remote host closed the connection]
unshadow has joined #ruby
oo_ has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
Guest26 has joined #ruby
dodobrain has quit [Quit: bye.. o/]
The_Phoenix has joined #ruby
arup_r has quit [Remote host closed the connection]
doodlehaus has joined #ruby
akurilin3 has joined #ruby
Morkel has quit [Quit: Morkel]
akurilin has joined #ruby
akurilin2 has quit [Read error: Connection reset by peer]
malcolmva has quit [Ping timeout: 264 seconds]
greenbagels_ has quit [Read error: Connection reset by peer]
greenbagels has joined #ruby
doodlehaus has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
akurilin3 has quit [Ping timeout: 256 seconds]
hmnhf_ has joined #ruby
hmnhf has quit [Ping timeout: 250 seconds]
avril14th has quit [Ping timeout: 252 seconds]
Musashi007 has joined #ruby
codecop has joined #ruby
moeabdol has joined #ruby
Guest26 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
greenbagels_ has joined #ruby
apoplexy has quit [Ping timeout: 250 seconds]
avril14th has joined #ruby
The_Phoenix1 has joined #ruby
wldcordeiro has quit [Quit: Leaving]
unshadow has quit [Quit: leaving]
The_Phoenix has quit [Ping timeout: 245 seconds]
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
dagelf has joined #ruby
Musashi007 has quit [Quit: Musashi007]
greenbagels has quit [Ping timeout: 272 seconds]
Stalkr has joined #ruby
greenbagels_ has quit [Ping timeout: 276 seconds]
Musashi007 has joined #ruby
malcolmva has joined #ruby
greenbagels has joined #ruby
akurilin has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
akurilin3 has joined #ruby
ghr has joined #ruby
arup_r has quit []
ascarter has quit [Client Quit]
Dakuan has joined #ruby
colorisco has joined #ruby
hectortrope has joined #ruby
<shevy> hey certainty
<shevy> guys WE NEED MORE RUBY CODE
<shevy> show them the power of ruby
<shevy> btw what is with matz? no activity?
Nuck has quit [Read error: Connection reset by peer]
straind has quit [Read error: Connection reset by peer]
straind has joined #ruby
Nuck has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
greenbagels has quit [Read error: Connection reset by peer]
<Radar> wat
govg has quit [Ping timeout: 264 seconds]
<certainty> shevy: hmm?
<shevy> look man: https://github.com/mruby/mruby 10 days of inactivity
<shevy> that's almost 2 weeks!
<Radar> 3 days
Contigi777 has quit [Quit: Leaving]
gagrio has joined #ruby
<Radar> and it's just been a weekedn
nfk has joined #ruby
<certainty> shifted priorities :p
<shevy> ohhhh streem activity
<flughafen> morning certainty sevenseacat shevy
sevvie has quit [Ping timeout: 245 seconds]
<shevy> ready for takeoff flughafen from BERLIN?
<certainty> flughafen: ohai
<shevy> haha no you can't!
aghalarp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has joined #ruby
aghalarp has joined #ruby
<flughafen> it's hackweek this week
dfinninger has joined #ruby
dagelf has quit [Ping timeout: 276 seconds]
<certainty> hackweek?
krisquigley has joined #ruby
<shevy> ackweek
eshiffob has joined #ruby
<shevy> or hackweed
zubov has quit [Quit: Leaving]
fabrice31 has joined #ruby
astrobunny has joined #ruby
sevvie has joined #ruby
<certainty> shevy: btw. what's the power of ruby again?
anarang has joined #ruby
<shevy> poetry
<shevy> elegance
<shevy> terseness
<shevy> OBJECTS
dfinninger has quit [Ping timeout: 245 seconds]
<shevy> it's a 85% perfect language after all
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty> hihi nice number
<certainty> you totally made that up didn't you?
lidenskap has joined #ruby
<shevy> well
cefkamcau has quit [Ping timeout: 272 seconds]
<shevy> it's hard to find a reliable percentage
wallerdev has joined #ruby
<certainty> yepp
krisquigley has quit [Ping timeout: 256 seconds]
<shevy> one would have to compare this to the perfect language, and I have not yet been able to define the perfect language :)
<shevy> I started to gather features over the years, but I don't consider that yet "perfect" either
<shevy> *gather features aka *gather features that are wanted
riotjones has joined #ruby
<shevy> lately I had a great idea though
aawe has quit [Remote host closed the connection]
<certainty> tell linus he should write the kernel in ruby. Should work since it is perfect
<shevy> I could try to learn C while maintaining the old bluefish 1.x branch \o/
dagelf has joined #ruby
aawe has joined #ruby
<shevy> well there is the speed issue, we have to grant that
<certainty> also it's not suitable for that domain
<certainty> just wanted to point out that perfect is (as you said) highly vague
riceandbeans has quit [Ping timeout: 256 seconds]
kwd has joined #ruby
browndawg has joined #ruby
sevvie has quit [Remote host closed the connection]
bruno- has joined #ruby
ParmesanCaesar has quit [Quit: Lost terminal]
BaNzoun3t has quit [Remote host closed the connection]
lidenskap has quit [Ping timeout: 276 seconds]
iwishiwerearobot has joined #ruby
hmnhf__ has joined #ruby
Dakuan has quit [Remote host closed the connection]
babykosh has quit [Quit: babykosh]
allenn has joined #ruby
hmnhf_ has quit [Ping timeout: 276 seconds]
adam12 has quit [Ping timeout: 244 seconds]
greenbagels has joined #ruby
nfk has quit [Quit: yawn]
adam| has joined #ruby
awwaiid has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 252 seconds]
cjk101010_ is now known as cjk101010
lele is now known as Guest24
DerisiveLogic has quit [Ping timeout: 248 seconds]
juanpablo____ has joined #ruby
jheg has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
awwaiid has joined #ruby
Hounddog has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
govg has joined #ruby
hmnhf__ has quit [Quit: Konversation terminated!]
juanpablo____ has quit [Ping timeout: 264 seconds]
exadeci has joined #ruby
tosbourn has joined #ruby
lobolars has joined #ruby
sevvie has joined #ruby
kaspernj has joined #ruby
thatslifeson has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
ki0 has joined #ruby
tosbourn has quit [Ping timeout: 256 seconds]
Alina-malina has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
<shevy> perfect is 100% of course
<shevy> we can settle for 99.9% though
<lemur> Ah, so Lisp then
LJT has joined #ruby
LJT has quit [Client Quit]
gauke has joined #ruby
dumdedum has joined #ruby
lidenskap has joined #ruby
babykosh has joined #ruby
LJT has joined #ruby
astrobunny has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
astrobunny has joined #ruby
LJT has quit [Client Quit]
Nuck has quit [Read error: Connection reset by peer]
Nuck has joined #ruby
tesuji has joined #ruby
LJT has joined #ruby
LJT has quit [Remote host closed the connection]
wlanboy has quit [Ping timeout: 244 seconds]
michael_mbp has quit [Excess Flood]
iamdoo2 has joined #ruby
wlanboy has joined #ruby
kaffepanna has joined #ruby
Stalkr has quit [Ping timeout: 246 seconds]
awwaiid has quit [Ping timeout: 245 seconds]
TheMoonMaster has quit [Ping timeout: 240 seconds]
davedev2_ has joined #ruby
jottr has joined #ruby
michael_mbp has joined #ruby
davedev24_ has quit [Ping timeout: 252 seconds]
vire has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kp666 has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
livathinos has joined #ruby
msgodf has joined #ruby
mwlang has quit [Quit: mwlang]
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
Takle has joined #ruby
sameerynho has joined #ruby
serivich has joined #ruby
jenrzzz has joined #ruby
lifenoodles has quit [Ping timeout: 244 seconds]
Joufflu has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
TheMoonMaster has joined #ruby
hanmac has quit [Ping timeout: 256 seconds]
andikr has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
lifenoodles has joined #ruby
gr33n7007h has quit [Quit: WeeChat 1.1.1]
aghalarp has quit [Read error: Connection reset by peer]
havenwood has quit []
aghalarp has joined #ruby
awwaiid has joined #ruby
sameerynho has quit [Ping timeout: 264 seconds]
aghalarp has quit [Max SendQ exceeded]
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
aghalarp has joined #ruby
Takle has quit [Remote host closed the connection]
wald0 has joined #ruby
Takle has joined #ruby
DEA7TH has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
serivich has quit [Ping timeout: 245 seconds]
psy_ has quit [Quit: Leaving]
dfinninger has joined #ruby
sevvie has joined #ruby
Takle has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
User458764 has joined #ruby
dfinninger has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
hanmac has joined #ruby
marr has joined #ruby
<undeadaedra> Hi
meteor22322 has joined #ruby
alienaut has joined #ruby
Aswebb_ has joined #ruby
<alienaut> what is difference between a String and "some value":String.
<sevenseacat> come again?
mjuszczak has quit []
serivich has joined #ruby
<alienaut> i got exception "undefined method `present?' for "1428785664842":String" but when i try to "some value".present? on irb it returns true.
aghalarp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lingo has joined #ruby
eytanfb has quit [Ping timeout: 252 seconds]
serivichi has joined #ruby
<sevenseacat> no, you tried "some value".present? in a rails console, not in irb
davedev2_ has quit [Ping timeout: 240 seconds]
anarang has quit [Ping timeout: 264 seconds]
<sevenseacat> strings do not have a .present? method
<alienaut> o yes!
gr33n7007h has joined #ruby
davedev24_ has joined #ruby
<alienaut> it is a ActiveSupport method then?
<sevenseacat> yes.
Nuck has quit [Quit: Computer has gone to sleep.]
serivich has quit [Ping timeout: 252 seconds]
<apeiros> alienaut: the exception message is generated like this: #{object.inspect}:#{object.class}
_hollywood has joined #ruby
<apeiros> alienaut: so the value is really just "some value". and the class of "some value" is String.
Takle has joined #ruby
wald0 has quit [Ping timeout: 252 seconds]
<alienaut> Now i get it. I was thinking it was different class.
ohaibbq has quit [Quit: Leaving...]
wald0 has joined #ruby
<flughafen> certainty: shevy sorry, yeah, we get a hackweek were we can do whatever we want
<certainty> flughafen: oh nice
fabrice31 has quit [Remote host closed the connection]
<certainty> much like thoughtbot's opensource friday (was it thougtbot?)
haxrbyte has joined #ruby
Takle has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
<flughafen> maybe
krisquigley has joined #ruby
<flughafen> we have a week were we can work on whatever
<certainty> flughafen: what will you be hacking on?
DavidDudson has joined #ruby
<certainty> one week a year?
<flughafen> certainty: 1-2x, depends.
<certainty> still very cool
Pharaoh2 has joined #ruby
<flughafen> yeah
tosbourn has joined #ruby
Lingo has quit [Quit: (null)]
tosbourn has quit [Remote host closed the connection]
haxrbyte_ has quit [Ping timeout: 245 seconds]
Aswebb_ has quit []
Pharaoh2 has quit [Read error: Connection reset by peer]
<certainty> flughafen: so what's your project for this week?
<flughafen> i might automate testing of upstream commits
Pharaoh2 has joined #ruby
iamninja has quit [Ping timeout: 250 seconds]
<certainty> cool
<flughafen> certainty: i should switch from alpine to mutt
<flughafen> that'll take 3 weeks to figure out how to work mutt
<certainty> haha, mutt is nice but i abandoned it some time ago
<flughafen> certainty: what are you using now? emacs?
<certainty> yeah
<flughafen> hah
<certainty> i live in emacs
<flughafen> i also need to switch to i3 from xmonad
tosbourn has joined #ruby
<certainty> yeah you told me the other day that you wanted to switch
doodlehaus has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
terlar has joined #ruby
tosbourn has quit [Client Quit]
musashi has quit [Quit: Connection closed for inactivity]
Asher2 has quit [Quit: Leaving.]
Asher has joined #ruby
hanmac1 has joined #ruby
doodlehaus has quit [Ping timeout: 255 seconds]
sigurding has joined #ruby
bigkevmcd has joined #ruby
hs366 has joined #ruby
lidenskap has quit [Remote host closed the connection]
lsmola_ has joined #ruby
tosbourn has joined #ruby
alex88 has joined #ruby
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamdoo2 has quit []
<tosbourn> Happy Monday! :-) Anyone working on anything cool this week?
<tosbourn> I am refactoring an old rails app with no tests – not the most fun thing in the world!
Takle has joined #ruby
elaptics_away is now known as elaptics
Dakuan has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_hollywood has quit [Quit: Leaving]
markholmes has joined #ruby
rdark has joined #ruby
hollywood has joined #ruby
Zai00 has joined #ruby
lloyd is now known as Lloyd
DEA7TH has quit [Ping timeout: 252 seconds]
Takle has quit [Ping timeout: 245 seconds]
anarang has joined #ruby
jheg has quit [Quit: jheg]
ta has joined #ruby
rshetty has joined #ruby
hollywood has quit [Client Quit]
ujjain has joined #ruby
ujjain has quit [Remote host closed the connection]
LudicrousMango has joined #ruby
bradleyp_ has quit [Remote host closed the connection]
hollywood has joined #ruby
universa1 is now known as universaL
universaL is now known as universa1
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
ta has quit [Ping timeout: 248 seconds]
rshetty has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
pandaant has joined #ruby
<certainty> tosbourn: insane :)
<flughafen> certainty: EXTREME HACKIKNG
<certainty> indeed
<tosbourn> certainty: the worst part is trying to work out what is even worth testing and what just needs burnt with fire!
ta has joined #ruby
lemur has joined #ruby
<certainty> tosbourn: the key-features of the app might be worth adding integration tests
<tosbourn> Yeah that is how I am leaning at the moment thanks :)
markholmes has quit [Quit: So it goes.]
Musashi007 has quit [Quit: Musashi007]
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
lemur has quit [Ping timeout: 245 seconds]
<ddv> I know people who test standard Rails CRUD stuff
<ddv> :/
dfinninger has joined #ruby
<tosbourn> ddv: the entire current test suite is doing exactly that
<ddv> also people go way too far with testing
AlphaAtom has joined #ruby
CustosLimen has quit [Ping timeout: 250 seconds]
dfinninger has quit [Ping timeout: 246 seconds]
jottr has quit [Read error: Connection reset by peer]
joonty has joined #ruby
jottr has joined #ruby
AlphaAtom has quit [Ping timeout: 255 seconds]
AlphaAtom has joined #ruby
mark06 has joined #ruby
Igorshp has joined #ruby
xenokiller has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Igorshp has quit [Remote host closed the connection]
DontSweatit has joined #ruby
<DontSweatit> guys i have a question
<DontSweatit> why do you guys give so many fucks?
<DontSweatit> i wanna fuck you all in the butt
lkba has quit [Ping timeout: 252 seconds]
<ddv> ok
<DontSweatit> this rap was droppped
<ddv> i'm not gay, DontSweatit
<ddv> sorry
<DontSweatit> you guys have to come with ruby rap
<DontSweatit> cause java niggas dropped a rhyme
<apeiros> !kick DontSweatit good bye
DontSweatit was kicked from #ruby by ruboto [good bye]
babykosh has quit [Quit: babykosh]
Pharaoh2 has quit [Disconnected by services]
Pharaoh2_ has joined #ruby
workmad3 has joined #ruby
<mark06> how about it http://pastie.org/10089464
RegulationD has joined #ruby
leafybasil has quit [Remote host closed the connection]
<jhass> mark06: not sure what the question is
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
duckpunch has quit [Ping timeout: 252 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
tvw has joined #ruby
ponga has quit [Remote host closed the connection]
meteor22322 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<shevy> lol
duckpunch has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
<shevy> mark06 that is ruby code
sudog has joined #ruby
<ddv> looks like java
<ddv> ruby is turning into java
<ddv> :(
<shevy> the indent is weird
<shevy> he seems to be a tabster
<wasamasa> "We code hard in our cubicles!"
oo_ has quit [Remote host closed the connection]
<wasamasa> what could the ruby version of that be...
mengu has quit [Remote host closed the connection]
ArchRogem has joined #ruby
<jhass> "We consume a lot of coffee in our starbucks!" ?
<jhass> ah no, that crowd is in #node.js now I hear
casshern2 has joined #ruby
oo_ has joined #ruby
ponga has joined #ruby
<mark06> jhass, shevy: currently easyoptions will parse options by just being required, I want to keep that
<mark06> however some configuration is desired and that is one way I figured out myself to keep this goal
<mark06> I was just wondering if that was bizarre or something
<jhass> why not constants?
vtunka has joined #ruby
<jhass> or a config object?
kaspernj has quit [Remote host closed the connection]
<wasamasa> "We drink hard in our open offices!"
c0m0 has joined #ruby
<mark06> constants like this, jhass? http://pastie.org/10089492
<mark06> I'm listening to your suggestions :)
<jhass> meh, so much global stuff
CustosLimen has joined #ruby
<mark06> tabster? I like this, can you define :)
<jhass> EasyOptions.configure do |config| config.required_arguments = 2; config.help do "blub"; end; end;
dagelf has quit [Ping timeout: 248 seconds]
ki0 has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
ki0 has joined #ruby
oo_ has quit [Remote host closed the connection]
<mark06> think about it, that is a non-go
oo_ has joined #ruby
<jhass> was easyoptions that silly idea from parsing the arg parser definition out of comments?
oo_ has quit [Remote host closed the connection]
jottr_ has joined #ruby
<wasamasa> out of an usage string actually
oo_ has joined #ruby
<ytti> i most use slop
<wasamasa> ^
<ytti> but using slop might not be such good idea, if you're also using pry
<wasamasa> its docs are minimal, but it works
<canton7> slop or trollop for me
jenrzzz has quit [Ping timeout: 248 seconds]
<ytti> yeah i might need to fall back to trollop
<ytti> just to avoid complications with pry
<wasamasa> what complications?
<jhass> so you already have code in your comments, can just do everything that way at that point
universa1 is now known as universal
universal is now known as universa1
<ytti> wasamasa, you cannot run two versions of library at the time
<ytti> wasamasa, so if you use slop 4.0, you cannot pry that code
jottr has quit [Ping timeout: 245 seconds]
<wasamasa> wat
<ytti> arguably pry could be separated to pry-lib and pry-cli
<shevy> wasamasa seems confused
<ytti> where pry-lib wouldn't depend on slop, and you could do require 'pry' without complications
<wasamasa> oh, pry depends on slop
<wasamasa> well, that explains it then
Igorshp has joined #ruby
lidenskap has joined #ruby
serivichi has quit [Ping timeout: 252 seconds]
<shevy> ack
serivichi has joined #ruby
<mark06> jhass: can you tell me about config object or was your snippet about that
<jhass> that was what my snippet illustrated, yes
<mark06> does ruby have/plan something like python's docstrings?
<wasamasa> nope
<wasamasa> there is a docstring gem though
<wasamasa> and tools like yard which parse comments to generate documentation from that
<ytti> i wish github would generate purty document pages for projects which use common document engine formats
<ytti> would motivate me document my crap better
<mark06> wasamasa, jhass: yes easyoptions is about parsing help text like docopt, initially from comments but I plan to allow for strings
c0m0 has quit [Ping timeout: 246 seconds]
lidenskap has quit [Ping timeout: 248 seconds]
sevvie has quit [Ping timeout: 250 seconds]
<mark06> the comments idea was so that for simple scripts we get a unified text serving help text, option definition and source code documentation
apoplexy has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
<mark06> one concern is having comments defining program behavior though
<undeadaedra> ytti: rubydoc.info runs yard for github projects
dagelf has joined #ruby
<ytti> undeadaedra, i know, but only rubyist would know that
<ytti> undeadaedra, while if github would do docs in github project page, any casual browser would find them
<undeadaedra> yeah, true
<undeadaedra> submit them the idea then
<ytti> i suspect i'm not only one, who would be motivated to document better, if pretty presentation would appear in github like magic
<ytti> funnily enough, for the social coding site github presents itself, they don't offer any user2github communication channel
<ytti> or not social channel anyhow, there is feedback form
iotouch has quit [Quit: This computer has gone to sleep]
<ytti> which i always intepret as /dev/null, i did send suggestion there, and got polite answer
<ytti> but i don't expect it going anywhere
<ytti> i would have expected github to use something like userecho
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> IME these don't work once you reach ~1k users
<wasamasa> support does work though
<jhass> all sort of useless junk crops up and you start to ignore it because of that
iotouch has joined #ruby
<wasamasa> sent a question regarding the HTTP API and got a swift answer that helped me proceed
<ytti> jhass, maybe it should be moderated, by community
<ytti> jhass, like borrow some clues from stackexchange
<jhass> and the upvoting no longer works because nobody cares to search for existing ideas and reposts the same stuff over and over again instead
<jhass> especially if your search turns up all that junk
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
alienaut has quit [Ping timeout: 265 seconds]
leafybasil has joined #ruby
jottr_ is now known as jottr
sevensea_ has joined #ruby
sevvie has joined #ruby
<Darkwater> is it ok to use @@variables?
A205B064 has quit [Ping timeout: 264 seconds]
c0m0 has joined #ruby
<jhass> Darkwater: it's a bit smelly, most of the time you meant to use a constant or a class/module level instance variable instead
govg has quit [Quit: leaving]
<jhass> the actual usecases for them are rather rare
sevenseacat has quit [Ping timeout: 252 seconds]
clarkk has joined #ruby
sigurding has quit [Quit: sigurding]
<Darkwater> jhass: how about a list of instances?
<canton7> sounds like a memory leak
<Darkwater> how so?
<jhass> class level instance var
<jhass> you don't need the much broader scope of @@vars for that
<canton7> depends on the application of course. but stopping all instances ever created from being collected is typically considered a memory leak :P
<Darkwater> though @vars are per instance, right?
<jhass> yes, and your class definition is an instance of the class Class
<Darkwater> hm, I think I see what you're getting at
<Darkwater> reminds me of how you can call functions in a class definition
sevvie has quit [Ping timeout: 252 seconds]
<Darkwater> what if I define a local variable in a class?
jimms has joined #ruby
<Darkwater> in the end I want to call something like Monitor.get n and Monitor.getAll
<jhass> those are gone after the class definition
<Darkwater> hm
<apeiros> Darkwater: if you want idiomatic ruby code, Monitor[n], Monitor.all
<clarkk> I have two versions of json installed in my local gemset, 1.8.1 and 1.8.2. If I run gem uninstall json -v 1.8.1 it says "Error...gem "json" cannot be uninstalled because it is a default gem". Is there a way to remove the unnecessary version of json?
<jhass> A= Class.new { you_wouldnt_be_surprised_for_this_one_to_be_gone = 1 }
<apeiros> alternatively Monitor.get instead of []
<Darkwater> apeiros: thanks
<Darkwater> jhass: yeah I understand that now
<apeiros> clarkk: gem help uninstall
turtil has quit [Ping timeout: 248 seconds]
<Darkwater> what else should I use for a list of instances, though?
<jhass> as said, I'd use a class level instance var
<Darkwater> what's that? @var?
<jhass> yes
<Darkwater> wait, that's just the instance var part, right? what's class level?
<jhass> class MySingleton; def self.instance; @instance ||= new; end; end;
<Darkwater> I think I'm misunderstanding that part
<Darkwater> isn't that just for one instance?
<clarkk> apeiros: I had read that, which is how I constructed the command above. I've obviously missed something. Can you help?
<Darkwater> I want a list of instances
<jhass> class Foo; @class_level; def self.foo; @class_level; end; def foo; @instance_level; end; end;
<Darkwater> oh, like that
<Darkwater> I think I understand now, thanks
dfinninger has joined #ruby
<Darkwater> let me try this out
sevvie has joined #ruby
<Darkwater> jhass: is there a way to access a class level instance var from initialize?
<jhass> you need to provide an accessor method on the class
<clarkk> I have two versions of json installed in my local gemset, 1.8.1 and 1.8.2. If I run gem uninstall json -v 1.8.1 it says "Error...gem "json" cannot be uninstalled because it is a default gem". Is there a way to remove the unnecessary version of json?
<Darkwater> alright
A124 has quit [Ping timeout: 255 seconds]
<jhass> Darkwater: though I'd rather hide new and define a constructor
<jhass> class Tracking; class << self; private :new; def build; new.tap do |instance| @instances << instance; end; end; end;
<hanmac1> clarkk: yes but it might break your system if you dont know what you are doing
shredding has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
<Darkwater> thanks for the help
<clarkk> hanmac1: even if there are two minor versions installed of the same package?
tkuchiki has joined #ruby
yqt has joined #ruby
dfinninger has quit [Ping timeout: 256 seconds]
<hanmac1> clarkk: its a "default gem" for a reason and thats why you cant remove it
A124 has joined #ruby
<jhass> Darkwater: and yeah, beware of memory leaks and threading issues
<clarkk> oh I see. Thank you hanmac1
<hanmac1> in latest trunk its got gemifyed and its only bundled but not so much default anymore
sigurding has joined #ruby
yfeldblu_ has quit [Ping timeout: 245 seconds]
<hanmac1> (as far as i understand the change log)
DexterLB has quit [Read error: Connection reset by peer]
<Darkwater> jhass: thankfully those shouldn't be issues in this case :v
blackmesa has quit [Ping timeout: 246 seconds]
gr33n7001 has joined #ruby
<mark06> thanks all
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
gr33n7007h has quit [Ping timeout: 246 seconds]
DexterLB has joined #ruby
LudicrousMango has quit [Remote host closed the connection]
withnale_ has joined #ruby
baash05 has joined #ruby
meteor22322 has joined #ruby
Crisix has joined #ruby
yqt has quit [Read error: Connection reset by peer]
yqt has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
arup_r has joined #ruby
rshetty has joined #ruby
Pharaoh2_ is now known as Pharaoh2
_solomon has joined #ruby
meteor22322 has quit [Client Quit]
gr33n7007h has joined #ruby
sevvie has quit [Ping timeout: 257 seconds]
oo_ has quit [Remote host closed the connection]
gr33n7001 has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
_solomon has quit [Client Quit]
oo_ has joined #ruby
mengu has joined #ruby
quimrstorres has joined #ruby
rshetty has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
jenrzzz has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
doodlehaus has joined #ruby
DaniG2k has joined #ruby
Soda has joined #ruby
Soda has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
doodlehaus has quit [Ping timeout: 245 seconds]
Crisix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Crisix has joined #ruby
joonty has joined #ruby
gr33n7007h has quit [Ping timeout: 250 seconds]
rshetty has joined #ruby
lidenskap has joined #ruby
iteratorP has quit [Quit: Leaving...]
Xoro has quit [Read error: No route to host]
rshetty has quit [Remote host closed the connection]
bim has joined #ruby
bim is now known as Guest99931
Zai00 has quit [Quit: Zai00]
sevvie has joined #ruby
fabrice31 has quit [Remote host closed the connection]
zz_AlphaTech is now known as AlphaTech
Takle has quit [Read error: Connection reset by peer]
withnale_ has quit [Ping timeout: 276 seconds]
withnale_ has joined #ruby
jimms has quit [Ping timeout: 272 seconds]
lidenskap has quit [Ping timeout: 250 seconds]
Xoro has joined #ruby
sigurding has quit [Quit: sigurding]
Xoro has quit [Client Quit]
Xoro has joined #ruby
bruno- has joined #ruby
maximski has joined #ruby
Takle has joined #ruby
gr33n7007h has joined #ruby
joelroa has quit [Ping timeout: 256 seconds]
yqt has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
Azure has joined #ruby
Guest99931 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
astrobunny has quit [Remote host closed the connection]
ta_ has joined #ruby
juanpablo____ has joined #ruby
decoponio has joined #ruby
reinaldob has joined #ruby
Azure has quit [Ping timeout: 256 seconds]
<shevy> guys the world is coming to an end
<shevy> ftp://ftp.kernel.org/pub/linux/kernel/v3.x/linux-4.0.tar.xz
<shevy> linux 4.0
<shevy> even tagged as a v3.x branch!
<shevy> ah no, wrong link
earthguy has joined #ruby
juanpablo____ has quit [Ping timeout: 256 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
User458764 has joined #ruby
yqt has joined #ruby
withnale__ has joined #ruby
withnale__ has quit [Remote host closed the connection]
dfinninger has joined #ruby
withnale_ has quit [Read error: Connection reset by peer]
withnale__ has joined #ruby
sevvie has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
browndawg has quit [Ping timeout: 248 seconds]
turtil has joined #ruby
dfinninger has quit [Ping timeout: 245 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tosbourn has quit []
sevensea_ has quit [Quit: Me dun like you no more.]
thingmaker has joined #ruby
<undeadaedra> yes, linux hurr durr im'a sheep
RegulationD has quit [Ping timeout: 252 seconds]
thingmaker has quit [Client Quit]
Azure has joined #ruby
thingmaker has joined #ruby
Crisix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jellie has joined #ruby
<jellie> How can I write a one line if else?
<jhass> jellie: condition ? yes : no
<jhass> only use these for value expressions though
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<jhass> like if you assign to a variable or return a value from a method
turtil has quit [Remote host closed the connection]
shredding has quit [Remote host closed the connection]
rshetty has joined #ruby
<jellie> jhass: If cat is an array I tried `cat.empty? "was empty" : "not"`
turtil has joined #ruby
<jellie> jhass: i got no output
ponga has quit [Write error: Broken pipe]
CloCkWeRX has quit [Ping timeout: 276 seconds]
thingmaker has quit [Remote host closed the connection]
<jhass> puts cat.empty? ? "was empty" : "not"
thingmaker has joined #ruby
thingmaker has quit [Remote host closed the connection]
<jellie> Nothing in irb
<jellie> puts [].empty? ? "was empty" : "not"
allenn has quit [Remote host closed the connection]
<Pharaoh2> Does automatic gc close an opened file pointer?
thingmaker has joined #ruby
<undeadaedra> >> [].empty? ? "was empty" : "not"
<ruboto> undeadaedra # => "was empty" (https://eval.in/312833)
rshetty has quit [Remote host closed the connection]
allenn has joined #ruby
<certainty> ah ruboto evals now as well
<jellie> I wonder why mine is failing in irb
<undeadaedra> good guy ruboto
* undeadaedra throws a bone at ruboto
<jhass> Pharaoh2: yes, but it's not wise to rely on that
earthguy has quit [Quit: Leaving.]
<Pharaoh2> jhass: Ok then, I will close everything explicitly, my script just go a Errno::EMFILE: Too many open files - getcwd
<jellie> Anyone have an idea why I'm getting nothing from irb?
<undeadaedra> jellie: ruby version?
<Pharaoh2> jellie: what are you writing in irb?
allenn has quit [Remote host closed the connection]
<jhass> Pharaoh2: yup, or yet better stick to methods that do it for you, like open with a block, File.read, File.write
<jhass> jellie: screenshot?
amdbcg has joined #ruby
rsavage has joined #ruby
<jellie> One sec
<jellie> It suddenly worked after I hit ctrl-C
rshetty has joined #ruby
<jhass> then you were likely in an open string or something like that
<jhass> the prompt should look different
khebbie has joined #ruby
rshetty has quit [Remote host closed the connection]
browndawg has joined #ruby
narcan has joined #ruby
ayaz has joined #ruby
tus has joined #ruby
allenn has joined #ruby
amdbcg has quit [Read error: Connection reset by peer]
amdbcg has joined #ruby
lolmaus has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
anaeem1_ has quit [Quit: Leaving...]
alienaut has joined #ruby
ta_ has quit [Remote host closed the connection]
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
sevvie has joined #ruby
twistedpixels has quit [Ping timeout: 265 seconds]
sdothum has joined #ruby
Node_486 has joined #ruby
ponga has joined #ruby
<Node_486> Guys I wanna make search with sunspot for foreign key but wanna do it by dish.name not by foreign key dish_id Here is the code: https://gist.github.com/ljercha/73d05df21a0f699661d5
<jhass> Node_486: #RubyOnRails might have more experience with this
twistedpixels has joined #ruby
iotouch has quit [Ping timeout: 264 seconds]
<Node_486> asked there but no one answer.
bim has joined #ruby
bim is now known as Guest10156
<jhass> well, it's kinda specific
<jhass> what do sunspot's docs say about that?
chridal has joined #ruby
thingmaker has quit []
<Node_486> there is something like block extraction but I'm not sure if its what im looking for.
greenbagels has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
apoplexy has quit [Ping timeout: 276 seconds]
mjuszczak has joined #ruby
<A124> Ups, bad place.
HayesHimself has joined #ruby
mjuszczak has quit [Client Quit]
sigurding has joined #ruby
vudew has joined #ruby
lanemeyer has quit [Ping timeout: 250 seconds]
ponga has quit [Remote host closed the connection]
lxsameer has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
BTRE has quit [Remote host closed the connection]
_honning_ has joined #ruby
bruno- has joined #ruby
BTRE has joined #ruby
rodfersou has joined #ruby
kaspernj has joined #ruby
User458764 has joined #ruby
weemsledeux has joined #ruby
DexterLB has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 276 seconds]
rshetty has joined #ruby
Takle has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
ujjain has joined #ruby
Takle_ has joined #ruby
gfawcettpq has joined #ruby
Takle has quit [Read error: Connection reset by peer]
ponga has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
Takle_ has quit [Remote host closed the connection]
AlexRussia has joined #ruby
LudicrousMango has joined #ruby
Igorshp has quit [Remote host closed the connection]
DexterLB has quit [Read error: Connection reset by peer]
jellie has left #ruby ["WeeChat 1.1.1"]
ldnunes has joined #ruby
iotouch has joined #ruby
Zai00 has joined #ruby
dfinninger has joined #ruby
pika_pika has joined #ruby
vt102 has joined #ruby
DexterLB has joined #ruby
freerobby has quit [Quit: Leaving.]
hs366 has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 244 seconds]
dfinninger has quit [Ping timeout: 245 seconds]
nandamuriramarao has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
neohunter has joined #ruby
mengu has quit [Remote host closed the connection]
<neohunter> Hi there. I want to execure require "awesome_print" only when doing rails console, where should put that?
xenokiller has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
jottr has quit [Quit: WeeChat 1.1.1]
nandamuriramarao has quit [Client Quit]
Igorshp has joined #ruby
<hanmac1> neohunter: did you try at #RubyOnRails ?
iotouch has quit [Quit: This computer has gone to sleep]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<neohunter> hanmac1 thanks
jottr has joined #ruby
vudew has quit [Quit: Lost terminal]
rsavage is now known as r3dk1ng
grindmodeon has joined #ruby
d10n-work has joined #ruby
Dakuan has quit [Remote host closed the connection]
User458764 has joined #ruby
kubunto has joined #ruby
theotherstupidgu has quit [Quit: Lost terminal]
<kubunto> if i write return is it implied that it is returning nil?
maximski has quit []
yqt has quit [Ping timeout: 250 seconds]
vtunka has quit [Quit: Leaving]
<toretore> kubunto: yes
<toretore> `return` == `return nil`
<shevy> good old nil
<shevy> >> def foo; return; end; x = foo; p x.class
<ruboto> shevy # => NilClass ...check link for more (https://eval.in/312878)
sevvie has quit [Ping timeout: 240 seconds]
<shevy> :(
<shevy> I don't like the format of ruboto
Dakuan has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
<shevy> my good old eval-in ...
gagrio has quit [Ping timeout: 250 seconds]
chridal has quit [Ping timeout: 245 seconds]
GeorgeThompson has joined #ruby
RegulationD has joined #ruby
dorei has joined #ruby
joonty has quit [Quit: joonty]
sevvie has joined #ruby
vtunka has joined #ruby
thingmaker has joined #ruby
ArchRogem has quit [Read error: Connection reset by peer]
<DaniG2k> took a damn 2 hr programming test on sat
<DaniG2k> 4 questions
<DaniG2k> only solved 1
<DaniG2k> and 90% of the second -_-
silentpost has joined #ruby
<DaniG2k> was for a job
<DaniG2k> feel like shit :\
<DaniG2k> they were really tough to solve
<certainty> shevy: get over it. :p
RegulationD has quit [Ping timeout: 250 seconds]
grindmodeon has quit [Quit: Leaving.]
<kubunto> DaniG2k: what was it in?
<DaniG2k> language?
MXfive has joined #ruby
<DaniG2k> thankfully I had a choice
<DaniG2k> the test website was a piece of shit and would crash even if I just output a simple puts
<DaniG2k> but knowing that, the fault was mine
<DaniG2k> I did it in ruby 1.9.5
<DaniG2k> since that's all they supported
<DaniG2k> for ruby versions, I mean
<DaniG2k> which is fine
<DaniG2k> but the questions took me forever to solve
<DaniG2k> the first one was like
<DaniG2k> you have 8 balls
<shevy> certainty :(
iasoon has joined #ruby
<DaniG2k> and you need to re-order them in a specific way
<DaniG2k> no
<DaniG2k> jsut re-ordering
maximski has joined #ruby
xenokiller has quit [Ping timeout: 244 seconds]
<DaniG2k> thing is, it needed to work within 2 seconds
<shevy> I have 2 balls
lidenskap has joined #ruby
<DaniG2k> and the number of times they would make me re-order them was like 100,000,000
<DaniG2k> so the program took more than 2 seconds
<DaniG2k> :\
amdbcg has quit [Ping timeout: 252 seconds]
<DaniG2k> not even sure how I'd have gotten it to work in 2 seconds
<shevy> so did you get the job?
<DaniG2k> nope
<DaniG2k> *sadpanda*
<kubunto> DaniG2k: that is a wierd constraint
<DaniG2k> yeah it was absolutely messed up
<DaniG2k> the job was for indeed, the job hunting website
<DaniG2k> in Japan
<DaniG2k> and as i speak Japanese they thought I'd be a good candidate
<kubunto> a website?
<DaniG2k> but the test website was such shit
<DaniG2k> like, from the 80s or something
<DaniG2k> kubunto: http://www.indeed.co.uk/
<kubunto> ah
<DaniG2k> it was for that company, but in Japan
<DaniG2k> which would have been awesome
<DaniG2k> but apparently they're freaking nuts
<DaniG2k> the second question was harder
<kubunto> well it make a little sense they want things fast
<DaniG2k> took me so long to get to the end at at the very last part I got the operations order backwards and failed :\
<DaniG2k> fml
<shevy> you could have been coding side by side with matz!
amdbcg has joined #ruby
<DaniG2k> doubt it
<DaniG2k> this was some piece of crap website
justin_pdx has joined #ruby
<DaniG2k> just look at it
doodlehaus has joined #ruby
yqt has joined #ruby
lidenskap has quit [Ping timeout: 252 seconds]
brb3 has joined #ruby
<apeiros> DaniG2k: in what way would those balls need to be ordered? a property? a calculation?
<apeiros> I wonder whether the target performance was adjusted for ruby
<DaniG2k> apeiros: no, 2 seconds in no matter what language. dumb eh? the order would be given with a sequence of gets that I needed to implement. So the first like would be an integer, like 5, which means that I need to gets the next 5 lines which will give me the ordering of the balls
<DaniG2k> apeiros: that took me 15 mins
silentpost has quit [Ping timeout: 276 seconds]
<DaniG2k> then I realized the next step was, they would also ask this for an integer k, the number of times it happens
<DaniG2k> which is like 100,000,000
<DaniG2k> and that just took longer than 2 seconds
<DaniG2k> -_-
<DaniG2k> here's the code I ended up with
amdbcg has quit [Ping timeout: 256 seconds]
<DaniG2k> and the second question was the one that killed me...took me 1.5 hours and I got the order wrong at the end: https://github.com/DaniG2k/Scripts/blob/master/atcoder_test2.rb
quimrstorres has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
doodlehaus has quit [Ping timeout: 264 seconds]
<DaniG2k> mind you, the questions weren't even written in the clearest way. Some Japanese guy wrote them in Japanglish
<apeiros> yay! sounds like funsies :D
<DaniG2k> yeah I know right?
<DaniG2k> 2 hours of my life I want back
A124 has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
meteor22322 has joined #ruby
gagrio has joined #ruby
maximski has quit []
A124 has joined #ruby
meteor22322 has quit [Client Quit]
<certainty> DaniG2k: could be worse :)
sigurding has quit [Quit: sigurding]
<DaniG2k> true :)
aryaching has joined #ruby
nettoweb has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
sigurding has joined #ruby
Dakuan has quit [Ping timeout: 246 seconds]
juanpablo____ has joined #ruby
chishiki has joined #ruby
chishiki has joined #ruby
Dakuan has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has quit [Client Quit]
justin_pdx has quit [Quit: justin_pdx]
DexterLB has joined #ruby
Megtastique has joined #ruby
jimms has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
juanpablo____ has quit [Ping timeout: 256 seconds]
joonty has joined #ruby
Pharaoh2 has quit [Disconnected by services]
Pharaoh2_ has joined #ruby
sevvie has joined #ruby
casadei has joined #ruby
neohunter has quit [Quit: Linkinus - http://linkinus.com]
RegulationD has joined #ruby
juanpaucar has joined #ruby
iotouch has joined #ruby
n80 has joined #ruby
<clarkk> On rvm 1.11.39, when I run gem list while using the default gemset, it lists all the gems, including those in global. I don't think this was the behaviour the last time I used it. What should I be doing here?
sevenseacat has joined #ruby
<clarkk> I'd like to know which gems are in which gemsets
<withnale__> Is there a way to use rspec mocks (i.e. expect(instance.to receive(:output) ) to check that a method is called but not override the implementation of that method?
Igorshp has quit [Read error: Connection reset by peer]
Igorshp_ has joined #ruby
iasoon has quit [Read error: No route to host]
sigurding has quit [Quit: sigurding]
sevvie has quit [Ping timeout: 245 seconds]
<zlude> Hello guys, I'm learning ruby and I see that somethings stop to work if I change ruby version, so.. I wanna know which code is better, http://pastie.org/private/qf3olnbkjduusa4mywg6hq or it's doesn't matter? Someone can explain me?
sigurding has joined #ruby
kevinying has quit [Ping timeout: 264 seconds]
sankaber has joined #ruby
davedev24_ has joined #ruby
<zlude> a code has write to RUBY_VERSION => "2.1.3" and another to RUBY_VERSION => "1.9.2"
Rapier- has joined #ruby
<apeiros> you mean >=?
<zlude> wrote*
<jhass> zlude: the top version, the bottom version assigns two useless local variables
sevvie has joined #ruby
<jhass> the assignments there have no significance
<jhass> try switching the argument order in both examples if you need a prove
arup_r has quit [Ping timeout: 248 seconds]
* apeiros is confused, good thing jhass got it :D
chridal has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
<jhass> apeiros: required keyword args
joonty has quit [Quit: joonty]
<withnale__> Found the answer...
<withnale__> expect(instance.to receive(:output).and_call_original
<shevy> 'For his "road work" he would take to the pavement in army boots, declaring running shoes "sissy shoes."'
arup_r has joined #ruby
<shevy> so I see, I should use high heels for martial arts training, for more encumberance
<hanmac1> shevy maybe with that one he can do more "pointy" damage? ;P
Node_486 has quit [Ping timeout: 246 seconds]
jimms has quit [Remote host closed the connection]
<zlude> jhass, Thank you. But my questioning is about... better to write my codes in top version or bottom version?
<zlude> jhass, like.. I'm using hashes in top version, and it don't work in 1.9.2
<jhass> 1.9 is EOL, not sure why you care about it
<hanmac1> imo keyargs are more useful when you have more than ones like 3+ or something
Affix has quit [Ping timeout: 272 seconds]
<zlude> what is EOL?
<monsieurp> end of life
<zlude> monsieurp, ty!
lxsameer has quit [Quit: Leaving]
<ddv> end of the line
<ddv> :)
<zlude> jhass, now.. can you re-write my top version code with your's improvements?
nfk has joined #ruby
<jhass> no, it's too simple
jimms has joined #ruby
<jhass> you can do that on your own
gigetoo has quit [Ping timeout: 272 seconds]
failshell has joined #ruby
ta_ has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
t_p has joined #ruby
rshetty has joined #ruby
lanemeyer has joined #ruby
<zlude> jhass, "the top version, the bottom version assigns two useless local variables" which variables?
Darryl___ has joined #ruby
Pharaoh2_ is now known as Pharaoh2
B1n4r10 has joined #ruby
<jhass> redis_key and redis_value
baash05 has quit [Ping timeout: 256 seconds]
<jhass> in the call
<jhass> did you try swapping the argument order in both examples, like I suggested?
bluOxigen has joined #ruby
rocknrollmarc has quit [Ping timeout: 256 seconds]
<kubunto> good to know ruby works with redis too
endash has joined #ruby
<zlude> jhass, I'm sorry dude, but I can't understand what are you trying to talk about (explain me) :/
jottr has joined #ruby
iasoon has joined #ruby
redlegion has joined #ruby
<clarkk> On rvm 1.11.39, when I run gem list while using the default gemset, it lists all the gems, including those in global. I don't think this was the behaviour the last time I used it. What should I be doing here? I'd like to know which gems are in which gemsets
<canton7> zlude, 'foo(bar = "baz")' is the same as 'bar = "baz"; foo(bar)'
<jhass> RedisAction.new(redis_key: 'user', redis_value: 'barrosfilipe').set -> RedisAction.new(redis_value: 'barrosfilipe', redis_key: 'user').set
<canton7> as in... it's creating a new variable inline, then returning the value of the variable, which is being passed as the method parameter. you could name 'redis_key' on line 44 whatever you like
<jhass> try that with the bottom example too
<canton7> (i.e. change redis_key on line 44, not change it on line 30)
blackmesa has joined #ruby
Regulati_ has joined #ruby
juanpablo____ has joined #ruby
sgambino has joined #ruby
DaniG2k has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
mengu has quit [Ping timeout: 250 seconds]
<zlude> jhass, I do in both examples, and same output...
<jhass> I doubt that
<zlude> let me show you
<canton7> wlel, same output, but the redis key and value are reversed :P
<jhass> well, actually compare which values are set in redis
RegulationD has quit [Ping timeout: 256 seconds]
<zlude> i put it like " redis = RedisAction.new(redis_value: 'barrosfilipe', redis_key: 'user').set "
<jhass> yeah, add accessors for key and value and print them
lanemeyer has quit [Ping timeout: 256 seconds]
sgambino_ has joined #ruby
lanemeyer has joined #ruby
juanpablo____ has quit [Ping timeout: 240 seconds]
MXfive has quit [Quit: Textual IRC Client: www.textualapp.com]
JDiPierro has joined #ruby
phutchins has joined #ruby
<clarkk> any help would be appreciated...
<clarkk> On rvm 1.11.39, when I run gem list while using the default gemset, it lists all the gems, including those in global. I don't think this was the behaviour the last time I used it. What should I be doing here? I'd like to know which gems are in which gemsets
slackbotgz has joined #ruby
<zlude> jhass, canton7, http://pastie.org/private/mehwu7u3aczgasp0tckw#1,25,28,31
sgambino has quit [Ping timeout: 252 seconds]
gagrio has quit [Ping timeout: 256 seconds]
fryguy9 has joined #ruby
mengu has joined #ruby
dblessing has joined #ruby
failshell has quit []
mengu__ has joined #ruby
quimrstorres has joined #ruby
rshetty has quit [Remote host closed the connection]
jerius has joined #ruby
kp666 has quit [Remote host closed the connection]
rshetty has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
t_p has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
hiyosi has joined #ruby
ismaelga has joined #ruby
mengu has quit [Ping timeout: 255 seconds]
joonty has quit [Quit: joonty]
quimrstorres has quit [Ping timeout: 272 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
AlphaTech is now known as zz_AlphaTech
jottr has quit [Ping timeout: 264 seconds]
amdbcg has joined #ruby
evanjs has joined #ruby
<canton7> zlude, https://eval.in/312920
<shevy> I need some easier way to work with ruby code
<ddv> damn I quite like amethyst.app
<ddv> dynamic tiler for osx yay
Astrologos_ has joined #ruby
failshell has joined #ruby
Spami has joined #ruby
<certainty> shevy: in what way?
evanjs_ has joined #ruby
terminatorzzzzz9 has joined #ruby
dorei has quit [Ping timeout: 245 seconds]
<terminatorzzzzz9> How can I assign a variable to a file?
failshell has quit [Remote host closed the connection]
Rollabun_ has joined #ruby
<shevy> certainty well. I wrote some perhaps 1000 lines of code. And I was not happy with the old design, so I started to change; primarily from a big array, to wanting to use a hash instead. it's mostly a table layout column | column | column |, but based on commandline options, only some columns will be displayed, others not
failshell has joined #ruby
gagrio has joined #ruby
<shevy> and I sort of lost interest in the middle of the rewrite. and it has been lingering for a longer while now... while I happily and very easily write new ruby code. or change small things in larger ruby code
<shevy> it's always rewrites that suck
evanjs has quit [Ping timeout: 244 seconds]
<canton7> the trick is to get it right first time ;)
<zlude> canton7, thank you.
mgorbach has quit [Read error: Connection reset by peer]
<certainty> shevy: rewrites are almost always a bad idea and you deserve the pain! :p
<toretore> rewrites are awesome
Rollabunna has quit [Ping timeout: 256 seconds]
<canton7> zlude, also https://eval.in/312923
mgorbach has joined #ruby
<shevy> it feels like twice the pain for less than half the gain
<certainty> s:)
doodlehaus has joined #ruby
joonty has joined #ruby
lavros has joined #ruby
<certainty> shevy: small increments to improve the code over time
<shevy> yeah
<shevy> now I'd wish to not have started that rewrite :(
<canton7> that's what version control is for
<certainty> the design change from arrays to hashes may indicate that you missed an indirection there
tkuchiki has joined #ruby
dorei has joined #ruby
vozcelik has joined #ruby
thingmaker has quit []
<certainty> shevy: abandon your rewrite branch and start afresh
Sid05 has joined #ruby
<shevy> certainty hehe
<certainty> xD
<certainty> anyway time to call it a day for me
<certainty> have fun
<shevy> wat
<shevy> you finish at 15:25
<shevy> what kind of job is that
aryaching has quit [Ping timeout: 245 seconds]
gagrio has quit [Ping timeout: 264 seconds]
iamninja has joined #ruby
Astrologos_ has quit [Ping timeout: 256 seconds]
<terminatorzzzzz9> \q
<terminatorzzzzz9> \q
<pagios> any idea about this error ? /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
terminatorzzzzz9 has quit [Quit: Page closed]
aryaching has joined #ruby
rshetty has quit [Remote host closed the connection]
sgambino_ has quit [Remote host closed the connection]
<pagios> ruby-dev fixed it nvm
yqt has quit [Ping timeout: 255 seconds]
livathinos is now known as we_are_them
gagrio has joined #ruby
Kricir has joined #ruby
aryaching has quit [Read error: No route to host]
we_are_them is now known as livathinos
<SirFunk> Is there some way in ruby to pass a class along with some context into a method so that when the method does .new on the class it has some custom context?
<SirFunk> kind of like .bind in javascript?
Jeff_D has joined #ruby
fabrice31_ has joined #ruby
chridal has quit [Ping timeout: 265 seconds]
<Jeff_D> Question about %r -- how do I set the multiline flag for an expression like %r{\A<figure>(.+)</figure>\z} ?
nettoweb has joined #ruby
Takle has joined #ruby
chridal has joined #ruby
amdbcg has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
ojacobson has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
ojacobson has left #ruby ["Leaving"]
Kricir has quit [Ping timeout: 265 seconds]
Regulati_ has quit [Remote host closed the connection]
User458764 has joined #ruby
amdbcg has joined #ruby
mrmargolis has joined #ruby
<Jeff_D> anyone? setting options on regexp specified using %r?
aryaching has joined #ruby
Feyn has quit [Quit: Leaving]
<undeadaedra> >> %r{[a-z]}i
<ruboto> undeadaedra # => /[a-z]/i (https://eval.in/312925)
RegulationD has joined #ruby
<undeadaedra> Jeff_D: you mean this ^
<undeadaedra> ?
quimrstorres has joined #ruby
JDiPierro has quit [Remote host closed the connection]
vozcelik has quit [Quit: Textual IRC Client: www.textualapp.com]
<Jeff_D> cool, thanks; *screw* intuitiveness, though it would be wonderful if I could figure out how to find doc or Google-fu for that sort of thing. Holdover from Perl, I'd guess?
maximski has joined #ruby
<Jeff_D> I thought I'd run screaming away from that language ten years ago; apparently I was mistaken. Thanks again…. back on track :)
<undeadaedra> well options are suffixed to "standard form", so I tried by putting it the same way
<Jeff_D> :D
momomomomo has joined #ruby
catcher has joined #ruby
Jeff_D has quit [Quit: JMP $]
govg has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
bruno- has joined #ruby
mjuszczak has joined #ruby
sgambino has joined #ruby
OtterCoder has joined #ruby
govg has quit [Client Quit]
Mon_Ouie has joined #ruby
govg has joined #ruby
DaniG2k has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
enebo has joined #ruby
kubunto has quit [Quit: Leaving]
Lloyd is now known as lloyd
bruno- has quit [Ping timeout: 250 seconds]
last_staff has quit [Quit: last_staff]
GnuYawk has quit [Ping timeout: 250 seconds]
Pupeno has joined #ruby
freerobby has joined #ruby
roshanavand has joined #ruby
horsecowdog has joined #ruby
aspiers has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
Pupeno_ has quit [Ping timeout: 256 seconds]
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
gigetoo has joined #ruby
vyorkin has joined #ruby
aspiers has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
lidenskap has joined #ruby
tkuchiki has quit [Remote host closed the connection]
juanpaucar has quit []
tkuchiki has joined #ruby
dfinninger has joined #ruby
amdbcg has quit [Ping timeout: 243 seconds]
dagelf has quit [Ping timeout: 264 seconds]
juanpablo____ has joined #ruby
rhllor has joined #ruby
momomomomo has quit [Quit: momomomomo]
lidenskap has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
Alina-malina has quit [Ping timeout: 272 seconds]
Boondox has joined #ruby
mengu__ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 250 seconds]
r3dk1ng is now known as NinjaOps
Alina-malina has joined #ruby
rshetty has joined #ruby
Zamerick has joined #ruby
werelivinginthef has joined #ruby
Zamerick_ has joined #ruby
Crisix has joined #ruby
juanpablo____ has quit [Ping timeout: 255 seconds]
Kricir has joined #ruby
Rickmasta has joined #ruby
rhllor has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
ta has quit [Remote host closed the connection]
slackbotgz has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
dextaa has joined #ruby
ta has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
astrobunny has joined #ruby
Megtastique has quit [Ping timeout: 240 seconds]
vivekananda has quit [Ping timeout: 240 seconds]
rhllor has joined #ruby
jottr has joined #ruby
ndrei has joined #ruby
Megtastique has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
axl_ has joined #ruby
Zamerick_ has quit [Quit: Leaving]
rbennacer has joined #ruby
JDiPierro has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
Beoran__ has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
maximski has quit []
juanpaucar has joined #ruby
amdbcg has joined #ruby
Domon has joined #ruby
evanjs_ has quit [Remote host closed the connection]
evanjs has joined #ruby
astrobunny has quit [Remote host closed the connection]
wgreenhouse has joined #ruby
Megtastique has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 256 seconds]
cloaked1 has joined #ruby
cloaked1 has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
freerobby has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
vyorkin has quit [Ping timeout: 252 seconds]
dextaa has quit [Quit: Leaving]
rshetty has joined #ruby
prphp has joined #ruby
sgambino has quit [Remote host closed the connection]
fryguy9 has quit [Quit: Leaving.]
Megtastique has joined #ruby
odin22 has joined #ruby
Megtastique has quit [Max SendQ exceeded]
amdbcg has quit [Ping timeout: 256 seconds]
rshetty has quit [Remote host closed the connection]
juanpablo____ has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
Beoran__ has joined #ruby
Megtastique has joined #ruby
maxmanders has quit [Excess Flood]
xploshioon has joined #ruby
PaulCapestany has quit [Excess Flood]
oddskill_away is now known as oddskill
maxmanders has joined #ruby
xploshioon has quit [Client Quit]
ramfjord has joined #ruby
fryguy9 has joined #ruby
arup_r has quit []
wgreenhouse has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
sgambino has joined #ruby
mary5030 has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
mary5030 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
mary5030 has joined #ruby
haxrbyte_ has joined #ruby
beat has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
kaffepanna has quit [Quit: Lost terminal]
fabrice31_ has joined #ruby
mary5030 has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
roshanavand has joined #ruby
thingmaker has joined #ruby
hanmac1 has quit [Quit: Leaving.]
justin_pdx has joined #ruby
justin_pdx has quit [Client Quit]
paulcsmith has joined #ruby
Megtastique has quit []
ebbflowgo has quit [Read error: Connection reset by peer]
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
ebbflowgo has joined #ruby
banister has joined #ruby
ruby322 has joined #ruby
ruby322 is now known as dudedudeman
fabrice31 has quit [Ping timeout: 276 seconds]
rhllor has quit [Quit: rhllor]
iotouch has joined #ruby
RegulationD has quit [Remote host closed the connection]
rshetty has joined #ruby
RegulationD has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
_honning_ has quit [Ping timeout: 248 seconds]
lavros_ has joined #ruby
arturaz has quit [Ping timeout: 256 seconds]
sgambino has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
oo_ has joined #ruby
lavros has quit [Ping timeout: 264 seconds]
sgambino has joined #ruby
mjuszczak has quit []
rocknrollmarc has joined #ruby
rshetty has joined #ruby
Guest10156 has quit [Remote host closed the connection]
<dudedudeman> hello awesome rubyists!
alienaut has quit [Ping timeout: 264 seconds]
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
cpt_yossarian has quit [Ping timeout: 250 seconds]
msgodf has quit [Ping timeout: 256 seconds]
<undeadaedra> oh u
<dudedudeman> oh me oh my
<dudedudeman> what's everyone working on today?
gsd has joined #ruby
iotouch has quit [Quit: 离开]
<dudedudeman> i'll just keep rambling because someone's got to do it
beat has quit [Max SendQ exceeded]
<dudedudeman> i'm just working on the same stuff that's got me bogged down from friday
<dudedudeman> also, because my full-time gig isn't Ruby, i'm at my desk with about 50 hard drives that were scattered all over our building in random places.
<dudedudeman> happy monday
rshetty_ has joined #ruby
rshetty has quit [Ping timeout: 272 seconds]
mary5030_ has joined #ruby
kobain has joined #ruby
<catcher> dudedudeman, happy monday to you too.
<ninjs> I'm working on writing a little script that parses an excel documents, grabs a few cells from each row, and writes them to a new document. It's hard. D:
<dudedudeman> ninjs, what problems are you running in to?
thiagovsk has joined #ruby
<dudedudeman> thanks, catcher!
livathinos has quit []
nszceta has joined #ruby
pigzilla has joined #ruby
<ninjs> dudedudeman: mainly that I don't understand the Spreadsheet library documentation. And.. I'm pretty new to ruby haha
pigzilla has left #ruby ["Leaving"]
<dudedudeman> ha, me too me too
Regulati_ has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
omich has joined #ruby
<undeadaedra> Happy monday?
<undeadaedra> Is such a thing even possible?
mary5030 has quit [Ping timeout: 250 seconds]
mitchellhenke has joined #ruby
juanpaucar has quit [Remote host closed the connection]
poguez_ has joined #ruby
mengu has quit [Read error: Connection reset by peer]
uri__ has joined #ruby
<dudedudeman> undeadaedra: we can certainly try for the first one
<dudedudeman> if not this monday, we can try for next monday
paulcsmith has joined #ruby
<ninjs> I'm trying to write a function that's like for each row, modify cells x, y, and z
RegulationD has quit [Ping timeout: 264 seconds]
linoj has joined #ruby
hmsimha has quit [Ping timeout: 249 seconds]
<ninjs> https://gist.github.com/ninjs/04775a2b4172bcdfd6af does this look somewhat right?
Sid05 has quit [Ping timeout: 240 seconds]
<dudedudeman> well, does it work when you run it?
<ninjs> the problem is I'm not done with what I want it to do yet. I guess I should just print x,y, z. Haha thanks
<DaniG2k> ninjs: is y always at position 6 in the row and z always at position 24?
Sid05 has joined #ruby
dfinninger has quit [Remote host closed the connection]
<DaniG2k> ninjs: personally I'd split the row on spaces or commas or something
<DaniG2k> ninjs: instead of assigning it a statically typed number
<ninjs> DaniG2k: Yeah. So this program spits out this excel file with the data always in the same spot, one file per row. I need to parse through those rows, grab and format some of the data in each cell, and spit out about 6 cells per row on a new document
Guest26 has joined #ruby
amdbcg has joined #ruby
Spami has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
ddarkpassenger has joined #ruby
vtunka has quit [Quit: Leaving]
rhllor has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
ta has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 265 seconds]
rshetty_ has quit [Remote host closed the connection]
zenith_ has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
Takle has quit [Remote host closed the connection]
ta has joined #ruby
amdbcg has quit [Read error: No route to host]
bruno- has joined #ruby
amdbcg1 has joined #ruby
rshetty has joined #ruby
ndrei has joined #ruby
govg has quit [Quit: leaving]
tesuji has quit [Ping timeout: 250 seconds]
weemsledeux has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpt_yossarian has joined #ruby
bim has joined #ruby
Takle has joined #ruby
bim is now known as Guest49015
ujihisa has joined #ruby
rshetty has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 240 seconds]
_honning_ has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
kirun has joined #ruby
zenith_ has quit [Remote host closed the connection]
gauke has quit [Quit: gauke]
rhllor has quit [Ping timeout: 250 seconds]
dfinninger has joined #ruby
linoj has left #ruby [#ruby]
andikr has quit [Remote host closed the connection]
rhllor has joined #ruby
riotjones has quit [Remote host closed the connection]
bricker has joined #ruby
rbennacer has quit [Remote host closed the connection]
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
mjuszczak has joined #ruby
<ninjs> Okay. So that works great. Now I'm just a bit lost as to how to take those variables, and write them into a new file
<ninjs> I can instantiate the new file in a variable..
<ismaelga> Hi everyone!
<ismaelga> Do you guys know any tool that for a list of words, generates one big, but minified regex that only matches those words?
<jhass> ismaelga: "minified"?
horsecowdog has quit [Remote host closed the connection]
<jhass> until that I had said Regexp.union
haxrbyte_ has quit [Read error: Connection reset by peer]
ujihisa has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
bruno- has joined #ruby
chridal has quit [Ping timeout: 272 seconds]
<ismaelga> jhass: Yeah, minified. For example for AB1 AB2, AB3, AB4 it would generate /AB[1-4]/ or something would be the minified version of /AB1|AB2|AB3|AB4/
jimms has quit [Remote host closed the connection]
freerobby1 has quit [Ping timeout: 250 seconds]
<jhass> I doubt that exists
<dudedudeman> ninjs: are you using Ruby's File class and IO class?
<ismaelga> jhass: The use case for this would be to check if some kind of identifier is in a list. But I rather store a regex instead of a huge list
<ninjs> Okay so here's that I'm trying to do: Iterate over that loop I posted, grab the values from each of those cells, and put them into a new file to be written.
<ninjs> dudedudeman: Not that I know of? haha
<dudedudeman> This SO post might be of use then
astrobunny has joined #ruby
<ninjs> Ohh. I know how to write to the file. I'm just not sure how to store the variables to write to the file
<ismaelga> jhass: google doesn't help much either. It only returns stuff about regexps for minifying html, css, etc... :/
gagrio has quit [Ping timeout: 252 seconds]
mitchellhenke has joined #ruby
lidenskap has joined #ruby
urbanendeavour has joined #ruby
thingmaker has quit []
Sid05 has left #ruby [#ruby]
HayesHimself has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Be back later ...]
<ismaelga> jhass: I've read an article on how to minify a regexp a while back but I think the process was manual. I think it would be awesome to have a tool like this. I'm not even sure if that's possible to build
thingmaker has joined #ruby
haxrbyte_ has joined #ruby
sigurding has quit [Quit: sigurding]
fryguy9 has quit [Quit: Leaving.]
chrishough has joined #ruby
<jhass> sounds like a hard problem indeed
astrobunny has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
riotjones has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
chridal has joined #ruby
mary5030_ has quit [Ping timeout: 264 seconds]
CloCkWeRX has quit [Quit: Leaving.]
fryguy9 has joined #ruby
paulcsmith has joined #ruby
Takle has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
kblake has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
GaryOak_ has quit []
amdbcg1 has quit [Ping timeout: 272 seconds]
grindmodeon has joined #ruby
grindmodeon has quit [Max SendQ exceeded]
grindmodeon has joined #ruby
jottr has joined #ruby
rbennacer has joined #ruby
<Mon_Ouie> ismaelga: I doubt you could do that efficiently, one can't even efficiently find an NFA with a minimal amount of states and a regexp is basically that (and Ruby's regexps are actually more powerful than that, but I imagine you're not going to need those extra features)
davedev24_ has quit [Ping timeout: 248 seconds]
davedev24_ has joined #ruby
<Mon_Ouie> You can minimize DFAs efficiently, but a DFA may require exponentially more states than an equivalent NFA
grindmodeon has quit [Client Quit]
rocknrollmarc has quit [Ping timeout: 250 seconds]
Guest49015 has quit [Remote host closed the connection]
blueOxigen has joined #ruby
ramfjord has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
ndrei has quit [Ping timeout: 272 seconds]
krisquig_ has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
seme has joined #ruby
<seme> hey guys... not sure if you can tell anyone to get it fixed but the goruco.com email is bouncing
Takle has joined #ruby
casshern2 has quit [Ping timeout: 246 seconds]
<ismaelga> Mon_Ouie: Uh.Thanks for that information. I really don't care that much about performance. And yeah. I don't need groups capturing or any powerful feature. I just want to know if a value is in a list and I was thinking if a "minified regexp" would work
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krisquigley has quit [Ping timeout: 250 seconds]
fryguy9 has quit [Quit: Leaving.]
roshanavand1 has joined #ruby
horsecowdog has joined #ruby
fryguy9 has joined #ruby
roshanavand has quit [Ping timeout: 276 seconds]
ta has joined #ruby
<ismaelga> Mon_Ouie: I guess compression/decompression would be a simpler alternative and get the same result in terms of memory use, etc.
cpt_yossarian has quit [Ping timeout: 250 seconds]
evanjs has quit [Remote host closed the connection]
n80 has quit [Ping timeout: 265 seconds]
n80_ has joined #ruby
jordanm has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
jobewan has joined #ruby
dfinninger has quit [Remote host closed the connection]
<banister> ismaelga btw, if you can speak in french Mon_Ouie would be a lot more responsive. French is actually the only language he speaks, and the delay you get while talking in english to him is due to him running everything through google translate
<jhass> o_O
failshell has quit [Remote host closed the connection]
allenn has quit [Remote host closed the connection]
jordanm has joined #ruby
RandyT has quit [Ping timeout: 256 seconds]
thingmaker has quit []
mleung has joined #ruby
<Mon_Ouie> zwz
<Mon_Ouie> Oh despair! I unmasked how can I get out!
<ismaelga> banister: My french is really bad :p I only know a few words
Sou|cutter has quit [Quit: WeeChat 0.4.3]
<undeadaedra> ben voyons
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
sevvie has joined #ruby
<ismaelga> salut
<banister> Mon_Ouie mdr, i laugh
GaryOak_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Rollabun_ has quit [Remote host closed the connection]
fryguy9 has quit [Quit: Leaving.]
amdbcg has joined #ruby
Rollabunna has joined #ruby
grindmodeon has joined #ruby
_honning_ has quit [Read error: Connection reset by peer]
ta has quit [Remote host closed the connection]
<undeadaedra> ismaelga: salut
Hijiri has quit [Quit: WeeChat 1.0.1]
jottr has quit [Ping timeout: 264 seconds]
pandaant has quit [Quit: Lost terminal]
ascarter has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
_honning_ has joined #ruby
RandyT has joined #ruby
ghostmoth has joined #ruby
<ismaelga> and that's pretty much everything I can say in french
failshell has joined #ruby
tgunr has joined #ruby
<banister> ismaelga comment quel ca chose, voulet vous avec moi, c'est sois
jordanm has quit [Ping timeout: 245 seconds]
GnuYawk has joined #ruby
grindmodeon has quit [Client Quit]
<rom1504> so much orthograph problems
failshell has quit [Remote host closed the connection]
fryguy9 has joined #ruby
DaniG2k has quit [Quit: leaving]
thingmaker has joined #ruby
axilla has quit [Ping timeout: 245 seconds]
thingmaker has quit [Max SendQ exceeded]
pika_pika has quit [Ping timeout: 245 seconds]
<dudedudeman> weaksauce: you around?
tjbiddle has joined #ruby
kristofferR has joined #ruby
thingmaker has joined #ruby
thingmaker has quit [Max SendQ exceeded]
<ismaelga> yup. Even with google translator. I can't understand... My girlfriend speaks french fluently but she isn't here right now
<ismaelga> * she is actually real.
serivichi has quit [Ping timeout: 272 seconds]
spider-mario has joined #ruby
thingmaker has joined #ruby
thingmaker has quit [Max SendQ exceeded]
<dudedudeman> ismaelga: i'm glad you have a real girlfriend. they're the best
<dudedudeman> in most cases, they're even better when they become wives
<dudedudeman> it's time to propose
thingmaker has joined #ruby
ndrei has joined #ruby
thingmaker has quit [Max SendQ exceeded]
<ismaelga> nah... Real rings and real weddings in general are too expensive
thingmaker has joined #ruby
thingmaker has quit [Max SendQ exceeded]
JimmyNeutron has quit [Quit: Leaving]
paulcsmith has quit [Quit: Be back later ...]
<Mon_Ouie> Well part of the reason you can't understand what banisterfiend said is that it isn't actually a French sentence, he basically shuffled the words of "voulez-vous couchez avec moi ce soir?" (his favorite french sentence) and misspelled them
<dudedudeman> ha, you're not wrong
thingmaker has joined #ruby
grindmodeon has joined #ruby
joonty has quit [Quit: joonty]
wallerdev has quit [Quit: wallerdev]
mrmargolis has quit [Ping timeout: 256 seconds]
mrmargolis has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
thingmaker has quit [Client Quit]
anarang has quit [Quit: Leaving]
momomomomo has joined #ruby
jottr has joined #ruby
oo_ has quit [Remote host closed the connection]
dagelf has joined #ruby
JDiPierro has quit [Remote host closed the connection]
twwyvy has joined #ruby
quintinadam has joined #ruby
pika_pika has joined #ruby
<undeadaedra> wow
MatthewsFace has joined #ruby
<pagios> hi i am using ruby binding and doing: result = client[:'userTable'].find(:subscriberToken => token).update_one( "$pull" => { :subscribedTo => topic } )
<pagios> something wrong ?
<undeadaedra> banister: don't ever do anything like that again, it hurts eyes
rbennacer has quit [Remote host closed the connection]
krisquig_ has quit [Remote host closed the connection]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krisquigley has joined #ruby
<undeadaedra> pagios: expected result, actual result?
<hanmac> pagios: what kind of binding?
JimmyNeutron has joined #ruby
centrx has joined #ruby
fryguy9 has quit [Quit: Leaving.]
alex88 has quit []
<pagios> it works , was refering to a wrong collection
<pagios> it works , was refering to a wrong collection
<undeadaedra> good
* jhass wonders if that was another #sequel crosspost
rbennacer has joined #ruby
lloyd is now known as Lloyd
bim has joined #ruby
<undeadaedra> jhass: no
<jhass> good
bim is now known as Guest48019
evanjs has joined #ruby
Guest26 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Filete has joined #ruby
dfinninger has joined #ruby
fryguy9 has joined #ruby
<bricker> jhass: no
jimms has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
krisquigley has quit [Ping timeout: 272 seconds]
dfinninger has joined #ruby
vire has quit [Remote host closed the connection]
amdbcg has quit [Ping timeout: 264 seconds]
jayeshsolanki has joined #ruby
Takle has quit [Remote host closed the connection]
Dakuan has quit [Remote host closed the connection]
jayeshsolanki has quit [Max SendQ exceeded]
jayeshsolanki has joined #ruby
havenwood has joined #ruby
zorak8 has joined #ruby
quintinadam has quit []
jayeshsolanki has quit [Max SendQ exceeded]
lsmola_ has quit [Ping timeout: 252 seconds]
jayeshsolanki has joined #ruby
connor_goodwolf has joined #ruby
jayeshsolanki has quit [Max SendQ exceeded]
jayeshsolanki has joined #ruby
sgambino has quit [Remote host closed the connection]
snockerton has joined #ruby
JoshGlzBrk has joined #ruby
Zarthus has quit [Ping timeout: 245 seconds]
jayeshsolanki has quit [Max SendQ exceeded]
Zarthus has joined #ruby
lidenskap has quit [Remote host closed the connection]
Dakuan has joined #ruby
Rickmasta has joined #ruby
JDiPierro has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
paulcsmith has joined #ruby
fryguy9 has quit [Quit: Leaving.]
jeff_laplante has joined #ruby
c0m0 has quit [Ping timeout: 246 seconds]
hectortrope is now known as noobQ
Ellis has joined #ruby
Rephiax has joined #ruby
dagelf has quit [Ping timeout: 255 seconds]
roshanavand1 has quit [Remote host closed the connection]
<Ellis> when i run this i get nil … what’s wrong with the puts bingo.index(letter) line?
mikecmpbll has quit [Ping timeout: 276 seconds]
naztharune has joined #ruby
quintinadam has joined #ruby
sonOfRa has quit [Quit: Bye!]
withnale___ has joined #ruby
<havenwood> Ellis: #puts returns: nil
f0ster has joined #ruby
<Ellis> havenwood: what really?
paulcsmith has quit [Ping timeout: 245 seconds]
naztharune has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 276 seconds]
redlegion has quit [Remote host closed the connection]
lorn has quit [Excess Flood]
<havenwood> Ellis: always
lorn has joined #ruby
<Ellis> havenwood: i just used return instead of puts and i got nil
vyorkin has joined #ruby
paulcsmith has joined #ruby
blueOxigen has quit [Ping timeout: 256 seconds]
vyorkin has quit [Client Quit]
<havenwood> Ellis: show the new code?
dseitz has joined #ruby
<havenwood> Ellis: That should return a Fixnum representing the index.
<Ellis> that’s what i dont get … i am running it in irb
<Ellis> ill try it without the method name
<bricker> Ellis: works for me, copy-and-pasted
withnale__ has quit [Ping timeout: 245 seconds]
dagelf has joined #ruby
<Ellis> oh fuck i think my ruby / rails is messed up ><
akurilin3 has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
withnale___ has quit [Ping timeout: 250 seconds]
bluOxigen has joined #ruby
Regulati_ has quit [Remote host closed the connection]
naztharune has joined #ruby
naztharune has quit [Remote host closed the connection]
kerrizor has joined #ruby
rbennacer has quit [Write error: Broken pipe]
akurilin3 has joined #ruby
momomomomo has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagelf has quit [Read error: Connection reset by peer]
amdbcg has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
browndawg has quit [Ping timeout: 246 seconds]
rocknrollmarc has joined #ruby
Takle has joined #ruby
dagelf has joined #ruby
<catcher> What's the most commonly used ruby CMS?
<Senjai> catcher: Dont use a CMS
<Senjai> You have been warned
<Senjai> Not Worth
CustosLimen has quit [Ping timeout: 245 seconds]
urbanendeavour has quit [Ping timeout: 246 seconds]
<catcher> Senjai, you recommend building a custom CMS per project?
<catcher> (if needed)
wldcordeiro_ has quit [Quit: Leaving]
<Senjai> catcher: No, I recommend not using a CMS. Depending on the project I suppose
justin_pdx has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
juanpaucar has joined #ruby
gusrub has joined #ruby
<catcher> Senjai, I have a frequent need for them with my client base.
momomomomo has quit [Ping timeout: 264 seconds]
<Senjai> Are you writing blogs?
<Senjai> Or dummy sites?
<Senjai> static-ish sites?
Megtastique has joined #ruby
<Senjai> I would recommend wordpress instead.
<apeiros> what? nobody updated the topic?!?
<Senjai> besttoolforthejob
* apeiros disappoint!
gregf1 has joined #ruby
<Senjai> apeiros: <3
* Senjai still stands by recommendation
<Senjai> Not worth reinventing the wheel
<apeiros> !topic version Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org
amdbcg has quit [Remote host closed the connection]
<apeiros> =(
<Senjai> apeiros: I think you meant /
<Senjai> xD
<apeiros> no
Zai00 has quit [Quit: Zai00]
<apeiros> ruboto has a command
<Senjai> Oh
<Senjai> OKAY
<Senjai> WELL THEN
<apeiros> got to check the log
<apeiros> why it failed
amdbcg has joined #ruby
<Senjai> apeiros: /cs op #ruby apeiros
<Senjai> xD
<Senjai> fixedforever
apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
mary5030 has joined #ruby
ujjain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
blueOxigen has joined #ruby
rocknrollmarc has quit [Ping timeout: 390 seconds]
aswen has joined #ruby
<havenwood> To the ChangeLog!
<havenwood> \o/
<catcher> Senjai, hoping to stick with Ruby, and there are a lot of things I dislike about wordpress. No Ruby CMSes are solid enough yet?
<Mon_Ouie> Probably failed because ruboto isn't an op on this channel?
<apeiros> Mon_Ouie: it auto-ops
<Senjai> catcher: They are pretty crappy.
<Senjai> catcher: ComfyMexicanSofa was the only one I've used extensively.
<Mon_Ouie> But does it have the access to do that? It's not listed by ChanServ
juanpaucar has quit [Ping timeout: 255 seconds]
<work_op> catcher you might consider Cuba if it's a relatively simple project
<apeiros> it is, chanserv lists authname, not nick ;-)
<Mon_Ouie> Oh
<Senjai> catcher: And it isn't really editor friendly
<Senjai> catcher: Kinda meant as a CMS for developers
<jhass> apeiros: sorry, dropped into my feedreader just now :/
bluOxigen has quit [Ping timeout: 250 seconds]
dagelf has quit [Ping timeout: 256 seconds]
<Senjai> catcher: But yeah, just use wordpress dude, unless theres an actual reason to stick with ruby
moeabdol has quit [Ping timeout: 255 seconds]
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> jhass: I was kidding with the "disappoint" ;-)
<jhass> I know :P
sonOfRa has joined #ruby
Hobogrammer has quit [Ping timeout: 255 seconds]
rbennacer has joined #ruby
Dakuan has quit [Remote host closed the connection]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<catcher> Senjai, but it's just the worst.
_honning_ has quit [Ping timeout: 252 seconds]
<Senjai> catcher: *shrug*
<catcher> Senjai, thanks for the feedback.
twwyvy has quit [Remote host closed the connection]
DexterLB has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
riotjones has quit [Remote host closed the connection]
towski_ has joined #ruby
<jhass> sooo, can I claim now that we have a known security issue in 1.9?
ki0 has quit [Remote host closed the connection]
Domon has quit [Quit: Connection closed for inactivity]
rdark has quit [Quit: leaving]
browndawg has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
paulcsmith has joined #ruby
jheg has joined #ruby
vudew has joined #ruby
wald0 has quit [Quit: Lost terminal]
maletor has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
aswen has quit [Ping timeout: 248 seconds]
DexterLB has joined #ruby
failshell has joined #ruby
<jhass> what the hell, the report is one year old? https://bugs.ruby-lang.org/issues/9644
dseitz has quit [Excess Flood]
GnuYawk has quit [Ping timeout: 252 seconds]
zenith_ has joined #ruby
snockerton has quit [Quit: Leaving.]
rocknrollmarc has joined #ruby
dseitz has joined #ruby
merqlove has joined #ruby
postmodern has joined #ruby
tvw has quit []
<centrx> jhass, 1.9 is EOL right?
<jhass> yeah
ndrei has joined #ruby
tvw has joined #ruby
momomomomo has joined #ruby
mikecmpbll has joined #ruby
zenith_ has quit [Remote host closed the connection]
fryguy9 has joined #ruby
Musashi007 has joined #ruby
snockerton has joined #ruby
terlar has quit [Ping timeout: 276 seconds]
mostlybadfly has joined #ruby
<nickjj> has anyone experienced connection refused errors when using faye and sidekiq together?
Guest48019 has quit [Remote host closed the connection]
<Ellis> how do i run a method from inside another method? i want to run a generate method before i run my method that uses the generated info
<centrx> Same way as outside a method?
momomomomo has quit [Quit: momomomomo]
DerisiveLogic has joined #ruby
silentpost has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
<Ellis> centrx: when i’m running the progarm i’d do something like instance.method, but if i don’t know the name of the instance how can i put that in the method where i want it to be run from
wald0 has joined #ruby
eytanfb has joined #ruby
<jhass> self. or just leave it off entirely
amdbcg has quit [Read error: No route to host]
<jhass> >> class Foo; def a; puts b; end; def b; "hi"; end; end; Foo.new.a
<ruboto> jhass # => hi ...check link for more (https://eval.in/312991)
amdbcg1 has joined #ruby
sgambino has joined #ruby
ascarter has joined #ruby
dfinninger has quit [Remote host closed the connection]
amdbcg1 has quit [Client Quit]
blackmesa has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
amdbcg has joined #ruby
<Ellis> jhass: ahh self forgot
cpt_yossarian has joined #ruby
Hijiri has joined #ruby
Megtastique has quit [Ping timeout: 272 seconds]
bim has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
bim is now known as Guest32311
User458764 has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
Megtastique has joined #ruby
dpatel has joined #ruby
dfinninger has joined #ruby
michael_mbp has quit [Excess Flood]
chrishou_ has joined #ruby
michael_mbp has joined #ruby
<kq_away_> SearchDir = ARGV[1] ? ARGV[1] : 'bin'
snockerton has quit [Quit: Leaving.]
<kq_away_> Can I do this without repeating ARGV?
Igorshp_ has quit [Remote host closed the connection]
krisquigley has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Ping timeout: 264 seconds]
eytanfb has quit [Write error: Broken pipe]
<centrx> kq_away_, ARGV[1] || 'bin'
<kerrizor> SearchDir = ARGV[1] || 'bin'
<kerrizor> lol
<kq_away_> thanks
ki0 has joined #ruby
odin22 has quit [Quit: Leaving]
maximski has joined #ruby
odin22 has joined #ruby
<Ellis> how do i print out a specific array in a nested array, i tried puts array[0] to print out the first nested array but i only get an element
momomomomo has joined #ruby
Megtasti_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
ki0 has quit [Remote host closed the connection]
CustosLimen has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
<kerrizor> 2.1.1 :001 > array = [[1,2,3], 4, 5]
<kerrizor> => [[1, 2, 3], 4, 5]
<kerrizor> 2.1.1 :002 > array[0]
<kerrizor> => [1, 2, 3]
<kerrizor> 2.1.1 :003 >
<havenwood> Ellis: `puts array[0].inspect` or `p array[0]`
failshel_ has joined #ruby
cpt_yossarian has quit [Ping timeout: 252 seconds]
<Ellis> havenwood: why did u add .inspect? what does that do
<havenwood> >> [1, 2, 3].inspect
<ruboto> havenwood # => "[1, 2, 3]" (https://eval.in/312994)
Megtastique has quit [Ping timeout: 245 seconds]
horsecowdog has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 256 seconds]
<havenwood> Ellis: `puts [1, 2, 3]` will automagically print each element on its own line.
<Ellis> >>[[1,2,3],[4,5,6],[7,8,9]].inspect
<ruboto> Ellis # => "[[1, 2, 3], [4, 5, 6], [7, 8, 9]]" (https://eval.in/312995)
lavros_ has quit [Quit: leaving]
<Ellis> i see
<havenwood> Ellis: So for debugging purposes, use #p instead of #puts to get the #inspect version so you can see what's happening.
<havenwood> Ellis: Note #p doesn't return `nil` like #puts either.
<Ellis> havenwood: thanks for sharing your knowledge
snockerton has joined #ruby
kaspernj has quit [Remote host closed the connection]
<havenwood> Ellis: No prob, you're welcome.
danman has joined #ruby
blueOxigen has quit []
tvon has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
eytanfb has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
Megtasti_ has quit [Ping timeout: 248 seconds]
tcrypt has joined #ruby
econerd4ever has joined #ruby
RegulationD has joined #ruby
zorak8 has joined #ruby
<Ellis> i’m iterating using each, is there a method that doesn’t return the array at the end?
linoj has joined #ruby
Megtastique has joined #ruby
<jhass> what's wrong with that?
Megtastique has quit [Max SendQ exceeded]
econerd4ever has left #ruby [#ruby]
linoj has left #ruby [#ruby]
dfinninger has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
ponga has quit [Quit: Leaving...]
krisquigley has joined #ruby
chrishou_ has quit [Remote host closed the connection]
Megtastique has joined #ruby
keen__ has joined #ruby
Megtastique has quit [Max SendQ exceeded]
<Ellis> i’m working with a nested array and i want it to be returned with each array on its own line, so i’m trying to format it after i iterate over the array.
chrishough has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
dumdedum has quit [Quit: foo]
keen_ has quit [Ping timeout: 264 seconds]
Megtastique has joined #ruby
Guest26 has joined #ruby
lidenskap has joined #ruby
r0ok has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
<jhass> I can't relate that to your question, sorry
dfinninger has quit [Ping timeout: 272 seconds]
krisquigley has quit [Ping timeout: 245 seconds]
OtterCoder has quit [Ping timeout: 245 seconds]
tvw has quit [Ping timeout: 276 seconds]
chrishough has quit [Read error: Connection reset by peer]
rocknrollmarc has quit [Ping timeout: 272 seconds]
failshell has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
User458764 has joined #ruby
eytanfb has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby
Musashi007 has joined #ruby
blackmes1 has joined #ruby
failshel_ has quit [Ping timeout: 256 seconds]
bradleyprice has joined #ruby
Morkel has joined #ruby
<Ellis> no worries
<Musashi007> try: array[0].each do |var| puts var end
<Ellis> thanks
beneggett has joined #ruby
vim_shimm has joined #ruby
quimrstorres has quit [Remote host closed the connection]
dfinninger has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
silentpost has quit [Ping timeout: 276 seconds]
ki0 has joined #ruby
shazaum has joined #ruby
nszceta has quit [Ping timeout: 244 seconds]
Morkel has quit [Client Quit]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rbennacer has quit [Write error: Connection reset by peer]
Morkel has joined #ruby
RegulationD has joined #ruby
codecop has quit [Ping timeout: 272 seconds]
Megtastique has quit [Ping timeout: 245 seconds]
nszceta has joined #ruby
jlast has joined #ruby
jerius has quit [Ping timeout: 276 seconds]
Zai00 has joined #ruby
jeff_laplante has quit [Ping timeout: 264 seconds]
ki0 has quit [Remote host closed the connection]
Megtastique has joined #ruby
nszceta has quit [Max SendQ exceeded]
Megtastique has quit [Max SendQ exceeded]
Megtastique has joined #ruby
nszceta has joined #ruby
<kq_away_> can I convert an array of two-value arrays to a hash?
<kq_away_> I mean, easily, like .to_hash or something
<havenwood> kq_away_: #to_h
djbkd has quit [Remote host closed the connection]
codecop has joined #ruby
<kq_away_> `<main>': undefined method `to_h' for #<Array:0x000000027fa330> (NoMethodError)
<kq_away_> >> [[1,2],[3,4]].to_h
<ruboto> kq_away_ # => {1=>2, 3=>4} (https://eval.in/312996)
<kq_away_> huh
apoplexy has joined #ruby
User458764 has joined #ruby
<havenwood> kq_away_: What version of Ruby are you using locally?
<jhass> new in Ruby 2.0 (or 2.1?)
happyface has joined #ruby
<kq_away_> 2.0.0p481
<kq_away_> I guess I should update
djbkd has joined #ruby
jerius has joined #ruby
<jhass> 2.2.2 was released today, you can get ahead of most people!
kerrizor has quit [Quit: Textual IRC Client: www.textualapp.com]
amdbcg has quit [Ping timeout: 311 seconds]
<havenwood> 20>> Hash[[1, 2], [3, 4]]
<ruboto> havenwood # => {[1, 2]=>[3, 4]} (https://eval.in/312997)
<havenwood> ha
<Senjai> Mornin ruby
<kq_away_> that breaks chaining, havenwood
<havenwood> 20>> Hash[[[1,2],[3,4]]]
<ruboto> havenwood # => {1=>2, 3=>4} (https://eval.in/312998)
ki0 has joined #ruby
<havenwood> kq_away_: Yeah, update Ruby to a fully supported version. 2.0 is in maintenance mode.
<havenwood> Senjai: G'mornin
rbennacer has joined #ruby
<kq_away_> one of the reasons I like ruby so much is that I don't have to look back and forth to understand a piece of code
<kq_away_> I'm on it
<kq_away_> 2.2.1 sounds recent enough
baweaver has joined #ruby
tvw has joined #ruby
<havenwood> kq_away_: yup, or depending on what you're using to install jump straight to 2.2.2
Guest32311 has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
<havenwood> ruby-install ruby 2.2.2 --sha1 de97ec6132ac76bb7c0f92b5ca4682138093af1b
zz_AlphaTech is now known as AlphaTech
<havenwood> rvm install 2.2.2
<kq_away_> I'm on a crappy connection so I'm using a previously downloaded installer from rubyinstaller.org
<kq_away_> I'm on windows
<havenwood> kq_away_: Ah, yeah then 2.2.1!
jimms has quit [Remote host closed the connection]
<kq_away_> You may not believe it, but for a while my only connection here was ip over dns
<kq_away_> good luck using anything but irssi with that
blackmes1 has quit [Ping timeout: 250 seconds]
Hijiri has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
vim_shimm has quit [Ping timeout: 245 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
MXfive has joined #ruby
<kq_away_> if I have an array of filenames, can I do something like arr.each(:File.delete) so that I don't have to create a lambda just to pass its argument?
<jhass> no
<kq_away_> oh, well
<jhass> well, &File.method(:delete) but it's not worth it IMO
Hijiri has quit [Client Quit]
<undeadaedra> did you try by yourself?
<undeadaedra> always interesting.
User458764 has joined #ruby
sanguisdex has joined #ruby
Hijiri has joined #ruby
Megtastique has quit [Ping timeout: 256 seconds]
<kq_away_> I did, but guessing syntax is a game you usually lose :P
<kq_away_> and there is :+ and etc that can be passed
sevvie has quit [Ping timeout: 245 seconds]
<sanguisdex> hi all, is there a standard guide for TDD in developing ruby gems. when I search I find multple methods, and I don't know what road to go down
Megtastique has joined #ruby
leafybas_ has joined #ruby
<jhass> if you like rspec, do rspec, if you like test-unit style, go minitest
Hijiri has quit [Client Quit]
leafybas_ has quit [Remote host closed the connection]
Hijiri has joined #ruby
<havenwood> sanguisdex: Minitest ships with Ruby and has spec or test style but RSpec is also quite popular.
WillAmes has quit [Remote host closed the connection]
Affix has joined #ruby
Affix is now known as Guest33547
<kq_away_> okay, beyond tabs vs 2 spaces, is there anything I could improve? https://gist.github.com/KrzaQ/d267078ec144dccaa98c
<work_op> what does the ruby-core team use? minitest or rspec?
browndawg has quit [Quit: Leaving.]
Guest33547 is now known as Affix
<jhass> kq_away_: spell fn out
chridal has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
WillAmes has joined #ruby
Affix has quit [Changing host]
Affix has joined #ruby
leafybasil has quit [Ping timeout: 250 seconds]
<jhass> and I'd use the multi-arg/array form of Kernel#system
<havenwood> kq_away_: Style-wise, SCREAMING_SNAKE_CASE for constants and snake_case for variables.
<jhass> and prolly not delete the files if the command fails ;P
Dakuan has joined #ruby
bim has joined #ruby
haxrbyte has joined #ruby
<kq_away_> I don't understand the Kernel comment
bim is now known as Guest60846
<kq_away_> and yeah, I'll have to handle zip failure
baweaver has quit [Remote host closed the connection]
yqt has joined #ruby
* apeiros prefers all CamelCase for constants
workmad3 has joined #ruby
<havenwood> apeiros: :O
<apeiros> it's all objects :)
<kq_away_> I always use CamelCase for constants and camelCase for variables
pdoherty has joined #ruby
<kq_away_> though, when in Rome
<havenwood> kq_away_: No headlessCamels in Ruby!
madlol has joined #ruby
<apeiros> yepp, no headlessCamels, that one, rubyists all agree :D
<havenwood> work_op: Mostly Minitest afaik. Varies by person.
<work_op> oh, interesting
haxrbyte_ has joined #ruby
C-Otto has joined #ruby
<C-Otto> greetings
<havenwood> work_op: I mean there's no RSpec in Ruby, but on personal projects.
<havenwood> C-Otto: Hey
<C-Otto> I'd like to copy the error messages collected during ActiveRecord validation, and append them to the error messages of another object.
<C-Otto> exception.record.errors.each { |key| exception.record.errors[key].each { |value| @todo.errors[key] << value } }
<C-Otto> this is my current attempt, which a) is ugly b) somehow does not terminate certain cases, could you enlighten me?
mjuszczak has quit []
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
werelivinginthef has joined #ruby
x1337807x has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
<C-Otto> https://github.com/TracksApp/tracks/pull/1812/files shows the context, lines 426++ in todos_controller.rb
doodlehaus has quit [Remote host closed the connection]
thiagovsk has quit [Quit: Connection closed for inactivity]
froots has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
froots has joined #ruby
stef204 has joined #ruby
Pupeno has quit [Quit: Leaving...]
Guest60846 has quit [Remote host closed the connection]
werelivinginthef has quit [Remote host closed the connection]
madlol has left #ruby ["WeeChat 0.4.2"]
vim_shimm has joined #ruby
werelivinginthef has joined #ruby
mjuszczak has joined #ruby
cjim_ has joined #ruby
ebbflowgo has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
dukedave_ has quit []
nfk has quit [Quit: yawn]
dukedave_ has joined #ruby
adaedra has joined #ruby
dukedave_ has quit [Client Quit]
undeadaedra has quit [Excess Flood]
dukedave has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
<jhass> #RubyOnRails might have a better clue
<C-Otto> oh, thank you
ebbflowgo has joined #ruby
<work_op> what is $> ? is that stdout?
avril14th has quit [Remote host closed the connection]
werelivinginthef has quit [Ping timeout: 264 seconds]
avril14th has joined #ruby
<jhass> >> $>
<ruboto> jhass # => #<IO:<STDOUT>> (https://eval.in/313000)
<jhass> seems so
<jhass> TIL
<jhass> no reason over $stdout though IMO
<havenwood> $DEFAULT_OUTPUT
<ytti> all $foo are suspect
<ytti> i understand that $stdout allows you to redirect it
<ytti> but i'm not really sure that is useful
<ytti> i tend to use STDOUT
C-Otto has left #ruby [#ruby]
<havenwood> work_op: If you `require 'English'` it'll also be `$DEFAULT_OUTPUT`.
juanpaucar has joined #ruby
horsecowdog has joined #ruby
<work_op> ok, that makes sense
vim_shimm has quit [Ping timeout: 252 seconds]
apoplexy has quit [Ping timeout: 245 seconds]
centrx has quit [Quit: Shutting down, Please wait...]
horsecowdog has quit [Read error: Connection reset by peer]
horsecow_ has joined #ruby
<jhass> ytti: wait till you have to test that something prints something to stdout then ;)
baweaver has quit [Remote host closed the connection]
noober03 has joined #ruby
baweaver has joined #ruby
latemus has quit [Ping timeout: 245 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr has quit [Quit: WeeChat 1.1.1]
amdbcg has joined #ruby
juanpaucar has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
<ytti> jhass, won't STDOUT accept new value with complaint
mjuszczak has quit []
cjim_ has quit [Quit: (null)]
vivekananda has joined #ruby
<ytti> i don't think it would be terrible thing to do in testing code
<adaedra> no need to overwrite it
<adaedra> .reopen will change output
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fryguy9 has quit [Quit: Leaving.]
<jhass> yeah, have fun in restoring though
Rickmasta has joined #ruby
<adaedra> true
Rickmasta has quit [Max SendQ exceeded]
baweaver has quit [Ping timeout: 255 seconds]
<jhass> def capture; $stdout = StringIO.new; yield; $stdout.string.tap { $stdout = STDOUT; }; end;
Rickmasta has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
sinkensabe has quit [Remote host closed the connection]
Rickmasta has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
<jhass> all of Kernel uses $stdout and not STDOUT, that's actually reason enough for me to prefer it
riotjones has joined #ruby
sinkensabe has joined #ruby
fabrice31 has joined #ruby
Rickmasta has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
stef204 has quit [Ping timeout: 240 seconds]
Igorshp has joined #ruby
Rickmasta has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
patrick99e99 has joined #ruby
JoshGlzBrk has joined #ruby
jenrzzz has joined #ruby
cjim_ has joined #ruby
Rickmasta has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
<patrick99e99> hey ruby friends.. I am having problems with version management & bundler.. I am wondering if anyone here has any idea about the answer to this question? --> http://stackoverflow.com/questions/29612196/how-can-i-use-multiple-versions-of-a-gem-within-a-project
<jhass> patrick99e99: without clicking on the link: you can't
Rickmasta has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
vim_shimm has joined #ruby
Rickmasta has joined #ruby
_honning_ has joined #ruby
<ytti> not proposing anything, just curious, what if you module_eval inside another namespace
charliesome has joined #ruby
<ytti> and use different version with that prefix
jimms has joined #ruby
sinkensabe has quit [Ping timeout: 264 seconds]
<jhass> monkey patches, globals, patching up all requires, thread locals, so many things that can go wrong
Guest26 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leafybasil has joined #ruby
tvw has quit []
fabrice31 has quit [Ping timeout: 276 seconds]
tvw has joined #ruby
riotjones has quit [Ping timeout: 265 seconds]
Rachok has joined #ruby
momomomomo_ has joined #ruby
regnartim has joined #ruby
vim_shimm has quit [Ping timeout: 240 seconds]
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo_ is now known as momomomomo
genpaku has quit [Ping timeout: 246 seconds]
tvw has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 245 seconds]
mjuszczak has joined #ruby
ismaelga has quit [Remote host closed the connection]
genpaku has joined #ruby
Eiam_ has joined #ruby
yokel has joined #ruby
Zai00 has quit [Quit: Zai00]
Megtastique has quit [Remote host closed the connection]
basiclaser has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Megtastique has joined #ruby
charliesome has quit [Quit: zzz]
<Igorshp> i'm trying to see if a class instance been modified during a script run. is there a way to compare 2 instances and their contents?
sevvie has joined #ruby
NinjaOps has quit [Remote host closed the connection]
<toretore> ==
Musashi007 has quit [Quit: Musashi007]
jimms has quit [Remote host closed the connection]
_honning_ has quit [Ping timeout: 276 seconds]
<hanmac> Igorshp: hm if you do not write the == method yourself its not that easy ... can you make a gist of what you already have or what are you trying todo? ... specially if you may forgot to copy / or even deep copy thee second instance
<Igorshp> hanmac: give me a sec, i'll put together a short explanation of what i'm doing
patrick99e99 has quit [Ping timeout: 246 seconds]
<weaksauce> dudedudeman yeah now
kadoppe has quit [Ping timeout: 246 seconds]
bigmac has quit [Ping timeout: 256 seconds]
hollywood has quit [Quit: Leaving]
LudicrousMango has left #ruby [#ruby]
baweaver has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hounddog_ has joined #ruby
x1337807x has joined #ruby
kadoppe has joined #ruby
iamninja has quit [Ping timeout: 245 seconds]
<Igorshp> updated to use markdown
Ellis has quit [Quit: Ellis]
yfeldblum has joined #ruby
Hounddog has quit [Ping timeout: 264 seconds]
Guest26 has joined #ruby
Pharaoh2 has joined #ruby
momomomomo has quit [Quit: momomomomo]
Megtastique has quit [Ping timeout: 252 seconds]
<ninjs> So I have a bunch of files in a folder /FolderX/FolderY/file1.ext with names like "John Doe blah blah blah". I'm trying to write a little script that looks at the first two words in a file (e.g. John Doe), and puts them in a directory with the same name. So for example from FolderX/FolderY/John Doe file1.ext to FolderX/John Doe/John Doe file1.ext
willharrison has joined #ruby
<ninjs> Can ruby do that?
Vitor has joined #ruby
<hanmac> ninjs: why not? ruby can nail a pudding on the wall ;P
Vitor has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hanmac> shevy: "for ruby everything is a nail-object" ;P
<ninjs> But can it do it for all of the files in a folder? So take all the files in FolderX/FolderY/... and move them to FolderX/FolderName/.. for each file?
cpt_yossarian has joined #ruby
mjuszczak has quit []
<havenwood> ninjs: yes
<catcher> hanmac, you should commit a pudding nailer here: https://github.com/illacceptanything/illacceptanything
cpt_yossarian has quit [Remote host closed the connection]
cpt_yossarian has joined #ruby
<ninjs> Can anyone point me in the right direction for resources to do that?
<ninjs> Besides google.com :P
merqlove has quit [Quit: Connection closed for inactivity]
<jhass> Igorshp: this goes into chefs internals, so #chef should be the better place
grindmodeon has quit [Quit: Leaving.]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
<work_op> whats the purpose of an object having both __id__ and .hash? whats the difference?
Darryl___ has quit [Quit: Connection closed for inactivity]
danman has quit [Quit: danman]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
ta has joined #ruby
<hanmac> ninjs: checkout Dir::[] for globing the files like with "*/*/*" or something like that, use "File.foreach(s).first" to get the first line, use FileUtils::mv to move the files into a new folder
sgambino has quit [Remote host closed the connection]
<jhass> ninjs: Dir[], File.read, String#[] with a regex, Array#map, Enumerable#group_by, FileUtils.cp/.mv
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
redbaritone has joined #ruby
<ytti> work_op, object_id is unique id for given object
Megtastique has joined #ruby
<ytti> work_op, hash is hash of the values of object
Megtastique has quit [Max SendQ exceeded]
<ninjs> thanks!
<ytti> work_op, 'moi' and 'moi' have different object_id but same hash
<work_op> i see
<jhass> >> ["foo".hash, "foo".hash, "foo".object_id, "foo".object_id] # work_op
<ruboto> jhass # => [564976639, 564976639, 544003120, 544004030] (https://eval.in/313014)
<hanmac> work_op: also object_id is implementation/runtime specific, while hash is content specific
redbaritone has quit [Client Quit]
<kq_away_> okay
<work_op> so an object will retain the same id, but its hash could change over time, right?
Megtastique has joined #ruby
blackmes1 has joined #ruby
<jhass> well, hash is not stable across ruby processes
<work_op> if its values are modified
thumpba has joined #ruby
<ytti> yes
<work_op> ok
sgambino has joined #ruby
<kq_away_> jhass: fn is plenty descriptive for me :P https://gist.github.com/KrzaQ/d267078ec144dccaa98c
michaeldeol has joined #ruby
Igorshp has quit [Remote host closed the connection]
<jhass> kq_away_: for now you, future you will curse now you though ;)
<hanmac> work_op: about implementation specific, there is FLONUM which does gives Float numbers fixed object Ids under 64 bit, (and also does move some other ids around) so you may never depend on specific object ids
blackmes1 has quit [Client Quit]
amdbcg1 has joined #ruby
Nuck has joined #ruby
tvon has quit [Quit: Lost terminal]
amdbcg has quit [Read error: Connection reset by peer]
<kq_away_> I dunno. The past me used short names in one-liners and I don't hate him for that
<baweaver> kq_away_: except fn is usually short for function.
Nuck has quit [Max SendQ exceeded]
<baweaver> which will at least confuse others.
<hanmac> kq_away_: the select and the reject block might be combined into one select block .. imo
Nuck has joined #ruby
Nuck has quit [Max SendQ exceeded]
<kq_away_> fair enough, bewe
<kq_away_> err
<kq_away_> baweaver*
chrishough has joined #ruby
Nuck has joined #ruby
<baweaver> also 8 space indentation is a bit severe, most people tend to use 2 in Ruby.
<baweaver> 4 in Python
Megtastique has quit [Ping timeout: 245 seconds]
amdbcg1 has quit [Read error: Connection reset by peer]
amdbcg has joined #ruby
<kq_away_> it's how gist handles tabs
<baweaver> might want to translate that to spaces.
gfawcettpq has quit [Ping timeout: 252 seconds]
<hanmac> imo i also use tabs in some of my projects because it does makes more sense for me (and most of my programs does handle them better)
vim_shimm has joined #ruby
shadoi1 has joined #ruby
cabouffard has joined #ruby
<baweaver> How's that?
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> because at least in the case of Rubymine, Vim, and Sublime spaces are perfectly usable, and that's most of the ruby community right there.
bim has joined #ruby
bim is now known as Guest38973
<hanmac> some have problems with when i want to remove a line or an indention so i allways need to remove two spaces instead of one tab for one indent level
thatslifeson has joined #ruby
last_staff has joined #ruby
<shadoi1> tabs are evil. :)
Zamyatin has joined #ruby
<hanmac> also i need IDEs which does support more languages at the same time simultaniously ... and most bigger ones (specially where you need to pay for) does have many problems with that
axilla has joined #ruby
<kq_away_> I'm pro-tabs
<kq_away_> and camel case
<adaedra> KqAway
aghalarp has joined #ruby
Kricir has quit [Remote host closed the connection]
<shadoi1> kq_away_: you'll hate 99% of all ruby code then.
jenrzzz has quit [Ping timeout: 246 seconds]
<hanmac> Camels should stay in the desert ;P
meschiv2 has joined #ruby
<kq_away_> I have no problems with people using tabs
<kq_away_> err
<kq_away_> spaces
<hanmac> then you get classes like the java- poisoned AR/AS like with HashWithThatVeryToLongName
sankaber has joined #ruby
<havenwood> two-space soft-tabs!
<adaedra> too narrow.
charliesome has joined #ruby
<kq_away_> adaedra: funny thing: irssi nickalerted me about 'KqAway'
<adaedra> :D
krisquigley has joined #ruby
Megtastique has joined #ruby
davedev24_ has quit [Ping timeout: 240 seconds]
davedev24_ has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
icebourg has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
mary5030_ has joined #ruby
amdbcg has quit [Read error: No route to host]
User458764 has joined #ruby
amdbcg has joined #ruby
lanemeyer has quit [Ping timeout: 256 seconds]
krisquigley has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
Zai00 has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
lkba has joined #ruby
justin_pdx has joined #ruby
lidenskap has quit [Remote host closed the connection]
DEA7TH has joined #ruby
linoj has joined #ruby
riceandbeans has joined #ruby
dfinninger has quit [Remote host closed the connection]
numberten has joined #ruby
Guest38973 has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
Guest26 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Hounddog_ has quit [Ping timeout: 264 seconds]
ag4ve has joined #ruby
<ag4ve> how do i check a module is installed and what that version is from the command line?
shevy has quit [Ping timeout: 276 seconds]
The_Phoenix1 has quit [Read error: Connection reset by peer]
<adaedra> a module ?
frem has joined #ruby
<adaedra> do you mean a gem?
<toretore> gem search -l <name>
tvw has joined #ruby
dfinninger has joined #ruby
<hanmac> ag4ve: "gem list <name>" does list all installed versions if you want that
amdbcg has quit [Read error: No route to host]
<hanmac> ag4ve: Gem::Specification.find_all_by_name is the ruby variant to search for them
davejacobs has joined #ruby
<ag4ve> i think gem search -l is what i want, thanks
amdbcg has joined #ruby
Megtastique has quit [Ping timeout: 246 seconds]
DerisiveLogic has joined #ruby
stef204 has joined #ruby
Lloyd is now known as lloyd
antgel has joined #ruby
Contigi has joined #ruby
dfinninger has quit [Ping timeout: 264 seconds]
quimrstorres has joined #ruby
Morkel has quit [Quit: Morkel]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
wald0 has quit [Quit: Lost terminal]
Hijiri has quit [Ping timeout: 265 seconds]
Megtastique has joined #ruby
neanderslob has joined #ruby
noober03 has quit [Quit: Page closed]
linoj has quit [Quit: linoj]
hiyosi has joined #ruby
DrForr has joined #ruby
dfinninger has joined #ruby
sinkensabe has joined #ruby
Megtasti_ has joined #ruby
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest26 has joined #ruby
mjuszczak has joined #ruby
mtakkman has joined #ruby
meschiv2 has quit [Ping timeout: 245 seconds]
Megtastique has quit [Ping timeout: 264 seconds]
kyrylo has quit [Ping timeout: 256 seconds]
Guest26 has quit [Client Quit]
dfinning_ has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
zorak8 has quit [Ping timeout: 272 seconds]
_ixti_ has joined #ruby
prphp has quit [Quit: Textual IRC Client: www.textualapp.com]
Hijiri has joined #ruby
regnartim has quit [Quit: Leaving]
delianides has joined #ruby
lewix has joined #ruby
ixti has quit [Ping timeout: 264 seconds]
ghostmoth has quit [Quit: ghostmoth]
benegget_ has joined #ruby
beneggett has quit [Ping timeout: 245 seconds]
Rachok has quit [Remote host closed the connection]
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
urbanendeavour has joined #ruby
djbkd has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
Narzew has joined #ruby
robertt_dex has joined #ruby
baweaver has quit [Remote host closed the connection]
silentpost has joined #ruby
cjim_ has quit [Quit: (null)]
roshanavand has joined #ruby
matrixise has left #ruby [#ruby]
baweaver has joined #ruby
benegget_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
cjim_ has joined #ruby
govg has joined #ruby
Crisix has quit [Quit: Textual IRC Client: www.textualapp.com]
Beoran__ has quit [Remote host closed the connection]
silentpost has quit [Ping timeout: 245 seconds]
beneggett has joined #ruby
amdbcg has quit [Read error: No route to host]
Nanuq has quit [Ping timeout: 272 seconds]
chinmay_dd has joined #ruby
Beoran has joined #ruby
amdbcg has joined #ruby
inavele has joined #ruby
Rickmasta has quit [Ping timeout: 244 seconds]
xenokiller has joined #ruby
shevy has joined #ruby
Rickmasta has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
davejacobs has quit []
Megtasti_ has quit []
Boondox has quit []
amdbcg has quit [Read error: No route to host]
ndrei has joined #ruby
amdbcg has joined #ruby
bim has joined #ruby
bim is now known as Guest10393
horsecow_ has quit [Remote host closed the connection]
xenokiller has quit [Ping timeout: 264 seconds]
Megtastique has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
Jiyuhen has quit [Ping timeout: 250 seconds]
Jiyuhen has joined #ruby
stef204 has quit [Read error: Connection reset by peer]
Guest26 has joined #ruby
Beliq has joined #ruby
Megtasti_ has joined #ruby
Megtasti_ has quit [Max SendQ exceeded]
momomomomo has joined #ruby
Megtasti_ has joined #ruby
x1337807x has joined #ruby
zachrab has joined #ruby
zachrab has quit [Remote host closed the connection]
cabouffard has quit [Ping timeout: 272 seconds]
juanpaucar has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
mjuszczak has quit []
Megtastique has quit [Ping timeout: 272 seconds]
stef204 has joined #ruby
odin23 has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
Beliq has quit [Client Quit]
Pupeno has joined #ruby
jenrzzz has joined #ruby
Pharaoh2 has quit [Disconnected by services]
Pharaoh2_ has joined #ruby
odin22 has quit [Ping timeout: 252 seconds]
Beliq has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lidenskap has joined #ruby
juanpaucar has quit [Ping timeout: 265 seconds]
ta has quit [Remote host closed the connection]
inavele has quit [Ping timeout: 265 seconds]
decoponio has quit [Quit: Leaving...]
cjim_ has quit [Quit: (null)]
casshern2 has joined #ruby
yalue has quit [Quit: return 0;]
luluapple has joined #ruby
sigurding has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
roshanavand has quit [Remote host closed the connection]
xenokiller has joined #ruby
cabouffard has joined #ruby
fabrice31 has joined #ruby
bluOxigen has joined #ruby
greenbagels has joined #ruby
cjim_ has joined #ruby
riotjones has joined #ruby
michaeldeol has quit [Ping timeout: 244 seconds]
JDiPierro has quit [Remote host closed the connection]
<ninjs> can't you do like next if File.exname(file) != '.xls' || '.xlsx' ?
amdbcg has quit [Ping timeout: 255 seconds]
<eam> ninjs: no, you can't
<ninjs> that wasn't a response to anyone, just a question
<spider-mario> you can in perl6
<ninjs> how do i do or?
<eam> next if File.exname(file) != '.xls' || File.exname(file) != '.xlsx'
<spider-mario> I might use a regex in this case
<eam> or a regex, yeah
<spider-mario> file =~ /\.xlsx?$/ or next
<eam> ninjs: or you can use include
Rapier- has quit [Quit: (null)]
<eam> >> %w{xls xlsx}.include? "xls"
<ruboto> eam # => true (https://eval.in/313028)
sigurding has quit [Quit: sigurding]
vim_shimm has quit [Ping timeout: 245 seconds]
<ninjs> could I just do two next if's?
<eam> ninjs: yes
fabrice31 has quit [Ping timeout: 265 seconds]
<ninjs> like next if File.extname(file) != '.jpg' then next line next if File.extname(file) != '.png'
riotjones has quit [Ping timeout: 250 seconds]
graydot has joined #ruby
DerisiveLogic has quit [Read error: Connection reset by peer]
A205B064 has joined #ruby
<spider-mario> that would skip every iteration
<spider-mario> the extension cannot be both jpg and png
<ninjs> oh you're right
mengu has joined #ruby
Pharaoh2_ is now known as Pharaoh2
elaptics is now known as elaptics_away
<eam> ah, read that as ==
vt102 has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
meschiv2 has joined #ruby
<bricker> spider-mario: not with that attitude!
<spider-mario> :p
pagios has quit [Ping timeout: 246 seconds]
<ytti> extension in superpositio?
<spider-mario> well, technically, if a thread modified `file` at just the right time…
<spider-mario> right between the nexts
<eam> or just redefine equality
Dairenn_ has joined #ruby
<spider-mario> you’re right, I’m not thinking monkey enough
robertt_dex has quit [Remote host closed the connection]
gusrub has quit [Quit: Leaving]
<riceandbeans> equality, when something is kinda like something else, or has at least one common attribute
Zamerick has quit [Read error: Connection reset by peer]
<spider-mario> new rule: two strings are equal iff they share at least one common character
<spider-mario> "abc" == "bfm"
<spider-mario> I should submit this idea to php
momomomomo has quit [Quit: momomomomo]
musashi has joined #ruby
ki0 has quit [Remote host closed the connection]
Dairenn_ is now known as Dairenn
<eam> >> class String; def ==(a); true; end; end; "a" == "b"
<ruboto> eam # => true (https://eval.in/313029)
zorak8 has joined #ruby
chinmay_dd has quit [Quit: Leaving]
meschiv2 has quit [Read error: Connection reset by peer]
ki0 has joined #ruby
<Dairenn> I keep getting the old version of a gem (from the same git branch) that, in spite of being deleted from the bundler gems directory and gem cache, when I run bundle install, it somehow gets back the version of the gem committed before the most recent commit to the repo on the origin server. What am I missing here?
iasoon has quit [Ping timeout: 245 seconds]
lewix has quit [Remote host closed the connection]
prphp has joined #ruby
vim_shimm has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<jhass> Dairenn: bundle update gem_name
* Dairenn nods.
boustnt has joined #ruby
sinkensabe has joined #ruby
<boustnt> 1+1
<Dairenn> jhass: You're a superstar. Thanks for that.
<jhass> yw
<jhass> Dairenn: read (do not edit it by hand) your Gemfile.lock for the why
<havenwood> boustnt: # => 2
RegulationD has quit [Remote host closed the connection]
<Dairenn> Aha!!
* Dairenn feels lame for forgetting about this...
yfeldblum has quit [Remote host closed the connection]
<Dairenn> Seriously, I was looking at this file 10,000 times 3 weeks ago for a similar issue.
<ninjs> next if File.extname(file) != '.xls' || File.extname(file) != '.jpg' isn't working
ebbflowgo has quit [Read error: Connection reset by peer]
colorisco has quit [Quit: colorisco]
ebbflowgo has joined #ruby
<ramfjord> Any of you guys use Resque? I'm trying to test a Resque job that goes through the working jobs, and kills/retries certain ones that it thinks is hung
aspiers_ has joined #ruby
<ramfjord> I'm having a little trouble getting a worker to be registered and working in a separate thread in the tests
<ytti> next unless %( .xls .jpg ).any? { |ext| File.extname ext }
jheg has quit [Quit: jheg]
<ytti> or something to that note
aspiers has quit [Ping timeout: 256 seconds]
naftilos76 has joined #ruby
meteor22322 has joined #ruby
<pipework> ramfjord: Why test that?
<pipework> Seems like something that's already tested by resque.
<naftilos76> Can anybody please have a look at this: https://gist.github.com/anonymous/2437fa18051428f3b781
meteor22322 has quit [Client Quit]
vt102 has joined #ruby
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
meschi has joined #ruby
<naftilos76> pipework? Can you pls have a look?
<boustnt> naftilos perhpa
Pupeno has quit [Remote host closed the connection]
Filete has joined #ruby
<boustnt> naftilos perhaps you try to create a file in a directory you don't have permission to create files in, using File.new error can't open
<naftilos76> it works if i remove the daemons-related lines
Pupeno has joined #ruby
<naftilos76> no no
<naftilos76> i have full permissions
RegulationD has joined #ruby
<naftilos76> it is in my ~
benegget_ has joined #ruby
casshern2 has quit [Ping timeout: 245 seconds]
kirun has quit [Quit: Client exiting]
Rephiax has quit []
<naftilos76> as i said it works fine if i remove the daemons related block lines
greenbagels has quit [Read error: Connection reset by peer]
Dakuan has quit []
DerisiveLogic has quit [Remote host closed the connection]
<ninjs> what about this?
<naftilos76> any ideas?
beneggett has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
Guest26 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ramfjord> pipework: for if the interface on Resque::Worker ever breaks
axl__ has joined #ruby
<boustnt> naftilos, do filename change the directory?
<ramfjord> I guess I'm going to go the lazy road at this point though
<pipework> ramfjord: Why not test the interface then?
<naftilos76> no, it does not make any chages to any dir
vdamewood has joined #ruby
<boustnt> can you print filename?
<ramfjord> you mean something like Resque::Worker.new.respond_to? :balh?
delianides has quit [Remote host closed the connection]
silentpost has joined #ruby
<naftilos76> /home/naftilos76/rails/cp/scripts/test.rb.time
Guest26 has joined #ruby
Pupeno has quit [Ping timeout: 250 seconds]
gusrub has joined #ruby
<riceandbeans> I think the === in PHP is ridiculous
<shevy> :)
<boustnt> naftilos verify if the path is correct, perhaps there is some component missing in the dir
vim_shimm has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
<shevy> PHP was created on the first april of 1995
<shevy> and it shows
<hanmac> riceandbeans: just be happy that they didnt had ===== yet ;P
<adaedra> :D
axl_ has quit [Ping timeout: 272 seconds]
axl__ is now known as axl_
<naftilos76> boustnt: i just tried changing the filename from test.rb.time to test.time and it worked fine
vim_shimm has joined #ruby
<naftilos76> thanks for the comment
catcher has quit [Quit: Leaving]
<shevy> Ok... not first april... a fe weeks later... "Lerdorf, Rasmus (2007-04-26)" but still, he must have been thinking about it on first april!
<shevy> *few weeks
jheg has joined #ruby
<ninjs> Okay, I think I did it. This script takes files named like "John Doe File.ext" and moves them to "../John Doe/John Doe File.ext" what do you think?
<boustnt> naftilos, at least you know is related to filename.
<boustnt> disclaimer, beginner ruby here
djbkd has quit [Ping timeout: 276 seconds]
GeorgeThompson has quit [Ping timeout: 248 seconds]
silentpost has quit [Ping timeout: 264 seconds]
pdoherty has quit [Quit: Leaving]
<shevy> \o/
luluapple has quit [Quit: ZNC - http://znc.in]
<shevy> we train you to become a ruby guru in no time
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shazaum has quit [Quit: Leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jheg has quit [Client Quit]
ldnunes has quit [Quit: Leaving]
<boustnt> ninjs, what's the problem?
<ninjs> boustnt: No real problem, just wanted to get a 2nd set of eyes on it to see if I was doing anything crazy wrong
werelivinginthef has joined #ruby
<ninjs> The biggest problem is that the script has to be executed from the working directory, because of how FileUtils treat the working directory
<adaedra> Use chdir
paulcsmith has quit [Quit: Be back later ...]
<shevy> \o/
<shevy> go ninja go!
<ninjs> That's my first real "ruby app" haha
ddarkpassenger has quit [Quit: Leaving]
<ninjs> other than some silly little test stuff
n80_ has quit [Quit: n80_]
skullz has joined #ruby
<shevy> file manipulation and directory manipulation is quite easy
djbkd has joined #ruby
brb3 has quit [Quit: <.<]
amdbcg has joined #ruby
XorSwap has joined #ruby
<boustnt> bye
<shevy> you have some redundancy too; for instance. File.delete, but FileUtils also have delete (sort of; .rm and I think rm_rf, which should both work on files too if I remember correctly)
boustnt has left #ruby [#ruby]
claw___ has quit [Ping timeout: 244 seconds]
<adaedra> FileUtils looks like a ”Ruby-ation” of UNIX common file commands
<pipework> Rubyification, you mean?
<pipework> I'm more a fan of Pathna,e.
<pipework> Pathname
<adaedra> Thanks, pipework
<adaedra> I couldn’t find how to assemble it
meschi has quit [Ping timeout: 264 seconds]
vt102 has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
meschi has joined #ruby
krisquigley has joined #ruby
spyderman4g63 has joined #ruby
iasoon has joined #ruby
spyderman4g63 has quit [Client Quit]
Guest26 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest26 has joined #ruby
<shevy> pathname is pretty verbose
mhib has joined #ruby
<shevy> adaedra why are you not undeadra now
djbkd has quit [Remote host closed the connection]
<jhass> Don't forget Shell!
neanderslob_ has joined #ruby
<adaedra> shevy: I got disconnected from freenode and adaedra is my primary nick
quesker has joined #ruby
<havenwood> >> require 'shell'
<ruboto> havenwood # => true (https://eval.in/313031)
<pipework> shevy: I don't know, it's pretty nice.
cjim_ has quit [Quit: (null)]
<pipework> >> $:
<ruboto> pipework # => ["/execpad/interpreters/ruby-2.2.0/lib/ruby/site_ruby/2.2.0", "/execpad/interpreters/ruby-2.2.0/lib/ ...check link for more (https://eval.in/313032)
<pipework> >> $LOADED_FEATURES
<ruboto> pipework # => ["enumerator.so", "rational.so", "complex.so", "/execpad/interpreters/ruby-2.2.0/lib/ruby/2.2.0/i686 ...check link for more (https://eval.in/313033)
djbkd has joined #ruby
GaryOak_ has joined #ruby
<skullz> Does Cobweb play well with URL parameters?
<quesker> some guy told me to use bundler. I became root, did gem install bundler. then bundle install. it says don't run bundle as root. but as a user I don't have permission to install gems, obviously
amdbcg has quit [Ping timeout: 250 seconds]
vim_shimm has quit [Ping timeout: 255 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
krisquigley has quit [Ping timeout: 246 seconds]
<pipework> quesker: 'obviously'?
<jhass> bundler asks for sudo as needed
<pipework> You can write to any filesystem anywhere?
<pipework> can't*
<jhass> and also can install gems to a local site dir with the --path option
<pipework> Damn dog keeps 'helping' me with her paw.
<jhass> and respects whatever location you set with $GEM_HOME
<GaryOak_> or you can use a ruby version manager to help with that
<jhass> so yeah, don't just run stuff as root
<quesker> so just don't use bungler it sounds like. I want to install for everyone
<GaryOak_> lolz bungler
<pipework> quesker: Whale, you can put the file where you want, just use it correctly.
pika_pika has quit [Ping timeout: 245 seconds]
babykosh has joined #ruby
<jhass> bundler is for managing a projects dependencies, it's not a rubygems replacement
FernandoBasso has joined #ruby
<jhass> if somebody told you that, give them a slap
fedexo has joined #ruby
<quesker> I guess I could install sudo. ugh
<pipework> quesker: It's like you're ignoring us here. :D
<GaryOak_> do people still like rvm?
<adaedra> you can also use --path to install gems in the local directory
<pipework> I use chruby and ruby-install
<jhass> GaryOak_: people still go to war ... so
<GaryOak_> hahaha
<GaryOak_> pipework: I've been using chruby as well
<quesker> I understand modules can be installed per user, but I would prefer to just install them to /usr/lib/ruby like everything else
<pipework> quesker: Sure, just use `sudo gem install <gem>`
<GaryOak_> quesker: they are called gems, modules mean something different in ruby
<quesker> oh ok sorry
<shevy> module in ruby is like: module Foo <-- now we have defined the module Foo
claw___ has joined #ruby
<shevy> the gems typically reside in a directory called gems/
toretore has quit [Quit: Leaving]
zzing has joined #ruby
<quesker> yeah I didn't type the whole long path sorry /usr/lib/ruby/gems/2.1.0
Guest26 has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> For instance, here on my system one directory is at /usr/lib/ruby/gems/2.2.0/gems/
<pipework> quesker: Anyways, if you just want to provide a bunch of gems to your users, just use install the gems as root such that they arrive in the shared location.
<shevy> It is also possible to install into the home-directory
DerisiveLogic has joined #ruby
<dudedudeman> ;
rgb-one has joined #ruby
silentpost has joined #ruby
julieeharshaw has quit [Quit: ZZZZZzzzz]
<quesker> right I see. I just thought bundler was supposed to install all the deps for me real nice, but it tries to be too smart about root I guess
<quesker> thanks for the help, I see what I need to do
<dudedudeman> does anyone use pidgin for their IRC client?
<dudedudeman> i'm stumped as to what to actually put in for the server here
uri__ has quit [Ping timeout: 256 seconds]
<quesker> either install sudo or just use gem install directly
<jhass> I actually did until I sat down and learned weechat
<rgb-one> dudedudeman: irc.freenode.net
<pipework> jhass: mm weechat
<GaryOak_> I'm using a mac client
<dudedudeman> eh, it gives me a remote server not found error when i use that server
julieeharshaw has joined #ruby
meschi has quit [Ping timeout: 240 seconds]
skullz has quit [Ping timeout: 272 seconds]
<jhass> dudedudeman: chat.freenode.net then
<dudedudeman> i'm at work, so i'm stuck with what my sysadmin will put on my machine
<dudedudeman> lol
silentpost has quit [Read error: Connection reset by peer]
<jhass> well, you can always toast :P
<dudedudeman> toast? go on....
ghostmoth has joined #ruby
lanemeyer has joined #ruby
<pipework> Toast seems neat enough
jerius has quit [Ping timeout: 245 seconds]
Pharaoh2 has quit [Excess Flood]
sami__ has joined #ruby
meshugga1 has joined #ruby
destruct1re has joined #ruby
<sanguisdex> how would I find the key of arr[]['foo']['name'] where name = 'bar'?
ezra_ has joined #ruby
<jhass> sanguisdex: that's not clear, try to rephrase please
<pipework> sanguisdex: Array's documentation, probably.
<jhass> add some context too
<pipework> And Enumerable
<dudedudeman> does seem neat, but man... i'm lazy. lol
grindmodeon has joined #ruby
<pipework> dudedudeman: Isn't that part of the point though?
skullz has joined #ruby
silentpost has joined #ruby
<dudedudeman> to use toast to be lazy?
p8952 has quit [Excess Flood]
sgambino has quit [Remote host closed the connection]
sami has quit [Remote host closed the connection]
ezra has quit [Write error: Broken pipe]
meshugga has quit [Write error: Broken pipe]
destructure has quit [Write error: Broken pipe]
p8952 has joined #ruby
<jhass> toast is basically a thin wrapper around modifying PATH, LD_LIBRARY_PATH and ./configure, make, make install DEST="~/.my_stuff/foo"
kaleido has joined #ruby
dudedudeman is now known as dudedudemanchang
<dudedudemanchang> that was supposed to be dudedudemanchanging....
<dudedudemanchang> but it looks like there's a char limit on that that ended up being rather unfortunate
<jhass> being not so actively developed anymore it lacks github support though
aryaching has quit [Ping timeout: 250 seconds]
jimms has joined #ruby
fedexo has quit [Read error: Connection reset by peer]
Pharaoh2 has joined #ruby
dudedudeman1 has joined #ruby
<adaedra> dudedudemanchang: yes, there’s a limit on nick names
<dudedudeman1> no worries, i figured this bad boy out!
<dudedudeman1> aw.. i'm dude dude man 1 now
dudedudemanchang has quit [Quit: Page closed]
<dudedudeman1> but wait, i'm still here!
babykosh has quit [Quit: babykosh]
<shevy> so dude man
rgb-one has quit [Remote host closed the connection]
Blackhole has joined #ruby
<shevy> did you write some ruby code dude?
<dudedudeman1> shevy: yes?
<dudedudeman1> man, i'm trying. i'm stuck on stuff of course
<shevy> good!
<skullz> Does Cobweb play well with URL parameters?
<shevy> we are all stuff... I mean stuck
<shevy> I am trying to find out why my gcc no longer compiles gtk+
codecop has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 248 seconds]
<dudedudeman1> see, you said some words, and i understood some of those words... like, find, and out
rbennacer has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
naftilos76 has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
zachrab has joined #ruby
fryguy9 has joined #ruby
reinaldob has quit [Remote host closed the connection]
tercenya has quit [Read error: Connection reset by peer]
<zachrab> How can i get a cucumber test suite to run everyday at 3pm?
Hijiri has quit [Quit: WeeChat 1.0.1]
<dudedudeman1> zachrab: i would say that a cron job might work for that
<dudedudeman1> or maybe delayedjob?
<crowell> cron
cabouffard has quit [Ping timeout: 256 seconds]
<zachrab> dudedudeman1: use a gem?
<adaedra> +1 for cron
<skullz> Does anyone know a good gem for web crawling?
<jhass> zachrab: man systemd.timer
<shevy> dudedudeman1 well, gcc is just used to compile lots of software on linux systems in particular; written in different programming languages like C C++ ObjC
tercenya has joined #ruby
Rickmasta has joined #ruby
<crowell> Or the gem 'whenever'
havenwood has quit []
<dudedudeman1> whenever is nice
<kaleido> complements whatever very nicely, too
havenwood has joined #ruby
<dudedudeman1> shevy: that's neat! learn something new every day
<jhass> did somebody write a systemd.timer backend for it yet?
<jhass> that might actually be a fun and useful project
cabouffard has joined #ruby
GnuYawk has joined #ruby
<shevy> dudedudeman1 I'd wish things would be written in ruby, they would be so much easier to understand and use
jimms has quit [Remote host closed the connection]
<dudedudeman1> i'm definitely learning that the phrase 'elegant ruby' is truly true
<dudedudeman1> it does not return :nil
<dudedudeman1> lol
<sanguisdex> is there a way to get ruby to output an array or has in a formated way (on command line). I am currently using p and that is less parsable by my eyes). like an equivalent of PHP's var_export
casshern2 has joined #ruby
<dudedudeman1> sanguisdex: would a regex fit for that?
akurilin3 has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
cartothemax has joined #ruby
<dudedudeman1> man, i wish i could turn off the entered and left the room notifications
<dudedudeman1> is that possible?
<jhass> sanguisdex: require "pp"; pp array
<sanguisdex> dudedudeman1: I don't think so I am just looking for a nested array/hash output as opposed to the single line string output that p provides
astrobunny has joined #ruby
baweaver has quit [Remote host closed the connection]
akurilin3 has joined #ruby
<dudedudeman1> sanguisdex: ah ah. word. i may or may not have completely mis-read your question.... don't midn me
<dudedudeman1> lol
<jhass> sanguisdex: and next up as a gem: gem install awesome_print; require "ap"; ap array
<havenwood> sanguisdex: Or if pp doesn't have what you're looking for take a look at ap from the awesome_print gem or other gems.
DerisiveLogic has quit [Remote host closed the connection]
cjim_ has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
cabouffard has quit [Ping timeout: 246 seconds]
werelivinginthef has quit [Remote host closed the connection]
<shevy> dudedudeman1 ruby can be elegant; it can however also be ugly, if the person who wrote it isn't disciplined or sloppy :)
mhib has quit [Quit: Leaving]
<sanguisdex> havenwood: pp is perfect, I was not aware of it.
fedexo has joined #ruby
prphp has quit [Quit: Textual IRC Client: www.textualapp.com]
failshell has joined #ruby
mhib has joined #ruby
<sanguisdex> thans dudedudeman1 and jhass fo the help as well
<dudedudeman1> hey, glad you found something! nothing better than finding an answer to your problem
cjim_ has quit [Client Quit]
Hijiri has joined #ruby
<pipework> Except finding the right answer to everyone's problem(S)
dudedudeman1 is now known as dudedudeman
<shevy> I just found out the culprit, a stray libpango.a file without DSO/-fPIC (or respectively, not only libpango.a but also some *pango*.so* files too)
<shevy> ruby-gnome here I come!
Blackhole has quit []
Igorshp has joined #ruby
<FernandoBasso> I have a Guardfile that generate asciidoctor documents from several (1 level deep) subdirectories. ./foo/ , ./bar/, etc. There is a line like `watch(/^foo\.adoc$/ | m | ...` I would like to be able to watch files in those subdirs. Any help would be appreciated.
tjbiddle has quit [Quit: tjbiddle]
<dudedudeman> man, i love the amount of different questions we get in here
<jhass> FernandoBasso: /^(?:foo|bar) ?
failshel_ has joined #ruby
jottr has joined #ruby
<sanguisdex> so back to my original question.
benegget_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachrab has quit []
<sanguisdex> I am trying to isolate the key of the the subarray that has the 'name' => 'bar' . https://gist.github.com/sanguis/02df44c6fd9f24cf0e91
baweaver has joined #ruby
failshell has quit [Ping timeout: 256 seconds]
<FernandoBasso> jhass: Almost. Thanks. I'm tweaking it.
Dairenn has quit [Remote host closed the connection]
<sanguisdex> also I am having trouble with some of the terminology between arrays and hashs, so I may have just asked a useless question
<jhass> FernandoBasso: yeah, was meant to only show the important part ;)
cabouffard has joined #ruby
<ninjs> how do I get a variable out of an each loop?
<FernandoBasso> :) Fair enough!
mrmargolis has quit [Remote host closed the connection]
<ninjs> so I have like a worksheet.each do |row| loop that stores cell values as variables. I need to take those values, put them on a new row, per row loop
<jhass> sanguisdex: hash: map some arbitrary key to some arbitrary value. Array: ordered list/sequence of some arbitrary values
<jhass> ninjs: Array#map
mhib has quit [Remote host closed the connection]
jottr_ has joined #ruby
<jhass> sanguisdex: so you have an array of hashes there
<jhass> you want an array of all names?
dudedudeman has quit [Quit: Leaving.]
axl_ has quit [Quit: axl_]
dfinning_ has quit [Remote host closed the connection]
<havenwood> sanguisdex: Is the desired output `["bar", "foo"]` or something else?
djbkd has quit [Remote host closed the connection]
<sanguisdex> jhass: I want search the array return the key of the nested hash that has the "name"=>"bar" in it
jottr has quit [Ping timeout: 264 seconds]
<jhass> ah
<jhass> with key you mean index?
<jhass> or do you want the entire hash?
Narzew has quit [Ping timeout: 250 seconds]
<jhass> .find {|server| server["server_environment"]["name"] == "bar" } gives the full hash
<havenwood> sanguisdex: Show us the return value you want.
<jhass> to get the index replace find with index
* sanguisdex is updating the gist
<FernandoBasso> Any improvement can be recommended? https://gist.github.com/FernandoBasso/dbc05815fe3d194f9560
rhllor has quit [Quit: rhllor]
jlast has quit [Remote host closed the connection]
Beliq has quit [Quit:
snockerton has quit [Quit: Leaving.]
<sanguisdex> havenwood: jhass: https://gist.github.com/sanguis/02df44c6fd9f24cf0e91 updated with some logic
<ninjs> jhass: I'm not sure what you mean. I looked into the map method of Array.. didn't really see anything useful
odin24 has joined #ruby
happyface has quit [Quit: Connection closed for inactivity]
jlast has joined #ruby
nszceta has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> maybe I don't get what you want then
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<havenwood> FernandoBasso: On line 13 just `puts arr` since #puts already does #to_s.
<jhass> sanguisdex: let's approach it differently: What do you need the index for?
<FernandoBasso> havenwood: Thanks.
fryguy9 has quit [Quit: Leaving.]
Rollabunna has quit [Remote host closed the connection]
<havenwood> FernandoBasso: There's no point that I know of for the -U flag line 1 without params.
<sanguisdex> I need to be able to extract peer data from the hash with the name foo
Axy has joined #ruby
Axy has joined #ruby
<jhass> sanguisdex: to print the name you used to find it? That doesn't seem to be a whole lot useful...
<sanguisdex> jhass:
Mia has quit [Read error: Connection reset by peer]
pika_pika has joined #ruby
Nuck has quit [Quit: Computer has gone to sleep.]
chintanparikh has joined #ruby
<havenwood> FernandoBasso: I'd use the `in_place: true` syntax since your keys are Symbols.
odin23 has quit [Ping timeout: 264 seconds]
<jhass> sanguisdex: I think the .find I posted earlier is what you ant
<jhass> *want
beneggett has joined #ruby
mengu has quit [Remote host closed the connection]
<jhass> sanguisdex: try it in irb or pry
<jhass> ninjs: why don't you open the target file above and add the rows to it in the .each loop?
<chintanparikh> if I have every field for a TCP header (http://www.thebryantadvantage.com/images/TCP%20Header.jpg) in an array and I want to turn it into the actual header string using Array.pack, how would I do that?
astrobunny has quit [Remote host closed the connection]
<chintanparikh> I guess a better question is I have certain values in an array and I want to fit them in a string so they only take up a certian amount of bytes
<ninjs> how do I do an each loop in the .each loop? if that makes sense
<jhass> chintanparikh: you would read for example the RFC for the wire format and pass a format string to pack that matches it
<ninjs> jhass: the rows should be 1:1. So read from row 1, print in row 1
<jhass> ninjs: why would you need to?
<ninjs> So I could do something like...
<havenwood> FernandoBasso: I prefer `arr.first`, just a method, to `arr[0]`, a method with an argument--unless it's for aesthetic uniformity.
<chintanparikh> jhass: Think you could help me figure out the format string? My actual header is a little different from the TCP header but I can't figure out the format string
JDiPierro has joined #ruby
juanpaucar has joined #ruby
<jhass> ninjs: I don't know the API of the gem you're using, but doesn't something like http://paste.mrzyx.de/pbhaimank work?
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
<jhass> chintanparikh: what did you try so far? where exactly are you stuck? what exactly do you not understand?
pandaant has joined #ruby
<chintanparikh> jhass: Gimme a few, figuring out exactly what this header looks like
lewix has joined #ruby
<ninjs> jhass: that link didn't resolve for me
<jhass> huh
amdbcg has joined #ruby
reinaldob has joined #ruby
<FernandoBasso> havenwood: Okay. Thanks.
mikecmpbll has quit [Quit: i've nodded off.]
<ninjs> jhass: what I meant is, I couldn't access that link haha
snockerton has joined #ruby
<jhass> ninjs: what's the error?
froots has quit [Read error: Connection reset by peer]
<ruboto> ninjs, we in #ruby do not like irccloud.com, I reposted your paste to gist for you: https://gist.github.com/da4e55589d94adab0acb
<ruboto> irccloud.com has no syntax highlighting, distracting formatting and loads slowly for most.
<sanguisdex> jhass: that worked thanks. is find and array method or hash. I want to RTFM
reinaldob has quit [Remote host closed the connection]
froots has joined #ruby
juanpaucar has quit [Ping timeout: 255 seconds]
ismaelga has joined #ruby
<jhass> sanguisdex: you can find it on Enumerable which is included by both and lots more
<sanguisdex> jhass: thanks
RegulationD has quit [Remote host closed the connection]
<chintanparikh> jhass: That's exactly what's inside the header file and a sample array
Pharaoh2 has quit [Read error: Connection reset by peer]
<chintanparikh> I need to go from the array and pack it into the bytestring
Pharaoh2 has joined #ruby
<chintanparikh> jhass: Actually give me a few more seconds, gonna take another shot at it
<jhass> ninjs: resolves from all machines I have access to :/
<ninjs> I finally found it by going to your website and finding the gist on there
<jhass> weird
<ninjs> ... and the link just resolved for me. Not sure what the issue was. I'd blame internet if I wasn't talking to you on IRC haha
ClosedGL has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dopagod has quit [Quit: WeeChat 1.0]
<ninjs> Anyways, I'm not sure what >> does, but I need something like for row 1, newsheet1.row[1] for row 2, newsheet1.row[2], etc
fabrice31 has joined #ruby
<chintanparikh> What does this mean? A | String | arbitrary binary string (space padded, count is width)
ki0 has quit [Remote host closed the connection]
<chintanparikh> That's for array.pack
riotjones has joined #ruby
<chintanparikh> jhass: Okay first real question, how would I turn a 1 (for the SYN flag) into a single bit
<jhass> ninjs: yeah, just figured from the docs. try .each_with_index(1) do |row, index|; ...; newsheet1.row(index)[1] = x; ...
antgel has quit [Ping timeout: 243 seconds]
matugm has quit [Quit: Leaving]
jeramy_s has joined #ruby
<jhass> chintanparikh: uh, you're right, pack can't do that. Can you combine it with other fields into a byte?
djbkd has joined #ruby
Filete has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> flags = 0; flags |= syn << position; then pack flags
Hijiri has quit [Quit: WeeChat 1.0.1]
Hijiri_ has joined #ruby
<chintanparikh> What does |= do?
fabrice31 has quit [Ping timeout: 256 seconds]
JDiPierro has quit [Remote host closed the connection]
orionstein has quit [Excess Flood]
<jhass> a |= b is just a shortcut to a = a | b
amdbcg has quit [Ping timeout: 245 seconds]
<jhass> a | b is binary or
<chintanparikh> Gotchu
orionstein has joined #ruby
riotjones has quit [Ping timeout: 248 seconds]
vim_shimm has joined #ruby
silentpost has quit [Ping timeout: 248 seconds]
tvw has quit []
blackmesa has joined #ruby
cartothemax has quit [Remote host closed the connection]
tvw has joined #ruby
davedev24_ has quit []
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<jhass> chintanparikh: btw .to_s(2) is very useful to visualize while experimenting with this in irb/pry
<chintanparikh> jhass: Oh sweet, thanks!
enebo has quit [Quit: enebo]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yqt has quit [Ping timeout: 264 seconds]
cjim_ has joined #ruby
RegulationD has joined #ruby
<ninjs> jhass: you're a genius. Thanks!
DavidDudson has joined #ruby
<jhass> yw, it's a silly API
<ninjs> I ended up leaving out the (1) on each_with_index because it messed up the index number
<ninjs> It really is haha
<jhass> oh, lol, looked like it is 1-indexed, sorry
blackmesa has quit [Ping timeout: 250 seconds]
<chintanparikh> jhass: You're the man. Thanks dude!
aphprentice has joined #ruby
work_op has quit [Read error: Connection reset by peer]
<shevy> jhass is the man
<shevy> but who is the girl?
ndrei has quit [Ping timeout: 252 seconds]
Pupeno has joined #ruby
* jhass hands shevy the mirror
<bricker> shevy: Beyonce
<shevy> she is pretty tall
<shevy> hmm or perhaps not
<shevy> brigitte nielsen is tall
<shevy> 1,85 - that's my height!
ndrei has joined #ruby
cabouffard has quit [Ping timeout: 252 seconds]
<bricker> wow amazing
<shevy> it's scaring me :)
Pumpkin-_ has joined #ruby
<shevy> girls with big massive hands...
skullz has quit [Ping timeout: 276 seconds]
horsecowdog has joined #ruby
<chintanparikh> jhass: If the last element of my array is an abitrarily long string, how would I put that into the packed string?
fwaokda has joined #ruby
blackmesa has joined #ruby
<jhass> chintanparikh: C* I guess
<jhass> mh, no
narcan has joined #ruby
cjim_ has quit [Quit: (null)]
<jhass> a* ?
mrmargolis has joined #ruby
Filete has joined #ruby
cjim_ has joined #ruby
Azure has quit [Excess Flood]
shadoi1 has quit [Ping timeout: 250 seconds]
Azure has joined #ruby
jlast has quit [Remote host closed the connection]
mrmargolis has quit [Remote host closed the connection]
cartothemax has joined #ruby
Pupeno_ has joined #ruby
<chintanparikh> jhass: a* worked, thanks!
<chintanparikh> What does the * at the end mean?
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> repeat as often as possible, basically
<chintanparikh> Is there any way to change that if I know the size of the string?
<jhass> "If the count is an asterisk (“*''), all remaining array elements will be converted."
<jhass> yeah, you pass its .bytesize I think
Pupeno has quit [Ping timeout: 244 seconds]
<jhass> or maybe its normal .size? gotta check
cjim_ has quit [Ping timeout: 272 seconds]
<jhass> .bytesize seems correct
failshell has joined #ruby
<jhass> so "a#{string.bytesize}"
mary5030 has joined #ruby
Hijiri_ has quit [Quit: WeeChat 1.0.1]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cartothemax has quit [Ping timeout: 245 seconds]
bluOxigen has quit [Ping timeout: 256 seconds]
failshel_ has quit [Ping timeout: 240 seconds]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jimms has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
jobewan has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
tgunr has quit [Quit: Textual IRC Client: www.textualapp.com]
Megtastique has joined #ruby
Zai00 has quit [Quit: Zai00]
DEA7TH has quit [Ping timeout: 240 seconds]
Pupeno has joined #ruby
Pupeno has joined #ruby
musashi has quit [Quit: Connection closed for inactivity]
ClosedGL has quit [Quit: Leaving]
Megtasti_ has quit [Ping timeout: 256 seconds]
Pupeno_ has quit [Ping timeout: 272 seconds]
horsecowdog has quit [Remote host closed the connection]
n80 has joined #ruby
failshel_ has joined #ruby
narcan has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
centrx has joined #ruby
<maletor> Can you explain how :symbol.freeze and 4.freeze is different from 'String'.freeze?
failshell has quit [Ping timeout: 252 seconds]
su_n has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
quintinadam has quit []
beneggett has quit [Ping timeout: 272 seconds]
Guest10393 has quit [Remote host closed the connection]
<mozzarella> uh, that sounds like a homework question
horsecowdog has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
<mozzarella> it doesn't make sense to freeze the first two, because they're the same everywhere
grindmodeon has quit [Quit: Leaving.]
krisquigley has joined #ruby
<mozzarella> a string has state, and two identical strings can be two different objects
<jhass> maletor: check .frozen? before and afterwards
ismaelga has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 250 seconds]
<jhass> mozzarella: I think you're right about homework, so let's not give away too much ;)
quimrstorres has quit [Remote host closed the connection]
cartothemax has joined #ruby
<mozzarella> right
predator217 has quit [Ping timeout: 265 seconds]
serivichi has joined #ruby
ismaelga has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
centrx has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
predator117 has joined #ruby
PaulCapestany has joined #ruby
dodobrain has joined #ruby
cartothemax has quit [Ping timeout: 276 seconds]
<maletor> lol
<maletor> not homework
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
Kendro has joined #ruby
silentpost has joined #ruby
<maletor> believe it or not i have to explain it to a colleague and i can't think of a better way then you can't call a descruptive method on it
serivichi has quit [Ping timeout: 272 seconds]
<maletor> demonstrates a lack of understanding in how ruby works
quimrstorres has joined #ruby
<maletor> what about freezing constants that contain integers?
<maletor> s/destructive
<centrx> maletor, Are you referring to the recent optimization of String#freeze ?
quimrstorres has quit [Remote host closed the connection]
<maletor> no
<maletor> is there one in 2.2.1?
<maletor> i thought it was just symbols that were changing to be GC'd
reinaldob has joined #ruby
<havenwood> maletor: In modern Ruby `:symbol` and `4` are frozen to begin with.
<havenwood> >> :symbol.frozen?
<ruboto> havenwood # => true (https://eval.in/313043)
<havenwood> >> 4.frozen?
<ruboto> havenwood # => true (https://eval.in/313044)
zachrab has joined #ruby
<shevy> havenwood is the living ruby knowledge base
<maletor> havenwood: amazing
juanpablo____ has quit [Ping timeout: 240 seconds]
<maletor> any other classes?
<shevy> hopefully not by default
quimrstorres has joined #ruby
<zachrab> whats the most efficient way to convert an index value such as 17,000.04 into a number in ruby?
<maletor> what is an index value? like a financial index?
mengu has joined #ruby
<zachrab> maletor: yes
<maletor> 17,000.04 is a number
<maletor> lol
<zachrab> maletor: i mean if its a string
<maletor> to_i
<zachrab> that converts "17,000.04" to 17 not 17,000.04
<dodobrain> no.. to_i will drop the decimals no?
DavidDudson has joined #ruby
<zachrab> dodobrain: yes
<ninjs> how do I do multi-line variable declarations? like x = if row[91] == 'true'
<dodobrain> >> "17,000.04".to_i
<ruboto> dodobrain # => 17 (https://eval.in/313045)
<dodobrain> >> "17000.04".to_i
<ruboto> dodobrain # => 17000 (https://eval.in/313046)
<zachrab> ruboto: whats the most efficient way if the commas there and i need the decimal values
<maletor> you probably have to remove non digits first zachrab
<centrx> to_i only drops non-numeric characters at the end
freerobby has joined #ruby
<centrx> ?robot
ghostmoth has quit [Quit: ghostmoth]
<ruboto> I don't know anything about robot
<dodobrain> zachrab, what you want is something like to_f or to_d after you remove the commas
GaryOak_ has quit [Remote host closed the connection]
zacts has joined #ruby
astrobunny has joined #ruby
<centrx> zachrab, You could just remove any commas from the string, they are numerically meaningless
<zachrab> centrx: k
reinaldob has quit [Ping timeout: 255 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
<maletor> "17,000.04".gsub(/,/, "").to_f
Joufflu has joined #ruby
<maletor> isn't there a fancy new ruby method that means .gsub("thing", "")
<maletor> so you don't have to write empty string?
<centrx> ActiveSupport/Rails has #remove
mengu has quit [Ping timeout: 240 seconds]
davedev24_ has joined #ruby
baweaver has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
nettoweb has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
aghalarp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobunny has quit [Ping timeout: 255 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grindmodeon has joined #ruby
Pupeno_ has joined #ruby
<jhass> >> "17,000.05".delete(",").to_f
<ruboto> jhass # => 17000.05 (https://eval.in/313047)
d10n-work has quit [Quit: Connection closed for inactivity]
<Radar> <clippy> It looks like you're trying to parse money. Have you tried using the Money gem? </clippy>
oddskill has quit [Quit: im off]
Pupeno has quit [Ping timeout: 245 seconds]
cartothemax has joined #ruby
quimrstorres has quit [Remote host closed the connection]
sevvie has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
baweaver has joined #ruby
tcrypt has quit [Remote host closed the connection]
icebourg has quit []
sevvie has joined #ruby
jimms has quit [Ping timeout: 255 seconds]
baweaver has quit [Remote host closed the connection]
tcrypt has joined #ruby
fwaokda has quit [Ping timeout: 244 seconds]
cartothemax has quit [Ping timeout: 250 seconds]
silentpost has quit [Ping timeout: 276 seconds]
<dodobrain> lol Radar
thatslifeson has quit [Read error: Connection reset by peer]
failshel_ has quit [Remote host closed the connection]
growlove has quit [Remote host closed the connection]
<shevy> how is ':' character called again? double-colon? colon? hmm
<centrx> faint-double-star operator
marr has quit [Ping timeout: 250 seconds]
<shevy> lol
vim_shimm has quit [Ping timeout: 244 seconds]
redlegion has joined #ruby
<dodobrain> shevy, ':' is a colon, '::' is double colon ';' is semi-colon
<Radar> , is a comma
<Radar> just fyi
drocsid has quit [Quit: leaving]
<dodobrain> oh yes, i missed that one :D
sevvie has quit [Remote host closed the connection]
<jefus> ' ' is a colectomy
<jefus> for sake of being complete.
Hijiri has joined #ruby
<dodobrain> lol
<shevy> ah that makes sense
baweaver has joined #ruby
<shevy> when I read colon, my brain is trained to think about anatomical things like colon cancer
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_honning_ has joined #ruby
jeramy_s has joined #ruby
gusrub has quit [Ping timeout: 250 seconds]
horsecowdog has quit [Write error: Broken pipe]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Remote host closed the connection]
Guest72807 has joined #ruby
cartothemax has joined #ruby
sankaber has joined #ruby
moomoocow has joined #ruby
work_op has joined #ruby
sevenseacat has joined #ruby
<moomoocow> hey, does anyone know the security implications of https://www.ruby-lang.org/en/news/2015/04/13/ruby-openssl-hostname-matching-vulnerability/ ?
<xxneolithicxx> wth, u read colons?
<xxneolithicxx> that must not go over well... bend over darling let me tell u your fortune
felixjet has quit [Ping timeout: 256 seconds]
horsecowdog has joined #ruby