havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.0, 2.6.5, 2.5.7: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
lxsameer has quit [Ping timeout: 265 seconds]
davidw has quit [Ping timeout: 272 seconds]
turbo_choo has joined #ruby
Lionyx has joined #ruby
spacesuitdiver has joined #ruby
VlanX has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
greengriminal has quit [Quit: Leaving]
DaRock has joined #ruby
fercell has quit [Quit: WeeChat 2.7]
Exuma has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
davidw has joined #ruby
davidw has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
Lionyx has quit [Ping timeout: 260 seconds]
bsdbandit-01 has joined #ruby
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
drincruz_ has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
skryking_ has quit [Ping timeout: 240 seconds]
skryking has joined #ruby
GodFather has joined #ruby
drincruz_ has quit [Ping timeout: 265 seconds]
sarink has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
davidw has quit [Ping timeout: 240 seconds]
sergioro has quit [Quit: leaving]
thenori has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix- has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
wildtrees has quit [Quit: Leaving]
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
bvdw has joined #ruby
Synthead has joined #ruby
<Synthead> in pry, when the return value is very long, it uses less. Is there a way I can explicitly use less? I want to use some less features with a small amount of text.
mossplix has quit []
drincruz_ has joined #ruby
Inoperable has joined #ruby
<havenwood> Synthead: Are you talking about paging, like how much before it interrupts with more/less style?
<Synthead> havenwood: Yeah. Say I have 100 rows in my terminal. If I type a var name and it is 300 lines long, it'll go to less. If it fits in the terminal, it doesn't, and gets written directly instead. I'm looking to ask pry to explicitly use less for text that would fit in my screen. I want to use / and the like :)
duderonomy has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
<havenwood> Synthead: There aren't hooks, but you should be able to override it here: https://github.com/pry/pry/blob/v0.12.2/lib/pry/pager.rb#L90
duderonomy has quit [Client Quit]
<Synthead> interesting
duderonomy has joined #ruby
Inoperable has quit [Quit: All your buffer are belong to us!]
Inoperable has joined #ruby
<havenwood> Synthead: You might consider a PR adding it as a configurable setting if you find it useful.
Inoperable has quit [Client Quit]
Inoperable has joined #ruby
<Synthead> hm, yeah
Inoperable has quit [Remote host closed the connection]
<Synthead> kinda like how we can do "ls 0"
<Synthead> it'd be nice if we could do "less 0"
Inoperable has joined #ruby
<Synthead> not sure if this would break stuff
<havenwood> Synthead: It'd probably be exposed as a setting, like: Pry.config.pager_height. = 42
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
<havenwood> Synthead: You can easily add a pry command for `less` if that's what you prefer, but I dunno what I'd have that command do.
<Synthead> oh that's a good idea!
sarink has quit [Remote host closed the connection]
gavlee has quit [Ping timeout: 240 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
howdoi has quit [Quit: Connection closed for inactivity]
drincruz_ has quit [Ping timeout: 268 seconds]
alex`` has quit [Quit: WeeChat 2.7]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
meinside has joined #ruby
thenori has quit [Quit: Leaving]
Synthead has quit [Quit: Leaving]
sergioro has joined #ruby
sarink has joined #ruby
Bounga has joined #ruby
Bounga has quit [Ping timeout: 272 seconds]
gnufr33d0m has joined #ruby
howdoi has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
ttoocs has joined #ruby
fluxAeon has quit [Quit: Textual IRC Client: www.textualapp.com]
xco has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
glytchbinary has joined #ruby
sarink has quit [Ping timeout: 260 seconds]
lineus has quit [Remote host closed the connection]
lineus has joined #ruby
braincrash has quit [Quit: bye bye]
sleepee has joined #ruby
braincrash has joined #ruby
drincruz_ has joined #ruby
alfiemax has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
plutes has joined #ruby
glytchbinary has quit [Quit: glytchbinary]
nibbo has quit [Ping timeout: 268 seconds]
nibbo has joined #ruby
polishdub has joined #ruby
TzilTzal has joined #ruby
ur5us has quit [Ping timeout: 272 seconds]
chalkmonster has joined #ruby
TzilTzal_ has joined #ruby
TzilTzal has quit [Ping timeout: 268 seconds]
davor_ has joined #ruby
davor has quit [Ping timeout: 265 seconds]
davor_ is now known as davor
polishdub has quit [Quit: leaving]
gnufr33d0m has quit [Remote host closed the connection]
dinfuehr_ has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
hutch has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.7]
al2o3-cr has joined #ruby
akemhp has quit [Quit: Leaving]
akemhp has joined #ruby
cliluw has quit [Ping timeout: 268 seconds]
zdm has joined #ruby
zdm has left #ruby [#ruby]
fig-le-deunch has quit [Quit: Konversation terminated!]
sarink has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nibbo has quit [Ping timeout: 272 seconds]
hutch has quit [Read error: Connection reset by peer]
sarink has quit [Remote host closed the connection]
TzilTzal has joined #ruby
sarink has joined #ruby
spacesuitdiver has quit [Ping timeout: 240 seconds]
spacesuitdiver has joined #ruby
TzilTzal_ has quit [Ping timeout: 268 seconds]
nibbo has joined #ruby
imadper has joined #ruby
drincruz_ has quit [Ping timeout: 268 seconds]
sarink has quit [Ping timeout: 265 seconds]
shah^ has quit []
sleepee has quit [Ping timeout: 260 seconds]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
seagle0128 has joined #ruby
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
<Cork> anyone here ever written a test suite for a thin server rackup script or have suggestion on how to write one?
gnufr33d0m has joined #ruby
ur5us has joined #ruby
dionysus69 has joined #ruby
schne1der has joined #ruby
cthu| has quit [Ping timeout: 268 seconds]
sarink has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
jmcgnh has quit [Ping timeout: 268 seconds]
Ai9zO5AP has quit [Quit: WeeChat 2.5]
duderonomy has joined #ruby
jmcgnh has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schne1der has quit [Ping timeout: 260 seconds]
tsrt^ has joined #ruby
Yxhuvud has quit [Ping timeout: 265 seconds]
seagle0128 has quit [Ping timeout: 265 seconds]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schne1der has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
fercell has joined #ruby
sdu has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
ellcs has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
alfiemax has quit [Remote host closed the connection]
fphilipe_ has joined #ruby
fphilipe has quit [Ping timeout: 272 seconds]
alfiemax has joined #ruby
gnufr33d0m has quit [Remote host closed the connection]
gnufr33d0m has joined #ruby
Helenah has quit [Read error: Connection reset by peer]
cisco has joined #ruby
cisco is now known as Guest17975
sarink has joined #ruby
Helenah has joined #ruby
pandakekok9 has joined #ruby
sarink has quit [Ping timeout: 268 seconds]
Azure|dc has joined #ruby
Azure has quit [Ping timeout: 265 seconds]
suukim has joined #ruby
TzilTzal has quit []
Jonopoly has joined #ruby
code_zombie has quit [Quit: Leaving]
Emmanuel_Chanel has quit [Ping timeout: 268 seconds]
lxsameer has joined #ruby
Guest17975 has quit [Quit: leaving]
Emmanuel_Chanel has joined #ruby
phaul_ has joined #ruby
chalkmonster has joined #ruby
phaul_ has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
Fernando-Basso has joined #ruby
Eiam has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 248 seconds]
phaul_ has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.5]
chalkmonster has quit [Quit: WeeChat 2.7]
phaul_ has quit [Ping timeout: 260 seconds]
phaul_ has joined #ruby
robotmay has quit [Remote host closed the connection]
robotmay has joined #ruby
pandakekok9 has quit [Remote host closed the connection]
lineus has quit [Remote host closed the connection]
iNs_ has quit [Write error: Connection reset by peer]
galaxie has quit [Write error: Connection reset by peer]
lineus has joined #ruby
galaxie has joined #ruby
iNs has joined #ruby
gnufr33d0m has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
gnufr33d0m has joined #ruby
alex` has joined #ruby
alex` is now known as Guest56192
pandakekok9 has joined #ruby
phaul_ has quit [Ping timeout: 246 seconds]
drincruz_ has joined #ruby
phaul_ has joined #ruby
sarink has joined #ruby
drincruz_ has quit [Ping timeout: 260 seconds]
sarink has quit [Ping timeout: 248 seconds]
pandakekok9 has quit [Ping timeout: 240 seconds]
x0n has quit [Ping timeout: 265 seconds]
snuz has joined #ruby
Guest56192 is now known as alex``
chalkmonster has joined #ruby
sergioro has quit [Quit: leaving]
x0n has joined #ruby
x0n has quit [Read error: Connection reset by peer]
x0n has joined #ruby
x0n has quit [Read error: Connection reset by peer]
FastJack has quit [Ping timeout: 265 seconds]
clemens3 has joined #ruby
Jonopoly has joined #ruby
x0n has joined #ruby
x0n has quit [Read error: Connection reset by peer]
x0n has joined #ruby
x0n has quit [Read error: Connection reset by peer]
x0n has joined #ruby
x0n has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
x0n has joined #ruby
x0n has quit [Read error: Connection reset by peer]
x0n has joined #ruby
x0n has quit [Read error: Connection reset by peer]
x0n has joined #ruby
x0n has quit [Read error: Connection reset by peer]
x0n has joined #ruby
x0n has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
Helenah has quit [Read error: Connection reset by peer]
Helenah has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
davor_ has joined #ruby
markopasha has quit [Ping timeout: 265 seconds]
davor has quit [Ping timeout: 268 seconds]
davor_ is now known as davor
phaul_ has quit [Ping timeout: 265 seconds]
za1b1tsu has joined #ruby
phaul_ has joined #ruby
schne1der has quit [Ping timeout: 272 seconds]
alfiemax has quit [Remote host closed the connection]
rkoller has joined #ruby
rkoller has quit [Client Quit]
drincruz_ has joined #ruby
Helenah has quit [Ping timeout: 252 seconds]
jmcgnh has quit [Read error: Connection reset by peer]
sarink has joined #ruby
Helenah has joined #ruby
sarink has quit [Ping timeout: 260 seconds]
jmcgnh has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
buckworst has joined #ruby
lucasb has joined #ruby
jenrzzz has joined #ruby
schne1der has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
tsrt^ has quit []
Helenah has quit [Ping timeout: 240 seconds]
plutes has quit [Read error: Connection reset by peer]
wallace_mu has joined #ruby
Helenah has joined #ruby
xco has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
xco has quit [Client Quit]
<rapha> hi
xco has joined #ruby
<rapha> is there any ruby lib to quickly create a standards-conform HTML5 file without having to work with template files? something like "HTML5File.write('blah.html') {|head, body| body << HTML5File.new_element('ul', HTML5File.new_element('li', 'hellothere'))}?
xco has quit [Client Quit]
<adam12> rapha: Tubby, Erector, HOM, and probably a few more.
<rapha> wow
* rapha googles away
<rapha> liking the "erector" name :-P
iNs has quit [Remote host closed the connection]
<rapha> but tubby seems more mature than erector and i like its api better than HOM's
* rapha tries
iNs has joined #ruby
<adam12> I've used HOM and I use Tubby.
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
phaul has joined #ruby
plutes has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
wallace_mu has quit [Ping timeout: 240 seconds]
jhill has quit []
jhill has joined #ruby
plutes has quit [Quit: See ya around!]
plutes has joined #ruby
ec has quit []
ec has joined #ruby
strmpnk has quit []
strmpnk has joined #ruby
englishm has quit []
<rapha> Did it with Tubby now and found it really nice and easy to use. Thank you for the tip, adam12!
<adam12> rapha: yw!
englishm has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Ping timeout: 265 seconds]
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #ruby
alexherbo2 has joined #ruby
wallace_mu has joined #ruby
jmcgnh has quit [Ping timeout: 260 seconds]
Jonopoly has quit [Quit: WeeChat 2.5]
jmcgnh has joined #ruby
cisco has joined #ruby
plutes has quit [Quit: See ya around!]
phaul_ has quit [Ping timeout: 260 seconds]
plutes has joined #ruby
phaul_ has joined #ruby
duderonomy has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
spacesuitdiver has joined #ruby
DaRock has quit [Ping timeout: 265 seconds]
manveru has quit []
manveru has joined #ruby
sarink has joined #ruby
BTRE has joined #ruby
alfiemax has joined #ruby
sarink has quit [Ping timeout: 268 seconds]
schne1der has quit [Ping timeout: 260 seconds]
royal_screwup21 has joined #ruby
za1b1tsu has quit [Ping timeout: 268 seconds]
JohanP has joined #ruby
alfiemax has quit [Remote host closed the connection]
turbo_choo has quit [Ping timeout: 268 seconds]
ttoocs has quit [Ping timeout: 265 seconds]
SeepingN has joined #ruby
mkaito has quit [Read error: Connection reset by peer]
mkaito has joined #ruby
mkaito has quit [Changing host]
mkaito has joined #ruby
danguita has quit []
danguita has joined #ruby
turbo_choo has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
fercell has quit [Quit: WeeChat 2.7]
bradland has quit [Quit: bradland]
buckworst has quit [Quit: WeeChat 2.7]
royal_screwup21 has joined #ruby
tpanarch1st has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CustosLimen has quit []
CustosLimen has joined #ruby
schne1der has joined #ruby
vondruch has joined #ruby
sdu has quit [Remote host closed the connection]
duckpuppy has quit [Remote host closed the connection]
chalkmonster has joined #ruby
davidw has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
duckpuppy has joined #ruby
dinfuehr_ has joined #ruby
cthu| has joined #ruby
turbo_choo has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
chalkmonster has quit [Quit: WeeChat 2.7]
dinfuehr_ has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
sphex has quit [Ping timeout: 268 seconds]
gix has joined #ruby
sphex has joined #ruby
Helenah has quit [Ping timeout: 268 seconds]
x0n has joined #ruby
clemens3 has quit [Quit: WeeChat 2.1]
royal_screwup21 has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
davispuh has joined #ruby
JohanP has quit [Remote host closed the connection]
JohanP has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpuppy has quit [Quit: ZNC 1.7.5-rc1 - https://znc.in]
JohanP has quit [Remote host closed the connection]
wildtrees has joined #ruby
JohanP has joined #ruby
howdoi has joined #ruby
lxsameer has quit [Ping timeout: 265 seconds]
alfiemax has joined #ruby
NODE has quit [Quit: changing servers]
royal_screwup21 has quit [Remote host closed the connection]
NODE has joined #ruby
markopasha has joined #ruby
markopasha has quit [Max SendQ exceeded]
duckpuppy has joined #ruby
markopasha has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
alfiemax has quit [Remote host closed the connection]
duderonomy has joined #ruby
Helenah has joined #ruby
dinfuehr has quit [Ping timeout: 272 seconds]
dinfuehr has joined #ruby
chromis has quit []
chromis has joined #ruby
Helenah has quit [Quit: Client quit]
jmcgnh has quit [Ping timeout: 268 seconds]
Helenah has joined #ruby
jmcgnh has joined #ruby
Lewix has quit []
Lewix has joined #ruby
JohanP has quit [Ping timeout: 268 seconds]
turbo_choo has joined #ruby
pwnd_nsfw` has joined #ruby
Rob__ has joined #ruby
x0n has quit [Ping timeout: 265 seconds]
cisco has quit [Ping timeout: 260 seconds]
pwnd_nsfw has quit [Ping timeout: 260 seconds]
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
x0n has joined #ruby
phaul_ has quit [Ping timeout: 268 seconds]
VlanX has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
x0n has quit [Quit: ZNC - https://znc.in]
x0n has joined #ruby
afisher has quit []
afisher has joined #ruby
Ai9zO5AP has joined #ruby
turbo_choo has quit [Ping timeout: 240 seconds]
turbo_choo has joined #ruby
alfiemax has joined #ruby
cliluw has joined #ruby
gajus has quit []
gajus has joined #ruby
tryhard21 has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
Helenah has quit [Ping timeout: 268 seconds]
plutes has quit [Ping timeout: 268 seconds]
plutes has joined #ruby
raggi- has quit []
ellcs has quit [Remote host closed the connection]
raggi- has joined #ruby
Fernando-Basso has joined #ruby
cisco has joined #ruby
cisco is now known as Guest49446
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
suukim has quit [Quit: Konversation terminated!]
bsdbandit-01 has joined #ruby
r3my has quit []
r3my has joined #ruby
gnufr33d0m has quit [Remote host closed the connection]
cliluw has quit [Ping timeout: 260 seconds]
cliluw has joined #ruby
tpanarch1st has quit [Ping timeout: 255 seconds]
Sauvin has quit [Ping timeout: 268 seconds]
Guest30850 has joined #ruby
drincruz_ has quit [Read error: Connection reset by peer]
cd has joined #ruby
CustosLimen has quit [Ping timeout: 248 seconds]
strmpnk has quit [Ping timeout: 245 seconds]
r3my has quit [Ping timeout: 248 seconds]
Lewix has quit [Ping timeout: 272 seconds]
afisher has quit [Ping timeout: 245 seconds]
manveru has quit [Ping timeout: 246 seconds]
englishm has quit [Ping timeout: 245 seconds]
ec has quit [Ping timeout: 245 seconds]
raggi- has quit [Ping timeout: 272 seconds]
gajus has quit [Ping timeout: 252 seconds]
danguita has quit [Ping timeout: 252 seconds]
Helenah has joined #ruby
chromis has quit [Ping timeout: 272 seconds]
jhill has quit [Ping timeout: 272 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
sergioro has joined #ruby
Guest49446 has quit [Ping timeout: 268 seconds]
drincruz_ has joined #ruby
Guest30850 has quit [Quit: Lost terminal]
tau has joined #ruby
cliluw has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
tau has quit [Remote host closed the connection]
griffindy has joined #ruby
griffindy has quit [Client Quit]
Helenah has quit [Ping timeout: 240 seconds]
Helenah1 has joined #ruby
ur5us has joined #ruby
sleepee has joined #ruby
gnufr33d0m has joined #ruby
nowhere_man has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
Eiam has joined #ruby
cliluw has joined #ruby
<lmat> Still getting my head around ruby... I have Rails.logger.info " digest nil? #{digest.nil?}" then next line: return false if digest.nil? then next line Rails.logger.info "it's okay"
<lmat> "it's okay" is not making it to the logs. This seems ridiculous?
<lmat> Oh, the first logging statement says "digest nil? false"
<lmat> yeah... if digest.nil?; return false; end; *doesn't* return, but return false if digest.nil?; *does* return.
<lmat> This is ludicrous?
<havenwood> lmat: Show your code? Paste to gist.github.com or depaste.de?
<lmat> hmmm...I rewrote it and I think it's fine now?
gnufr33d0m has quit [Remote host closed the connection]
<havenwood> I'm sure we could say why if you show the before and after code.
<phaul> I find this hard to believe, the one line if should do the same. There must be something else
<phaul> &>> def foo; return false if false; 'not false'; end; foo
<rubydoc> # => "not false" (https://carc.in/#/r/8ime)
gnufr33d0m has joined #ruby
<lmat> phaul: Yeah, must have been something else. I'm new to ruby and wanted to make sure it's crazy :-)
Helenah1 has quit [Ping timeout: 268 seconds]
<phaul> share your code as havenwood suggested. Otherwise an other thing to think about is whether the log has been flushed to the file or is it sitting in some buffer
<lmat> As I said, it's working now. I must have had something wrong.
cliluw has quit [Ping timeout: 260 seconds]
<phaul> lmat, if I can make a suggestion, try doing debugging with pry as opposed to logging. Much easier, it's desgined for debugging
fphilipe has joined #ruby
<wallace_mu> has anyone experience this before: the rake unit test generate the records with attribute long than db column allowed which cause error like `Mysql2::Error: Out of range value for column 'request_id' at row 1:`
<wallace_mu> sometime the error got swallowed and take me alot of time to debug, specially when the logic chain is pretty long..
fphilipe_ has quit [Ping timeout: 272 seconds]
Fernando-Basso has quit [Quit: Leaving]
<lmat> phaul: Oh yes, I'm familiar with pry! adam12 suggested it and it was very helpflu.
<lmat> phaul: In this case, the trace statements are trivial, but I'll try to keep pry in mind.
<phaul> if you don't see up to the last execution information in the logs because the logger buffers it can become super confusing
pr0ton has joined #ruby
pr0ton has left #ruby [#ruby]
<lmat> phaul: I put logging statements after the function returns, too. If I don't see them, I know something went off a cliff :-)
VlanX has quit [Quit: Konversation terminated!]
gix- has joined #ruby
gix has quit [Disconnected by services]
<leftylink> dang, all my accusations are useless
sleepee has quit [Quit: Leaving]
schne1der has quit [Ping timeout: 260 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
dStrombo1 has quit [Quit: WeeChat 2.7]
gavlee has joined #ruby
im0nde has joined #ruby
im0nde_ has quit [Ping timeout: 248 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lmat> I'm calling this from an integration test: get edit_password_reset_path(:html, reset_digest: @user.reset_digest, email: @user.email, id: @user.id)
<lmat> email and id are showing up in params in the controller, but not reset_digest.
<lmat> (I'm talking about *before* .require and .permit)
<lmat> Am I doing something obviously wrong?
<lmat> It looks like the first implicit parameter is :format, so I'm passing :html as that.
<lmat> I just traded email and reset_digest positions in the call and I get the same thing.
<lmat> OOOHHH
<lmat> I need params: { ... } maybe
sh7d has quit [Quit: meh]
duderonomy has joined #ruby
dStromboli has joined #ruby
sh7d has joined #ruby
<lmat> Yeah, the results are at least .. different now!
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lmat> Is there a typical password resets controller? Mine seems ... wrong
<lmat> unless (@user && @user.activated? && @user.authenticated?(:reset, params[:id])) ...
<lmat> the @user.authenticated? takes attribute and a token. So, this is telling it to check the :reset_digest property of the user, and compare it with params[:id] (like "1"?)
<lmat> So that's obviously wrong. I changed it to @user.authenticated?(:reset, user_params[:reset_digest]) this also doesn't work
duderonomy has joined #ruby
<lmat> because inside authenticated?, there is BCrypt::Password.new(digest).is_password?(token)
<lmat> At this point, though, digest == token! So this BCrypt hash stuff doesn't work for the reset_digest.
davidw has quit [Ping timeout: 272 seconds]
<lmat> Maybe instead of @user.authenticated? I should just be doing @user.reset_digest == user_params[:reset_digest] ?
vipaca has joined #ruby
<lmat> That SEEMS to work...
<phaul> you assume way too much familiarity with your code base from us
dStromboli has quit [Quit: WeeChat 2.7]
thecoffemaker has quit [Ping timeout: 268 seconds]
thecoffemaker has joined #ruby
<lmat> phaul: perhaps!
<lmat> phaul: I'm thinking that since rails is heavily opinionated... I'm new round here :-)
sagax has quit [Remote host closed the connection]
cliluw has joined #ruby
nowhere_man has joined #ruby
vipaca has quit [Read error: Connection timed out]
<leftylink> you know how there are people who are ... proud of not knowing math or something
<leftylink> like they aggressively throw their non-knowledge of math in others' facces
<leftylink> are there maybe people like that for rails
<leftylink> every chance they get they're like "NOPE I DON'T KNOW RAILS"
<leftylink> "CAN'T HELP YOU WITH YOUR RAILS QUESZTIONS"
sagax has joined #ruby
hiroaki has joined #ruby
<leftylink> well maybe I was like that once upon a time so this is the pot calling the kettle black!!!!!!1!
<uplime> "we need a doctor!" "sorry I don't know rails"
gnufr33d0m has quit [Remote host closed the connection]
gnufr33d0m has joined #ruby
<phaul> leftylink: I'm under the opinion that try to create mcve, ask targeted questions, and ppl interested will look into it. On the other hand being proud of not knowing something is just idiocracy.
<phaul> but rambling random code stuff out of the blue and you won't get much help as ppl don't have a flipping clue what you are talking about
cliluw has quit [Ping timeout: 240 seconds]
strmpnk has joined #ruby
jhill has joined #ruby
englishm has joined #ruby
ec has joined #ruby
manveru has joined #ruby
impermanence has joined #ruby
lunarkitty has quit [Ping timeout: 245 seconds]
jmcgnh has quit [Ping timeout: 268 seconds]
chromis has joined #ruby
afisher has joined #ruby
gajus has joined #ruby
raggi- has joined #ruby
lunarkitty has joined #ruby
r3my has joined #ruby
danguita has joined #ruby
CustosLimen has joined #ruby
Lewix has joined #ruby
jmcgnh_ has joined #ruby
jmcgnh_ is now known as jmcgnh
markopasha has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 268 seconds]
gnufr33d0m has quit [Read error: Connection reset by peer]
markopasha has joined #ruby
markopasha has quit [Remote host closed the connection]
NODE has quit []
Benett has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby
Benett has joined #ruby
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
Benett has quit [Quit:  ]
Benett has joined #ruby
jenrzzz has joined #ruby
NODE has joined #ruby
buckworst has joined #ruby
s3nd1v0g1us has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
fig-le-deunch has joined #ruby
vipaca has joined #ruby
vipaca has quit [Changing host]
vipaca has joined #ruby