<jayjo>
does it invoke a particular one, or everything in the directory? how about the db:seed - there's a file called seeds.rb but there's no seed anywhere
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthulchu has quit [Ping timeout: 252 seconds]
alicef has quit [Ping timeout: 246 seconds]
jthomas has quit [Ping timeout: 244 seconds]
queip has quit [Read error: Connection reset by peer]
cd has joined #ruby
queip has joined #ruby
roshanavand has quit [Ping timeout: 252 seconds]
jackrandom has quit [Read error: Connection reset by peer]
za1b1tsu has joined #ruby
alicef has joined #ruby
za1b1tsu has quit [Ping timeout: 246 seconds]
nchambers has joined #ruby
despai has quit [Ping timeout: 240 seconds]
Exuma has quit [Read error: Connection reset by peer]
agit0 has quit [Ping timeout: 272 seconds]
tdy has quit [Ping timeout: 268 seconds]
gix has quit [Ping timeout: 252 seconds]
knight33_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jcarl43 has quit [Quit: WeeChat 2.3]
bmurt has joined #ruby
crankharder has joined #ruby
jcalla has quit [Ping timeout: 246 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcalla has joined #ruby
alicef has quit [Ping timeout: 246 seconds]
crankharder has quit [Ping timeout: 244 seconds]
awkwords has joined #ruby
ss_much has joined #ruby
tag has quit [Quit: Connection closed for inactivity]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 268 seconds]
awkwords has quit [Quit: sleepy time]
jetchisel has quit [Ping timeout: 252 seconds]
jetchisel has joined #ruby
crankharder has joined #ruby
alicef has joined #ruby
crankharder has quit [Ping timeout: 245 seconds]
alicef has quit [Ping timeout: 246 seconds]
tdy has joined #ruby
bmurt has joined #ruby
<Iambchop>
jayjo: helpy is a rails app, so rails docs may answer some of your questions. the db:migrate task will load all of the migration files in the directory; on subsequent runs it will skip files it has loaded before. the db:seed task runs the seeds.rb file. those are standard rails conventions. https://guides.rubyonrails.org/active_record_migrations.html
fluxAeon has quit [Ping timeout: 250 seconds]
alicef has joined #ruby
za1b1tsu has joined #ruby
za1b1tsu has quit [Ping timeout: 252 seconds]
darkhanb has joined #ruby
sgen has quit [Ping timeout: 240 seconds]
DTZUZO has quit [Ping timeout: 246 seconds]
alicef has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
kapil____ has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
apparition has joined #ruby
RougeR has quit [Ping timeout: 272 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip has quit [Read error: Connection reset by peer]
queip has joined #ruby
sgen has joined #ruby
white_lilies has joined #ruby
braincrash has quit [Quit: bye bye]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver>
It'll take a bit, but should make it easier for everyone to read.
doubledup has quit [Client Quit]
idiocrash has quit [Ping timeout: 244 seconds]
elphe has quit [Ping timeout: 252 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elphe has joined #ruby
elphe has quit [Ping timeout: 245 seconds]
idiocra__ has quit [Ping timeout: 240 seconds]
Exuma has joined #ruby
Exuma has quit [Client Quit]
Exuma has joined #ruby
idiocrash has joined #ruby
elphe has joined #ruby
queip has quit [Read error: Connection reset by peer]
elphe has quit [Ping timeout: 272 seconds]
akaiiro has quit [Remote host closed the connection]
nchambers has quit [Quit: WeeChat 2.2]
queip has joined #ruby
Fernando-Basso has joined #ruby
elphe has joined #ruby
elphe has quit [Ping timeout: 244 seconds]
reber has joined #ruby
kaleido has quit [Read error: Connection reset by peer]
elphe has joined #ruby
venmx has joined #ruby
elphe has quit [Ping timeout: 272 seconds]
idiocrash has quit [Read error: Connection reset by peer]
conta has joined #ruby
venmx has quit [Ping timeout: 252 seconds]
lomex has joined #ruby
rrichardsr3 has joined #ruby
idiocrash has joined #ruby
elphe has joined #ruby
venmx has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
idiocrash has quit [Read error: Connection reset by peer]
dellavg_ has joined #ruby
venmx has quit [Ping timeout: 245 seconds]
Puffball has quit [Remote host closed the connection]
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has quit [Quit: Quit]
queip has joined #ruby
Puffball has joined #ruby
marz_d`ghostman has joined #ruby
Puffball has quit [Remote host closed the connection]
<marz_d`ghostman>
Tried creating a config.rb on my project root to declare some application wide constants. The constants defined in it doesn't seem to be accessible by other parts of my application, specifically under /lib. https://gist.github.com/marzdgzmn/e59587818b0046c4b8911a58a5b5fce9
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Fire-Dragon-DoL has joined #ruby
<marz_d`ghostman>
How do I test File.open in rspec?
marz_d`ghostman has quit [Quit: Page closed]
rrichardsr3 has quit [Remote host closed the connection]
whysthatso has joined #ruby
rrichardsr3 has joined #ruby
ShekharReddy has joined #ruby
elphe has quit [Ping timeout: 244 seconds]
queip has quit [Read error: Connection reset by peer]
queip has joined #ruby
doubledup has joined #ruby
elphe has joined #ruby
phaul has joined #ruby
Mike11 has joined #ruby
queip has quit [Read error: Connection reset by peer]
queip has joined #ruby
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jthomas has joined #ruby
elphe has quit [Ping timeout: 272 seconds]
jthomas has quit [Ping timeout: 252 seconds]
elphe has joined #ruby
lxsameer has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.3]
al2o3-cr has joined #ruby
DTZUZO has joined #ruby
rrichardsr3 has quit [Quit: He who dares .... wins.]
queip has quit [Read error: Connection reset by peer]
queip has joined #ruby
anikras has joined #ruby
anikras has left #ruby [#ruby]
AJA4350 has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
apparition has joined #ruby
Mike11 has quit [Ping timeout: 244 seconds]
Dbugger has quit [Remote host closed the connection]
DTZUZO has quit [Ping timeout: 264 seconds]
jaddison_ has joined #ruby
LinuxKnight has quit [Remote host closed the connection]
LinuxKnight has joined #ruby
jaddison has quit [Ping timeout: 268 seconds]
lomex has joined #ruby
KQgt0Cl3 has joined #ruby
smutnysyn has joined #ruby
<KQgt0Cl3>
Hello all I got a problem it seems I cannot solve :/
DEac- has quit [Quit: leaving]
<smutnysyn>
what is it
DEac- has joined #ruby
queip has quit [Read error: Connection reset by peer]
<phaul>
binary chpping is faster, I never disputed that, quite the contrary
<al2o3-cr>
phaul: there won't be much.
<al2o3-cr>
fuck it, i'm gonna say index is faster.
<phaul>
yesterday I failed to predict how Hash behaves in terms of perfomance so I'm already losing this game, btw did you see that? I'm still buffled why Hash behaves like the way it does...
lunarkitty7 has quit [Ping timeout: 260 seconds]
<phaul>
why is Hash#first signifacntly slower than ~ 1.5x times than pulling the first elem by key?
<phaul>
makes 0 sense. but that's the way it does ( did not confirm myself )
<al2o3-cr>
phaul: coz more c is goiing on.
<al2o3-cr>
phaul: you got pry?
<phaul>
I have pry. why?
<al2o3-cr>
phaul: check $ Hash#first and $ Hash#[]
Puffball has joined #ruby
<al2o3-cr>
phaul: then you will understand.
<al2o3-cr>
phaul: install pry-doc
<al2o3-cr>
?pry phaul
<ruby[bot]>
phaul: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
bmurt has joined #ruby
<phaul>
al2o3-cr: I have been using pry, I know it. I prefer gvim with rbtools when I can use it, by also use pry for a repl..
darkhanb has quit [Ping timeout: 244 seconds]
<phaul>
this still doesn't explain why Hash works like that, but I guess one would have to profile MRI to get an actual answer
Guest24308 has quit [Ping timeout: 272 seconds]
bmurt has quit [Client Quit]
<phaul>
still really counter intuitive to me
<phaul>
I know hash has some tricks to make small sizes faster. but the example was like 1000 element Hash. I don't expect 1000 element hash key lookup to beat #first. but still it does.
<phaul>
maybe it's just that Enumerable #first is cr*p that Hash is including and creates temporary objects and such
jaddison has joined #ruby
smutnysy1 has quit [Read error: Connection reset by peer]
smutnysy1 has joined #ruby
jrhorn424 has joined #ruby
leitz has joined #ruby
im0nde has quit [Quit: im0nde]
Guest24308 has joined #ruby
Exuma has joined #ruby
|aaron has joined #ruby
Exuma has quit [Client Quit]
jrhorn424 is now known as jrhorn424_away
Exuma has joined #ruby
<|aaron>
Is there any different between `if obj['my_attribute']` and `if obj.attribute?('my_attribute')`? Which should I prefer?
<phaul>
as far as ruby goes those are completely different things. One does not mean the other would work
<phaul>
what library framework are you using
<|aaron>
uhh well im writing chef recipes. sorry really new to ruby
desperek has quit [Quit: xoxo]
<|aaron>
so is it that the first construct tests if its defined AND isnt nil? and the second only tests if it exists (but could be nil)?
houhoulis has joined #ruby
<phaul>
Ruby the language is much more flexible. I don't know anything about chef. the first invokes [] method on obj and thatcould do anything. The second invokes attribute? method on obj and thatcould do anyting
<|aaron>
ahhh i see
<|aaron>
yeah attribute ios a helper method provided by this particular Chef object apparently
bak1an has quit [Ping timeout: 240 seconds]
leitz has quit [Quit: Leaving]
jaddison has quit [Quit: jaddison]
queip has quit [Read error: Connection reset by peer]
bak1an has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]