regedit has quit [Quit: Connection closed for inactivity]
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tiff has joined #ruby
uplime is now known as firetruplime
uplime has joined #ruby
hutch has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
firetruplime has quit [Ping timeout: 268 seconds]
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch has joined #ruby
themsay has quit [Ping timeout: 240 seconds]
decal has joined #ruby
kent\n has quit [Ping timeout: 250 seconds]
SuperLag has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
rkazak has joined #ruby
kent\n has joined #ruby
davidw has quit [Ping timeout: 258 seconds]
orbyt_ has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
rkazak has quit [Quit: Sleep.....ing....]
tdy has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
davidw has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
bga57 has joined #ruby
tdy has quit [Ping timeout: 250 seconds]
ua_ has joined #ruby
ua has quit [Ping timeout: 258 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has quit [Ping timeout: 245 seconds]
davidw has quit [Ping timeout: 246 seconds]
tdy has joined #ruby
orbyt_ has joined #ruby
conta has joined #ruby
virmagicis has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #ruby
conta has quit [Ping timeout: 246 seconds]
tdy has quit [Ping timeout: 244 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has joined #ruby
TomyLobo has quit [Ping timeout: 268 seconds]
orbyt_ has joined #ruby
cschneid has quit [Remote host closed the connection]
esrse has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
r29v has quit [Quit: r29v]
tdy has joined #ruby
bmurt has joined #ruby
Renich has quit [Quit: Renich]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch has quit [Ping timeout: 245 seconds]
envex has quit []
cthulchu_ has quit [Ping timeout: 244 seconds]
hutch has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
asphyxia has joined #ruby
conta has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
conta has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
braincrash has quit [Quit: bye bye]
KeyJoo has joined #ruby
nertzy has joined #ruby
braincrash has joined #ruby
hutch has joined #ruby
sauvin has joined #ruby
TomyLobo has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
indocomsoft has joined #ruby
davidw has joined #ruby
tdy1 has joined #ruby
lytol_ has joined #ruby
cnsvc has joined #ruby
badeball1 has joined #ruby
Puffball_ has joined #ruby
yokel_ has joined #ruby
r29v has joined #ruby
lghtstkr has joined #ruby
indocomsoft has quit [*.net *.split]
tdy has quit [*.net *.split]
bvdw has quit [*.net *.split]
Puffball has quit [*.net *.split]
moei has quit [*.net *.split]
olspookishmagus has quit [*.net *.split]
jordanm has quit [*.net *.split]
paraxial has quit [*.net *.split]
lightstalker has quit [*.net *.split]
yokel has quit [*.net *.split]
yokel_ is now known as yokel
bvdw has joined #ruby
paraxial has joined #ruby
duderonomy has joined #ruby
cschneid has joined #ruby
hutch has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
vondruch has quit [Ping timeout: 250 seconds]
Inline has quit [Quit: Leaving]
r29v has quit [Quit: r29v]
dinfuehr has quit [Ping timeout: 246 seconds]
zenogais has quit [Ping timeout: 245 seconds]
dinfuehr has joined #ruby
davidw has quit [Ping timeout: 272 seconds]
marmotini_ has joined #ruby
dinfuehr has quit [Ping timeout: 245 seconds]
hutch has quit [Ping timeout: 252 seconds]
dinfuehr has joined #ruby
cschneid has quit [Ping timeout: 260 seconds]
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #ruby
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
Tempesta has quit [Ping timeout: 250 seconds]
Tempesta has joined #ruby
dinfuehr has joined #ruby
dinfuehr_ has quit [Ping timeout: 272 seconds]
za1b1tsu has joined #ruby
orbyt_ has joined #ruby
asphyxia has quit [Quit: Lost terminal]
maufart__ has joined #ruby
dinfuehr has quit [Ping timeout: 264 seconds]
conta has joined #ruby
ansraliant has joined #ruby
dinfuehr has joined #ruby
hiroaki has quit [Ping timeout: 260 seconds]
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 244 seconds]
dinfuehr_ has quit [Ping timeout: 272 seconds]
dinfuehr has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgnagy has joined #ruby
jgnagy has quit []
mikecmpbll has quit [Excess Flood]
jgnagy has joined #ruby
mikecmpbll has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
themsay has joined #ruby
Flonk has quit [Ping timeout: 250 seconds]
dinfuehr has quit [Ping timeout: 268 seconds]
marmotini_ has quit [Remote host closed the connection]
dinfuehr has joined #ruby
marmotini_ has joined #ruby
cschneid has joined #ruby
uplime has quit [Quit: WeeChat 2.2]
dinfuehr has quit [Ping timeout: 252 seconds]
themsay has quit [Ping timeout: 240 seconds]
themsay has joined #ruby
dinfuehr has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #ruby
RougeR has quit [Ping timeout: 246 seconds]
cschneid has quit [Ping timeout: 272 seconds]
profetes has joined #ruby
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #ruby
drale2k_ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
cnsvc has quit [Remote host closed the connection]
d^sh_ has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d^sh has quit [Ping timeout: 268 seconds]
DTZUZO has quit [Ping timeout: 250 seconds]
drale2k_ has joined #ruby
drale2k_ has quit [Client Quit]
drale2k_ has joined #ruby
clemens3 has joined #ruby
drale2k_ has quit [Ping timeout: 240 seconds]
<za1b1tsu>
Anyone using reek as a linter. So I have this method in a module. The module is a collection of methods that generate random data and the method generates a random letter. Reek complains about: UtilityFunction
<za1b1tsu>
I mean a UtilityFunction should be in a module, correct? Where should I put it then
<za1b1tsu>
ah it wans self.method, ok kidna makes sense
<za1b1tsu>
kinda
dionysus69 has quit [Ping timeout: 272 seconds]
stryek has quit [Quit: Connection closed for inactivity]
themsay has quit [Ping timeout: 246 seconds]
tdy1 has quit [Ping timeout: 246 seconds]
cnsvc has joined #ruby
s2013 has joined #ruby
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #ruby
ansraliant has quit [Quit: My planet needs me]
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
jmcgnh has joined #ruby
nowhere_man has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
nowhere_man has joined #ruby
n13z has joined #ruby
vondruch has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<za1b1tsu>
I'm researching best practises to use custom errors, and I see that usually they are put in lib/my_app/exceptions.rb
<za1b1tsu>
but what if an exception is tied to a certain module/class, do I define the exception in the module/class definition or do I still put in lib/my_app/exceptions.rb?
mikecmpbll has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<tbuehlmann>
za1b1tsu: up to you really, I think both options are good ones
dionysus69 has joined #ruby
<za1b1tsu>
tbuehlmann, I really like the idea of lib/my_app/exceptions.rb instead of having exceptions all other the place. But this means I should have more generic error classes
yokel has quit [Remote host closed the connection]
<phaul>
so as canton7 said. Plus apart from += doesn't modify as it's just a shorthand for .. = .. + .., integers cannot be modified anyway. there is no way to monkey patch a method into Integer that modifies the value of self
<canton7>
but, there's no need for dig here. Just do 'result[:work][:workers] += 1'
badeball has quit [Quit: WeeChat 1.6]
InfinityFye has joined #ruby
RedNifre has quit [Ping timeout: 268 seconds]
RedNifre has joined #ruby
badeball has joined #ruby
troulouliou_div2 has quit [Ping timeout: 240 seconds]
za1b1tsu has quit [Ping timeout: 268 seconds]
<phaul>
there must be a further magic that makes that work. namely it calls []=. because [] returns the same object as dig, so there is no difference there.
cschneid has quit [Ping timeout: 268 seconds]
vondruch_ has joined #ruby
<canton7>
well, '+=' will expand to 'result[:work][:workers] = result[:work][:workers] + 1'
vondruch has quit [Ping timeout: 272 seconds]
vondruch_ is now known as vondruch
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
troulouliou_div2 has joined #ruby
<phaul>
yeah, it's quite invlolved. (result.[](:work)).[]=(:workers, (result.[](:work)).[](:workers).+(1))) if im parsing it correctly
<phaul>
mspo: Sandi calls these or wrapper objects of these factories, and she talks about pushing the conditional out as far as possible (out or up the stack). But she can't avoid having them
<Eiam>
come back from holiday and super old shit fails to deploy now thanks bud
<mozzarella>
I haven't been following the conversation so I'm not sure what you're doing
<phaul>
mspo, undeniably we introduce more classes and more complexity at the surface level, in exchange eliminating all conditional code paths from everywhere, apart from 1 top level factory dispatch
<phaul>
same as null pattern just applied for every if not just nil?
s2013 has quit [Ping timeout: 245 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phaul>
alhtough I don't agree with sandi that this should be applied all the time, but in her example and here as well I think it fits
irdr has joined #ruby
Renich has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
eldritch has quit [Quit: ZNC 1.6.6+deb1ubuntu0.1 - http://znc.in]
Renich has joined #ruby
sameerynho has joined #ruby
mozzarella has quit [Quit: WeeChat 2.2]
jcarl43 has joined #ruby
eldritch has joined #ruby
tdy1 has joined #ruby
RedNifre has quit [Quit: spiders everywhere!]
zenogais has quit [Ping timeout: 268 seconds]
sanscoeur has quit [Read error: Connection reset by peer]
hutch has quit [Ping timeout: 268 seconds]
sanscoeur has joined #ruby
sanscoeur has quit [Read error: Connection reset by peer]
gix has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
haylon has joined #ruby
haylon has quit [Remote host closed the connection]
haylon has joined #ruby
sanscoeur has joined #ruby
Aqo has quit [Ping timeout: 272 seconds]
urbanmonk has quit [Ping timeout: 250 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sanscoeur has quit [Read error: Connection reset by peer]
skryking has joined #ruby
sanscoeur has joined #ruby
RougeR has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
ur5us has joined #ruby
tdy1 has quit [Ping timeout: 245 seconds]
hutch has joined #ruby
zenogais has joined #ruby
r29v has quit [Quit: r29v]
ldnunes has quit [Quit: Leaving]
dviola has quit [Quit: WeeChat 2.3]
uplime has quit [Quit: brb - please send all requests, no matter how silly they are, to blkshp asap]
Nicmavr has quit [Read error: Connection reset by peer]
twobitsprite has joined #ruby
Nicmavr has joined #ruby
<twobitsprite>
Can Rakefiles be aware of non-file target such as docker images, etc? I'm considering moving away from Makefiles, and one of the things I have to do in make is touch files after building images so make can know what needs to be rebuilt.
uplime has joined #ruby
cschneid has quit [Remote host closed the connection]
GodFather has quit [Read error: Connection reset by peer]
cschneid has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
mozzarella has joined #ruby
sarink has joined #ruby
GodFather has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.3]
sarink has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
<SeepingN>
Has there been a change in ruby/rails around ruby 2.2.3 where the console no longer returns a value for something unless you use puts to print it out?
<SeepingN>
=> 1+1
<baweaver>
SeepingN: no?
<baweaver>
Do you have an example?
<SeepingN>
sure: 1+1
<baweaver>
Works in 2.3, 2.4, 2.5, and 2.6.
<baweaver>
Not sure what you're seeing.
<SeepingN>
Used to get the value back (=> 2). Now I just get empty result (=> )
<SeepingN>
unless it's a string
<SeepingN>
irb(main):015:0> 1+1
<SeepingN>
=>
<SeepingN>
irb(main):016:0> "wow"
<SeepingN>
=> "wow"
<baweaver>
What version of Ruby are you using?
chouhoulis has quit [Ping timeout: 245 seconds]
<SeepingN>
2.2.3 according to RUBY_VERSION
<baweaver>
2.6.0 :001 > RUBY_VERSION
<baweaver>
=> "2.6.0"
chouhoulis has joined #ruby
<baweaver>
2.6.0 :002 > 1 + 1
<baweaver>
=> 2
<baweaver>
2.5.1 :001 > RUBY_VERSION
<baweaver>
=> "2.5.1"
<baweaver>
2.5.1 :002 > 1 + 1
<baweaver>
=> 2
<SeepingN>
conf.echo
<SeepingN>
oops
<baweaver>
I think something's screwy with your ruby install
<SeepingN>
conf.echo is true... thinking maybe someone else in engineering changed it
<baweaver>
That, and 2.2.x is super out of date
<SeepingN>
well there's that too, yes. we just switched our team to india too, so
<SeepingN>
..going to be old for a while I imagine
chouhoulis has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
Azure has quit [Ping timeout: 246 seconds]
<SeepingN>
it will print out objects too, such as User.last