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]
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)
<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…]
<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
<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>
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]