baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby
karapetyan has quit [Ping timeout: 252 seconds]
Guest33581 has joined #ruby
ciscam has quit [Ping timeout: 252 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ciscam has joined #ruby
jnollette has quit [Remote host closed the connection]
VladGh has joined #ruby
jnollette has joined #ruby
parzydeuko has joined #ruby
RougeR has quit [Ping timeout: 248 seconds]
RougeR has joined #ruby
emilford has joined #ruby
cschneid has joined #ruby
emilford has quit [Ping timeout: 252 seconds]
BTRE has joined #ruby
emilford has joined #ruby
minimalism has joined #ruby
nahra has quit [Remote host closed the connection]
Pisuke has joined #ruby
alfiemax has joined #ruby
MyMind has quit [Ping timeout: 264 seconds]
amar has quit [Remote host closed the connection]
amar has joined #ruby
Asher has quit [Ping timeout: 268 seconds]
rkazak has joined #ruby
amar has quit [Ping timeout: 252 seconds]
Bonjourm8 has joined #ruby
rawste has quit [Quit: zzZZzzZZZ……]
nowhere_man has joined #ruby
cschneid has quit [Remote host closed the connection]
causasui_ has quit [Quit: Page closed]
Asher has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
nowhere_man has quit [Ping timeout: 245 seconds]
noobineer has joined #ruby
AJA4350 has quit [Remote host closed the connection]
Asher has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
Guest777 has joined #ruby
tdy has quit [Ping timeout: 260 seconds]
emilford has quit [Read error: Connection reset by peer]
Guest777 has quit [Client Quit]
karapetyan has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
gil_ has quit [Ping timeout: 248 seconds]
parzydeuko has quit [Ping timeout: 245 seconds]
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
alfiemax has quit [Ping timeout: 260 seconds]
seabee has joined #ruby
marr has quit [Ping timeout: 248 seconds]
Bonjourm8 has quit [Quit: Leaving]
griffindy has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
noobineer has quit [Ping timeout: 245 seconds]
kmurphy4 has quit [Quit: kmurphy4]
amar has joined #ruby
amar has quit [Ping timeout: 245 seconds]
Dimik has quit [Ping timeout: 256 seconds]
ryzokuken has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
griffindy has quit [Quit: Textual IRC Client: www.textualapp.com]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryzokuken has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 276 seconds]
ryzokuken has joined #ruby
alfiemax has joined #ruby
govg has joined #ruby
cyberg has quit [Quit: Leaving]
cagomez has joined #ruby
govg has quit [Ping timeout: 245 seconds]
alfiemax has quit [Ping timeout: 245 seconds]
cschneid has joined #ruby
white_lilies has joined #ruby
emilford has quit [Ping timeout: 245 seconds]
cschneid has quit [Ping timeout: 245 seconds]
ciscam has quit [Ping timeout: 245 seconds]
ciscam has joined #ruby
seabee has quit [Quit: leaving]
seabee has joined #ruby
nowhere_man has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
coderphive has quit [Read error: Connection reset by peer]
pilne has quit [Quit: Leaving]
ryzokuken has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dkphenom has joined #ruby
nowhere_man has quit [Ping timeout: 245 seconds]
ryzokuken has joined #ruby
ryzokuken has quit [Client Quit]
cagomez has quit [Remote host closed the connection]
Asher has joined #ruby
alfiemax has joined #ruby
cschneid has joined #ruby
cschneid has quit [Ping timeout: 245 seconds]
griffindy has joined #ruby
ayosurice has joined #ruby
griffindy has quit [Client Quit]
seabee has quit [Quit: leaving]
ayosurice has quit [Client Quit]
tdy has joined #ruby
vivsoni__ has quit [Read error: Connection reset by peer]
c0ncealed1 has quit [Remote host closed the connection]
c0ncealed1 has joined #ruby
alfiemax has quit [Remote host closed the connection]
Azure has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Ping timeout: 245 seconds]
alfiemax has joined #ruby
govg has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
dkphenom has quit [Quit: Textual IRC Client: www.textualapp.com]
duderonomy has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.1]
gix has joined #ruby
gix- has quit [Ping timeout: 260 seconds]
thapakazi has joined #ruby
thapakazi_ has joined #ruby
alfiemax has quit [Remote host closed the connection]
houhoulis has quit [Remote host closed the connection]
alfiemax has joined #ruby
houhoulis has joined #ruby
houhoulis has quit [Ping timeout: 260 seconds]
donofrio has quit [Remote host closed the connection]
harry_ has joined #ruby
jamiejackson has quit [Ping timeout: 260 seconds]
christianmello is now known as ecksian
ecksian has quit []
ryzokuken has joined #ruby
ecksian has joined #ruby
ciscam has quit [Ping timeout: 252 seconds]
ciscam has joined #ruby
catbusters has quit [Quit: Connection closed for inactivity]
dviola has quit [Quit: WeeChat 2.1]
harry_ has quit [Ping timeout: 252 seconds]
conta has joined #ruby
conta has quit [Ping timeout: 245 seconds]
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 245 seconds]
armyriad has quit [Ping timeout: 264 seconds]
armyriad has joined #ruby
vimal2012 has joined #ruby
karapetyan has joined #ruby
vimal2012 has left #ruby ["Leaving"]
karapetyan has quit [Ping timeout: 245 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
\void has joined #ruby
white_lilies has quit [Ping timeout: 252 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
aupadhye has joined #ruby
anisha has joined #ruby
duderonomy has quit [Ping timeout: 260 seconds]
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
alfiemax_ has quit [Remote host closed the connection]
TinkerT has quit [Read error: Connection reset by peer]
TinkerT has joined #ruby
duderonomy has joined #ruby
sidx64 has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
diegok has quit [Ping timeout: 268 seconds]
roshanavand has joined #ruby
tuskkk___ has joined #ruby
conta has joined #ruby
guacamole has joined #ruby
ciscam has quit [Ping timeout: 240 seconds]
reber has joined #ruby
schleppel has joined #ruby
ciscam has joined #ruby
ryzokuken is now known as ryzokuken[zzz]
ryzokuken[zzz] is now known as ryzokuken
ryzokuken is now known as ryzokuken[zzz]
ryzokuken[zzz] is now known as ryzokuken
sidx64 has joined #ruby
amar_ has joined #ruby
sidx64 has quit [Client Quit]
lele has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
lele has joined #ruby
sidx64 has joined #ruby
rahul_bajaj has quit [Ping timeout: 264 seconds]
mtkd has joined #ruby
saltsa has joined #ruby
ryzokuken is now known as ryzokuken[zzz]
amar_ has quit [Remote host closed the connection]
ryzokuken[zzz] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amar_ has joined #ruby
sidx64 has quit [Read error: Connection reset by peer]
sidx64 has joined #ruby
karapetyan has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 245 seconds]
duderonomy has quit [Ping timeout: 248 seconds]
sidx64_ has joined #ruby
sphenxes has joined #ruby
sidx64 has joined #ruby
sidx64_ has quit [Ping timeout: 252 seconds]
rivalomega has quit [Remote host closed the connection]
sidx64 has quit [Client Quit]
apeiros has joined #ruby
sidx64 has joined #ruby
dinfuehr has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
venmx has joined #ruby
amar_ has quit [Remote host closed the connection]
yohji has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pskosinski has quit [Ping timeout: 240 seconds]
sidx64 has joined #ruby
pskosinski has joined #ruby
dionysus69 has joined #ruby
kapil___ has joined #ruby
Burgestrand has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
rivalomega has joined #ruby
diegok has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Xeago_ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
rivalomega has quit [Ping timeout: 245 seconds]
Xeago has quit [Ping timeout: 265 seconds]
Xeago_ is now known as Xeago
Silthias has left #ruby [#ruby]
venmx has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
apeiros has joined #ruby
ryzokuken has joined #ruby
ryzokuken is now known as ryzokuken[zzz]
ryzokuken[zzz] has quit [Client Quit]
dionysus69 has quit [Ping timeout: 245 seconds]
guille-moe has joined #ruby
dionysus69 has joined #ruby
aufi has joined #ruby
suukim has joined #ruby
Guest33581 has quit [Quit: Gateway shutdown]
clemens3 has joined #ruby
Guest33581 has joined #ruby
amar_ has joined #ruby
KeyJoo has joined #ruby
apeiros has quit [Remote host closed the connection]
Nilium has quit [Quit: <kristin> Cower is like... I dunno. sometimes he seems senile and other times he seems like a middle schooler.]
apeiros has joined #ruby
amar_ has quit [Remote host closed the connection]
apeiros has quit [Read error: Connection reset by peer]
Nilium has joined #ruby
apeiros has joined #ruby
amar_ has joined #ruby
sytherax_ has joined #ruby
biberu has joined #ruby
Mike11 has joined #ruby
Nilium has quit [Ping timeout: 252 seconds]
sytherax_ has quit [Ping timeout: 245 seconds]
apeiros has quit [Read error: Connection reset by peer]
Nilium has joined #ruby
amar_ has quit [Ping timeout: 252 seconds]
Faraon_ has joined #ruby
Faraon_ has quit [K-Lined]
roshanavand has joined #ruby
marr has joined #ruby
dhollinger has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
josealobato has joined #ruby
lxsameer has joined #ruby
Guest33581 has quit [Quit: Gateway shutdown]
<josealobato> Does anybody have any documentation on how to use aruba for testing CLI gems?
<josealobato> I have set it up but I do not know the API and their documentation is terrible (IMO). Of course it is Cucumber use cases.
kmurphy4 has joined #ruby
arekushi has joined #ruby
arekushi is now known as Guest33581
Guest33581 is now known as arekushi
ur5us has joined #ruby
<Radar> josealobato: https://bundler.io/v1.16/guides/creating_gem.html this guide covers a bit of it.
<josealobato> Thanks Radar, I already read that. I'm trying to go with RSpec instead fo cucumber. I'm looking more about whare the the methods availabe and where and how to set the test files... stuff like that.
venmx has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
sytherax_ has joined #ruby
dhollinger has joined #ruby
ryzokuken has joined #ruby
sudorobo has joined #ruby
<josealobato> In fact I was surprised that their only docs is the cucumber cases. For AC are great but like user documentation is not fantastic.
<Radar> Maybe it is that way for a reason.
<josealobato> I guess so.
sytherax_ has quit [Remote host closed the connection]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
ryzokuken is now known as ryzokuken[zzz]
ryzokuken[zzz] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ARCADIVS has quit [Ping timeout: 245 seconds]
ARCADIVS has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
Mike11 has quit [Read error: Connection reset by peer]
conta has quit [Quit: conta]
conta has joined #ruby
anisha has quit [Ping timeout: 245 seconds]
ciscam has quit [Ping timeout: 260 seconds]
parzydeuko has joined #ruby
ciscam has joined #ruby
clemens3 has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
anisha has joined #ruby
mikecmpbll has joined #ruby
kapil___ has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
conta has quit [Ping timeout: 245 seconds]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
guille-moe has quit [Quit: guille-moe]
guille-moe has joined #ruby
alfiemax has joined #ruby
clemens3 has joined #ruby
plexigras has joined #ruby
ur5us has quit [Remote host closed the connection]
jamesaxl has joined #ruby
parzydeuko has quit [Ping timeout: 260 seconds]
conta has joined #ruby
josealobato has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
getxsick has joined #ruby
AJA4350 has joined #ruby
sidx64 has quit [Read error: Connection reset by peer]
conta has quit [Ping timeout: 252 seconds]
lxsameer has quit [Ping timeout: 245 seconds]
sidx64 has joined #ruby
conta has joined #ruby
alfiemax_ has joined #ruby
parzydeuko has joined #ruby
amatas has joined #ruby
ciscam has quit [Ping timeout: 245 seconds]
ciscam has joined #ruby
alfiemax has quit [Ping timeout: 245 seconds]
ARCADIVS has quit [Quit: WeeChat 2.0.1]
amatas has quit [Quit: amatas]
amatas has joined #ruby
ta_ has quit [Remote host closed the connection]
suukim has quit [Quit: Konversation terminated!]
roshanavand has quit [Ping timeout: 245 seconds]
chef_byd has joined #ruby
chef_byd has quit [Client Quit]
chef_byd has joined #ruby
chef_byd has quit [Remote host closed the connection]
chef_byd has joined #ruby
josealobato has joined #ruby
conta has quit [Quit: conta]
conta has joined #ruby
andrewvos has joined #ruby
cajone has quit [Ping timeout: 264 seconds]
rawste has joined #ruby
conta has quit [Remote host closed the connection]
conta has joined #ruby
jrafanie has joined #ruby
kliq has quit [Read error: Connection reset by peer]
kliq has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
getxsick has quit [Ping timeout: 252 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Puffball has joined #ruby
sidx64 has joined #ruby
mtkd has quit []
cajone has joined #ruby
Mike11 has joined #ruby
ta_ has joined #ruby
mtkd has joined #ruby
Cavallari has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
kmurphy4 has quit [Quit: kmurphy4]
ryzokuken has joined #ruby
sytherax_ has joined #ruby
ectos has quit [Quit: WeeChat 2.1]
Mike11 has quit [Ping timeout: 260 seconds]
plexigras has quit [Quit: WeeChat 2.1]
sytherax_ has quit [Ping timeout: 245 seconds]
plexigras has joined #ruby
alfiemax has joined #ruby
alfiemax_ has quit [Ping timeout: 260 seconds]
stormpack has joined #ruby
alfiemax has quit [Client Quit]
alfiemax has joined #ruby
ectos has joined #ruby
rivalomega has joined #ruby
cschneid has joined #ruby
ectos has quit [Ping timeout: 260 seconds]
rivalomega has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 260 seconds]
conta has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 252 seconds]
conta has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
synthroid has joined #ruby
ectos has joined #ruby
alfiemax has quit [Ping timeout: 245 seconds]
sidx64 has joined #ruby
quobo has joined #ruby
lxsameer has joined #ruby
duderonomy has joined #ruby
chef_byd has quit [Quit: Leaving]
ryzokuken is now known as ryzokuken[zzz]
ryzokuken[zzz] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
G has quit [Ping timeout: 256 seconds]
G_ has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zaab1t has joined #ruby
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
stormpack has quit [Quit: Leaving]
mikecmpbll has quit [Quit: inabit. zz.]
Cavallari has quit [Quit: Cavallari]
ryzokuken has joined #ruby
andrewvos has left #ruby ["WeeChat 2.1"]
mikecmpbll has joined #ruby
oleo has quit [Quit: Leaving]
parzydeuko has quit [Ping timeout: 260 seconds]
oleo has joined #ruby
Bonjourm8 has joined #ruby
getxsick has joined #ruby
getxsick has quit [Client Quit]
ta_ has joined #ruby
Sembei has joined #ruby
conta has quit [Remote host closed the connection]
Pisuke has quit [Ping timeout: 260 seconds]
donofrio has joined #ruby
warrshrike has joined #ruby
<warrshrike> is there a queue like thing of fixed size which autoremoves the oldest element when a newer is pushed and size is full?
<Zarthus> https://github.com/mephistobooks/fsfifo something like this maybe
jcalla has joined #ruby
conta has joined #ruby
<warrshrike> nothing BUILT IN?
<warrshrike> even c++ had those stacks and queues in std
claw has quit [Ping timeout: 256 seconds]
<tbuehlmann> there's SizedQueue, but it's not exactly what you're after I guess
guille-moe has quit [Ping timeout: 264 seconds]
claw has joined #ruby
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
duderonomy has quit [Ping timeout: 245 seconds]
k0mpa has joined #ruby
sidx64 has joined #ruby
warrshrike has quit [Quit: Page closed]
arekushi is now known as Guest33581
parzydeuko has joined #ruby
mohsen_1 has joined #ruby
thapakazi_ has quit [Ping timeout: 245 seconds]
thapakazi has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 240 seconds]
guille-moe has joined #ruby
mtkd has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
parzydeuko has quit [Ping timeout: 245 seconds]
karapetyan has quit [Remote host closed the connection]
mtkd has joined #ruby
parzydeuko has joined #ruby
amar has joined #ruby
rawste has quit [Quit: zzZZzzZZZ……]
howdoi has quit [Quit: Connection closed for inactivity]
k0mpa1 has joined #ruby
rawste has joined #ruby
rawste has quit [Client Quit]
k0mpa has quit [Remote host closed the connection]
KeyJoo has quit [Read error: Connection reset by peer]
parzydeuko has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
rawste has joined #ruby
duderonomy has joined #ruby
josealobato has quit [Quit: Textual IRC Client: www.textualapp.com]
parzydeuko has joined #ruby
AJA4350 has quit [Quit: AJA4350]
bmurt has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
conta has quit [Ping timeout: 245 seconds]
thapakazi has joined #ruby
thapakazi_ has joined #ruby
gnufied has quit [Quit: Leaving]
amar has quit [Ping timeout: 252 seconds]
Burgestrand has quit [Quit: Closing time!]
Rapture has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ilikecakeandpie has joined #ruby
bmurt has joined #ruby
jrafanie has joined #ruby
aupadhye has quit [Remote host closed the connection]
ilikecakeandpie has quit [Quit: ilikecakeandpie]
ineb has quit [Quit: WeeChat 2.1]
gnufied has joined #ruby
parzydeuko has quit [Quit: WeeChat 2.1]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pastorinni has joined #ruby
guille-moe has quit [Quit: guille-moe]
guille-moe has joined #ruby
schneider has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
schneider has joined #ruby
ryzokuken has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
clemens3 has quit [Ping timeout: 252 seconds]
shinnya has joined #ruby
chouhoulis has joined #ruby
ilikecakeandpie has joined #ruby
chouhoul_ has joined #ruby
rivalomega has joined #ruby
Silthias has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
sidx64 has joined #ruby
amar has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
biberu has quit []
XB23 has joined #ruby
sphenxes has quit [Remote host closed the connection]
amar has quit [Ping timeout: 252 seconds]
coderphive has joined #ruby
kliq has quit [Read error: Connection reset by peer]
kliq has joined #ruby
pastorinni has quit [Remote host closed the connection]
pastorinni has joined #ruby
pastorinni has quit [Remote host closed the connection]
pastorinni has joined #ruby
troys has joined #ruby
grilix has joined #ruby
amar has joined #ruby
kriskropd has quit [Ping timeout: 240 seconds]
lypsis is now known as lypsis|awy
rippa has joined #ruby
amar has quit [Ping timeout: 252 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
ryzokuken has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
minimalism has quit [Quit: minimalism]
arashb has joined #ruby
karapetyan has joined #ruby
amar has joined #ruby
guille-moe has quit [Quit: guille-moe]
guille-moe has joined #ruby
XB23 has quit [Quit: Leaving]
mohsen_1 has left #ruby [#ruby]
amar has quit [Ping timeout: 252 seconds]
cschneid has joined #ruby
jamesaxl has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
ta_ has joined #ruby
Mia has quit [Ping timeout: 276 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
synthroid has quit [Remote host closed the connection]
apeiros has quit [Read error: Connection reset by peer]
conr has joined #ruby
synthroid has joined #ruby
catbusters has joined #ruby
apeiros has joined #ruby
cadillac_ has quit [Ping timeout: 252 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
cadillac_ has joined #ruby
duderonomy has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
duderonomy has quit [Ping timeout: 260 seconds]
mtkd has quit [Ping timeout: 252 seconds]
lypsis|awy is now known as lypsis
mtkd has joined #ruby
ryzokuken is now known as ryzokuken[zzz]
coderphive has quit [Quit: coderphive]
ryzokuken[zzz] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
WA9ACE has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
pastorinni has quit [Read error: Connection reset by peer]
pastorinni has joined #ruby
apeiros has quit [Remote host closed the connection]
conta has joined #ruby
apeiros has joined #ruby
Axy has joined #ruby
nowhere_man has joined #ruby
karapetyan has joined #ruby
Mia has quit [Ping timeout: 252 seconds]
apeiros has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 252 seconds]
cyberg has joined #ruby
ryzokuken has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.1]
cagomez has joined #ruby
ryzokuken has quit [Read error: Connection reset by peer]
pastorinni has quit []
armyriad has quit [Quit: Leaving]
ta_ has quit [Ping timeout: 248 seconds]
ipe has joined #ruby
mtkd has quit []
guille-moe has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
ruby379 has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
ruby330 has joined #ruby
duderonomy has joined #ruby
armyriad has joined #ruby
karapetyan has quit [Remote host closed the connection]
apeiros has joined #ruby
duderonomy has quit [Client Quit]
karapetyan has joined #ruby
ruby379 has quit [Ping timeout: 260 seconds]
guille-moe has joined #ruby
pastorinni has joined #ruby
ilikecakeandpie has quit [Quit: ilikecakeandpie]
dionysus69 has joined #ruby
jenrzzz has joined #ruby
lypsis is now known as lypsis|awy
karapetyan has quit [Remote host closed the connection]
fusta has quit [Quit: ZNC 1.6.5 - http://znc.in]
yoones has joined #ruby
karapetyan has joined #ruby
<yoones> Hi! I'm struggeling with bigdecimal stuff. Ruby keeps rounding values when I don't want it to. I even tried to put my value into a string (works well), but then when I add .to_i it rounds it anyway. How can I prevent this behavior?
<elomatreb> yoones: #to_i converts to an integer, which necessarily rounds
<yoones> I tried #floor and #ceil, both round at some point
<yoones> how can I get rid of the decimal part of a number?
<yoones> without rounding
<yoones> truncate also rounds
<yoones> -_-'
al2o3-cr has quit [Quit: WeeChat 2.1]
aufi has quit [Quit: Leaving]
ilikecakeandpie has joined #ruby
<canton7> how do you get rid of the decimal part of a number *without* rounding?
netfrog has joined #ruby
karapetyan has quit [Remote host closed the connection]
<Zarthus> .. you sure you don't want #floor?
rawste has quit [Quit: zzZZzzZZZ……]
apeiros has quit []
apeiros_ has joined #ruby
apeiros_ is now known as apeiros
jenrzzz has quit [Ping timeout: 256 seconds]
kmurphy4 has joined #ruby
<apeiros> >> 1.7.truncate
<ruby[bot]> apeiros: # => 1 (https://eval.in/1007683)
<apeiros> that's not rounding.
<apeiros> >> 1.7.round # this is
<ruby[bot]> apeiros: # => 2 (https://eval.in/1007684)
gr33n7007h has joined #ruby
ruby330 has quit [Ping timeout: 260 seconds]
<yoones> I'm working with BigDecimal(value, 14)
<yoones> (14 digits)
<apeiros> or rather: floor is "round down" and ceil is "round up"
<apeiros> yoones: how about you make an actual, reproducible, small example
<elomatreb> Yeah. Input, and expected output
<yoones> floor doesn't work for me
<canton7> you're going to have to explain why... an example is a good way to do that
mahlon has quit [Quit: WeeChat 2.1]
conta has quit [Ping timeout: 260 seconds]
<apeiros> yoones: "doesn't work" as a problem description doesn't work.
<yoones> I basicaly need to do: expect((big_decimal_value * 100).truncate).to eq(csv_value)
<canton7> right, and what's 'big_decimal_value' and 'csv_value'?
<yoones> I receive a CSV extracted from an Excel file
<yoones> 2 sec
<apeiros> we do not care about the csv. extract the value and make the example without needing the csv.
darkhanb has joined #ruby
<elomatreb> Alternative possibility: You are sure you convert the CSV value to an appropriate type (as it's probably originally a String)? Ruby does not do implicit typecasts like some other scripting languages
<apeiros> >> "12" == 12 # will be false
<ruby[bot]> apeiros: # => false (https://eval.in/1007685)
<apeiros> since the letters 1 followed by 2 is not the same as the value twelve.
karapetyan has joined #ruby
<yoones> elomatreb, Yes, I'm comparing BigDecimal.new(csv_extracted_value, 14) with another BigDecimal value
guille-moe has quit [Ping timeout: 245 seconds]
<yoones> elomatreb, The problem I encounter is that the excel-extracted value has been truncated, and I'm comparing it to a ruby-computed result with more precision
<yoones> Trying to truncate it, it gets rounded, which make my life miserable
<yoones> makes*
<apeiros> yeah, no, BigDecimal#truncate does not round. it truncates.
<apeiros> >> require 'bigdecimal'; BigDecimal.new("1.7", 14).truncate
<ruby[bot]> apeiros: # => 1 (https://eval.in/1007686)
<elomatreb> Mh, ok. You probably should share an expected input/expected output then
<yoones> expected: 177469, got: 177469.53 (0.17746953e6)
<yoones> (rspec output)
nowhere_man has quit [Ping timeout: 260 seconds]
eb0t has quit [Read error: Connection reset by peer]
<apeiros> I'll repeat:
<apeiros> remove all the boilerplate which is not essential to your problem
<apeiros> make that demo case
<apeiros> and show us that
<yoones> apeiros, I'm trying
<apeiros> that sounds like you fail - which indicates that your problem does not lie with bigdecimal but your test setup.
nitric has joined #ruby
<elomatreb> >> BigDecimal(177469.53, 14).truncate
<ruby[bot]> elomatreb: # => undefined method `BigDecimal' for main:Object (NoMethodError) ...check link for more (https://eval.in/1007687)
<apeiros> yoones: do you know pry?
<elomatreb> #=> 177469
eb0t has joined #ruby
<yoones> elomatreb, If you instanciate it this way, yes. When you get it as the result of a computation, nope
def_jam has joined #ruby
ipee has joined #ruby
<apeiros> >> require 'bigdecimal'; BigDecimal.new(1774.6953*100, 14).truncate
<ruby[bot]> apeiros: # => 177469 (https://eval.in/1007688)
<apeiros> ^ with computation
<apeiros> again, do you know pry, yoones?
<apeiros> add pry to your Gemfile, or if you don't use gemfiles, install it. require 'pry' in your testcase.
<yoones> => 0.17746953e8
eblip has quit [Ping timeout: 260 seconds]
<apeiros> rewrite your testcase from `expect((big_decimal_value * 100).truncate).to eq(csv_value)` to `actual = (big_decimal_value * 100).truncate; p actual_class: actual.class, csv_value_class: csv_value.class, actual: actual, csv: csv_value; expect(actual).to eq(csv_value)`
<apeiros> you can use newlines instead of ;
ipe has quit [Ping timeout: 240 seconds]
<apeiros> also provide us the RUBY_VERSION you're using.
SeepingN has joined #ruby
DoubleMalt has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
<yoones> ruby 2.3.6p384 https://pastebin.com/62jtsXnt
<ruby[bot]> yoones: as I told you already, please use https://gist.github.com
coderphive has joined #ruby
coderphive has quit [Client Quit]
<apeiros> any reason you deviated from what I asked you to do?
safetypin has joined #ruby
<apeiros> I mean I can work with it, but I'm curious
<yoones> Because big_decimal_value doesn't work, it's pseudo code to ask a question here, my code is a big more complicated
ipeee has joined #ruby
<yoones> doesn't exist*
<apeiros> ok, but that doesn't explain the other deviations
<yoones> I found an ugly hack
<yoones> value.to_s('F').split(".").first
<yoones> I guess I'll go with it
def_jam has quit [Quit: WeeChat 1.9.1]
* apeiros rolls eyes
ipee has quit [Ping timeout: 252 seconds]
<apeiros> yeah, got better ways to waste my time than somebody who seeks help but doesn't see fit to help those trying to help.
amar has joined #ruby
conta has joined #ruby
<yoones> thanks for trying to help
yoones has quit [Quit: Leaving]
amar has quit [Read error: No route to host]
amar has joined #ruby
eblip has joined #ruby
eblip is now known as eb0t_
amar has quit [Ping timeout: 252 seconds]
sytherax_ has joined #ruby
Bonjourm8 has quit [Quit: Leaving]
sanscoeur has joined #ruby
mikecmpbll has joined #ruby
arashb has quit [Remote host closed the connection]
WAFFLEMAKER3000 has joined #ruby
<WAFFLEMAKER3000> hi
sytherax_ has quit [Remote host closed the connection]
WAFFLEMAKER3000 has quit [Client Quit]
<elomatreb> bye
WAFFLEMAKER3000 has joined #ruby
<WAFFLEMAKER3000> hi
<apeiros> welcome back?
gr33n7007h is now known as al2o3-cr
WAFFLEMAKER3000 has left #ruby [#ruby]
WAFFLEMAKER3000 has joined #ruby
darkhanb has quit [Quit: Textual IRC Client: www.textualapp.com]
amar has joined #ruby
sytherax_ has joined #ruby
sytherax_ has quit [Remote host closed the connection]
sytherax_ has joined #ruby
rawste has joined #ruby
amar has quit [Ping timeout: 252 seconds]
DeepIO has joined #ruby
DeepIO has quit [Max SendQ exceeded]
alfiemax has joined #ruby
conta has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
ilikecakeandpie has quit [Quit: ilikecakeandpie]
rawste has quit [Quit: That's all folks!]
sphenxes has joined #ruby
WAFFLEMAKER3000 has quit [Ping timeout: 252 seconds]
sphenxes has quit [Remote host closed the connection]
kapil___ has quit [Quit: Connection closed for inactivity]
<Eiam> do people here actually depend on the system ruby to do anything? like the default version of ruby that ships with macOS for example
<Eiam> when I was first getting started I used it, then i moved to rvm, later rbenv, and it seems like most developers stop using the system version of interpreters when they move into actually using the language. wondering if I'm the exception
<elomatreb> It really depends on your OS, e.g. on Arch we don't really have outdated rubies
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
venmx has quit [Ping timeout: 264 seconds]
<Eiam> well depending on the OS version means at some point your software will be used with something you didnt' test it with either ?
<Eiam> im wondering aloud if it would matter if OSes stopped shipping with interpreters out of the box
nowhere_man has joined #ruby
sidx64 has joined #ruby
seabee has joined #ruby
<elomatreb> You have to specify the version in some form anyway, if you don't depend on the OS version you have to either mention it in a readme or include it in some machine-readable form for the people who manually install/build (or use a tool) Ruby
alfiemax has quit [Remote host closed the connection]
ilikecakeandpie has joined #ruby
<elomatreb> It would matter, probably not so much in Rubies case but e.g. python and even the shells are essential for OSes
<apeiros> Eiam: I'm on osx and I don't touch system ruby. and I think wouldn't on any box I haven't tailor-made for some purpose.
sytherax_ has quit [Remote host closed the connection]
sidx64 has quit [Client Quit]
coderphive has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
chouhoul_ has joined #ruby
amar has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
<Eiam> elomatreb: generally one would bundle their dependencies that are relevant to control
<Eiam> i.e. if you depend on ruby 2.3 you should bundle ruby 2.3
amar has quit [Ping timeout: 252 seconds]
<Eiam> elomatreb: same problem exists for python, python 2 vs python 3, etc
<elomatreb> That gets you the node-ism of endless duplicates of stuff
<Eiam> elomatreb: the file system can de-dupe that stuff for you if its that big of a deal
<Eiam> but disk space is pretty cheap these days
yohji has quit [Remote host closed the connection]
<elomatreb> Not just the pure space. I recently ran out of inodes on a partition because I had a few larger node_modules directories on it
<apeiros> elomatreb: lulwot? :D
<elomatreb> yeah
<Eiam> we can find edge cases for any scenario, i don't think thats terribly common or worth hand wringing
<elomatreb> Weird as hell to debug, because none of the tools give proper error messages
<Eiam> the OS already doesn't provide node dependencies, no OS does
<Eiam> every app is required to bring those along with them.
<Eiam> or bring a way to install them
<elomatreb> I'm not against ecosystem-specific dependency management, but saying "just bundle it and ship" is unnecessarily wasteful
<elomatreb> Not everyone can just hit the "give larger instance" button on $cloudProvider
<Eiam> I fail to see how its wasteful , ruby is 50kb
<Eiam> thats effectively 'nothing' even if you have 1000 apps require it
ta_ has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
amar has joined #ruby
alfiemax has joined #ruby
kmurphy4 has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
slash_nick has joined #ruby
RougeR has quit [Ping timeout: 260 seconds]
amar has quit [Ping timeout: 252 seconds]
mtkd has quit [Ping timeout: 252 seconds]
<havenwood> Eiam: On OSes that have nice up-to-date Ruby packages, I often use those. When you're on a dev machine with multiple legacy apps, some are always going to be on some Ruby enging/version. For that case, it's nice to be able to use system Ruby or one of your choosing.
<havenwood> Eiam: Here's an example of a chruby setup with arch: https://gist.github.com/jhass/8839655bb038e829fba1
amar has joined #ruby
WAFFLEMAKER3000 has joined #ruby
<havenwood> Eiam: Since Arch always has a nice recent Ruby, it's worth using. Then you can switch to custom-installed Rubies easily.
<Eiam> but if you user is on an old version of arch that doesn't have an updated ruby
<Eiam> you are in the same boat
mtkd has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mahlon has joined #ruby
<al2o3-cr> pacman -Syu ;)
<havenwood> yao(g)urt
guille-moe has joined #ruby
suukim has joined #ruby
nowhere_man has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
RougeR has joined #ruby
duderonomy has joined #ruby
guacamole has quit [Client Quit]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has quit [Client Quit]
amatas has quit [Read error: Connection reset by peer]
amatas has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
karapetyan has joined #ruby
ta_ has quit [Ping timeout: 245 seconds]
duderono_ has joined #ruby
nitric_ has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
nitric has quit [Ping timeout: 245 seconds]
karapetyan has quit [Read error: Connection reset by peer]
Bocaneri has quit [Read error: Connection reset by peer]
grilix has quit [Ping timeout: 245 seconds]
chouhoul_ has quit [Remote host closed the connection]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
chouhoulis has joined #ruby
guacamole has quit [Client Quit]
ramfjord has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
fsmauri21 has joined #ruby
pastorinni has quit [Remote host closed the connection]
Mia has joined #ruby
Axy has quit [Ping timeout: 252 seconds]
duderono_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
suukim has quit [Quit: Konversation terminated!]
pilne has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
grilix has joined #ruby
duderonomy has joined #ruby
ilikecakeandpie has quit [Quit: ilikecakeandpie]
darkhanb has joined #ruby
reaVer has quit [Remote host closed the connection]
netfrog has quit [Quit: netfrog]
reaVer has joined #ruby
SeepingN has joined #ruby
dviola has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thapakazi has quit [Ping timeout: 252 seconds]
thapakazi_ has quit [Ping timeout: 260 seconds]
jrich523 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
pskosinski has quit [Ping timeout: 245 seconds]
rcvalle has joined #ruby
plexigras has quit [Ping timeout: 260 seconds]
<quuxman> I'm eating yogurt now as it happens
catbusters has quit [Quit: Connection closed for inactivity]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
plexigras has joined #ruby
<fsmauri21> My, and here I was excited about having some Pea soup.
pskosinski has joined #ruby
duderonomy has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
karapetyan has joined #ruby
catbusters has joined #ruby
banisterfiend has joined #ruby
parzydeuko has joined #ruby
bmurt has joined #ruby
jottr has joined #ruby
cyberg has quit [Ping timeout: 252 seconds]
duderono_ has joined #ruby
duderonomy has quit [Ping timeout: 260 seconds]
_aeris_ has quit [Ping timeout: 256 seconds]
_aeris_ has joined #ruby
duderono_ has quit [Ping timeout: 240 seconds]
priodev has quit [Ping timeout: 256 seconds]
cyberg has joined #ruby
duderonomy has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
amatas has quit [Remote host closed the connection]
WAFFLEMAKER3000 has quit [Quit: WeeChat 2.1]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
bmurt has quit [Client Quit]
alfiemax has quit [Ping timeout: 245 seconds]
tedgu has joined #ruby
cagomez has quit [Ping timeout: 256 seconds]
cschneid has quit [Remote host closed the connection]
cschneid has joined #ruby
ryzokuken has joined #ruby
c0ncealed1 has quit [Remote host closed the connection]
Rapture has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<quuxman> it was with a chopped apple, a sectioned orange, and a bit of granola :-}
c0ncealed1 has joined #ruby
<quuxman> so I'm still wondering what I asked on Friday: there must be a better way to write `foo.each do |x| bar_method x end` right?
<apeiros> there are gems to do it in a shorter way, but vanilla ruby - no
<quuxman> omg. that's really how you're supposed to do "l.map(foo)"?
<quuxman> er, 'foo.map(bar)' to keep my metasyntactic vars consistent
<elomatreb> You can do foo.map(&method(:bar)), but that's not much prettier
<quuxman> rawr! *flips table*
cyberg has quit [Ping timeout: 256 seconds]
<quuxman> taht second looks nicer, but only works if bar is in the same scope, and not a parameter
cschnei__ has joined #ruby
cschneid has quit [Read error: Connection reset by peer]
cschneid has joined #ruby
cagomez has joined #ruby
cschnei__ has quit [Ping timeout: 252 seconds]
shwouchk has quit [Quit: Connection closed for inactivity]
priodev has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
cagomez has quit [Ping timeout: 245 seconds]
nowhere_man has quit [Ping timeout: 260 seconds]
<elomatreb> If you want some other method you have to detach it accordingly, e.g. `foo.map &BazModule.method(:bar)`
cyberg has joined #ruby
duderonomy has joined #ruby
<quuxman> what about a variable referencing a function?
jrafanie has joined #ruby
<havenwood> quuxman: Matz recently weighed in favorably on the possibility of a new operator that would help.
<havenwood> .:
<elomatreb> quuxman: You can pass around method objects like any other object, but it gets clunky very quickly
cyberg has quit [Ping timeout: 260 seconds]
slash_nick has quit [Quit: slash_quit]
<elomatreb> & then calls to_proc on them, which is why e.g. &:stuff works (Symbol#to_proc)
<havenwood> quuxman: It'd be: Foo.map &BazModule.:bar
<havenwood> I like the .: proposal.
<quuxman> so Ruby strongly discourages functional programming, at least syntactically. It's pretty weird having a dynamic language treat function variables specially, but I suppose it's the ambiguous call syntax that makes the whole mess
nickjj has quit [Read error: Connection reset by peer]
<havenwood> `.:` is better than `->` ~Matz
<elomatreb> There's nothing special about "function variables", they're regular instances of the Method class
sytherax_ has joined #ruby
nickjj has joined #ruby
cyberg has joined #ruby
<havenwood> quuxman: Would you consider this syntax to no longer be discouraging functional programming?: Foo.map &BazModule.:bar
<havenwood> quuxman: You might get a Christmas present.
<havenwood> I'd love that, personally.
<elomatreb> Will that be sugar for .method, or do something "special"?
<quuxman> what's the ampersand?
<elomatreb> It calls #to_proc on the given object, so the method receives a block it can yield to
<havenwood> quuxman: It passes a proc as a block.
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
<elomatreb> E.g. Symbol#to_proc returns a proc that sends itself (the Symbol) to the yielded object
<quuxman> I read a whole article about the difference between procs and blocks, and I'm not any more clear on them
<elomatreb> It mostly doesn't matter, because very few people are clear on them so they're used interchangeable
<havenwood> elomatreb: Yeah, it's just a patch to parse.y that calls the "method" method.
<havenwood> I wonder if I'd prefer #public_method.
* havenwood ponders
<elomatreb> They only difference you do sometimes need to worry about is between procs and lambdas concerning the behavior of returns and breaks
cyberg has quit [Ping timeout: 245 seconds]
<elomatreb> Yeah, it should obey visibility restrictions by default (I take it regular #method does not?)
seabee has quit [Quit: leaving]
alfiemax has joined #ruby
ta_ has joined #ruby
cyberg has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
schneider has joined #ruby
pastorinni has joined #ruby
ipeee has quit [Read error: Connection reset by peer]
sumobob has joined #ruby
nowhere_man has joined #ruby
white_lilies has joined #ruby
kmurphy4 has joined #ruby
<quuxman> ok good to know. So what would leaving out the ampersand do? For example `foo.map(method(:bar))`?
<apeiros> it would call the method map with a single argument
<elomatreb> It's like saying foo.map(12)
<apeiros> that argument usually being an instance of Method, but really, depends on what self.method(:bar) in that context returns (like all implicit method calls)
Zaab1t has quit [Quit: Zaab1t]
* apeiros nitpicks: it's like saying foo.map(bar(12))
<apeiros> oh well, that could be misconstrued. it's like: foo.map(blupp(:bar))
cagomez has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
<elomatreb> I meant in the sense that it's an invalid/nonsensical usage, and will error
<quuxman> so how is the ampersand not redundant?
schleppel has quit [Quit: Konversation terminated!]
<apeiros> that depends on what foo.map does :)
<apeiros> but sure, Enumerable#map will bomb
<quuxman> and what is "blupp"? where did that come from?
<apeiros> it's a stand in for "you're calling a method"
cyberg has quit [Ping timeout: 256 seconds]
mtkd has quit []
<ELLIOTTCABLE> o7 all
<quuxman> on what? Leaving out the ampersand somehow makes an implicit method call on some object?
<apeiros> no
<ELLIOTTCABLE> I haven't written Ruby in … a miiiiinute
<ELLIOTTCABLE> (ten years???)
<apeiros> it's never "on some object", and it's a method call with the ampersand too.
<apeiros> method calls without receiver are always on self.
<ELLIOTTCABLE> I can't, for the life of me, remember how to “open” (in the OCaml sense) a module in Ruby
<havenwood> quuxman: In Ruby a block is a special thing. It often doesn't have an object allocated. You can pass a proc or method object as a block with &.
<apeiros> and what a method does always depends on the receiver.
<havenwood> ELLIOTTCABLE: You can just reopen the module like: module Foo; ... end
sagax has joined #ruby
physicist__ has quit [Quit: leaving]
<quuxman> havenwood: ah ok.
<apeiros> meaning: foo.map may or may not be Enumerable#map. method(:bar) may or may not be Object#method.
<ELLIOTTCABLE> if I have `require 'CoolProj'` and a lot of `CoolProj::Blah.new`,
<ELLIOTTCABLE> how can I stop typing `CoolProj::` every three seconds in a consuming file?
<apeiros> but maybe we can change this to something which makes more sense to you: `foo.map(method(:bar))` is the same as `some_arg = method(:bar); foo.map(some_arg)`
<quuxman> So what if I make a def at the top level, like `def foo(x) put x end` and then call it with `foo x`. If everything is a method call, what object is receiving foo?
solocshaw has joined #ruby
<apeiros> self
<havenwood> ELLIOTTCABLE: Assuming it's a module: include CoolProj
<apeiros> as said before: methods invoked without an explicit receiver are always sent to self.
<ELLIOTTCABLE> even at the root level of a file?
<quuxman> what's self at the top level?
<apeiros> just ask it
<havenwood> ELLIOTTCABLE: You can include at any level. It depends on what you're doing.
<apeiros> (main, an instance of Object)
<havenwood> >> class << self; undef inspect end; self
<ruby[bot]> havenwood: # => /tmp/execpad-5caf97649c93/source-5caf97649c93:1:in `p': undefined method `inspect' for #<Object:0x40 ...check link for more (https://eval.in/1007801)
<quuxman> heh. main is not defined, because presumably it's referencing main.main
<ELLIOTTCABLE> specifically, at the moment, in specs
solocshaw has quit [Client Quit]
<havenwood> quuxman: main is an instance of Object that likes to call itself "main"
<elomatreb> But there isn't anything really special about it otherwise
<havenwood> >> def foo; end; method(:foo).owner
<ruby[bot]> havenwood: # => Object (https://eval.in/1007802)
<havenwood> >> Object.private_method_defined?(:foo)
<ruby[bot]> havenwood: # => false (https://eval.in/1007803)
<havenwood> >> AIM = true; Object.const_defined(:AIM, false)
<ruby[bot]> havenwood: # => undefined method `const_defined' for Object:Class ...check link for more (https://eval.in/1007804)
<havenwood> >> AIM = true; Object.const_defined?(:AIM, false)
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<ruby[bot]> havenwood: # => true (https://eval.in/1007805)
<havenwood> It's a kinda weird anonymous object and class hybrid. ¯\_(ツ)_/¯
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 245 seconds]
pastorinni has quit [Remote host closed the connection]
pastorinni has joined #ruby
alfiemax has joined #ruby
noobineer has joined #ruby
cyberg has joined #ruby
pastorinni has quit [Ping timeout: 245 seconds]
bmurt has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
parzydeu1 has joined #ruby
plexigras has quit [Ping timeout: 245 seconds]
c0ncealed1 has quit [Read error: Connection reset by peer]
parzydeuko has quit [Ping timeout: 245 seconds]
c0ncealed1 has joined #ruby
ryzokuken has quit [Quit: Textual IRC Client: www.textualapp.com]
cyberg has quit [Ping timeout: 245 seconds]
synthroid has quit []
pastorinni has joined #ruby
sidx64 has joined #ruby
orbyt_ has joined #ruby
ryzokuken has joined #ruby
ciscam has quit [Ping timeout: 260 seconds]
ciscam has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
grilix has quit [Ping timeout: 245 seconds]
nowhere_man has quit [Ping timeout: 260 seconds]
cyberg has joined #ruby
RougeR has quit [Ping timeout: 245 seconds]
pskosinski has quit [Ping timeout: 260 seconds]
cagomez has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
alfiemax has joined #ruby
pskosinski has joined #ruby
ur5us has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 252 seconds]
grilix has joined #ruby
<quuxman> in irb, Is there a way to get to a debugger running in the stack frame of the last exception?
cyberg has quit [Ping timeout: 260 seconds]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has quit [Client Quit]
white_lilies has quit [Ping timeout: 245 seconds]
sumobob has quit [Ping timeout: 245 seconds]
RougeR has joined #ruby
sumobob has joined #ruby
schneider has quit [Quit: WeeChat 2.0.1]
tedgu has quit [Ping timeout: 252 seconds]
tacoboy has quit [Read error: Connection reset by peer]
amar_ has joined #ruby
sumobob has quit [Ping timeout: 245 seconds]
sumobob has joined #ruby
karapetyan has quit [Remote host closed the connection]
amar has quit [Ping timeout: 252 seconds]
kmurphy4 has quit [Remote host closed the connection]
alfiemax has joined #ruby
tacoboy has joined #ruby
nolanv has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 245 seconds]
karapetyan has joined #ruby
safetypin has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 260 seconds]
lytol has joined #ruby
gigetoo has joined #ruby
<quuxman> eh forget trying to debug Ruby, I've been down this road before
safetypin has joined #ruby
ryzokuken has quit [Quit: Textual IRC Client: www.textualapp.com]
nolanv has joined #ruby
alfiemax has joined #ruby
k0mpa1 has quit [Ping timeout: 250 seconds]
bayprogrammer has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
jjunior__ has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
sanscoeu_ has joined #ruby
chouhoul_ has joined #ruby
cagomez has quit [Ping timeout: 245 seconds]
<quuxman> can I use ActiveRecord to return dicts instead of ActiveRecord instances?
chouhoulis has quit [Ping timeout: 245 seconds]
sanscoeur has quit [Ping timeout: 260 seconds]
stairmast0r has quit [Quit: bye]
chouhoul_ has quit [Ping timeout: 240 seconds]
safetypin has quit [Quit: ZZZzzz…]
alfiemax has joined #ruby
<baweaver> quuxman: Probably a Rails question
<baweaver> Also Ruby doesn't have dicts, do you mean hashes?
<baweaver> `to_h` works as a coercion
jenrzzz has quit [Ping timeout: 245 seconds]
cagomez has joined #ruby
amar_ has quit [Remote host closed the connection]
AJA4350 has joined #ruby
jenrzzz has joined #ruby
alfiemax has quit [Ping timeout: 245 seconds]
amar has joined #ruby
<audy> quuxman: record.attributes
amar has quit [Remote host closed the connection]
<audy> but activerecord instances behave like hashes anyway
amar has joined #ruby
<havenwood> quuxman: Why do you care that it's a Hash?
<havenwood> quuxman: What about the Hash class is appealing? The methods it responds to? Serialization?
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
coderphive has quit [Quit: coderphive]
nolanv has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
cyberg has joined #ruby
nolanv has joined #ruby
kliq has quit [Quit: Leaving]
stairmast0r has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeu_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
sanscoeur has joined #ruby
amar has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
amar has joined #ruby
grilix has quit [Ping timeout: 260 seconds]
nolanv has quit [Quit: WeeChat 2.0.1]
orbyt_ has joined #ruby
ramfjord has quit [Read error: Connection reset by peer]
amar has quit [Ping timeout: 252 seconds]
alfiemax has joined #ruby
reber has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
\void has joined #ruby
cschneid has quit [Remote host closed the connection]
jaredrhine has quit [Ping timeout: 240 seconds]
parzydeu1 has quit [Quit: WeeChat 2.1]
jenrzzz has joined #ruby
cpallares has quit [Ping timeout: 256 seconds]
sanscoeur has quit [Remote host closed the connection]
\13k has quit [Ping timeout: 256 seconds]
noobineer has quit [Remote host closed the connection]
alfiemax has joined #ruby
mrBen2k2k2k has quit [Ping timeout: 256 seconds]
nowhere_man has joined #ruby
white_lilies has joined #ruby
noobineer has joined #ruby
camilasan has quit [Ping timeout: 256 seconds]
tw1sted has quit [Ping timeout: 256 seconds]
tw1sted has joined #ruby
camilasan has joined #ruby
SegFaultAX has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
cpallares has joined #ruby
fsmauri21 has quit [Remote host closed the connection]
cajone has quit [Ping timeout: 245 seconds]
ogres has joined #ruby
\13k has joined #ruby
cajone has joined #ruby
venmx has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 245 seconds]
kimoto has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
venmx has quit [Ping timeout: 260 seconds]
harrycs has joined #ruby
emilford has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
minimalism has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
karapetyan has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
<quuxman> turns out I just need to pass a skip validation param
alfiemax has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
ciscam has quit [Ping timeout: 252 seconds]
marr has quit [Ping timeout: 252 seconds]
ciscam has joined #ruby
emilford has joined #ruby
nitric_ has quit [Ping timeout: 252 seconds]