<RubyBrad>
Got you. That's why you do gem install <whatever> then.
<havenwood>
RubyBrad: Yup. You can install ones from others or publish your own.
<RubyBrad>
ok that's cool. well thanks for the explain havenwood
<havenwood>
Saying that reminds me of an early contracting gig I did where the author of the app had a gem in his own name that incorporated all the Ruby libraries he liked to use as dependencies. It'd be like if I maintained a "havenwood" gem and included it with all my code. Very... atypical.
<havenwood>
And then he left to go back and work on his PhD and kept changing his personal gem. It got weirder from there. I just worked on it for a few hours before deciding that gig wasn't for me.
<havenwood>
When there's no Gemfile, since it's "not needed" when you just have a personal god gem... Also the author did use a Rack framework, which I haven't seen since.
<havenwood>
didn't* use Rack
<havenwood>
rolled their own server from scratch
<havenwood>
also a PHP code serialization bridge
<havenwood>
oddly the thing appeared to do what it was supposed to do, they just couldn't find a maintainer when the author left
<havenwood>
they refused to rewrite so I made them an (unwanted) Gemfile and advised they hire the original author at whatever cost
<havenwood>
¯\_(ツ)_/¯
<havenwood>
it took a few hours just to hunt down all the gems involved beyond author's god gem
<havenwood>
no Gemfile or conventions for finding what all gems a massive project uses is frustrating
<havenwood>
I've not seen it since. Not once.
<havenwood>
Finding the old version of the personal gem to match the time the last version of the app was released was the key. At least the key to unburdening myself that the whole thing was insane and it was better to walk.
duderonomy has joined #ruby
<havenwood>
That's a nice bit about being a contractor. You can turn down clients.
<jhass>
maybe Conf.default_forbidden_names and Conf.custom_forbidden_names are unintentionally strings instead of arrays of string?
<micah>
jhass: yeah, those files contain just strings, one on each line
<micah>
can I convert them to arrays of strings?
<jhass>
I wouldn't have recognized they're files :) I suspect when reading them you want to do File.readlines(whatever) instead of File.read(whatever)
<jhass>
maybe taking a .map(&:chomp) at the end to get rid of the newline characters
jenrzzz has joined #ruby
cthulchu_ has joined #ruby
<micah>
yeah, in my defaults.yml, i just am doing default_forbidden_names: file:common/config/default_forbidden_names
jenrzzz has quit [Ping timeout: 265 seconds]
<jhass>
welp, TIL you can do that in YAML
<jhass>
so if you already got the string you can use String#lines to split it into lines
coniptor has quit [Ping timeout: 276 seconds]
<micah>
and then iterate that into an array? I'm not quite following
<micah>
oh #lines makes it an array
<jhass>
yeah
<micah>
i wonder if I can just add .lines in there like Conf.default_forbidden_names.lines
<jhass>
iirc .lines preserves the \n so you'd want to split that. If there's any way to do this at load time/inside your Conf abstraction I would prefer that personally
<jhass>
*want to strip that
<micah>
yeah, i'm not sure. i dont understand that part yet
coniptor has joined #ruby
centrx has quit [Ping timeout: 260 seconds]
explorier has joined #ruby
explorier has quit [Ping timeout: 265 seconds]
jla has joined #ruby
nofxx_ has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
explorier has joined #ruby
ChmEarl has joined #ruby
venmx has joined #ruby
robotbee has joined #ruby
howdoi has joined #ruby
JaredCE_ has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
arooni has joined #ruby
jenrzzz has joined #ruby
yuesbeez has joined #ruby
Dreamer3 has joined #ruby
mcr has quit [Quit: Leaving.]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
BSaboia has joined #ruby
jla has quit [Ping timeout: 240 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
jenrzzz has quit [Ping timeout: 252 seconds]
nofxx__ has joined #ruby
arooni has quit [Ping timeout: 240 seconds]
nofxx_ has quit [Ping timeout: 260 seconds]
jla has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
Dreamer3 has quit [Quit: Leaving...]
jimms has quit [Quit: Leaving]
jenrzzz has joined #ruby
duderonomy has joined #ruby
istrasci has joined #ruby
goepsilongo has quit [Read error: Connection reset by peer]
goepsilongo has joined #ruby
fernando-basso has quit [Remote host closed the connection]
fernando-basso has joined #ruby
goepsilongo has quit [Quit: Konversation terminated!]
arooni has joined #ruby
robotbee has quit [Ping timeout: 246 seconds]
venmx has quit [Ping timeout: 252 seconds]
TrufflePump has quit [Ping timeout: 258 seconds]
robotbee has joined #ruby
jla has quit [Ping timeout: 240 seconds]
gix has joined #ruby
TrufflePump has joined #ruby
TorpedoSkyline has joined #ruby
evdubs__ is now known as evdubs
jenrzzz has quit [Ping timeout: 252 seconds]
jobewan has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
hiroaki has quit [Ping timeout: 260 seconds]
feriman has quit [Ping timeout: 260 seconds]
hiroaki has joined #ruby
coniptor has quit [Ping timeout: 260 seconds]
cer-0 has quit [Ping timeout: 260 seconds]
coniptor has joined #ruby
explorier has quit [Ping timeout: 240 seconds]
explorier has joined #ruby
MalkbabY has quit [Remote host closed the connection]