Swyper has quit [Remote host closed the connection]
noark9 has joined #ruby
fphilipe_ has joined #ruby
oetjenj has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
noark9 has quit [Quit: noark9]
fphilipe_ has quit [Ping timeout: 272 seconds]
r29v has quit [Quit: r29v]
greengriminal has joined #ruby
Swyper has joined #ruby
DaRock has joined #ruby
ntropix has quit [Remote host closed the connection]
ElFerna has joined #ruby
Swyper has quit [Remote host closed the connection]
englishm has quit [Excess Flood]
tdy has joined #ruby
englishm has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
AJA4350 has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
davor has quit [Ping timeout: 245 seconds]
davor has joined #ruby
cd has quit [Quit: cd]
teardown has quit [Ping timeout: 245 seconds]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 246 seconds]
ElFerna has quit [Quit: ElFerna]
greengriminal has quit [Quit: This computer has gone to sleep]
ramfjord has quit [Ping timeout: 268 seconds]
tdy has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
Azure has quit [Read error: Connection reset by peer]
DTZUZU has quit [Quit: WeeChat 2.2]
Azure has joined #ruby
Swyper has joined #ruby
<leftylink>
ruby story without obvious use
<leftylink>
I was once trying to debug who was calling String#+, so I made it print self and its arg. and of course I would test that in irb first
<leftylink>
but doing it wrong will just crash irb
<leftylink>
I meant to do `class String; def +(s); puts "adding #{self} and #{s}"; "#{self}#{s}"; end end`
Swyper has quit [Remote host closed the connection]
<leftylink>
but instead I did `class String; def +(s); puts "adding #{self} and #{s}"; "#{self}{s}"; end end` and irb just crashed immediately
<leftylink>
whoops
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZU has joined #ruby
<bougyman>
ok, i'm brain dead.
<bougyman>
How do I make a collection of objects properly respond to #uniq? I thought defining ==(other) or ===(other) would do it. I swore it has before.
<bougyman>
But it's not working in my current task.
<bougyman>
I'm probably missing something simple (been at this too long)
<bougyman>
It already includes Comparable
<bougyman>
it's not removing the dupes (based on #=== nor #==)
<havenwood>
bougyman: Define #eql?
<havenwood>
bougyman: It checks the #hash and #eql?
sh7d has quit [Quit: meh]
<havenwood>
&>> class Wombat; def eql?(_other); true end end; def hash; 0 end; [Wombat.new, Wombat.new].uniq # bougyman
<havenwood>
"For any pair of objects where #eql? returns `true`, the #hash value of both objects must be equal. So any subclass that overrides #eql? should also override #hash appropriately."
Frobozz_ has joined #ruby
Frobozz has quit [Ping timeout: 245 seconds]
DTZUZU has joined #ruby
<bougyman>
havenwood: DOH
<bougyman>
I knew that
Swyper has joined #ruby
<bougyman>
wait, it has to to be .eql? _and_ #hash matching?
<havenwood>
bougyman: yup!
<havenwood>
bougyman: Neither just #hash, nor just #eql? is sufficient. To be #eql? implies the same #hash.
<havenwood>
&>> class Orchid; def hash; self.class.hash end; def eql?(other); other.instance_of?(self.class) end end; [Orchid.new, Orchid.new].uniq # bougyman
<havenwood>
bougyman: That'd be ^ borrowing the class's #hash and then being #eql? when it's also an instance of the same class.
<havenwood>
bougyman: I guess that's wrong in that it makes #eql? and #hash disagree between the instance and class. I'm trying to think of something more elegant.
sapphyrus has joined #ruby
sapphyrus has quit [Client Quit]
Swyper has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 258 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
fphilipe_ has joined #ruby
teardown has joined #ruby
ur5us_ has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
fphilipe_ has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
teardown has quit [Ping timeout: 258 seconds]
teardown has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
dviola has quit [Quit: WeeChat 2.5]
CrazyEddy has quit [Ping timeout: 268 seconds]
teardown has quit [Ping timeout: 272 seconds]
teardown has joined #ruby
vethis has quit [Remote host closed the connection]
CrazyEddy has joined #ruby
_whitelogger has joined #ruby
gix has quit [Ping timeout: 272 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
rindolf has joined #ruby
<rindolf>
hi all
<havenwood>
rindolf: hi
<rindolf>
havenwood: sup?
hutch has quit [Ping timeout: 246 seconds]
tpanarch1st has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
jcalla has quit [Ping timeout: 248 seconds]
donofrio has quit [Remote host closed the connection]
davor has quit [Ping timeout: 246 seconds]
davor has joined #ruby
jcalla has joined #ruby
tdy has joined #ruby
orbyt_ has joined #ruby
fphilipe_ has joined #ruby
<havenwood>
rindolf: Ruby!
<rindolf>
havenwood: ah
<havenwood>
rindolf: I've been enjoying playing with the Async gems.
sagax has quit [Quit: Konversation terminated!]
englishm has quit [Excess Flood]
Inline has quit [Quit: Leaving]
jenrzzz has joined #ruby
englishm has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
p3ps1 has quit [Ping timeout: 245 seconds]
<rindolf>
havenwood: nice
sameerynho has joined #ruby
quazimodo has joined #ruby
reber has joined #ruby
quazimodo has quit [Ping timeout: 258 seconds]
p3ps1 has joined #ruby
quazimodo has joined #ruby
alem0lars has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Francisco has quit [Quit: Francisco]
oetjenj has joined #ruby
dellavg has joined #ruby
fphilipe_ has quit [Ping timeout: 246 seconds]
quazimodo has quit [Ping timeout: 248 seconds]
quazimodo has joined #ruby
sameerynho has quit [Ping timeout: 245 seconds]
fphilipe_ has joined #ruby
ur5us_ has quit [Remote host closed the connection]
schne1der has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
schne1der has quit [Ping timeout: 258 seconds]
abaiste^ has quit []
mb^ has joined #ruby
quazimodo has quit [Ping timeout: 244 seconds]
quazimodo has joined #ruby
lxsameer has joined #ruby
andikr has joined #ruby
jenrzzz has joined #ruby
quazimodo has quit [Ping timeout: 246 seconds]
schne1der has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
<leftylink>
one would hope I do not have to reach for such old versions of ruby, but if I wanted to know which version of ruby made Array#shift and Array#unshift amortised constant...
aupadhye has joined #ruby
<leftylink>
looks like it was 2.0. okay. I am pretty sure nobody will make me use a ruby that is older than that
<leftylink>
or even close
<havenwood>
leftylink: Those were in Ruby long before 2.0.
za1b1tsu has joined #ruby
<havenwood>
leftylink: Are you thinking Array#prepend and Array#append?
<leftylink>
very specifically shift and unshift
<ytti>
i think he implies there was implementation change which made them cheaper
drnerdius has quit [Quit: Konversation terminated!]
drnerdius has joined #ruby
drnerdius has quit [Read error: Connection reset by peer]
drnerdius has joined #ruby
codefriar has joined #ruby
drnerdius has quit [Read error: Connection reset by peer]
drnerdius has joined #ruby
easoncxz has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
aupadhye has quit [Remote host closed the connection]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tpanarch1st_ has joined #ruby
gr33n7007h has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
tpanarch1st has quit [Ping timeout: 272 seconds]
chalkmonster has joined #ruby
AJA4350 has joined #ruby
al2o3-cr has joined #ruby
paraxial2 has quit [Ping timeout: 272 seconds]
jefffrails35 has quit [Quit: Leaving]
chalkmonster has quit [Quit: WeeChat 2.5]
howdoi has joined #ruby
jenrzzz has joined #ruby
drnerdius has quit [Quit: Konversation terminated!]
drnerdius has joined #ruby
jcalla has joined #ruby
sylario has joined #ruby
codefriar has joined #ruby
facest has joined #ruby
alem0lars_ has joined #ruby
alem0lars has quit [Read error: Connection reset by peer]
mahlon has quit [Read error: Connection reset by peer]
thebetrayer has quit [Ping timeout: 272 seconds]
cisco has joined #ruby
cisco is now known as Guest15562
thebetrayer has joined #ruby
mahlon has joined #ruby
Eiam has quit [Ping timeout: 248 seconds]
faces has quit [Ping timeout: 272 seconds]
kapilp has joined #ruby
aupadhye has joined #ruby
za1b1tsu has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
za1b1tsu has joined #ruby
GodFather_ has joined #ruby
GodFather has joined #ruby
za1b1tsu has quit [Ping timeout: 244 seconds]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dbugger has quit [Remote host closed the connection]
chunkypuffs has joined #ruby
ellcs has quit [Ping timeout: 245 seconds]
r29v has joined #ruby
r29v has quit [Client Quit]
jenrzzz has quit [Ping timeout: 258 seconds]
BH23 has joined #ruby
beanie__ has joined #ruby
a1ph4g33k has joined #ruby
tpanarch1st_ has quit [Ping timeout: 272 seconds]
DaRock has quit [Ping timeout: 248 seconds]
aupadhye has joined #ruby
yalue_ has joined #ruby
wildtrees has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yalue has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
r29v has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
_Joes_ has joined #ruby
stooj has quit [Ping timeout: 244 seconds]
rippa has joined #ruby
sandstrom has quit [Ping timeout: 264 seconds]
stooj has joined #ruby
ramfjord has joined #ruby
Huck777 has joined #ruby
jenrzzz has joined #ruby
bmurt has quit [Ping timeout: 272 seconds]
schne1der has quit [Ping timeout: 246 seconds]
sh7d has quit [Ping timeout: 248 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
sh7d has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
<adam12>
What's everyone using for test coverage currently? Lots of new ones out that look great: covered and deep-cover, and I'm sure there are more.
duderonomy has quit [Ping timeout: 248 seconds]
beanie__ has quit [Ping timeout: 272 seconds]
BH23 has quit [Ping timeout: 245 seconds]
AJA4350 has quit [Remote host closed the connection]
AJA4350 has joined #ruby
corellian has quit [Quit: leaving]
cthulchu has joined #ruby
bmurt has joined #ruby
drincruz has quit [Ping timeout: 245 seconds]
jefffrails35 has quit [Read error: Connection reset by peer]
impermanence has joined #ruby
FastJack has quit [Ping timeout: 264 seconds]
andikr has quit [Remote host closed the connection]
<phaul>
I did try deep cover and loved it.
<adam12>
phaul: Trying it now. Covered errored out and I don't have time to debug right now.
aupadhye has quit [Remote host closed the connection]
<adam12>
It crashes too. Oh well.
<phaul>
hm.
<adam12>
covered complains about Ruby version. I think it's an issue with the rubyparser it imports expecting 2.5.5 and I'm forced to be 2.5.3 on this project.
tdy has joined #ruby
<adam12>
deep-cover expects sass as a dependency but doesn't seem to list it, or has some other issue.
<adam12>
Back to simplecov for now.
howdoi has quit [Quit: Connection closed for inactivity]
FastJack has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
nerdius has joined #ruby
<phaul>
deep cover can be used as a refactor tool, I tried it with the gilded rose kata, it can simply drive your TDD eliminating each codepath that wasn't exercised
<phaul>
But you need branch coverage to do that..
<adam12>
I'm gonna dig into it a bit more when I have some free time.
za1b1tsu has quit [Ping timeout: 245 seconds]
<phaul>
btw the bot also has it but I haven't run it for ages.
dostoyevsky has quit [Quit: leaving]
<phaul>
still works. ruby 2.6.3 though
drnerdius has quit [Ping timeout: 244 seconds]
prestorium has joined #ruby
ramfjord has joined #ruby
nerdius has quit [Ping timeout: 244 seconds]
dostoyevsky has joined #ruby
yalue_ has quit [Read error: Connection reset by peer]
yalue_ has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
__yalue has joined #ruby
prestorium has quit [Quit: prestorium]
yalue_ has quit [Ping timeout: 246 seconds]
bmurt has quit [Ping timeout: 268 seconds]
involans has quit [Ping timeout: 272 seconds]
wbnns has quit [Ping timeout: 245 seconds]
involans has joined #ruby
d0liver has quit [Ping timeout: 264 seconds]
sylario has quit [Ping timeout: 252 seconds]
d0liver has joined #ruby
howdoi has joined #ruby
afisher has quit [Ping timeout: 252 seconds]
sparc_ has quit [Ping timeout: 250 seconds]
schne1der has joined #ruby
ryzokuken has quit [Ping timeout: 250 seconds]
d0liver has quit [Max SendQ exceeded]
sylario has joined #ruby
wbnns has joined #ruby
afisher has joined #ruby
kyrylo has joined #ruby
afisher has quit [Excess Flood]
sh7d has quit [Quit: meh]
ryzokuken has joined #ruby
sparc_ has joined #ruby
sh7d has joined #ruby
d0liver has joined #ruby
afisher has joined #ruby
<vcavallo>
hi
<havenwood>
vcavallo: hi
matti has quit [Ping timeout: 252 seconds]
sparc_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
orbyt_ has joined #ruby
ctp has quit [Ping timeout: 264 seconds]
afisher has quit [Ping timeout: 245 seconds]
sparc_ has joined #ruby
sylario has quit [Read error: Connection reset by peer]
ryzokuken has quit [Ping timeout: 264 seconds]
ctp has joined #ruby
matti has joined #ruby
sylario has joined #ruby
matti has quit [Max SendQ exceeded]
ryzokuken has joined #ruby
afisher has joined #ruby
sylario has quit [Max SendQ exceeded]
matti has joined #ruby
sylario has joined #ruby
ryzokuken has quit [Max SendQ exceeded]
grilix has joined #ruby
matti has quit [Max SendQ exceeded]
jenrzzz has quit [Read error: Connection reset by peer]
<vcavallo>
haha hi havenwood. i was testing soemthing and this happened to be the first channel i saw
<vcavallo>
thanks though :
drincruz has joined #ruby
<vcavallo>
)
<havenwood>
vcavallo: yell if you have any Ruby to talk about!
sh7d has quit [Quit: meh]
<vcavallo>
always. ruby all day
sh7d has joined #ruby
ascarter has joined #ruby
ramfjord has joined #ruby
drincruz_ has joined #ruby
duderonomy has joined #ruby
_Joes_ has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
drincruz has quit [Ping timeout: 245 seconds]
alem0lars_ has quit [Ping timeout: 248 seconds]
impermanence has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
stryek has joined #ruby
gix has joined #ruby
brool has joined #ruby
akem-hp has joined #ruby
mwlang has joined #ruby
<mwlang>
are there any jekyll plugins that change the way _posts folder can be laid out? I’d rather not have all articles flat in one folder and starting with YEAR-MM-DAY-post-name-here, but not quite sure how to go about changing up that default behavior.
ramfjord has joined #ruby
code_zombie has joined #ruby
oetjenj has joined #ruby
involans has quit [Quit: involans]
IGnorAND has joined #ruby
ellcs has quit [Ping timeout: 245 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has joined #ruby
r29v has quit [Quit: r29v]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
r29v has joined #ruby
Fr4n has joined #ruby
ellcs has quit [Ping timeout: 246 seconds]
Guest2583 has quit [Ping timeout: 245 seconds]
involans has joined #ruby
<mwlang>
wow, never seen a group of developers so quiet! Did everyone move over to discord or gitter or something?
<adam12>
mwlang: Quiet this week I've noticed.
<mwlang>
week before school starts back in USA…
<adam12>
mwlang: Interesting. Didn't know that. In Canada they go back first week of Sept.
involans has quit [Ping timeout: 258 seconds]
<havenwood>
Everyone seems to be on vacation. :)
Fr4n has quit [Quit: Fr4n]
sauvin has quit [Ping timeout: 245 seconds]
kapilp has quit [Quit: Connection closed for inactivity]
involans has joined #ruby
codefriar has joined #ruby
<baweaver>
mwlang: preparing another lemur talk
<baweaver>
so rather busy with that.
mochiyoda has joined #ruby
chalkmonster has joined #ruby
dysp has quit [Remote host closed the connection]
mochiyoda_ has quit [Ping timeout: 276 seconds]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
<mwlang>
baweaver: I’ve seen your tweeting about those lemurs. Definitely a lot of work on your part, but it sure looks like fun from the outside looking in.
ua has quit [Ping timeout: 244 seconds]
ua has joined #ruby
<adam12>
baweaver: Where's the next lemur talk scheduled?
involans has quit [Ping timeout: 248 seconds]
graft has joined #ruby
<graft>
what is the best way to turn 'true', 'false' into true, false?
jenrzzz has joined #ruby
paraxial2 has joined #ruby
prestorium has joined #ruby
<mwlang>
graft: within a framework or just straight up ruby?
deepreds1 has joined #ruby
ober has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
prestorium has quit [Client Quit]
<leftylink>
I think the question has to specify what its behaviour should be on inputs other than 'true' or 'false'. if the conversion can do whatever it wants on other inputs and only needs to convert 'true' and 'false' then I'd too easily suggest something like `s == 'true'` or `s[0] == ?t`
<ruby[bot]>
sh7d: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
sandstrom has joined #ruby
jenrzzz has joined #ruby
paraxial2 has quit [Ping timeout: 244 seconds]
<sh7d>
feel free to tweak its behavior when string its not 'false' or 'true'
<sh7d>
ex return nil
<sh7d>
:P
<mwlang>
I typically test for truthy and anything else is falsey. Something like: ['t', 'T', '1', "true", "TRUE", "True", "on", "yes"].all?{|s| s =~ /^t|true|on|yes|1$/i}