woollyams has quit [Read error: Connection reset by peer]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
mykoweb has quit [Ping timeout: 252 seconds]
amorphid has quit [Ping timeout: 240 seconds]
RobertBirnie has joined #ruby-lang
mistym has joined #ruby-lang
junkmechanic_ has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty>
bah, of course a single byte does not suffice. We need 9 bits. I shouldn't speak when I'm in hurry
chouhoulis has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby-lang
agrinb has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
Cakey has quit [Ping timeout: 258 seconds]
_JokerDoom has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
stayarrr has joined #ruby-lang
knu has joined #ruby-lang
knu has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
saarinen has quit [Quit: saarinen]
mdub has quit [Ping timeout: 252 seconds]
alexju has quit [Remote host closed the connection]
phansch has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
junkmechanic_ has quit [Ping timeout: 258 seconds]
araujo has quit [Quit: Leaving]
_ht has joined #ruby-lang
Cakey has joined #ruby-lang
starbucks has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
fezziwig has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
ur5us has quit [Ping timeout: 264 seconds]
heftig has quit [Quit: Quitting]
ledestin has quit [Ping timeout: 240 seconds]
jsullivandigs has quit [Ping timeout: 258 seconds]
jsullivandigs has joined #ruby-lang
fezziwig has quit [Remote host closed the connection]
snsei_ has quit [Remote host closed the connection]
jsullivandigs has quit [Ping timeout: 264 seconds]
woollyams has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sharpmachine has joined #ruby-lang
[spoiler] has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
sharpmachine has quit [Ping timeout: 245 seconds]
stayarrr has quit [Quit: Leaving...]
stayarrr has joined #ruby-lang
jsullivandigs has joined #ruby-lang
digs has joined #ruby-lang
jsullivandigs has quit [Read error: Connection reset by peer]
digs is now known as Guest67646
jsullivandigs has joined #ruby-lang
Guest67646 has quit [Read error: Connection reset by peer]
stayarrr has quit [Quit: Leaving...]
stayarrr has joined #ruby-lang
hahuang65 has joined #ruby-lang
stayarrr has quit [Quit: Leaving...]
rahul_j has joined #ruby-lang
chouhoulis has joined #ruby-lang
ddv has quit [Changing host]
ddv has joined #ruby-lang
chouhoulis has quit [Ping timeout: 264 seconds]
stayarrr has joined #ruby-lang
adphillips has joined #ruby-lang
Cakey has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
Burgestrand has joined #ruby-lang
mistym has quit [Ping timeout: 252 seconds]
phuesler has joined #ruby-lang
ledestin has joined #ruby-lang
GBrawl has joined #ruby-lang
adphillips has quit []
knu has joined #ruby-lang
vondruch has joined #ruby-lang
phuesler has quit [Quit: phuesler]
Cakey has joined #ruby-lang
kitak__ has quit [Remote host closed the connection]
kitak_ has joined #ruby-lang
Burgestrand has quit [Quit: Burgestrand]
knu has quit [Ping timeout: 252 seconds]
solars has joined #ruby-lang
frzng has quit [Quit: frzng]
mehlah has joined #ruby-lang
iamcalledrob has quit [Quit: Computer has gone to sleep.]
banister has joined #ruby-lang
tbuehlmann has joined #ruby-lang
Cakey has quit [Ping timeout: 245 seconds]
GBrawl_ has joined #ruby-lang
ironhide_604 has joined #ruby-lang
GBrawl has quit [Ping timeout: 245 seconds]
stayarrr has quit [Quit: Leaving...]
fezziwig has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
Cakey has joined #ruby-lang
rahul_j has joined #ruby-lang
jxie has quit [Ping timeout: 240 seconds]
fezziwig has quit [Ping timeout: 245 seconds]
phansch has quit [Quit: WeeChat 0.4.3]
TTilus has quit [Ping timeout: 276 seconds]
iamcalledrob has joined #ruby-lang
TTilus has joined #ruby-lang
jxie has joined #ruby-lang
iamcalledrob has quit [Ping timeout: 252 seconds]
sharpmachine has joined #ruby-lang
sharpmachine has quit [Ping timeout: 252 seconds]
rahul_j has quit [Quit: rahul_j]
kitak_ has quit [Remote host closed the connection]
Miphix has quit [Quit: Leaving]
jsullivandigs has quit [Remote host closed the connection]
heftig has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
stayarrr has joined #ruby-lang
rahul_j has joined #ruby-lang
stayarrr has quit [Client Quit]
Miphix has joined #ruby-lang
kitak_ has joined #ruby-lang
cnivolle has joined #ruby-lang
<yorickpeterse>
morning
cnivolle has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
iamcalledrob has joined #ruby-lang
cnivolle_ has joined #ruby-lang
iamcalledrob has quit [Ping timeout: 240 seconds]
cnivolle has quit [Ping timeout: 252 seconds]
woollyams has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby-lang
koteka has joined #ruby-lang
Cakey has quit [Ping timeout: 240 seconds]
kitak_ has quit [Remote host closed the connection]
marr has joined #ruby-lang
kitak_ has joined #ruby-lang
Cakey has joined #ruby-lang
elia has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
stayarrr has joined #ruby-lang
koteka has left #ruby-lang [#ruby-lang]
knu has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<maloik>
ugh, debugging something without tests and with massive amounts of technical debt
<maloik>
I'm pretty sure I'll want to shoot myself by the end of the day
<yorickpeterse>
Hey welcome to a large portion of my codebase
Cakey has quit [Ping timeout: 240 seconds]
<yorickpeterse>
take babby steps when dealing with that stuff
<maloik>
easier said than done
relix has joined #ruby-lang
<yorickpeterse>
I think it's taken me about 6 months to get our scrapers from 0% test coverage to 60%
<maloik>
worst thing is this is a bug in an invoicing part of the product
<maloik>
so there's money involved
<yorickpeterse>
Excluding all the planning prior to that
<maloik>
== headaches
<yorickpeterse>
heh
<yorickpeterse>
Please tell me you're not using floats for currencies
<maloik>
lets see
<maloik>
decimals \o/
<maloik>
:-(
<maloik>
that's not the problem though, difference is too big
<yorickpeterse>
ha
<maloik>
I'm pretty sure it has to do with the cached totals for an invoice, where the lineitems are then changed afterwards
<yorickpeterse>
ha
<yorickpeterse>
You might want to double check you haven't lost money over the past few months
<maloik>
fuck that
<maloik>
I'm not touching that part, seriously
<maloik>
we've already said we won't add any features anymore, unless they go for a full rewrite
<maloik>
(which they will, at some point)
robbyoconnor has joined #ruby-lang
<maloik>
but yea invoice totals not being correct is a bug so it needs to be fixed now
Squarepy has joined #ruby-lang
<yorickpeterse>
Thank raptor Jesus I don't do financing
<yorickpeterse>
Instead I mainly deal with dumbass websites that can't set proper status codes
<yorickpeterse>
Page missing? Here, HTTP 200
<maloik>
:-)
<maloik>
"the 404 page rendered OK, here's a 200"
<yorickpeterse>
Pretty much
stayarrr has quit [Quit: Leaving...]
<yorickpeterse>
At least these websites tend to display some message like "Sorry, this place is closed!"
rahul_j has joined #ruby-lang
<yorickpeterse>
Meanwhile I'm updating stuff to 2.1
<yorickpeterse>
on a Monday, the only day when everybody logs in like crazy
<yorickpeterse>
welp
iamcalledrob has joined #ruby-lang
bubodlack has quit [Ping timeout: 252 seconds]
iamcalledrob has quit [Ping timeout: 264 seconds]
alex-quiterio has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arBmind has joined #ruby-lang
fezziwig has joined #ruby-lang
fezziwig has quit [Ping timeout: 252 seconds]
ht_ has joined #ruby-lang
andrewhl has joined #ruby-lang
_ht has quit [Ping timeout: 252 seconds]
agrinb has joined #ruby-lang
agrinb_ has joined #ruby-lang
<yorickpeterse>
blegh, getting a Mongoid 2 codebase to run on Mongoid 3 is not as easy as I hoped for
<yorickpeterse>
quite a bit changed, hmpf
<yorickpeterse>
15 libraries hijacking method_missing doesn't make it easier to debug stack traces either
agrinb has quit [Ping timeout: 240 seconds]
<yorickpeterse>
It's also nice that Devise spits out deprecation warnings for stuff we don't even set/use
<yorickpeterse>
"Devise.foo = true is deprecated because bla bla" <- option not set anywhere
<ari-_-e>
yorickpeterse: that probably means that the deprecated option is still the default
frobrob has joined #ruby-lang
andrewhl has quit [Quit: andrewhl]
<yorickpeterse>
Could be, but then it's bullshit to warn somebody about it
stamina has joined #ruby-lang
<yorickpeterse>
That is, if they don't set it nor can change it, why the heck bother?
<ari-_-e>
you can't change it?
sheperson has joined #ruby-lang
alex-quiterio has quit [Quit: Leaving.]
mehlah has quit [Quit: Leaving...]
bin7me has joined #ruby-lang
<yorickpeterse>
I can probably do "Devise.foo = false" but if it's going to be removed, why should I set that?
<ari-_-e>
oh, so it's saying that Devise.foo is deprecated?
<ari-_-e>
or Devise.foo = true?
<yorickpeterse>
"[DEVISE] Devise.use_salt_as_remember_token is false which is no longer supported. Devise now only uses the salt as remember token and the remember_token column can be removed from
<yorickpeterse>
your models."
<yorickpeterse>
That's an example
<yorickpeterse>
That option is not referenced anywhere
<yorickpeterse>
Perhaps some plugin somewhere deep down sets it
bubodlack has joined #ruby-lang
<ari-_-e>
so you could do Devise.use_salt_as_remember_token = true, yes?
<yorickpeterse>
You're missing the part where that option will apparently be removed
<yorickpeterse>
Thus if I do that I again have to change it some time soon-ish
marr has quit [Ping timeout: 276 seconds]
<ari-_-e>
yorickpeterse: where does it say that it will be removed?
alex-quiterio has joined #ruby-lang
<yorickpeterse>
Considering they say it's not longer supported, it's a boolean with no alternative, I'm pretty sure it will be removed
<yorickpeterse>
What's the point of setting an option if you can only ever set it to a single value?
<ari-_-e>
yorickpeterse: you're making assumptions
<yorickpeterse>
..
<yorickpeterse>
Gee, lets see
<yorickpeterse>
We have a boolean option
<yorickpeterse>
You can set it to true or false
<yorickpeterse>
Setting it to false, which doesn't happen in my code base, is not supported
<yorickpeterse>
So that leaves us with `true` as the only possible option
<yorickpeterse>
Hm, I wonder what will happen to that option
<golivag>
hi all I have download this repository https://github.com/saasbook/ruby-calisthenics for some ruby coding exercises. I would like to use autotest but it seems to ignoring the spec directory ... any clue about why?
charliesome has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pskosinski has quit [Quit: Til rivido Idisti!]
twintail has joined #ruby-lang
sheperson has quit [Ping timeout: 265 seconds]
nathanstitt has quit [Quit: I growing sleepy]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby-lang
yatish27 has joined #ruby-lang
mister_integer has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
jhass|off is now known as jhass
sharpmachine has joined #ruby-lang
charliesome has joined #ruby-lang
sharpmachine has quit [Ping timeout: 264 seconds]
amclain has joined #ruby-lang
RobertBirnie has joined #ruby-lang
GaelanAintAround has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Client Quit]
alex-quiterio has joined #ruby-lang
zz_dlu has quit [Ping timeout: 252 seconds]
simono has joined #ruby-lang
zz_dlu has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
stamina has quit [Ping timeout: 252 seconds]
JokerDoom has quit [Read error: Connection reset by peer]
mehlah has quit [Quit: Leaving...]
JokerDoom has joined #ruby-lang
r0bby has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 240 seconds]
frzng has joined #ruby-lang
JokerDoom has quit [Read error: Connection reset by peer]
JokerDoom has joined #ruby-lang
JokerDoom has quit [Read error: Connection reset by peer]
JokerDoom has joined #ruby-lang
JokerDoom has quit [Client Quit]
JokerDoom has joined #ruby-lang
twintail has quit [Quit: Leaving.]
karamazov has quit [Remote host closed the connection]
Squarepy has joined #ruby-lang
arooni-mobile has quit [Read error: Connection reset by peer]
vinhbach_ has quit []
arooni-mobile has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
mehlah has joined #ruby-lang
jstemmer has quit [Quit: leaving]
mister_integer has joined #ruby-lang
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mister_i_ has joined #ruby-lang
mister_integer has quit [Read error: Connection reset by peer]
matp has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cnivolle has quit [Remote host closed the connection]
<centrx>
roelof, How does the x > y ? y -= 1 puts y : x -=1 puts x fit in
<roelof>
centrx: I have this so far : pin_number == pin ? (@balance -= amount) : (pin_error)
<centrx>
ok it becomes much easier when only one variable is changed
<centrx>
the example code you asked above either changed x or y depending on the conditional
<roelof>
oke, The problem is as soon as I do (@balance -= amount; puts "Withdrew #{amount}. New balance: $#{@balance}." ) I see a message that : is expected instead of the ;
<apeiros>
roelof: if you use ; in code, you're doing it wrong.
<roelof>
apeiros: I know , thats why I see the error
<apeiros>
except if your aim is to write unreadable, badly maintainable code.
<roelof>
nope , I want to learn to write good readable code
ldnunes has joined #ruby-lang
<roelof>
centrx: I do not see how I can make it work so if someone has a bad ping the error is schown and otherwise this message : puts "Withdrew #{amount}. New balance: $#{@balance}."
<apeiros>
roelof: just write it out as multiple statements
<centrx>
roelof, That's what return pin_error unless valid_pin?(pin_number) does. The rest of the method will only be executed if the pin is valid
<centrx>
roelof, So you can put any messages you want -- one line at a time
<roelof>
centrx: Wait a minute. Can I not just place that as the last statement. As I understand the code right . if the pin is not valid the error message is return. So if the pin-code is valid the rest of the module is executed
<roelof>
Am I on the right track
<roelof>
oke, I see that you already answered my question , You beat me by a minute centrx
<roelof>
centrx: I think I understand the way this works. I think this is working better then the ternary option in most options
<centrx>
roelof, It makes the code much easier to read and understand, either when you come back to a project later, or if someone else needs to figure out how your code works
<roelof>
yep, that is also what i mean. I completed the CodeAcademy course
<roelof>
now more practice hopefully with the exercism.io exercises so I can learn more and more
<roelof>
centrx: or do you know a better site for practising Ruby more
dwayhs has quit [Read error: Connection reset by peer]
dwayhs has joined #ruby-lang
sepp2k has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby-lang
<centrx>
roelof, I'm not familiar with exercism.io, you might like to try Ruby Koans or Ruby Monk