havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
jrabe has quit []
Rodya_ has joined #ruby
jrabe has joined #ruby
kotk has quit [Read error: Connection reset by peer]
Pisuke has quit [Ping timeout: 240 seconds]
kotk has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Remote host closed the connection]
pharma_joe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Neo95 has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
JeanCarloMachado has joined #ruby
pharma_joe has joined #ruby
mjolnird has quit [Read error: No route to host]
marr has quit [Ping timeout: 252 seconds]
mjolnird has joined #ruby
Neo95 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tacoboy has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
gothicsouth has joined #ruby
__Yiota has joined #ruby
harai has quit [Ping timeout: 246 seconds]
DallasMikkjal has joined #ruby
numbdewd has joined #ruby
pharma_joe has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Read error: Connection reset by peer]
haylon has joined #ruby
<DallasMikkjal> 6c 6f 6f 6b 69 6e 67 20 66 6f 72 20 69 6e 74 65 6c 6c 69 67 65 6e 74 20 6c 69 66 65 2c 20 70 6c 65 61 73 65 20 50 4d 20 6d 65
DallasMikkjal has quit [Killed (Sigyn (Spam is off topic on freenode.))]
JeanCarloMachado has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
bruno- has joined #ruby
milardovich has joined #ruby
Rodya_ has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
ensyde has quit [Remote host closed the connection]
enterprisey has quit [Ping timeout: 240 seconds]
apparition has quit [Read error: Connection reset by peer]
<havenwood> Dall, can't PM you if you leave.
apparition has joined #ruby
__Yiota has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 246 seconds]
mtkd has joined #ruby
pi1 has joined #ruby
__Yiota has joined #ruby
karmayogi23 has quit [Quit: karmayogi23]
<TastyTrout> havenwood: he's spammed that in a few channels, then left right away. probably a bot.
<havenwood> TastyTrout: aha
RedNifre has quit [Ping timeout: 252 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ResidentBiscuit has joined #ruby
haylon has quit [Quit: Bye]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
bronson has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
gizmore|2 has joined #ruby
_sfiguser has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
gizmore has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 260 seconds]
Ishido has joined #ruby
_sfiguser has joined #ruby
enterprisey has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
Ishido has quit [Ping timeout: 248 seconds]
umaaji has joined #ruby
milardovich has joined #ruby
Ishido has joined #ruby
d^sh_ has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
Ishido has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
d^sh has quit [Ping timeout: 255 seconds]
numbdewd has quit [Remote host closed the connection]
Ishido has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
ornerymoose has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
funkytwig has quit [Ping timeout: 248 seconds]
jameser has joined #ruby
arescorpio has quit [Excess Flood]
milardovich has quit [Remote host closed the connection]
harai has joined #ruby
agent_white has joined #ruby
haylon has joined #ruby
enterprisey has joined #ruby
haylon has quit [Remote host closed the connection]
ovaltine1 has quit [Ping timeout: 246 seconds]
ovaltine1 has joined #ruby
AnoHito has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
tacoboy has quit [Remote host closed the connection]
<TastyTrout> sure is quiet.
<TastyTrout> labor day or no
dhollinger has quit [Quit: WeeChat 1.0.1]
numbdewd has joined #ruby
Tohuw has quit [Ping timeout: 246 seconds]
Tohuw has joined #ruby
Tohuw is now known as Guest7603
milardovich has joined #ruby
houhoulis has joined #ruby
sp4rrow has joined #ruby
runescape07rsps has quit [Quit: Leaving]
twillkens has quit [Ping timeout: 260 seconds]
gabrielm14 has joined #ruby
<gabrielm14> hola o hello
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
<gabrielm14> hola o hello
hutch34 has quit [Ping timeout: 248 seconds]
twillkens has joined #ruby
Rodya_ has joined #ruby
gabrielm14 has left #ruby [#ruby]
naprimer has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
ramfjord_ has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Ping timeout: 264 seconds]
mtkd has quit [Ping timeout: 248 seconds]
hutch34 has quit [Ping timeout: 246 seconds]
mtkd has joined #ruby
TastyTrout has left #ruby [#ruby]
TastyTrout has joined #ruby
hutch34 has joined #ruby
raul782 has joined #ruby
Dimik has quit []
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
raul782 has quit [Remote host closed the connection]
gothicsouth has joined #ruby
raul782 has joined #ruby
runescape07rsps has joined #ruby
inky has joined #ruby
twillkens has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
ramfjord_ has joined #ruby
raul782 has quit []
nicolai86 has quit [Remote host closed the connection]
nicolai86 has joined #ruby
nicolai86 has quit [Remote host closed the connection]
bronson has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicolai86 has joined #ruby
ramfjord_ has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 252 seconds]
nicolai86 has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
sarbs has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
nicolai86 has joined #ruby
inky has quit [Quit: brb]
gix has quit [Read error: Connection reset by peer]
mim1k has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
Pisuke has joined #ruby
inky has joined #ruby
mkali has joined #ruby
gix has joined #ruby
gusrub_ has quit []
howdoi has joined #ruby
knight33 has joined #ruby
naprimer has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
runescape07rsps has quit [Quit: Leaving]
nowhere_man has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
ur5us has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 264 seconds]
twillkens has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
Neo95 has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
cdg has joined #ruby
naprimer has quit [Ping timeout: 260 seconds]
Azure|dc has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 246 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cadillac_ has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
twillkens has quit [Ping timeout: 240 seconds]
dhollinger has joined #ruby
balazs has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
dhollinger has quit [Client Quit]
twillkens has joined #ruby
mim1k has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
dhollinger has joined #ruby
gongura has joined #ruby
Azure has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
gongura has quit [Client Quit]
gongura has joined #ruby
gongura has left #ruby [#ruby]
rhyselsmore has joined #ruby
Azure has quit [Read error: Connection reset by peer]
houhoulis has quit [Remote host closed the connection]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
BSAlb has joined #ruby
Rodya_ has joined #ruby
oleo has joined #ruby
nofxxxx has joined #ruby
BSaboia has quit [Ping timeout: 240 seconds]
twillkens has quit [Ping timeout: 248 seconds]
BSab has joined #ruby
nofxxx has quit [Ping timeout: 240 seconds]
BSAlb has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
gusrub_ has joined #ruby
gusrub has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
ledestin has joined #ruby
gusrub_ has quit []
oleo has quit [Quit: irc client terminated!]
mim1k has joined #ruby
Neo95 has joined #ruby
gusrub has joined #ruby
rabajaj has joined #ruby
ta_ has quit [Remote host closed the connection]
Neo95 has quit [Ping timeout: 252 seconds]
uZiel has joined #ruby
minimalism has quit [Quit: minimalism]
__Yiota has joined #ruby
bronson has joined #ruby
harai has quit [Read error: Connection reset by peer]
anisha has joined #ruby
pagios has joined #ruby
cconstantine has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 260 seconds]
rabajaj has quit [Ping timeout: 252 seconds]
uZiel has quit [Ping timeout: 268 seconds]
aupadhye has joined #ruby
milardovich has quit [Remote host closed the connection]
andikr has joined #ruby
conta has joined #ruby
goyox86_ has quit [Quit: goyox86_]
aupadhye has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
cconstantine has joined #ruby
snickers has joined #ruby
milardovich has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Quit: conta]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
milardovich has joined #ruby
aupadhye has joined #ruby
maryo has joined #ruby
Azure has quit [Read error: Connection reset by peer]
umaaji has quit [Quit: Leaving...]
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
Neo95 has joined #ruby
Neo95 has quit [Ping timeout: 248 seconds]
harfangk has joined #ruby
roshanavand has joined #ruby
harai has joined #ruby
Asher has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
roshanavand has quit [Client Quit]
hutch34 has joined #ruby
modin has quit [Ping timeout: 240 seconds]
snickers has quit [Quit: Textual IRC Client: www.textualapp.com]
Mortomes|Work has joined #ruby
tvw has joined #ruby
voloyev has joined #ruby
cconstantine has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Remote host closed the connection]
ta_ has joined #ruby
Rodya_ has joined #ruby
naprimer has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
Asher has joined #ruby
ana_ has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
gusrub has quit []
hutch34 has joined #ruby
voloyev has quit [Quit: WeeChat 1.4]
FastJack_ has quit [Quit: leaving]
enterprisey has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
voloyev has joined #ruby
modin has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
samlisl_ has quit [Ping timeout: 246 seconds]
ta_ has quit [Remote host closed the connection]
Ishido has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
conta has joined #ruby
ta_ has joined #ruby
numbdewd has quit [Remote host closed the connection]
enterprisey has joined #ruby
sepp2k has joined #ruby
charliesome has joined #ruby
milardovich has quit [Remote host closed the connection]
kreantos has joined #ruby
Ishido has joined #ruby
Neo95 has joined #ruby
ianfleeton has joined #ruby
paranoicsan has joined #ruby
TomyWork has joined #ruby
Neo95 has quit [Ping timeout: 248 seconds]
_sfiguser has quit [Remote host closed the connection]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
ianfleeton has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
fabio_ros has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
roshanavand has joined #ruby
__Yiota has joined #ruby
Rodya_ has joined #ruby
fabio_ros has quit [Ping timeout: 240 seconds]
fabio_ros has joined #ruby
mark_66 has joined #ruby
fabio_ros1 has joined #ruby
fabio_ros has quit [Read error: No route to host]
bronson has joined #ruby
Rodya_ has quit [Ping timeout: 264 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has joined #ruby
claudiuinberlin has joined #ruby
bladdezz has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 240 seconds]
modin has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
hutch34 has quit [Ping timeout: 248 seconds]
fabio_ros1 has quit [Quit: Leaving.]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
frozengeek has joined #ruby
claudiuinberlin has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
uZiel has joined #ruby
claudiuinberlin has quit [Client Quit]
Burgestrand has joined #ruby
frozengeek has quit [Quit: frozengeek]
frozengeek has joined #ruby
Ishido has quit [Ping timeout: 248 seconds]
milardovich has quit [Remote host closed the connection]
dionysus69 has joined #ruby
Ishido has joined #ruby
charliesome has joined #ruby
claudiuinberlin has joined #ruby
Valkyrie_ has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
ur5us has joined #ruby
Tempesta has quit [Ping timeout: 246 seconds]
Ishido has quit [Ping timeout: 240 seconds]
biberu has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
charliesome_ has joined #ruby
charliesome_ has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
charliesome has joined #ruby
sysvalve has joined #ruby
phinxy has joined #ruby
charliesome_ has joined #ruby
Ishido has joined #ruby
tvw has quit [Remote host closed the connection]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
charliesome has quit [Ping timeout: 248 seconds]
hutch34 has joined #ruby
tomphp has joined #ruby
charliesome_ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
Valkyrie_ is now known as Tempesta
Tempesta has quit [Changing host]
Tempesta has joined #ruby
kapil___ has joined #ruby
charliesome_ has joined #ruby
<kapil___> params.i.slug.nil? || params.i.name.length == 0 ? "New i Card" : params.i.name
<kapil___> what above line does?
charliesome has quit [Ping timeout: 240 seconds]
charliesome__ has joined #ruby
Rodya_ has joined #ruby
alex`` has joined #ruby
alex`` has quit [Client Quit]
Beams has joined #ruby
alex`` has joined #ruby
charliesome_ has quit [Ping timeout: 248 seconds]
Dimik has quit [Ping timeout: 248 seconds]
marr has joined #ruby
charliesome has joined #ruby
charliesome__ has quit [Ping timeout: 240 seconds]
karmayogi23 has joined #ruby
Silthias has joined #ruby
funkytwig has joined #ruby
ur5us has joined #ruby
logicscience has quit [Ping timeout: 255 seconds]
Rodya_ has quit [Ping timeout: 255 seconds]
charliesome has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ljarvis> kapil___: what do you think?
lxsameer has joined #ruby
<kapil___> I think its first check it its nil? or length = 0 if yes set "new card" else "params.i.name"
<ljarvis> you're correct
<kapil___> :)
maryo has quit [Quit: Leaving]
<elomatreb> kapil___: Be careful, it doesn't actually set anything unless there's something before or after that line you're not showing. This just returns values
spheric has quit [Ping timeout: 248 seconds]
<kapil___> ok. i will take care
<kapil___> i will check
ams__ has joined #ruby
claudiuinberlin has joined #ruby
montyboy has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
DaveTaboola has joined #ruby
ayonkhan has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soahccc_ is now known as soahccc
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
cydrobolt has quit [Quit: oooh...what does THIS button do?]
andikr has quit [Ping timeout: 260 seconds]
imode has quit [Ping timeout: 264 seconds]
andikr has joined #ruby
jinie has quit [Ping timeout: 248 seconds]
paranoicsan is now known as paranoicsan[Away
jinie has joined #ruby
Serpent7776 has joined #ruby
Ishido has quit [Ping timeout: 240 seconds]
Ishido has joined #ruby
tvw has joined #ruby
paranoicsan[Away is now known as paranoicsan
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
charliesome has joined #ruby
tomphp has quit [Client Quit]
bronson has joined #ruby
mim1k has joined #ruby
charliesome has quit [Client Quit]
arquebus has joined #ruby
Silthias has quit [Quit: Leaving.]
jaruga has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
arquebus has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
bladdezz has joined #ruby
charliesome has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigkevmcd has joined #ruby
ur5us has quit [Remote host closed the connection]
ayonkhan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
t-recx has joined #ruby
ferr has joined #ruby
ur5us has joined #ruby
ayonkhan has joined #ruby
Jey has joined #ruby
apparition has quit [Quit: Bye]
aupadhye has quit [Ping timeout: 260 seconds]
paranoicsan is now known as paranoicsan[Away
cajone has quit [Ping timeout: 246 seconds]
* dminuoso beats ruby
konos5_ has joined #ruby
<dminuoso> First use case for class variables found after 10 years of Ruby.
paranoicsan[Away is now known as paranoicsan
frozengeek has quit [Read error: Connection reset by peer]
frozengeek has joined #ruby
ayonkhan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jey has quit [Quit: Leaving]
apparition has joined #ruby
Jey has joined #ruby
cajone has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
nowhere_man has joined #ruby
jameser has quit [Read error: Connection reset by peer]
ur5us has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
Ishido has quit [Ping timeout: 248 seconds]
ayonkhan has joined #ruby
tomphp has quit [Client Quit]
tomphp has joined #ruby
<ccooke> dminuoso: But I use those all the... wait, you mean actual *class* variables, not *class instance* variables. Carry on celebrating ;-)
phinxy has quit [Read error: Connection reset by peer]
phinxy has joined #ruby
Ishido has joined #ruby
jameser has joined #ruby
tomphp has quit [Client Quit]
charliesome has joined #ruby
ShalokShalom_ has joined #ruby
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
tomphp has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
charliesome has quit [Client Quit]
ShalokShalom has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: Closing time!]
Rodya_ has joined #ruby
ShalokShalom_ is now known as ShalokShalom
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has quit [Ping timeout: 255 seconds]
Qchmqs__ has joined #ruby
Qchmqs__ is now known as Qchmqs
charliesome has joined #ruby
Silthias has joined #ruby
someuser has joined #ruby
guille-moe has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
Jey2 has joined #ruby
Jey2 has quit [Remote host closed the connection]
Jey has quit [Ping timeout: 260 seconds]
xcesariox has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pandaant has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
f32 has joined #ruby
<f32> hi all
<f32> beginners question, but i am getting a undefined method `to_json' for NoMethod error using ruby at the command line (simple main.rb file) so... ruby main.rb
<f32> do i need to require anything to have access to json parsing in ruby?
mikeiniowa has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
<elomatreb> f32: Yes - json. `require "json"`
<f32> elomatreb: thanks, i just had found that, was in the last place i looked (the docs) :D
<elomatreb> Depending on how you installed Ruby you may have the docs installed locally for use with ri, which is pretty useful in cases like this one
<elomatreb> A simple `ri to_json` would have told you where to look
konos5_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apparition47 has joined #ruby
<elomatreb> Well, now that I tried it it actually doesn't contain the one useful thing in this specific case, nvm
Burgestrand has joined #ruby
tomphp has joined #ruby
gheegh has joined #ruby
tomphp has quit [Client Quit]
snickers has joined #ruby
aufi has joined #ruby
aufi has quit [Ping timeout: 246 seconds]
ornerymoose has quit [Quit: ornerymoose]
Rodya_ has joined #ruby
bronson has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 260 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
<dminuoso> >> catch(:done) &->() { throw :done }
<ruby[bot]> dminuoso: # => no block given (LocalJumpError) ...check link for more (https://eval.in/855668)
<dminuoso> y u no work :(
<dminuoso> >> catch(:done) { ->() { throw :done }.() }
<ruby[bot]> dminuoso: # => nil (https://eval.in/855670)
<dminuoso> Seems silly
ldnunes has joined #ruby
aufi has joined #ruby
paranoicsan is now known as paranoicsan[Away
bruno- has quit [Quit: Lost terminal]
konos5_ has joined #ruby
Defenestrate has joined #ruby
Mon_Ouie has joined #ruby
millerti has joined #ruby
bruno- has joined #ruby
paranoicsan[Away is now known as paranoicsan
mjanssen has quit [Quit: leaving]
t-recx has quit [Quit: t-recx]
dn` has quit [Quit: dn`]
kapil___ has quit [Quit: Connection closed for inactivity]
funkytwig has quit [Remote host closed the connection]
dn` has joined #ruby
<Burgestrand> >> catch(:done, &-> (done) { throw done })
<ruby[bot]> Burgestrand: # => nil (https://eval.in/855687)
charliesome has joined #ruby
<Burgestrand> Hm
<Burgestrand> Cool, I assumed catch would be a keyword
<TastyTrout> >> Kernel.method(:catch)
<ruby[bot]> TastyTrout: # => #<Method: Kernel.catch> (https://eval.in/855694)
<TastyTrout> >> Kernel.method(:throw)
<ruby[bot]> TastyTrout: # => #<Method: Kernel.throw> (https://eval.in/855696)
<Burgestrand> Also, TIL catch will generate a token if not given one, that's also sweet.
<Burgestrand> >> catch &-> (done) { throw done, done }
<ruby[bot]> Burgestrand: # => #<Object:0x40a4db08> (https://eval.in/855697)
<TastyTrout> weird
gnufied has joined #ruby
<Burgestrand> (The ampersand-proc style is not strictly necessary, I just got stuck doing it :d)
ornerymoose has joined #ruby
<TastyTrout> i wonder what the usecase for nameless catch is
<Burgestrand> It's a cheap way of guaranteeing that nested catches don't use the same label :p
<TastyTrout> ah true
<Burgestrand> … does require you to pass the label down though, or pass down a `done` proc for each nesting
<dminuoso> Burgestrand: mmm oh yeah.
<dminuoso> Burgestrand: In this case I actually have a callable object
<TastyTrout> yeah. when i've seen try/catch used "done" would have to be passed through a huge callstack. but i can still see how it'd be useful
bmurt has joined #ruby
<TastyTrout> gives me some ideas
<Burgestrand> Ya, `catch(:done) { catch(:done) { … } }` could be a bit confusing
bmurt has quit [Client Quit]
<dminuoso> TastyTrout: It's the usefulness of goto really.
<dminuoso> If you use it to escape complex calculations early, its perfectly fine
<Burgestrand> goto requires the label to be known in advance though, right?
bmurt has joined #ruby
<dminuoso> Burgestrand: Well since goto is local its implied
<dminuoso> though catch/throw give you non-local goto
<Burgestrand> Ah, right, it's jumps that are global
bmurt has quit [Client Quit]
<dminuoso> Burgestrand: well *farjumps
<Burgestrand> TIL there are shortjumps
<dminuoso> or no not far jumps
<dminuoso> brrr
<dminuoso> non-local jumps and local jumps is the categorization Im looking for
<Burgestrand> hehe
<dminuoso> i.e. goto vs setjump/longjmp
bmurt has joined #ruby
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Burgestrand> Fair enough
<TastyTrout> Burgestrand: could also be useful in cases like pry... eg there's: throw(:breakout), which makes ':breakout' reserved by Pry. so instead it could be, `throw pry.throwable` or sth.
<Burgestrand> TastyTrout yeah!
<dminuoso> Burgestrand: interestingly under the hood exceptions use catch/throw directly
<dminuoso> (and catch/throw uses setjmp/longjmp)
<dminuoso> You can see this if you inspect the compiler output
<Burgestrand> dminuoso I guess it makes sense, considering catch/throw can carry objects up the stack with it, why not carry an exception object :)
<dminuoso> asm>> begin foo; rescue; end
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/855701
<dminuoso> (As you can see rescue becomes an entry in the catch table)
<dminuoso> Burgestrand: yup
<dminuoso> even retry is implemented with a separate catch :)
KeyJoo has joined #ruby
phinxy has quit [Quit: Leaving]
gheegh has joined #ruby
knight33 has joined #ruby
claudiuinberlin has joined #ruby
_whitelogger has joined #ruby
ShekharReddy has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pandaant has quit [Remote host closed the connection]
Rodya_ has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
jsrn_ is now known as jsrn
charliesome has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spheric has joined #ruby
spheric_ has joined #ruby
Rodya_ has quit [Ping timeout: 255 seconds]
spheric_ has quit [Client Quit]
griffindy has joined #ruby
spheric has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
JeanCarloMachado has joined #ruby
Qchmqs has quit [Quit: Konversation terminated!]
spheric has joined #ruby
tomphp has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tacoboy has joined #ruby
dviola has joined #ruby
nertzy has joined #ruby
snickers has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
inky has quit [Quit: ZZZzzz…]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Danielss89 has quit [Quit: Bye]
inky has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
twillkens has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paranoicsan is now known as paranoicsan[Away
z64 has joined #ruby
jordanm has joined #ruby
roshanavand has quit [Quit: roshanavand]
inky has quit [Quit: ZZZzzz…]
charliesome has joined #ruby
frozengeek has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
frozengeek has joined #ruby
GinoMan has joined #ruby
paranoicsan[Away is now known as paranoicsan
houhoulis has quit [Remote host closed the connection]
Ishido has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sylario has joined #ruby
bronson has joined #ruby
Ishido has joined #ruby
tomphp has joined #ruby
ule has left #ruby [#ruby]
tomphp has quit [Client Quit]
bronson has quit [Ping timeout: 252 seconds]
ule has joined #ruby
minimalism has joined #ruby
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
dionysus69 has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
S007 has quit [Ping timeout: 246 seconds]
__Yiota has joined #ruby
tomphp has joined #ruby
S007 has joined #ruby
konos5_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brodul has joined #ruby
laphoraig92 has joined #ruby
tomphp has quit [Client Quit]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cadillac_ has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
oleo has joined #ruby
Defenestrate has quit [Quit: Leaving]
tomphp has joined #ruby
Silthias1 has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
Toledo is now known as croberts
tomphp has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
twillkens has quit [Ping timeout: 248 seconds]
karmayogi23 has quit [Remote host closed the connection]
charliesome has joined #ruby
konos5_ has joined #ruby
bmurt has joined #ruby
Rapture has joined #ruby
millerti has quit [Quit: Textual IRC Client: www.textualapp.com]
theunraveler has joined #ruby
twillkens has joined #ruby
imperator has joined #ruby
tsglove2 has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tsglove has quit [Ping timeout: 246 seconds]
t-recx has joined #ruby
sepp2k has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 248 seconds]
bruno- has quit [Ping timeout: 248 seconds]
GinoMan has quit [Read error: Connection reset by peer]
GinoMan has joined #ruby
claudiuinberlin has joined #ruby
Rodya_ has joined #ruby
mikecmpb_ has joined #ruby
chouhoulis has joined #ruby
bmurt has joined #ruby
claudiuinberlin has quit [Client Quit]
mikecmpbll has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Ping timeout: 264 seconds]
claudiuinberlin has joined #ruby
bruno- has joined #ruby
GinoMan has quit [Read error: Connection reset by peer]
GinoMan has joined #ruby
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
claudiuinberlin has quit [Client Quit]
voloyev has quit [Quit: WeeChat 1.9]
twillkens has quit [Ping timeout: 248 seconds]
pi2 has joined #ruby
kotk_ has joined #ruby
ramfjord has joined #ruby
ResidentBiscuit has joined #ruby
GinoMan has quit [Read error: Connection reset by peer]
pi1 has quit [Ping timeout: 240 seconds]
kotk has quit [Ping timeout: 240 seconds]
knight33 has joined #ruby
GinoMan has joined #ruby
vaq has joined #ruby
<vaq> hi, does anyone know how to test output for multiple words in cucumber?
JeanCarloMachado has joined #ruby
rippa has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
Neo95 has joined #ruby
aufi has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
konos5_ has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
digitalfiz has left #ruby [#ruby]
GinoMan has quit [Read error: Connection reset by peer]
GinoMan has joined #ruby
dar123 has joined #ruby
dar123 has quit [Client Quit]
twillkens has joined #ruby
ramfjord has joined #ruby
ramfjord_ has joined #ruby
TheBrayn has quit [Quit: WeeChat 1.9]
apparition47 has quit [Quit: Bye]
ErhardtMundt has joined #ruby
TheBrayn has joined #ruby
Rodya_ has joined #ruby
baroquebobcat has joined #ruby
GinoMan has quit [Read error: Connection reset by peer]
ramfjord_ has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
GinoMan has joined #ruby
<ErhardtMundt> guys, I have a problem
baroquebobcat has quit [Client Quit]
<ErhardtMundt> I read from a fifo file and in an infinite loop I:
<ErhardtMundt> 1. gets from the fifo (blocking)
<ErhardtMundt> 2. spawn a thread that does something with that
ShekharReddy has quit [Quit: Connection closed for inactivity]
mark_66 has left #ruby ["PART #elixir-lang :PART #crystal-lang :PING 1504624322"]
<ErhardtMundt> the gets seems to screw the threads somehow
<ErhardtMundt> do you have anything to suggest?
snickers has joined #ruby
<ErhardtMundt> (I am running the script through `rails runner script.rb`, FYI)
tomphp has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paranoicsan is now known as paranoicsan[Away
jamiejackson has joined #ruby
tomphp has quit [Client Quit]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
GinoMan has quit [Read error: Connection reset by peer]
twillkens has quit [Ping timeout: 240 seconds]
GinoMan has joined #ruby
baroquebobcat has joined #ruby
s3nd1v0g1us has joined #ruby
paranoicsan[Away is now known as paranoicsan
mtkd has quit [Ping timeout: 248 seconds]
ana_ has quit [Ping timeout: 248 seconds]
mikecmpb_ has quit [Quit: inabit. zz.]
mtkd has joined #ruby
cdg_ has joined #ruby
mikecmpbll has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
TheBrayn has quit [Quit: WeeChat 1.9]
TheBrayn has joined #ruby
GinoMan has quit [Read error: Connection reset by peer]
GinoMan has joined #ruby
cagomez has joined #ruby
<havenwood> ErhardtMundt: Make sure to enable abort_on_exception or at least report_on_exception: Thread.abort_on_exception = true
<havenwood> ErhardtMundt: Are you using?: $stdin.gets
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 246 seconds]
JeanCarloMachado has joined #ruby
kreantos has quit []
<ErhardtMundt> havenwood: I'm using fifo_file.gets
bronson has joined #ruby
<matthewd> I think "seems to screw the threads somehow" could have a little more detail
__Yiota has joined #ruby
mark_on_the_moon has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GinoMan has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 240 seconds]
GinoMan has joined #ruby
__Yiota has quit [Max SendQ exceeded]
__Yiota has joined #ruby
gusrub has joined #ruby
sepp2k has joined #ruby
mark_on_the_moon has quit [Ping timeout: 240 seconds]
Silthias1 has joined #ruby
brent__ has joined #ruby
Ishido has quit [Ping timeout: 240 seconds]
GinoMan has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
GinoMan has joined #ruby
hutch34_ has joined #ruby
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
jackjackdripper has joined #ruby
hutch34 has quit [Ping timeout: 248 seconds]
frozengeek has quit [Quit: frozengeek]
claudiuinberlin has joined #ruby
yqt has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
gusrub has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
GinoMan has quit [Read error: Connection reset by peer]
GinoMan has joined #ruby
gusrub has joined #ruby
sysvalve has quit [Quit: Leaving]
Neo95 has quit [Ping timeout: 260 seconds]
aufi has quit [Quit: Leaving]
Skull0inc has joined #ruby
charliesome has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
claudiuinberlin has joined #ruby
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
milardovich has quit [Client Quit]
laphoraig92 has quit [Ping timeout: 248 seconds]
skweek has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
kobain has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
GinoMan has quit [Quit: Leaving]
Serpent7776 has quit [Quit: Leaving]
Puffball has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has quit [Quit: Closing time!]
nacsurte has joined #ruby
Ishido has joined #ruby
[Butch] has joined #ruby
Skull0inc has quit [Ping timeout: 260 seconds]
Beams has quit [Quit: .]
Puffball has joined #ruby
tomphp has joined #ruby
lektrik has quit [Quit: Connection closed for inactivity]
tomphp has quit [Client Quit]
<TastyTrout> code example would be best. you're talking words from your understanding, which may be wrong. so please share code for best results.
TomyLobo has joined #ruby
tomphp has joined #ruby
kies has quit [Ping timeout: 246 seconds]
tomphp has quit [Client Quit]
twillkens has joined #ruby
dviola has quit [Quit: WeeChat 1.9]
baroquebobcat has quit [Quit: baroquebobcat]
lxsameer has quit [Ping timeout: 255 seconds]
Rodya_ has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
Skull0inc has joined #ruby
Rodya_ has joined #ruby
eckhardt has joined #ruby
Axy has quit [Read error: Connection reset by peer]
Axy has joined #ruby
SeepingN has joined #ruby
Axy has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
Rodya__ has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
jamiejackson has quit [Ping timeout: 240 seconds]
tomphp has quit [Client Quit]
MarkBilk_ has joined #ruby
Skull0inc has quit [Quit: leaving]
j`ey has joined #ruby
<j`ey> what am I doing wrong to get this to match the whole string? "1a1a1a1" =~ /((?:[0-9][a-f]))+/
<havenwood> j`ey: anchor to the beginning `\A` and end `\z`
Rodya_ has quit [Ping timeout: 260 seconds]
<j`ey> havenwood: sorry it should match all the string apart from the final 1
<havenwood> j`ey: Why the capture and non-capture group? What are you trying to do?
<matthewd> j`ey: Your regex matches a sequence of one or more of (a number followed by a letter). Is that what you want?
<j`ey> trying to match the longest group of digit then char
bruno-_ has joined #ruby
MarkBilk has quit [Ping timeout: 246 seconds]
<havenwood> >> "1a1a1a1" =~ /\A(?:[0-9][a-f])+\z/
<havenwood> >> "1a1a1a" =~ /\A(?:[0-9][a-f])+\z/
<ruby[bot]> havenwood: # => nil (https://eval.in/855872)
<havenwood> #=> nil
<ruby[bot]> havenwood: # => 0 (https://eval.in/855873)
<havenwood> #=> 0
<havenwood> j`ey: ^ does that make sense?
baroquebobcat has joined #ruby
<j`ey> yeah, but it's not what I want
<havenwood> j`ey: What do you want?
<j`ey> I want to find the longest group of the match
<havenwood> j`ey: ah
paranoicsan has quit [Quit: paranoicsan]
<matthewd> Oh, do you mean /((?:[0-9][a-f])+)/ perhaps?
tomphp has joined #ruby
<j`ey> oh I'm dumb!
<j`ey> thanks
<matthewd> If you want the whole match you can use $& (or #match etc), no need for a capture group
orbyt_ has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
orbyt_ has quit [Read error: Connection reset by peer]
<havenwood> >> "1a1a1a1nerp1b2b3b4b".scan(/(?:[0-9][a-f])+/).max_by(&:size)
<ruby[bot]> havenwood: # => "1b2b3b4b" (https://eval.in/855874)
orbyt_ has joined #ruby
frozengeek has joined #ruby
<j`ey> havenwood: neat
<j`ey> havenwood: I guess my regex way only matches the first
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
laphoraig92 has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
skweek has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
ishahnaz has joined #ruby
milardovich has joined #ruby
ishahnaz has quit [Client Quit]
milardov_ has joined #ruby
milardov_ has quit [Remote host closed the connection]
milardov_ has joined #ruby
selim has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
quobo has joined #ruby
milardo__ has joined #ruby
milardo__ has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 252 seconds]
milardov_ has quit [K-Lined]
selim has joined #ruby
WeiJunLi has joined #ruby
Rodya__ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
ledestin has joined #ruby
atmosx has quit [Quit: WeeChat 1.4]
atmosx has joined #ruby
guymanndude has joined #ruby
<guymanndude> hi folks, I'm wondering if there's an obvious way of solving my problem I haven't thought of: I want to populate a Ruby file with values from a YAML file
WeiJunLi has quit [Ping timeout: 260 seconds]
<guymanndude> I've loaded the YAML file, know how to access the keys I need...but how to interpolate that into the actual Ruby script?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has quit [Ping timeout: 246 seconds]
ledestin has quit [Ping timeout: 246 seconds]
<havenwood> guymanndude: What do you mean by "interpolate that into the actual Ruby script?" Do you want to iterate over every key/value or something else? Show us a gist of what you have so far?
<darix> havenwood: probably setting variables based of the values of in the yaml
<guymanndude> yup darix. I can change the state of the file by running it through Ruby, but am unsure as to how to "trigger" the interpolation/reading from the YAML file
<havenwood> guymanndude: Another way to get at those nested values is: file.dig 'key', 'value'
Cohedrin_ has joined #ruby
devyn has quit [Ping timeout: 246 seconds]
<havenwood> guymanndude: What's going on on line 6? What might `STUFF` be in your example?
<havenwood> {dev: {???}}
<havenwood> guymanndude: Where do the key and value come from in the `???` part above?
<havenwood> guymanndude: Is `file["key"]["value"]` supposed to provide both key and value/
<havenwood> >> value = {aim: true}; {**value} # guymanndude
<ruby[bot]> havenwood: # => {:aim=>true} (https://eval.in/855885)
<havenwood> guymanndude: If `file["key"]["value"]` is already a Hash, see above ^. If it's something else, what is it?
<guymanndude> havenwood: so file["key"]["value"] is just giving the path to the exact value I want to interpolate there from the YAML file
<havenwood> guymanndude: What's the key for that value?
<guymanndude> there's a key->value in the YAML I'm loading, I want to access the key
<guymanndude> excuse me, I meant I want to access the value**
<havenwood> guymanndude: This isn't valid, because there's no Hash key: {42}
<havenwood> guymanndude: On line 6, there's no Hash key.
<havenwood> guymanndude: What is the key supposed to be?
<havenwood> guymanndude: As you have it, it's a syntax error. I'm curious what you mean the key to be?
<guymanndude> havenwood: it's an example key. in practice, it's our different environments in the YAML file (dev, test, qat, prod)
<guymanndude> I don't think it's a syntax error, parses correctly in irb...
<matthewd> This is way too abstract for me
<havenwood> Yeah, I don't follow.
<havenwood> guymanndude: What is `file["key"]["value"]`???
<havenwood> guymanndude: If you binding.pry, what is that value?
<havenwood> guymanndude: file["key"]["value"] #=>
<guymanndude> you can ignore all that...here's a simpler example: https://paste.ee/p/fOG2h
<guymanndude> sorry for the confusion
<matthewd> Specific pair of .rb and .yml files, desired behaviour, and how the observed behaviour differs, please
<matthewd> Because yes, that'll work fine as is
<matthewd> It doesn't have to be your real code/data, but it does have to be something you've run locally to confirm it reproduces the situation you're in
<havenwood> guymanndude: In your example, you've assigned the constant `STUFF` to the `file["key"]["value"]` value. There's no apparent problem.
<guymanndude> matthewd: sure, here's a better link https://paste.ee/p/7uJ4T#U02tvHWFNvWkBU9rCRt1ArLBTLskW7Z6
<guymanndude> desired behaviour is STUFF should now equal/be assigned "blah"
<matthewd> And observed behaviour?
<ccooke> dminuoso: it's a parser limitation. You can't pass a block with & because you've aready *ended* the parameter list
<ccooke> ... Bah. Lost in scrollback.
<guymanndude> havenwood: right, but I want the value from the YAML file to be interpolated into the ruby file
<havenwood> guymanndude: How does it differ from how you want it?
<havenwood> guymanndude: Because in your example: STUFF #=> blah"
Rodya_ has joined #ruby
<havenwood> guymanndude: Is that not what you're observing?
hahuang65 has joined #ruby
<guymanndude> right...but how do I get some_file.rb to go from the "templated" value to actually have the value from the YAML file interpolated?
<guymanndude> like literally have STUFF = "blah" in some_file.rb
<matthewd> Are you literally attempting to edit the actual file on disk?!
<guymanndude> yes
<havenwood> guymanndude: You want to actually modify the Ruby file?
<guymanndude> yup
<guymanndude> trust me, I want to do this
claudiuinberlin has joined #ruby
<matthewd> Then you don't want yaml parsing in the file at all
<havenwood> you want the Ruby file to modify itself?
<havenwood> I don't trust you! ;-P
<matthewd> You want a 3rd script which will modify the first one
WeiJunLi has joined #ruby
<guymanndude> hmm, I've already written one that modifies YAML files like this...guess I have to have it handle Ruby files as well now
<havenwood> guymanndude: The Ruby script modifying itself is highly suspect. Can you tell us more about what you're doing?
<matthewd> The security implications are.. not great, but it's your computer ¯\_(ツ)_/¯
ramfjord has joined #ruby
ramfjord_ has joined #ruby
<guymanndude> so I've already written a third script that goes out to the internet and populates a YAML file. Then I want to load data from that modified YAML file into another Ruby file
kies has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
<guymanndude> the target Ruby file has credentials for talking to a SOAP endpoint
<havenwood> guymanndude: Why do you want Ruby to hardcode those values into its source code? What's the reason?
<guymanndude> havenwood: see above^
<havenwood> guymanndude: I mean why do you want to rewrite the Ruby file so the values are inline rather than simply deserializing them.
<guymanndude> it's to setup dev environments with credentials stored in a secure site online (think like lastpass/1password etc)
<matthewd> We understand why you need to load external data. We don't understand why you'd want to modify the actual script to do that.
Cohedrin_ has quit [Read error: Connection reset by peer]
<matthewd> This is a very ordinary requirement, and this is very much not how it's done
bronson has joined #ruby
<guymanndude> because for all intents and purposes the Ruby script is just more data/credentials
<matthewd> If you really want us to ignore that fact we can, but it's a really bad idea
<guymanndude> and because my boss added this as a requirement ¯\_(ツ)_/¯
<guymanndude> yeah I agree
<matthewd> Again, the loading of the credentials, or the literal rewriting of the file?
<guymanndude> both
<guymanndude> how would you rewrite the file from the YAML file, essentially is what I'm asking
<matthewd> YAML is a structured format -- you can load it, edit it, then re-save it
<matthewd> Ruby source is not, for any practical purposes: you're going to have to do bare string manipulation to shove the value into the right place
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord_ has quit [Ping timeout: 248 seconds]
devyn has joined #ruby
Cohedrin_ has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
Ltem has joined #ruby
<guymanndude> just realized what I'm trying to do is self-modifying code and that this is a whole "Thing"
<guymanndude> ok, will continue my research there...apparently there's a thing called closures, sounds promising
jaruga has quit [Quit: jaruga]
skweek has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
znz_jp has quit [Ping timeout: 255 seconds]
<matthewd> You are / your boss is turning a very simple task into a very complicated one, for little to no obvious benefit. I'd be pushing back on the implementation detail, and just having ruby read the creds from the yaml file at runtime.
devyn has quit [Ping timeout: 240 seconds]
guille-moe has quit [Ping timeout: 248 seconds]
twillkens has quit [Ping timeout: 240 seconds]
imode has joined #ruby
laphoraig92 has quit [Ping timeout: 240 seconds]
konsolebox has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
konsolebox has joined #ruby
laphoraig92 has joined #ruby
twillkens has joined #ruby
devyn has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
tenderlo_ has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
orbyt_ has joined #ruby
zachk has joined #ruby
laphoraig92 has quit [Remote host closed the connection]
twillkens has quit [Ping timeout: 252 seconds]
JeanCarloMachado has quit [Quit: Lost terminal]
gusrub has joined #ruby
laphoraig92 has joined #ruby
JeanCarloMachado has joined #ruby
ddffg has joined #ruby
orbyt_ has quit [Client Quit]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vaq has quit [Quit: Page closed]
JeanCarloMachado has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
Ishido has quit [Remote host closed the connection]
cdg has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fmartingr has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andikr has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
cdg__ has joined #ruby
baroquebobcat has joined #ruby
cdg has quit [Remote host closed the connection]
cdg_ has quit [Ping timeout: 264 seconds]
Ishido has joined #ruby
hutch34_ has quit [Ping timeout: 252 seconds]
__Yiota has joined #ruby
cdg has joined #ruby
gusrub has quit [Remote host closed the connection]
WeiJunLi has quit [Remote host closed the connection]
Ishido has quit [Read error: Connection reset by peer]
FrostCandy has joined #ruby
cdg__ has quit [Ping timeout: 248 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
jinie has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
ramfjord_ has joined #ruby
twillkens has joined #ruby
jinie has joined #ruby
Rodya_ has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
gusrub has joined #ruby
enterprisey has joined #ruby
twillkens has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
Bock has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
ldnunes has quit [Ping timeout: 260 seconds]
cdg_ has joined #ruby
croberts is now known as sepsis
lxsameer has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
cagomez has quit [Ping timeout: 240 seconds]
cdg_ has quit [Ping timeout: 255 seconds]
yeticry has quit [Read error: Connection reset by peer]
yeticry_ has joined #ruby
cagomez has joined #ruby
twillkens has joined #ruby
tvw has quit [Remote host closed the connection]
lasey has joined #ruby
ldnunes has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
govg has quit [Quit: leaving]
<guymanndude> turns out I was way overthinking this
<guymanndude> thanks all havenwood, matthewd
guymanndude has quit [Quit: Page closed]
mkali has quit [Quit: mkali]
benlieb has joined #ruby
j`ey has left #ruby [#ruby]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<TastyTrout> maybe you can use erb, to replace with the values in a `foo.rb.erb` file, then write the result as `foo.rb`, then run that.
orbyt_ has joined #ruby
<TastyTrout> i'm not sure why you'd want to make it more complicated but tbh using erb that way sounds interesting
Silthias1 has quit [Quit: Leaving.]
orbyt_ has quit [Ping timeout: 252 seconds]
laphoraig92 has quit [Quit: Leaving]
laphoraig92 has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
lasey has quit [Changing host]
ghormoon has quit [Ping timeout: 264 seconds]
lasey has joined #ruby
WeiJunLi has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PaulCapestany has quit [Quit: .]
__Yiota has joined #ruby
PaulCapestany has joined #ruby
preyalone has joined #ruby
sp4rrow has joined #ruby
s3nd1v0g1us has quit [Quit: tempusfugit]
__Yiota has quit [Ping timeout: 246 seconds]
Dimik has joined #ruby
ghormoon has joined #ruby
claudiuinberlin has joined #ruby
sp4rrow has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
twillkens has quit [Ping timeout: 260 seconds]
cagomez has quit [Remote host closed the connection]
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
cagomez has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
twillkens has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
jackjackdripper has quit [Ping timeout: 255 seconds]
mark_on_the_moon has joined #ruby
jackjackdripper has joined #ruby
bronson has joined #ruby
luca__ has joined #ruby
tomphp has joined #ruby
maryo has joined #ruby
orbyt_ has joined #ruby
a-b_ has joined #ruby
a-b_ is now known as ab-shine
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 240 seconds]
anisha has quit [Quit: This computer has gone to sleep]
d5sx43 has joined #ruby
gusrub has quit [Remote host closed the connection]
bmurt has joined #ruby
Rodya_ has quit [Remote host closed the connection]
gusrub has joined #ruby
bmurt has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
bmurt has joined #ruby
twillkens has quit [Ping timeout: 246 seconds]
benlieb has quit [Quit: benlieb]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
luca__ has quit [Ping timeout: 248 seconds]
twillkens has joined #ruby
enterprisey has quit [Ping timeout: 255 seconds]
_sfiguser has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
maryo has quit [Ping timeout: 264 seconds]
Ishido has joined #ruby
r7c has joined #ruby
enterprisey has joined #ruby
cdg has joined #ruby
cdg_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tsglove2 has quit [Quit: Leaving]
twillkens has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
twillkens has joined #ruby
enterprisey has quit [Ping timeout: 260 seconds]
dviola has joined #ruby
karapetyan has joined #ruby
twillkens has quit [Ping timeout: 255 seconds]
tvw has joined #ruby
konsolebox has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jenrzzz has quit [Ping timeout: 248 seconds]
jackjackdripper1 has joined #ruby
twillkens has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
konsolebox has joined #ruby
BSAlb has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
FastJack has joined #ruby
jackjackdripper has quit [Ping timeout: 246 seconds]
d5sx43 has quit [Quit: Leaving...]
Ltem has quit [Quit: Leaving]
BSab has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
twillkens has quit [Ping timeout: 240 seconds]
ozcanesen has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
harfangk has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Remote host closed the connection]
cagomez has joined #ruby
twillkens has joined #ruby
ledestin has joined #ruby
bmurt has joined #ruby
gusrub has quit [Remote host closed the connection]
ab-shine is now known as a-b_
a-b_ is now known as a_b
a_b is now known as a0b
fyrril has quit [Quit: Leaving]
sepp2k has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
theunraveler has quit []
Cohedrin_ has joined #ruby
marxarelli is now known as marxarelli|afk
ornerymoose has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
twillkens has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
guille-moe has joined #ruby
biberu has quit []
milardovich has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
inky has joined #ruby
guille-moe has quit [Ping timeout: 252 seconds]
giuseppe_ has joined #ruby
<giuseppe_> :ls
inky is now known as liamc
charliesome has joined #ruby
brent__ has quit [Remote host closed the connection]
liamc has quit [Quit: liamc]
brent__ has joined #ruby
conta has joined #ruby
ldnunes has quit [Quit: Leaving]
cconstantine has joined #ruby
pleiosaur has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
quobo has joined #ruby
PaulCapestany has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PaulCapestany has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
brent__ has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
ddffg has quit [Quit: Leaving]
tvw has quit [Remote host closed the connection]
tomphp has joined #ruby
cconstantine has quit [Ping timeout: 255 seconds]
jenrzzz_ has joined #ruby
tomphp has quit [Client Quit]
leah2 has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
karapetyan has quit []
mtkd has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Quit: Leaving...]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
hahuang65 has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
bronson has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
gusrub has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 240 seconds]
flaviocamilo has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
ngrigory has quit [Quit: Page closed]
Mon_Ouie has joined #ruby
ngrigory has joined #ruby
ngrigory has quit [Client Quit]
jenrzzz has joined #ruby
sepsis is now known as croberts
ornerymoose has joined #ruby
mtkd has joined #ruby
raynold has joined #ruby
flaviocamilo has quit [Quit: Bye!]
jenrzzz has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
AndBobsYourUncle has joined #ruby
r7c has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 268 seconds]
uZiel has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
dionysus70 has joined #ruby
__Yiota has quit [Max SendQ exceeded]
__Yiota has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
t-recx has quit [Quit: t-recx]
knight33 has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 240 seconds]
twillkens has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
gothicsouth has joined #ruby
benlieb has joined #ruby
orbyt_ has joined #ruby
ForeignBiscuit has joined #ruby
JR042444__ has joined #ruby
ResidentBiscuit has quit [Ping timeout: 248 seconds]
ForeignBiscuit has quit [Ping timeout: 260 seconds]
KeyJoo has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
JR042444__ has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
FrostCandy has quit []
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gusrub has quit []
someuser has quit [Ping timeout: 248 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
_sfiguser has quit [Quit: Leaving]
cagomez has quit [Remote host closed the connection]
a0b has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
_sfiguser has joined #ruby
flaviocamilo has joined #ruby
liamc has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
MrBismuth has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
ResidentBiscuit has joined #ruby
funkytwig has joined #ruby
imperator has quit [Quit: Leaving]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cadillac_ has quit [Ping timeout: 248 seconds]
Dimik has joined #ruby
zachk has quit [Quit: Leaving]
milardovich has joined #ruby
MrBusiness has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
giuseppe_ has quit [Quit: leaving]
marxarelli|afk is now known as marxarelli
frozengeek has quit [Read error: Connection reset by peer]
milardovich has quit [Ping timeout: 248 seconds]
enterprisey has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
cdg has joined #ruby
brent__ has quit [Remote host closed the connection]
runescape07rsps has joined #ruby
brent__ has joined #ruby
cdg_ has quit [Ping timeout: 248 seconds]
montyboy has joined #ruby
flaviocamilo has quit [Quit: Bye!]
bruno-_ has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brent__ has quit [Ping timeout: 260 seconds]
__Yiota has joined #ruby
moei has quit [Quit: Leaving...]
rhyselsmore has joined #ruby
goyox86_ has joined #ruby
t-recx has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has quit [Ping timeout: 240 seconds]
_sfiguser has quit [Quit: Leaving]
tfitts has joined #ruby
frmendes has joined #ruby
frmendes has quit [Client Quit]
Rush has quit [Ping timeout: 252 seconds]
RushPL has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 255 seconds]
laphoraig92 has quit [Ping timeout: 248 seconds]
qeevus has joined #ruby
griffindy has joined #ruby
gothicsouth has joined #ruby
bronson has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
milardovich has joined #ruby
tenderlo_ has joined #ruby
jackjackdripper1 has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
tenderlove has quit [Ping timeout: 248 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Client Quit]
twillkens has quit [Ping timeout: 248 seconds]
hutch34 has joined #ruby
orbyt_ has joined #ruby
twillkens has joined #ruby