ljarvis changed the topic of #ruby-lang to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p547: http://ruby-lang.org || Paste code on http://gist.github.com
tdy has quit [Quit: WeeChat 0.4.3]
tdy has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
ggherdov has quit [Ping timeout: 272 seconds]
adambeynon has quit [Ping timeout: 272 seconds]
lacrosse has quit [Ping timeout: 272 seconds]
sharpmachine has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
lacrosse has joined #ruby-lang
manveru has quit [Ping timeout: 272 seconds]
moogumbo has quit [Ping timeout: 272 seconds]
JoL1hAHN has quit [Ping timeout: 272 seconds]
nisstyre has quit [Ping timeout: 272 seconds]
moogumbo_ has joined #ruby-lang
gix- has joined #ruby-lang
gix has quit [Disconnected by services]
JoL1hAHN has joined #ruby-lang
hakunin_ has joined #ruby-lang
JoshuaPaling has joined #ruby-lang
manveru has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
AlJaMa_ has joined #ruby-lang
ender|dkm has quit [Quit: Lost terminal]
ggherdov has joined #ruby-lang
wnd_ has joined #ruby-lang
Jamo_ has joined #ruby-lang
kramsee has joined #ruby-lang
saltsa has joined #ruby-lang
fusillicode has quit [Ping timeout: 255 seconds]
cypriotme has quit [Ping timeout: 255 seconds]
Jamo has quit [Ping timeout: 243 seconds]
wnd has quit [Ping timeout: 270 seconds]
hakunin has quit [Ping timeout: 243 seconds]
kramsee_ has quit [Ping timeout: 255 seconds]
fusillicode has joined #ruby-lang
saltsa_ has quit [Ping timeout: 255 seconds]
jamooo_ has quit [Ping timeout: 255 seconds]
parenjitsu has quit [Ping timeout: 255 seconds]
drbrain has quit [Ping timeout: 255 seconds]
jamooo has joined #ruby-lang
AlJaMa has quit [Read error: Connection reset by peer]
|jemc| has joined #ruby-lang
AlJaMa_ is now known as AlJaMa
drbrain has joined #ruby-lang
xtruder has quit []
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 260 seconds]
imkmf_ has quit [Quit: Textual IRC Client: www.textualapp.com]
wnd_ is now known as wnd
thagomizer has quit [Quit: Leaving.]
chouhoulis has quit [Ping timeout: 240 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 260 seconds]
Averna has joined #ruby-lang
centrx has quit [Quit: Mead error: Connection reset by beer]
haraoka has joined #ruby-lang
nisstyre has joined #ruby-lang
vintik has quit [Remote host closed the connection]
jevs has left #ruby-lang [#ruby-lang]
amsi_ has joined #ruby-lang
amsi has quit [Ping timeout: 260 seconds]
amsi_ is now known as amsi
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
djbkd has joined #ruby-lang
seamon has quit [Quit: Zzzzzzz]
mistym has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
gix- has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
fusillicode has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby-lang
drbrain has quit [Ping timeout: 255 seconds]
jamooo has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
haraoka has quit [Ping timeout: 255 seconds]
fusillicode has joined #ruby-lang
jamooo has joined #ruby-lang
gix has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
amsi has quit [Quit: Leaving]
amerine_ has quit [Ping timeout: 260 seconds]
diegoviola has joined #ruby-lang
bousquet has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistym has joined #ruby-lang
<bousquet> Anyone know how to generate the root nodes of a document like this (https://gist.github.com/bousquet/0eefd3c44b36847d3b4d) with Nokogiri?
<wallerdev> not sure the first line is valid xml?
chouhoulis has joined #ruby-lang
<wallerdev> tnever seen that before at least
<bousquet> it's xml-ish at least but not actually xml. it's block of metadata that is used in pdf documents. maybe I'll just generate with nokogiri then gsub out the first tag name, etc
<wallerdev> ah
<wallerdev> well good luck :)
Cakey has joined #ruby-lang
chouhoulis has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby-lang
tkuchiki has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby-lang
RobertBirnie has joined #ruby-lang
jdecuirm has quit [Ping timeout: 264 seconds]
jdecuirm has joined #ruby-lang
saarinen has quit [Client Quit]
djbkd has joined #ruby-lang
saarinen has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
amerine has joined #ruby-lang
hellangel7 has joined #ruby-lang
chouhoulis has joined #ruby-lang
hellangel7 has quit [Remote host closed the connection]
torrieri has joined #ruby-lang
amerine has quit [Ping timeout: 245 seconds]
nofxx__ has quit [Ping timeout: 246 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
jbardin has quit [Quit: jbardin]
nisstyre has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amclain has joined #ruby-lang
yatish27 has joined #ruby-lang
bousquet has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
findchris has quit [Quit: Leaving.]
yatish27_ has joined #ruby-lang
anvilmutant has joined #ruby-lang
arBmind1 has joined #ruby-lang
necro has joined #ruby-lang
anvilmutant has quit [Excess Flood]
yatish27 has quit [Ping timeout: 245 seconds]
arBmind has quit [Ping timeout: 260 seconds]
dm78 has quit []
yatish27 has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
yatish27_ has quit [Ping timeout: 246 seconds]
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby-lang
yatish27_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
bousquet has joined #ruby-lang
bousquet has quit [Remote host closed the connection]
yatish27 has quit [Ping timeout: 268 seconds]
chouhoul_ has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
yatish27 has joined #ruby-lang
shinnya has quit [Ping timeout: 240 seconds]
nofxx__ has joined #ruby-lang
yatish27_ has quit [Ping timeout: 240 seconds]
arooni-mobile has joined #ruby-lang
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby-lang
omosoj has quit [Read error: Connection reset by peer]
amystephen has quit [Quit: amystephen]
chouhoulis has joined #ruby-lang
emmesswhy has joined #ruby-lang
chouhoul_ has quit [Ping timeout: 252 seconds]
chouhoul_ has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
amerine has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
nathanstitt has quit [Quit: I growing sleepy]
chouhoulis has quit [Ping timeout: 264 seconds]
ItSANgo has quit [Quit: Leaving...]
amerine has quit [Ping timeout: 252 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
chouhoulis has joined #ruby-lang
yatish27_ has joined #ruby-lang
chouhoul_ has quit [Ping timeout: 246 seconds]
arooni-mobile has quit [Ping timeout: 260 seconds]
thagomizer has joined #ruby-lang
yatish27 has quit [Ping timeout: 246 seconds]
arooni-mobile has joined #ruby-lang
chouhoul_ has joined #ruby-lang
jhass is now known as jhass|off
yatish27 has joined #ruby-lang
chouhoulis has quit [Ping timeout: 252 seconds]
bsvineeth has joined #ruby-lang
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
yatish27_ has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby-lang
chouhoul_ has quit [Ping timeout: 245 seconds]
chouhoul_ has joined #ruby-lang
knu has quit [Remote host closed the connection]
thagomizer has quit [Quit: Leaving.]
chouhoulis has quit [Ping timeout: 245 seconds]
dik_dak has joined #ruby-lang
Newbie0086 has joined #ruby-lang
hakunin_ is now known as hakunin
CaptainJet has quit []
hagebake has quit [Ping timeout: 240 seconds]
knu has joined #ruby-lang
toastynerd has joined #ruby-lang
wallerdev has joined #ruby-lang
hagabaka has joined #ruby-lang
dik_dak has left #ruby-lang ["Leaving"]
michaeldeol has joined #ruby-lang
michaeldeol has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
toastynerd has joined #ruby-lang
yfeldblu_ has quit [Ping timeout: 272 seconds]
toastynerd has quit [Remote host closed the connection]
ItSANgo has joined #ruby-lang
Lewix has joined #ruby-lang
toastynerd has joined #ruby-lang
<necro> is it acceptable to apply a default value to a method with variable length arguments?
chouhoul_ has quit [Ping timeout: 240 seconds]
<necro> def method(*args = 0) ?
yatish27_ has joined #ruby-lang
yatish2__ has joined #ruby-lang
gix has quit [Ping timeout: 265 seconds]
yatish27 has quit [Ping timeout: 264 seconds]
gix has joined #ruby-lang
yatish27_ has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
Meta5 has joined #ruby-lang
<whitequark> no
Meta5 has quit [Client Quit]
<necro> is there an alternative way to do this ?
<necro> since...this way doesn't work at all
allomov has joined #ruby-lang
<charliesome> necro: def method(*args); args = [1, 2, 3] if args.empty?; ....; end
<necro> thank you
dabradley has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Ping timeout: 268 seconds]
allomov has quit [Ping timeout: 252 seconds]
saarinen has quit [Quit: saarinen]
Cakey has quit [Ping timeout: 260 seconds]
bsvineeth has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 245 seconds]
kgrz has joined #ruby-lang
dabradley has joined #ruby-lang
havenwood has joined #ruby-lang
Miphix has joined #ruby-lang
charliesome has quit [Quit: zzz]
hahuang65 has joined #ruby-lang
<harly> necro: and if you use hashed arguments, you can do something like def method(foo: 'default', bar: 5); and if you call method(foo: "this") inside the method foo == "this" and bar == 5 will be true.
mistym has quit [Remote host closed the connection]
yatish2__ is now known as yatish27
AKASkip has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
kgrz has joined #ruby-lang
yatish27 has quit [Ping timeout: 245 seconds]
ruby-lang396 has joined #ruby-lang
<ruby-lang396> Has anyone used mixlib gem?
_Kerber0s_ has joined #ruby-lang
drbrain has joined #ruby-lang
Kerber0s has quit [Read error: Connection reset by peer]
spuk has quit [Read error: Connection reset by peer]
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
charliesome has joined #ruby-lang
spuk has joined #ruby-lang
<ruby-lang396> Anyone familiar with mixlib?
AKASkip has quit [Ping timeout: 268 seconds]
koderok has joined #ruby-lang
koderok has quit [Client Quit]
chouhoulis has quit [Ping timeout: 252 seconds]
mistym has joined #ruby-lang
bsvineeth has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
|jemc| has quit [Quit: WeeChat 0.4.3]
amclain has quit [Quit: Leaving]
spuk has quit [Ping timeout: 255 seconds]
spuk has joined #ruby-lang
ta_ has quit [Remote host closed the connection]
kyb3r_ has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
skade has joined #ruby-lang
haraoka has joined #ruby-lang
solars has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
spuk has quit [Read error: Connection reset by peer]
yfeldblu_ has quit [Ping timeout: 268 seconds]
ruby-lang396 has quit [Quit: Page closed]
spuk has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
[spoiler] has joined #ruby-lang
_ht has joined #ruby-lang
arooni-mobile has joined #ruby-lang
kgrz has joined #ruby-lang
havenwood has joined #ruby-lang
koderok has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
kwd has joined #ruby-lang
chouhoulis has joined #ruby-lang
symm- has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 264 seconds]
skade_ has joined #ruby-lang
symm- has quit [Quit: Leaving...]
havenwood has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
skade has quit [Ping timeout: 240 seconds]
_ht has quit [Read error: Connection reset by peer]
_ht has joined #ruby-lang
saarinen has joined #ruby-lang
twe4ked has quit [Ping timeout: 260 seconds]
twe4ked has joined #ruby-lang
ramblinpeck_ has quit [Ping timeout: 260 seconds]
beawesomeinstead has quit [Ping timeout: 260 seconds]
Shoffner__ has quit [Ping timeout: 260 seconds]
womble has quit [Ping timeout: 260 seconds]
womble has joined #ruby-lang
Shoffner__ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ramblinpeck_ has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
relix has joined #ruby-lang
_lexjm has joined #ruby-lang
allomov has joined #ruby-lang
relix_ has joined #ruby-lang
relix has quit [Ping timeout: 240 seconds]
sMecKs has quit [Read error: Connection reset by peer]
chouhoul_ has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
Sphynx has joined #ruby-lang
ryanuber has joined #ruby-lang
newsarpk92 has quit [Ping timeout: 246 seconds]
ZAJDAN has left #ruby-lang [#ruby-lang]
AKASkip has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
tomshacham has joined #ruby-lang
tomshacham has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
djbkd has joined #ruby-lang
_lexjm has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros has joined #ruby-lang
ianmcshane has joined #ruby-lang
ryanuber has left #ruby-lang [#ruby-lang]
ianmcshane has quit [Remote host closed the connection]
ianmcshane has joined #ruby-lang
havenwood has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
ianmcshane has quit [Ping timeout: 245 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
benlovell has joined #ruby-lang
ta has joined #ruby-lang
ianmcshane has joined #ruby-lang
ta has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
jhass|off is now known as jhass
charliesome has quit [Quit: zzz]
charliesome has joined #ruby-lang
mikecmpbll has joined #ruby-lang
ianmcshane has quit [Ping timeout: 276 seconds]
qba73 has joined #ruby-lang
ta has joined #ruby-lang
adphillips has joined #ruby-lang
Averna has quit [Quit: Leaving.]
yell0wgh0st has joined #ruby-lang
adphillips has quit [Client Quit]
elia has joined #ruby-lang
koderok has quit [Quit: koderok]
<yorickpeterse> morning
emmesswhy has quit [Quit: This computer has gone to sleep]
allomov has quit [Remote host closed the connection]
skade_ has quit [Quit: Computer has gone to sleep.]
_Kerber0s_ has quit [Remote host closed the connection]
maximeshr has joined #ruby-lang
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
solars has quit [Quit: WeeChat 0.4.1]
solars has joined #ruby-lang
maximeshr has quit [Quit: Leaving...]
michd is now known as MichD
maximeshr has joined #ruby-lang
ur5us has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
yell0wgh0st has quit [Quit: yell0wgh0st]
dangerousdave has joined #ruby-lang
ironhide_604 has joined #ruby-lang
newsarpk92 has joined #ruby-lang
<newsarpk92> hello
kwd has quit [Read error: Connection reset by peer]
<newsarpk92> I have a string that is formatted in an array of floating numbers like "(-27.461688, 153.02388199999996)"
<newsarpk92> how can I parse this?
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
kwd has joined #ruby-lang
<newsarpk92> eval is giving an error
* yorickpeterse likes slapping people and randomly picks newsarpk92 to slap
<yorickpeterse> don't ever use eval for that
<yorickpeterse> ever
<yorickpeterse> You'll need to write an actual parser of some sort, in this case it would be simple enough that you can do it using regular expressions
<yorickpeterse> >> "-27.2, 15, 20.3".split(/\s*,\s*/).map { |value| value.include?('.') ? value.to_f : value.to_i }
<eval-in____> yorickpeterse => [-27.2, 15, 20.3] (https://eval.in/188131)
jinie has quit [Quit: ZNC - http://znc.in]
robbyoconnor has quit [Ping timeout: 240 seconds]
<newsarpk92> I did this updated_lat_long.split(",").map(&:to_i)
<newsarpk92> does not work
<jhass> newsarpk92: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
<newsarpk92> gives 0 and 153
robbyoconnor has joined #ruby-lang
<yorickpeterse> newsarpk92: if your input includes anything other than what your parser handles you'll need to change that
<newsarpk92> yourickpeterse that does not work
<yorickpeterse> e.g. if the input contains "(" and ")" you'll need to handle that
<newsarpk92> I am getting 0.0 and 153.something
<yorickpeterse> read above
Kerber0s has joined #ruby-lang
Kerber0s has quit [Remote host closed the connection]
<newsarpk92> "(-27.461688, 153.02388199999996)" that's the exact input
<newsarpk92> When I type the variable name
Kerber0s has joined #ruby-lang
<newsarpk92> that's what I get back
<newsarpk92> in the evaluiation expressor
<newsarpk92> *expression
<yorickpeterse> newsarpk92: I already suggested what you should do
<newsarpk92> Yeah I did what you said
<newsarpk92> it does not work
jinie has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yorickpeterse> what did you do exactly?
koderok has joined #ruby-lang
<yorickpeterse> >> "(-27.2, 15, 20.3)".scan(/([\d\.]+)/).map { |value| value.include?('.') ? value.to_f : value.to_i }
<eval-in____> yorickpeterse => undefined method `to_i' for ["27.2"]:Array (NoMethodError) ... (https://eval.in/188134)
<yorickpeterse> errr
<yorickpeterse> >> "(-27.2, 15, 20.3)".scan(/([\d\.]+)/).map { |value| value[0].include?('.') ? value[0].to_f : value[0].to_i }
<eval-in____> yorickpeterse => [27.2, 15, 20.3] (https://eval.in/188135)
<newsarpk92> that doesn't work for negative
<newsarpk92> you can see from the output
<yorickpeterse> Then you extend it?
<yorickpeterse> >> "(-27.2, 15, 20.3)".scan(/([\d\.-]+)/).map { |value| value[0].include?('.') ? value[0].to_f : value[0].to_i }
<eval-in____> yorickpeterse => [-27.2, 15, 20.3] (https://eval.in/188136)
<yorickpeterse> now it does
<newsarpk92> updated_lat_long[1..-2].split(/\s*,\s*/).map { |value| value.include?('.') ? value.to_f : value.to_i }
<newsarpk92> this does the trick
<newsarpk92> thanks
<jhass> yorickpeterse: bored or why are you spoonfeeding? :P
<yorickpeterse> jhass: stubborn
<yorickpeterse> but yeah, I might've gone a bit too far there
<yorickpeterse> drbrain: ping
<yorickpeterse> hm wait, probably asleep since it's the US
<yorickpeterse> dang it
newsarpk92 has quit [Ping timeout: 246 seconds]
<yorickpeterse> щ(゚д゚щ)
allomov has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
arBmind has joined #ruby-lang
marr has joined #ruby-lang
charliesome has joined #ruby-lang
<apeiros> ruby-lang, such emoticon source
diegoviola has quit [Remote host closed the connection]
antonishen has quit [Ping timeout: 240 seconds]
bcardarella_ has quit [Ping timeout: 245 seconds]
arBmind has quit [Client Quit]
antonishen_ has joined #ruby-lang
bcardarella__ has joined #ruby-lang
<yorickpeterse> I have more
<apeiros> go ahead!
<apeiros> I love the punch emoticon :)
<yorickpeterse> (͡° ͜ʖ ͡°)
<apeiros> I think I learned that from you too
<yorickpeterse> ( `Д´)=◯)`ν°)
<apeiros> ah no, that was reinh
<yorickpeterse> I have a weechat plugin for this
<yorickpeterse> go figure
<apeiros> yeah, that one
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby-lang
relix has joined #ruby-lang
robmiller has joined #ruby-lang
diegoviola has quit [Client Quit]
workmad3 has joined #ruby-lang
<yorickpeterse> Hm, does Ruby make any guarantee that finalizers are actually executed when an objectis GC'd?
postmodern has quit [Quit: Leaving]
<yorickpeterse> seems it doesn't do that until program termination
havenwood has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
kek has joined #ruby-lang
tbuehlmann has joined #ruby-lang
Benny1993 has quit [Quit: leaving]
Benny1992 has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
dangerousdave has joined #ruby-lang
<[spoiler]> I use emojicons.com usually
<[spoiler]> I think yorickpeterse linked me to it?
<whitequark> yorickpeterse: when they are GC'd, yes
<whitequark> however there is no guarantee that GC will ever run
Newbie0086 has quit [Quit: 离开]
zarubin has joined #ruby-lang
<yorickpeterse> whitequark: right, but so if the GC runs then the finalizers _are_ executed?
<llakey> what's the correct syntax for this? SANDBOX_IP is an IP address. i'm trying to expand the environment variable SANDBOX_IP like so: role :web, %w{ubuntu@ENV['SANDBOX_IP']}
stamina has joined #ruby-lang
<whitequark> yorickpeterse: yes
<yorickpeterse> whitequark: ok, great
<[spoiler]> llakey, "ubuntu@#{ENV['SANDBOX_IP']}"
<llakey> thanks! looking
<[spoiler]> also %w will create an array of strings, llakey
<[spoiler]> maybe you meant %Q
Lewix has quit [Remote host closed the connection]
amystephen has joined #ruby-lang
Lewix has joined #ruby-lang
newsarpk92 has joined #ruby-lang
<newsarpk92> Hi
<newsarpk92> How do I prevent nil values being written to a param?
<llakey> [spoiler]: yep, i meant %Q thanks
<newsarpk92> such as params[:some_val] = some_nil_val
<[spoiler]> params[:some_val] = some_nil_val unless some_nil_val.nil?
<newsarpk92> then if I check params I should not see any 'some_val' key
<newsarpk92> okay
<newsarpk92> do you know if this is the best way for updating?
<newsarpk92> wait that's rails question
<[spoiler]> or if params is an instance of your class which implements the method []=, then you can verify there
skade has joined #ruby-lang
<[spoiler]> That's probably the best way yes
<[spoiler]> you can wait for someone else to answer if they know a better way
r0bby has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 276 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ianmcshane has joined #ruby-lang
kalzz has quit [Ping timeout: 268 seconds]
torrieri has joined #ruby-lang
ianmcshane has quit [Ping timeout: 268 seconds]
Siyfion has joined #ruby-lang
<yorickpeterse> totes forgot to share that here
kalzz has joined #ruby-lang
torrieri has quit [Ping timeout: 260 seconds]
homeless has joined #ruby-lang
<homeless> test
<homeless> how to use && and || in while loop
<canton7> uh... while something && somethingelse || somethingelseentirely?
<canton7> nowhere near enough info to answer
arBmind has joined #ruby-lang
<homeless> I want to loop continuously until user enter the string only
<homeless> i want to opt out space, empty and integer
<homeless> for example
<homeless> user = gets.comp
<homeless> while user.empty? || user.is_a?Integer
<homeless> at
<canton7> in theory, that's fine
<canton7> in practice, 'user' is always a string, so .is_a? Integer will always be false
<homeless> so how to check if the value is Integer or string
kyb3r_ has quit [Read error: Connection reset by peer]
Sphynx has quit [Remote host closed the connection]
<workmad3> homeless: do you actually mean 'how to check if the string contains characters that could be interpreted as an integer'?
sarkyniin has joined #ruby-lang
<homeless> puts "enter the number" number = gets.chomp number.to_i if number == 1 print "One" elsif number == 2 print "Two" else print "Three" end
<homeless> why number.to_i not evaluated
<homeless> <wordmad3>
<homeless> worldmad3
<homeless> workmad3
<workmad3> homeless: it is evaluated
<homeless> when I enter 1
<homeless> it prints 3
<homeless> i mean three
<workmad3> homeless: but that doesn't cause the variable 'number' to change from a string into an integer
<homeless> it suppose to print one
<homeless> ok so how to change it then
<workmad3> homeless: number doesn't stop containing a string... .to_i returns the number, doesn't change the identity of the string object
<workmad3> homeless: maybe try assigning the return of to_i to something? :P
yell0wgh0st has joined #ruby-lang
<homeless> if i convert to_s it work
GBrawl has joined #ruby-lang
homeless has quit [Ping timeout: 246 seconds]
<workmad3> homeless: no... number is already a string
Voker57 has quit []
<[spoiler]> homeless, you need to do number = number.to_i
<[spoiler]> number.to_i will just return the integer, it won't modify what number references
<[spoiler]> oh
<[spoiler]> he quit. balls
Voker57 has joined #ruby-lang
Voker57|2 has joined #ruby-lang
Voker57 has quit [Ping timeout: 245 seconds]
benlovell has quit [Ping timeout: 245 seconds]
tkuchiki_ has joined #ruby-lang
stamina has quit [Remote host closed the connection]
torrieri has joined #ruby-lang
mkaesz has joined #ruby-lang
workmad3 has quit [Quit: leaving]
elia has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
tkuchiki_ has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
torrieri has quit [Ping timeout: 246 seconds]
dangerousdave has joined #ruby-lang
Kerber0s has quit [Ping timeout: 245 seconds]
Sphynx has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
migbar has joined #ruby-lang
koderok has quit [Quit: koderok]
ldnunes has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Excess Flood]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
toertore has joined #ruby-lang
avdi_ has joined #ruby-lang
yell0wgh0st has quit [Ping timeout: 250 seconds]
bhaak_ has joined #ruby-lang
flori_ has joined #ruby-lang
LeonBo has joined #ruby-lang
LBo has quit [Ping timeout: 260 seconds]
zz_anildigital has quit [Ping timeout: 260 seconds]
flori has quit [Ping timeout: 260 seconds]
toretore has quit [Ping timeout: 260 seconds]
bhaak has quit [Ping timeout: 260 seconds]
stevednd has quit [Ping timeout: 260 seconds]
lupine has quit [Ping timeout: 260 seconds]
onewheelskyward has joined #ruby-lang
onewheelskyward has quit [Ping timeout: 260 seconds]
avdi has quit [Ping timeout: 260 seconds]
stevednd has joined #ruby-lang
lupine has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
avdi_ is now known as avdi
vereteran has quit [Quit: ZNC - http://znc.in]
naquad has joined #ruby-lang
hellangel7 has joined #ruby-lang
yatish27 has joined #ruby-lang
anildigital has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
banister has quit [Ping timeout: 268 seconds]
benlovell has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
Sgeo has quit [Read error: Connection reset by peer]
banister has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
charliesome has quit [Quit: zzz]
kek has quit [Ping timeout: 246 seconds]
havenwood has quit []
charliesome has joined #ruby-lang
torrieri has joined #ruby-lang
rolfb has joined #ruby-lang
torrieri has quit [Ping timeout: 264 seconds]
chills42 has joined #ruby-lang
Kerber0s has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
nofxx__ has quit [Ping timeout: 252 seconds]
chills42 has joined #ruby-lang
chills42 has quit [Client Quit]
chills42 has joined #ruby-lang
koderok has joined #ruby-lang
sysrq147 has joined #ruby-lang
<sysrq147> a= "Hello"
<sysrq147> puts "#{a} everybody"
<yorickpeterse> only 3 people in the office today
<yorickpeterse> nice and quiet
<wnd> perfect moment to get something done
<yorickpeterse> sadly I'm watching Robert Downey Jr videos
<sysrq147> alone in office :(
<yorickpeterse> sysrq147: play loud music
<sysrq147> Directors office next to me :/
DEac-_ has quit [Quit: leaving]
DEac- has joined #ruby-lang
dangerousdave has joined #ruby-lang
koderok has quit [Quit: koderok]
davispuh has joined #ruby-lang
sysrq147 has quit [Ping timeout: 246 seconds]
bhaak_ is now known as bhaak
ItSANgo has quit [Quit: Leaving...]
karamazov has joined #ruby-lang
<yorickpeterse> play louder music
yfeldblum has joined #ruby-lang
Jamo_ is now known as Jamo
yfeldblu_ has joined #ruby-lang
Cakey has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby-lang
haraoka has quit [Ping timeout: 252 seconds]
ItSANgo has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
elia has joined #ruby-lang
yfeldblum has quit [Ping timeout: 246 seconds]
kek has joined #ruby-lang
kek has quit [Remote host closed the connection]
kek has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
wizonesolutions has joined #ruby-lang
<wizonesolutions> Is `bundle install` inside of a rake task supposed to work, or do I have to do something magic in order to get the correct environment context?
<wizonesolutions> trying to create a rake task that changes dir to another directory (which is a Git submodule and has its own Gemfile, etc.) and run build actions on it
workmad3 has quit [Ping timeout: 276 seconds]
bsvineeth has joined #ruby-lang
miqui has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
banister has quit [Ping timeout: 268 seconds]
JoshuaPaling has joined #ruby-lang
dangerousdave has joined #ruby-lang
bhaak is now known as bhaad
vondruch has quit [Ping timeout: 240 seconds]
bhaad is now known as bhaak
malconis has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> wizonesolutions: I think it should work, are you having troubles?
<wizonesolutions> jhass: I think I figured it out; it needed to be wrapped in Bundler.with_clean_env
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
yatish27 has quit [Ping timeout: 245 seconds]
rcvalle has joined #ruby-lang
sepp2k has joined #ruby-lang
yfeldblum has joined #ruby-lang
benlovell has quit [Ping timeout: 268 seconds]
[spoiler] has quit [Quit: Leaving]
banister has joined #ruby-lang
itsraining has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
stamina has joined #ruby-lang
kek_ has joined #ruby-lang
kek has quit [Ping timeout: 245 seconds]
ta has quit [Remote host closed the connection]
jgpawletko has joined #ruby-lang
mnngfltg has joined #ruby-lang
torrieri has joined #ruby-lang
Missphoenix has joined #ruby-lang
workmad3 has joined #ruby-lang
wallerdev has joined #ruby-lang
Miphix has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby-lang
shinnya has joined #ruby-lang
GBrawl has quit [Quit: Computer has gone to sleep.]
elico has left #ruby-lang [#ruby-lang]
emmesswhy has joined #ruby-lang
chouhoulis has quit [Ping timeout: 276 seconds]
kek_ has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
kwd has quit [Quit: Sleeping now. ZZZzzz…]
Cakey has joined #ruby-lang
spastorino has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has quit [Client Quit]
Sphynx_ has joined #ruby-lang
cmhobbs has joined #ruby-lang
jayne_ has joined #ruby-lang
marr123 has joined #ruby-lang
marr123 has quit [Client Quit]
Kerber0s has quit [Read error: Connection reset by peer]
Kerber0s has joined #ruby-lang
relix_ has joined #ruby-lang
Benny1993 has joined #ruby-lang
marr123 has joined #ruby-lang
kek has joined #ruby-lang
Kerber0s has quit [Ping timeout: 245 seconds]
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
ianmcshane has joined #ruby-lang
loincloth has joined #ruby-lang
stamina has quit [*.net *.split]
ldnunes has quit [*.net *.split]
Sphynx has quit [*.net *.split]
amystephen has quit [*.net *.split]
Benny1992 has quit [*.net *.split]
relix has quit [*.net *.split]
marr has quit [*.net *.split]
jayne has quit [*.net *.split]
go|dfish has quit [*.net *.split]
sluukkonen1 has quit [*.net *.split]
pizzaops has quit [*.net *.split]
ianmcshane has quit [Remote host closed the connection]
ianmcshane has joined #ruby-lang
nathanstitt has joined #ruby-lang
marr123 is now known as marr
ianmcshane has quit [Remote host closed the connection]
ianmcshane has joined #ruby-lang
dwknoxy has joined #ruby-lang
ianmcshane has quit [Read error: Connection reset by peer]
ianmcshane has joined #ruby-lang
ldnunes has joined #ruby-lang
pizzaops has joined #ruby-lang
go|dfish has joined #ruby-lang
maximeshr has quit [Quit: Leaving...]
sluukkonen1 has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yatish27 has joined #ruby-lang
benlovell has joined #ruby-lang
tbuehlmann has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 245 seconds]
kgrz has quit [Remote host closed the connection]
torrieri_ has joined #ruby-lang
havenwood has joined #ruby-lang
torrieri has quit [Ping timeout: 268 seconds]
benlovell has quit [Ping timeout: 245 seconds]
stamina has joined #ruby-lang
Sphynx has joined #ruby-lang
relix has joined #ruby-lang
amystephen has joined #ruby-lang
17SAA4HKW has joined #ruby-lang
17SAA2BAU has joined #ruby-lang
17SAA4HKW has quit [Max SendQ exceeded]
Sphynx has quit [Ping timeout: 244 seconds]
amystephen has quit [Ping timeout: 244 seconds]
relix has quit [Ping timeout: 244 seconds]
17SAA2BAU has quit [Ping timeout: 244 seconds]
torrieri_ has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
mattyohe has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby-lang
SkramX_ has quit [Ping timeout: 272 seconds]
mattyohe has joined #ruby-lang
sharpmachine has joined #ruby-lang
SkramX_ has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
ledestin_ has joined #ruby-lang
Kerber0s has joined #ruby-lang
karamazov has joined #ruby-lang
symm- has joined #ruby-lang
GBrawl has joined #ruby-lang
ledestin has quit [Ping timeout: 276 seconds]
ledestin_ is now known as ledestin
RobertBirnie has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
bcardarella__ is now known as bcardarella
banister has quit [Ping timeout: 276 seconds]
CaptainJet has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
ledestin has quit [Ping timeout: 245 seconds]
dwknoxy has quit [Quit: Computer has gone to sleep.]
ledestin has joined #ruby-lang
qba73_ has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
qba73 has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby-lang
benlovell has joined #ruby-lang
charliesome has quit [Quit: zzz]
qba73 has joined #ruby-lang
qba73_ has quit [Ping timeout: 264 seconds]
mkaesz has quit [Ping timeout: 272 seconds]
AKASkip has quit [Ping timeout: 255 seconds]
chills42_ has joined #ruby-lang
|jemc| has joined #ruby-lang
kgrz has joined #ruby-lang
chills42 has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
kgrz has quit [Remote host closed the connection]
chills42_ has quit [Ping timeout: 260 seconds]
kgrz has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
mistym has joined #ruby-lang
_Kerber0s_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
Lewix has joined #ruby-lang
Kerber0s has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
Siyfion has quit []
kek_ has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
kek has quit [Ping timeout: 276 seconds]
kek_ has quit [Ping timeout: 252 seconds]
Sphynx_ has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit [Ping timeout: 245 seconds]
karamazov has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_elia has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
elia has quit [Ping timeout: 268 seconds]
hellangel7 has joined #ruby-lang
bsvineeth has joined #ruby-lang
emmesswhy has joined #ruby-lang
karamazov has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
amsi has joined #ruby-lang
danijoo has joined #ruby-lang
shinnya has quit [Ping timeout: 240 seconds]
karamazov has quit [Remote host closed the connection]
karamazov has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
toastynerd has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
torrieri has joined #ruby-lang
amerine has joined #ruby-lang
karamazov has joined #ruby-lang
banister has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
ianmcshane has joined #ruby-lang
apeiros has joined #ruby-lang
simoz1111117 has joined #ruby-lang
ianmcshane has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby-lang
yfeldblum has joined #ruby-lang
charliesome has quit [Quit: zzz]
amsi has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 255 seconds]
bsvineeth has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
CaptainJet has quit [Ping timeout: 260 seconds]
bsvineeth has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby-lang
ironhide_604 has quit [Ping timeout: 272 seconds]
RobertBirnie has joined #ruby-lang
djbkd has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
qba73 has quit []
mnngfltg has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 245 seconds]
benlovell has quit [Ping timeout: 260 seconds]
mistym has joined #ruby-lang
mikecmpbll has joined #ruby-lang
toastynerd has joined #ruby-lang
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
bsvineeth has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
karamazov has quit [Remote host closed the connection]
AmBienCeD has joined #ruby-lang
AmBienCeD has quit [Changing host]
AmBienCeD has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
dwknoxy has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
karamazov has joined #ruby-lang
banister has joined #ruby-lang
mikecmpbll has joined #ruby-lang
saarinen has joined #ruby-lang
sarkyniin has joined #ruby-lang
_elia has quit [Quit: Computer has gone to sleep.]
DivineEntity has quit [Ping timeout: 268 seconds]
jbardin has joined #ruby-lang
DivineEntity has joined #ruby-lang
karamazov has quit []
jayne_ is now known as jayne
Cakey has quit [Ping timeout: 245 seconds]
vintik has joined #ruby-lang
djbkd has joined #ruby-lang
wallerdev has joined #ruby-lang
CaptainJet has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
pabloh has joined #ruby-lang
Missphoenix has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
mame0 has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
xtruder has joined #ruby-lang
yfeldblum has joined #ruby-lang
isale-eko has joined #ruby-lang
enkristoffer has joined #ruby-lang
wallerdev has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fusillicode has quit [Quit: Leaving.]
fusillicode has joined #ruby-lang
fusillicode1 has joined #ruby-lang
postmodern has joined #ruby-lang
loincloth has joined #ruby-lang
soahccc has joined #ruby-lang
chouhoul_ has joined #ruby-lang
fusillicode has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby-lang
yfeldblum has joined #ruby-lang
seamon has joined #ruby-lang
chouhoulis has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
workmad3 has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby-lang
yfeldblum has quit [Ping timeout: 246 seconds]
toertore is now known as toretore
yfeldblu_ has quit [Ping timeout: 240 seconds]
apeiros_ has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
apeiros_ is now known as apeiros
r0bby has quit [Ping timeout: 276 seconds]
r0bby has joined #ruby-lang
mikecmpbll has joined #ruby-lang
simoz1111117 has quit [Ping timeout: 255 seconds]
centrx has joined #ruby-lang
stamina has quit [Quit: WeeChat 0.4.3]
thagomizer has joined #ruby-lang
hahuang65 has quit [Ping timeout: 272 seconds]
r0bby has quit [Ping timeout: 255 seconds]
ianmcshane has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
ianmcshane has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
ianmcshane has quit [Read error: Connection reset by peer]
allomov has quit [Remote host closed the connection]
Lewix has quit [Read error: Connection reset by peer]
chouhoul_ has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby-lang
Lewix has joined #ruby-lang
ianmcshane has joined #ruby-lang
ianmcshane has quit [Read error: Connection reset by peer]
ianmcshane has joined #ruby-lang
jdecuirm has quit [Ping timeout: 268 seconds]
banister has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
yatish27 has quit [Ping timeout: 240 seconds]
Cakey has joined #ruby-lang
banister has quit [Client Quit]
ianmcshane has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
ianmcshane has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
Cakey has quit [Ping timeout: 276 seconds]
jdecuirm has joined #ruby-lang
yfeldblum has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
ta has joined #ruby-lang
r0bby has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
ianmcshane has quit [Read error: Connection reset by peer]
ianmcshane has joined #ruby-lang
hahuang65 has joined #ruby-lang
isale-eko_ has joined #ruby-lang
isale-eko has quit [Ping timeout: 255 seconds]
isale-eko_ is now known as isale-eko
emmesswhy has quit [Quit: This computer has gone to sleep]
emmesswhy has joined #ruby-lang
RobertBirnie has quit [Read error: Connection reset by peer]
RobertBirnie has joined #ruby-lang
jeff_r has joined #ruby-lang
x0f has quit [Ping timeout: 276 seconds]
x0f_ has joined #ruby-lang
havenwood has joined #ruby-lang
robmiller has quit [Quit: Leaving.]
itsraining has quit [Quit: itsraining]
pskosinski has joined #ruby-lang
ianmcshane has quit [Read error: Connection reset by peer]
mistym has quit [Quit: Leaving...]
torrieri has joined #ruby-lang
mistym has joined #ruby-lang
hahuang65 has quit [Quit: WeeChat 1.0]
AKASkip has joined #ruby-lang
relix has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
jkyle has joined #ruby-lang
r0bby has quit [Ping timeout: 272 seconds]
enkristoffer has quit [Quit: ❤]
<jkyle> I have a weird parsing erorr in an librarian-ansible Ansiblefile. Should be same syntax as gemfiles and such. Basically, if I point a certain role to github it throws the error. here's a gist: https://gist.github.com/jameskyle/5de7a98e0764db3d8464
loincloth has quit [Remote host closed the connection]
<wallerdev> i dont think thats valid ruby syntax?
loincloth has joined #ruby-lang
<wallerdev> like the #path part, theres no comma before that
<wallerdev> and #path: "something" isnt valid ruby syntax
<apeiros> that'd be a comment
<wallerdev> oh right llol
<apeiros> but the error is psych.rb:370
<wallerdev> nos yntax highlighting and im lost
<apeiros> which sounds like you parse this as yaml
sharpmachine has joined #ruby-lang
<apeiros> or which sounds like you're not showing the relevant code.
<apeiros> (more likely, I'd expect this parsed as yaml to fail much earlier)
<jkyle> yeah, just commented out
<jkyle> it's liek a Gemfile, so no code of mine involved
<jkyle> it's a librarian plugin that supports ansible. should be the same parser
hahuang65 has joined #ruby-lang
<jkyle> weird thing is...if I remove that one reference (identical to me to the others) it works
<jkyle> comment this out, works, uncomment it, fails: role "gentoo", github: "jameskyle/ansible-gentoo"
<apeiros> jkyle: I repeat: your exception originates in psych. psych parses yaml.
<jkyle> added the full stack strace in teh comments
<apeiros> your error has to do with a yaml file.
<jkyle> ohhhhhhh
<jkyle> I bet I know what's going on. it's validating one of the yaml's in teh target being downloaded
chouhoulis has quit [Remote host closed the connection]
Jet4Fire has joined #ruby-lang
chouhoulis has joined #ruby-lang
<apeiros> and you probably also know which… (gentoo…)
<jkyle> right, I'm on it. just gotta figure out which one.
<apeiros> check the backtrace, insert a strategic debug output…
<apeiros> (containing the file name)
<apeiros> and/or patch ansible (or whatever) to properly raise
skade has joined #ruby-lang
seamon has quit [Quit: Zzzzzzz]
<necro> how can I make a parameter an unknown string?
djbkd has quit [Remote host closed the connection]
seamon has joined #ruby-lang
seamon has quit [Client Quit]
s1kx has quit [Ping timeout: 272 seconds]
<jhass> necro: rephrase
seamon has joined #ruby-lang
_ht has quit [Read error: Connection reset by peer]
<necro> like I want the method to accept an argument that could be any string
aleatorik has joined #ruby-lang
<jhass> def foo(any_string)
seamon has quit [Client Quit]
djbkd has joined #ruby-lang
Raynes has quit [Ping timeout: 240 seconds]
Raynes has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
<necro> thanks
yatish27 has quit [Remote host closed the connection]
aleatorik is now known as wolves
yatish27 has joined #ruby-lang
wolves is now known as aleatorik
<xtruder> iam trying to word wrap a string: https://gist.github.com/anonymous/cfb9e1276976f23b1875, yet iam left with unneeded line breaker at the end of string. Could anyone have a look?
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
<wallerdev> lol
sharpmachine has quit [Remote host closed the connection]
<apeiros> xtruder: it'd help if you broke that down to a reproducable example
yatish27 has quit [Ping timeout: 245 seconds]
<apeiros> xtruder: at least I assume your question is about the gsub - so all the rest is just noise. but lacks example in/output
banister has joined #ruby-lang
<wallerdev> looks like you're cutting in the middle of words?
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
<xtruder> one sec
emmesswhy has quit [Quit: This computer has gone to sleep]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
anekos_ has quit [Ping timeout: 276 seconds]
CorrosiveOne has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
<epitron> xtruder: if you get stuck, here's a cheat code: https://github.com/epitron/scripts/blob/master/wrap
anekos_ has joined #ruby-lang
CorrosiveOne has quit [Client Quit]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
Raynes has quit [Ping timeout: 240 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
chussenot has joined #ruby-lang
kyb3r_ has joined #ruby-lang
<xtruder> doesnt cut into words, just leaves me we an extra breaker
<apeiros> ok, so I say the rest is noise - and the next paste is even more noise. yet still no example in/output. *sob*
<epitron> xtruder: take a look at my wrap script
<epitron> instead of splitting the string into "width"-sized chunks, it scans backwards from "width"-position looking for a space
<epitron> you can just drop that String instance method into your script, and all strings will have a "wrap" method :)
michael_mbp has quit [Ping timeout: 240 seconds]
|jemc| has quit [Read error: Connection reset by peer]
<xtruder> epitron, yes please, i have literally 0 ruby experience and wouldnt know how to implement yours
djbkd has joined #ruby-lang
<epitron> i linked it
<epitron> go go go!
anekos_ has quit [Ping timeout: 268 seconds]
<epitron> to do the thing you wanted to do, there's a simlper method than gsub
|jemc| has joined #ruby-lang
anekos_ has joined #ruby-lang
<epitron> string.scan(/.{1,#{width}}/).join("\n")
wallerdev has quit [Quit: wallerdev]
DEac-_ has joined #ruby-lang
<epitron> that'll make width-sized chunks
DEac- has quit [Read error: Connection reset by peer]
Raynes has joined #ruby-lang
charliesome has joined #ruby-lang
<epitron> not as pretty as String#wrap though :)
<xtruder> yeah, that fixed it, thanks!!
<epitron> woot
michael_mbp has joined #ruby-lang
charliesome has quit [Client Quit]
<xtruder> ok, while you insisting going to try yours too:)
<epitron> woowoo
bsvineeth has quit [Remote host closed the connection]
sharpmachine has joined #ruby-lang
konr has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
isale-eko has quit [Ping timeout: 255 seconds]
toastynerd has quit [Remote host closed the connection]
sepp2k has quit [Quit: Konversation terminated!]
kgrz has quit [Remote host closed the connection]
isale-eko has joined #ruby-lang
hellangel7 has quit [Remote host closed the connection]
isale-eko has quit [Client Quit]
mkaesz has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
torrieri has joined #ruby-lang
jbardin has quit [Quit: jbardin]
toastynerd has joined #ruby-lang
jo__ has joined #ruby-lang
jds has quit [Quit: Connection closed for inactivity]
charliesome has joined #ruby-lang
GBrawl has quit [Quit: Lingo - http://www.lingoirc.com]
mkaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby-lang
wallerdev has joined #ruby-lang
amsi has joined #ruby-lang
kyb3r_ has quit [Ping timeout: 255 seconds]
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
charliesome has quit [Quit: zzz]
amerine has quit [Ping timeout: 260 seconds]
TrueJet has joined #ruby-lang
CaptainJet has quit [Ping timeout: 260 seconds]
seamon has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
loincloth has quit [Remote host closed the connection]
sarkyniin has quit [Quit: Quitte]
sarkyniin has joined #ruby-lang
r0bby has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
toastynerd has joined #ruby-lang
ur5us has joined #ruby-lang
aleatorik has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jbardin has joined #ruby-lang
<sarkyniin> anyone knows if there's some way to parse an exports nodejs function?
<sarkyniin> I need some data, but the file is huge
pabloh has quit [Quit: Saliendo]
kgrz has joined #ruby-lang
<centrx> "an exports nodejs function"
dorei has joined #ruby-lang
hahuang65 has quit [Quit: WeeChat 1.0]
kgrz has quit [Ping timeout: 252 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has quit [Remote host closed the connection]
amerine has joined #ruby-lang
MichD is now known as michd
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
hahuang65 has joined #ruby-lang
sepp2k has joined #ruby-lang
yatish27 has joined #ruby-lang
allomov has joined #ruby-lang
mkaesz has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
r0bby has quit [Excess Flood]
r0bby has joined #ruby-lang
r0bby has quit [Changing host]
r0bby has joined #ruby-lang
r0bby has quit [Client Quit]
emmesswhy has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
itsraining has joined #ruby-lang
djbkd has joined #ruby-lang
itsraining has quit [Client Quit]
workmad3 has quit [Ping timeout: 264 seconds]
seamon has quit [Quit: Zzzzzzz]
AKASkip has quit [Ping timeout: 240 seconds]
ianmcshane has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
seamon has joined #ruby-lang
Cakey has joined #ruby-lang
ianmcshane has quit [Read error: Connection reset by peer]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby-lang
btiefert3 has quit [Read error: Connection reset by peer]
_Kerber0s_ has quit [Remote host closed the connection]
solars has quit [Ping timeout: 268 seconds]
Kerber0s has joined #ruby-lang
allomov has quit [Remote host closed the connection]
Cakey has quit [Ping timeout: 272 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allomov has joined #ruby-lang
allomov has quit [Remote host closed the connection]
allomov has joined #ruby-lang
kgrz has joined #ruby-lang
allomov has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
michaeldeol has joined #ruby-lang
chussenot has quit [Quit: chussenot]
kgrz has quit [Ping timeout: 245 seconds]
yfeldblu_ has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
yfeldblu_ has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
nofxx__ has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
parenjitsu has joined #ruby-lang
yfeldblum has quit [Ping timeout: 268 seconds]
thagomizer has quit [Quit: Leaving.]
havenwood has quit [Remote host closed the connection]
webhat has quit [Read error: Connection reset by peer]
webhat has joined #ruby-lang
tenderlove has joined #ruby-lang
sarkyniin has quit [Remote host closed the connection]
RobertBi_ has joined #ruby-lang
RobertBirnie has quit [Read error: Connection reset by peer]
cmhobbs has quit [Remote host closed the connection]
xtruder has quit []
AmBienCeD has quit []
loincloth has quit [Remote host closed the connection]
parenjitsu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seamon has quit [Quit: Zzzzzzz]
yatish27_ has joined #ruby-lang
yatish27 has quit [Ping timeout: 240 seconds]
seamon has joined #ruby-lang
spongewindbag has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
karamazov has joined #ruby-lang
toretore has quit [Quit: This computer has gone to sleep]
TrueJet has quit []
saarinen has quit [Quit: saarinen]
CaptainJet has joined #ruby-lang
yatish27 has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
nixpulvis has joined #ruby-lang
nixpulvis has left #ruby-lang [#ruby-lang]
yatish27_ has quit [Ping timeout: 272 seconds]
CaptainJet has quit []
CaptainJet has joined #ruby-lang
nixpulvis has joined #ruby-lang
spongewindbag has quit [Remote host closed the connection]
jeff_r has quit [Remote host closed the connection]
amazingdeveloper has joined #ruby-lang
Lewix has joined #ruby-lang
nixpulvis has quit [Remote host closed the connection]
nixpulvis has joined #ruby-lang
nixpulvis has quit [Remote host closed the connection]
nixpulvis has joined #ruby-lang
nixpulvis has quit [Remote host closed the connection]
amazingdeveloper has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
gazingbeak has joined #ruby-lang
gazingbeak has quit [Excess Flood]
jxie has quit [Quit: leaving]
charliesome has joined #ruby-lang
apeiros has quit [Ping timeout: 268 seconds]
tenderlove has quit [Quit: Leaving...]
face has quit [Ping timeout: 240 seconds]
seamon has quit [Quit: Zzzzzzz]
diegoviola has joined #ruby-lang
amsi has quit [Ping timeout: 264 seconds]
amsi has joined #ruby-lang
parenjitsu has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
amerine has quit [Quit: bye]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
havenwood has joined #ruby-lang
Sgeo has joined #ruby-lang
|jemc| has quit [Ping timeout: 276 seconds]
djbkd has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
jo__ has quit [Quit: Connection closed for inactivity]
s1kx has joined #ruby-lang
nathanstitt has joined #ruby-lang
yatish27 has quit []
necro has quit [Ping timeout: 246 seconds]
amsi has quit [Quit: Leaving]
torrieri has quit [Quit: Leaving...]