havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.4, 2.5.6, 2.7.0-preview1: 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!
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_iznogoud__ has quit [Quit: WeeChat 2.6]
DaRock has joined #ruby
reyfi9e has quit [Quit: Konversation term]
_iznogoud__ has joined #ruby
reyfi9e has joined #ruby
banisterfiend has joined #ruby
Swyper has quit [Remote host closed the connection]
hutch1 has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
Swyper has joined #ruby
_iznogoud__ has quit [Quit: WeeChat 2.6]
_iznogoud__ has joined #ruby
davidw_ has quit [Ping timeout: 265 seconds]
fphilipe has joined #ruby
SeepingN has quit [Read error: Connection reset by peer]
Swyper has quit [Ping timeout: 265 seconds]
m3ssia has quit [Quit: ZNC 1.6.3+deb1ubuntu0.2 - http://znc.in]
_iznogoud__ has quit [Client Quit]
_iznogoud__ has joined #ruby
Fernando-Basso has quit [Remote host closed the connection]
queip has quit [Ping timeout: 240 seconds]
SeepingN has joined #ruby
_iznogoud__ has quit [Client Quit]
fphilipe has quit [Ping timeout: 245 seconds]
_iznogoud__ has joined #ruby
_iznogoud__ has quit [Client Quit]
_iznogoud__ has joined #ruby
_iznogoud__ has quit [Client Quit]
smurfendrek123 has quit [Ping timeout: 240 seconds]
_iznogoud__ has joined #ruby
queip has joined #ruby
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
galaxie has joined #ruby
_iznogoud__ has quit [Client Quit]
grilix has joined #ruby
hutch1 has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
gigetoo has joined #ruby
orbyt_ has joined #ruby
Technodrome has joined #ruby
chihhsin has quit [Quit: leaving]
kyrylo has joined #ruby
queip has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
smurfendrek123 has joined #ruby
queip has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
hutch1 has joined #ruby
baojg has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
AJA4351 is now known as AJA4350
tdy1 has joined #ruby
ua has quit [Read error: Connection timed out]
jenrzzz has joined #ruby
tdy has quit [Ping timeout: 265 seconds]
tsujp has joined #ruby
mroutis has quit [Read error: Connection reset by peer]
mroutis has joined #ruby
wildtrees has quit [Quit: Leaving]
hutch1 has quit [Ping timeout: 276 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
jacksoow has joined #ruby
mroutis has quit [Quit: leaving]
mroutis has joined #ruby
gix has joined #ruby
gix has quit [Ping timeout: 240 seconds]
mroutis has quit [Quit: leaving]
millerti has quit [Ping timeout: 240 seconds]
mre- has joined #ruby
mre- has quit [Ping timeout: 245 seconds]
tdy2 has joined #ruby
AJA4351 has joined #ruby
mre- has joined #ruby
tdy1 has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
jenrzzz has quit [Ping timeout: 245 seconds]
brool has joined #ruby
bambanx has quit [Quit: Leaving]
mre- has quit [Read error: Connection timed out]
mre- has joined #ruby
Frobozz has quit [Quit: quit]
limon7 has joined #ruby
jrafanie has joined #ruby
limon7 has quit [Remote host closed the connection]
tdy3 has joined #ruby
rafadc has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
tdy2 has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
someotherkyle has left #ruby [#ruby]
nahra` has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grilix has quit [Ping timeout: 268 seconds]
nahra has quit [Ping timeout: 276 seconds]
tdy4 has joined #ruby
tdy3 has quit [Ping timeout: 268 seconds]
mre- has quit [Ping timeout: 265 seconds]
etupat has joined #ruby
rafadc has joined #ruby
etupat has quit [Ping timeout: 240 seconds]
h1r0P0p18 has joined #ruby
h1r0P0p18 has quit [Remote host closed the connection]
smurfendrek123_ has joined #ruby
eclm has quit [Ping timeout: 265 seconds]
smurfendrek123 has quit [Ping timeout: 265 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
queip has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has quit [Quit: AJA4350]
queip has joined #ruby
DaRock has quit [Ping timeout: 245 seconds]
kyrylo has joined #ruby
Swyper has joined #ruby
m3ssia has joined #ruby
nahra`` has joined #ruby
nahra` has quit [Ping timeout: 240 seconds]
fphilipe has joined #ruby
jenrzzz has joined #ruby
fphilipe has quit [Ping timeout: 245 seconds]
nahra``` has joined #ruby
fphilipe has joined #ruby
nahra`` has quit [Ping timeout: 245 seconds]
raul782 has joined #ruby
tdy has joined #ruby
raul782_ has joined #ruby
tdy4 has quit [Ping timeout: 240 seconds]
raul782 has quit [Ping timeout: 245 seconds]
dasher00 has quit [Ping timeout: 268 seconds]
brool has quit [Ping timeout: 250 seconds]
etupat has joined #ruby
eclm has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
etupat has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
donofrio has quit [Remote host closed the connection]
dellavg has joined #ruby
gigetoo has joined #ruby
ua has joined #ruby
eclm has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
akem__ has joined #ruby
nahra```` has joined #ruby
etupat has joined #ruby
akemacer has quit [Ping timeout: 265 seconds]
nahra``` has quit [Ping timeout: 240 seconds]
mre- has joined #ruby
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
kyrylo has quit [Ping timeout: 265 seconds]
mre- has quit [Ping timeout: 240 seconds]
etupat has quit [Ping timeout: 245 seconds]
tdy1 has joined #ruby
kyrylo has joined #ruby
tdy has quit [Ping timeout: 240 seconds]
tdy2 has joined #ruby
dellavg has quit [Ping timeout: 240 seconds]
tdy1 has quit [Ping timeout: 245 seconds]
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Azure|dc has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
Azure has quit [Ping timeout: 245 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
sauvin has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 276 seconds]
queip_ is now known as queip
fphilipe has quit [Ping timeout: 240 seconds]
fphilipe has joined #ruby
xco has joined #ruby
yasumi2136 has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
queip has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
queip has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
eclm has joined #ruby
tdy3 has joined #ruby
tdy2 has quit [Ping timeout: 265 seconds]
queip has quit [Ping timeout: 245 seconds]
cd has quit [Quit: cd]
andikr has joined #ruby
dionysus69 has joined #ruby
queip has joined #ruby
joallard has joined #ruby
mordred_ has joined #ruby
eclm has quit [Ping timeout: 240 seconds]
joallard has quit [Quit: Textual IRC Client: www.textualapp.com]
DTZUZO has joined #ruby
TomyWork has joined #ruby
DTZUZO has quit [Ping timeout: 265 seconds]
tdy3 is now known as tdy
thomas_25 has quit [Changing host]
thomas_25 has joined #ruby
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
vondruch has joined #ruby
kyrylo has joined #ruby
blackmesa has joined #ruby
NL3limin4t0r_afk is now known as NL3limin4t0r
gnufr33d0m has quit [Ping timeout: 268 seconds]
eclm has joined #ruby
hiroaki has joined #ruby
etupat has joined #ruby
etupat has quit [Remote host closed the connection]
queip has quit [Ping timeout: 268 seconds]
eclm has quit [Ping timeout: 245 seconds]
BH23 has joined #ruby
queip has joined #ruby
smurfendrek123_ has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ruby
yasumi2136 has quit [Remote host closed the connection]
xco has quit [Quit: xco]
mre- has joined #ruby
raul782_ has quit [Remote host closed the connection]
mre- has quit [Ping timeout: 240 seconds]
xco has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
DaRock has joined #ruby
Intelo has joined #ruby
schne1der has joined #ruby
blackmesa has joined #ruby
hightower2 has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
bitwinery has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 264 seconds]
stooj has quit [Quit: ZNC 1.7.3 - https://znc.in]
xco has quit [Quit: xco]
stooj has joined #ruby
hightower2 has joined #ruby
raul782 has joined #ruby
raul782 has quit [Ping timeout: 245 seconds]
queip has quit [Ping timeout: 240 seconds]
beanie__ has quit [Ping timeout: 240 seconds]
xco has joined #ruby
beanie__ has joined #ruby
queip has joined #ruby
hightower2 has quit [Ping timeout: 276 seconds]
Intelo has quit [Ping timeout: 240 seconds]
Intelo has joined #ruby
blackmesa has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
fphilipe has quit [Ping timeout: 240 seconds]
fphilipe has joined #ruby
<dionysus69> is this a bug? when I do this in view I get filename = document.src_path.split("/").last
<dionysus69> wrong number of arguments (given 1, expected 0)
<dionysus69> so it doesn't like that "/" argument, while it works in console. it throws this error in rails view
nima_m has joined #ruby
Intelo has quit [Ping timeout: 265 seconds]
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Intelo has joined #ruby
nahra```` has quit [Ping timeout: 265 seconds]
fphilipe has quit [Ping timeout: 240 seconds]
Intelo has quit [Ping timeout: 265 seconds]
Intelo has joined #ruby
xco has quit [Quit: xco]
Intelo_ has joined #ruby
nahra has joined #ruby
Intelo has quit [Ping timeout: 268 seconds]
Fernando-Basso has joined #ruby
deathwishdave has joined #ruby
blackmesa has joined #ruby
nahra` has joined #ruby
nahra` has quit [Remote host closed the connection]
nahra has quit [Ping timeout: 265 seconds]
ta has quit [Quit: WeeChat 2.5]
blackmesa has quit [Ping timeout: 276 seconds]
RiPuk has quit [Quit: ZNC 1.7.4 - https://znc.in]
ta has joined #ruby
RiPuk has joined #ruby
dasher00 has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
ellcs has joined #ruby
Fischmiep has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
ur5us has joined #ruby
tsujp has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
hutch1 has joined #ruby
akemacer has joined #ruby
akem__ has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
chunkypuffs has quit [Quit: ZNC 1.7.1 - https://znc.in]
xco has joined #ruby
hutch1 has quit [Ping timeout: 245 seconds]
AJA4350 has joined #ruby
Intelo_ has quit [Quit: Leaving]
Intelo has joined #ruby
jcalla has joined #ruby
<kyrylo> What's up guys. Is there any way to tell if a thread is sleeping or being stopped? On Ruby 2.4 a stopped thread returns `sleep_forever` but on Ruby 2.3 it's just `sleep`. That said, on Ruby 2.4 the status would still be 'sleep' https://gist.github.com/kyrylo/b70862a458345573f44dbfa58214dce3
chunkypuffs has joined #ruby
ur5us has quit []
eclm has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fischmiep has quit [Ping timeout: 245 seconds]
kyrylo has joined #ruby
eclm has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
mordred_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
hutch1 has joined #ruby
<NL3limin4t0r> dionysus69: Have you checked the `split` documentation for `src_path` class? I'm not sure what stdlib or gem you're working with.
<dionysus69> NL3limin4t0r: the error was thrown in this case as well: path.to_s.split("/")
<dionysus69> I am working with ruby 2.4.1 and rails, nothing else
ur5us has joined #ruby
<NL3limin4t0r> Does normal string splitting still work? '1/2/3'.split('/')
nima_m has quit [Quit: Connection closed for inactivity]
fphilipe has joined #ruby
donofrio has joined #ruby
<NL3limin4t0r> kyrylo: Does `thread.stop?` meet the requirements?
donofrio has quit [Remote host closed the connection]
xco has quit [Quit: xco]
donofrio has joined #ruby
<kyrylo> Thread.stop? would return true for both cases, so no
<dionysus69> NL3limin4t0r: ok my bad, it works with the string :\ I missed something with my testing
<kyrylo> The workaround I use is the stop variable. So before I call Thread.stop, I just assign @stop = true and then stop my thread. After the thread resumes, I call @stop = false
<kyrylo> Ugly but seems to be working
BH23 has quit [Ping timeout: 245 seconds]
chunkypuffs has quit [Quit: ZNC 1.7.1 - https://znc.in]
<NL3limin4t0r> What is the use-case? If you're gonna speep a thread forrever isn't it better to simply exit the thread?
MrCrackPotBob has quit [Remote host closed the connection]
MrCrackPotBob has joined #ruby
<kyrylo> I don't want to exit because it's expensive for my use case (I would need to respawn that thread every 15 seconds). I just want to have one thread that works like a timer but never exits
mcspud has quit [Excess Flood]
agrecascino has quit [Ping timeout: 245 seconds]
agrecascino has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mcspud has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
chunkypuffs has joined #ruby
BH23 has joined #ruby
blackmesa has joined #ruby
fuzzface has joined #ruby
stryek has joined #ruby
BTRE has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 268 seconds]
queip has quit [Ping timeout: 268 seconds]
blackmesa has quit [Ping timeout: 276 seconds]
lucasb has joined #ruby
queip has joined #ruby
raul782 has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
chalkmonster has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
jrafanie has joined #ruby
greengriminal has joined #ruby
raul782 has quit [Remote host closed the connection]
grilix has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
banisterfiend has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hexyou has joined #ruby
hexyou has quit [Max SendQ exceeded]
xco has joined #ruby
eclm has joined #ruby
codefriar has joined #ruby
eclm has quit [Client Quit]
queip has quit [Ping timeout: 252 seconds]
codefriar has quit [Quit: Textual IRC Client: www.textualapp.com]
BTRE has joined #ruby
queip has joined #ruby
x86sk has quit [Quit: Connection closed for inactivity]
rbanffy has joined #ruby
codefriar has joined #ruby
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
AJA4351 has joined #ruby
mre- has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
fuzzface has quit [Quit: Leaving]
osieln has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
Fernando-Basso has quit [Ping timeout: 265 seconds]
rippa has joined #ruby
codefriar has quit [Ping timeout: 276 seconds]
codefriar has joined #ruby
Fernando-Basso has joined #ruby
queip has quit [Ping timeout: 245 seconds]
drincruz has joined #ruby
xco has quit [Quit: xco]
queip has joined #ruby
Fischmiep has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
hiroaki has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
xco has joined #ruby
Fischmiep has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
ur5us has quit [Remote host closed the connection]
mre- has quit [Ping timeout: 240 seconds]
yann-kaelig has joined #ruby
cnsvc has quit [Remote host closed the connection]
cnsvc has joined #ruby
rapha has joined #ruby
<rapha> hi
rbanffy has quit [Quit: rbanffy]
<phaul> hi rapha
TomyWork has quit [Remote host closed the connection]
<rapha> with minitest, when i run a file containing a class deriving from Minitest::Test and using 'minitest/autorun', is there any way to hand in a piece of information from the command line?
<rapha> (just one string ... two characters only, in fact)
SeepingN has joined #ruby
<adam12> rapha: How are you running the test file?
<rapha> adam12: "ruby -Ilib:test tests/unit/myfile.rb"
<rapha> well, since i found out about "--pride", i'm adding that, too, because who doesn't like pretty colours in a terminal
<adam12> rapha: Are they not available on ARGV?
<rapha> OH!OH!
<rapha> it just ignores any further arguments
<adam12> rapha: I don't believe minitest will mangle ARGV, unless you are using minitest-sprint (which has it's own opt parser IIRC).
<rapha> thank you adam12 :-D
greengriminal has joined #ruby
<adam12> rapha: yw
DTZUZO has joined #ruby
elphe has joined #ruby
<rapha> !!!!
* rapha just learned about [3].[](0) and then about [3]&.[](0) and then about nil&.[](0) and now has a hole in his brain the size of a sniper rifle bullet
queip has quit [Ping timeout: 240 seconds]
DTZUZO has quit [Ping timeout: 265 seconds]
<adam12> Yikes.
<rapha> :-P
<adam12> Hopefully as examples of what not to write.
<rapha> more like as examples of how many sadistic ways of prodding his coworkers my coworker knows
queip has joined #ruby
Intelo has quit [Remote host closed the connection]
zapata has joined #ruby
xco has quit [Quit: xco]
<rapha> also [1]&[2], okay. BUT nil&[0] - WTF!
<rapha> AND: [5]&.[0] doesn't work at all. might have, but doesn't. only [5]&.[](0) does.
RougeRR has joined #ruby
chalkmonster has joined #ruby
<RougeRR> hi
<phaul> idk but those aren;t surprising to me at all
<phaul> works exactly how I would expect it to
<phaul> but & is the & method, where as &. is a syntax for save navigation operator
<rapha> lololol
<rapha> okay try this:
<rapha> open pry
rbanffy has joined #ruby
<rapha> type: def Array;end
<RougeRR> is there a way of doing this as one statement
<RougeRR> @apply_encryption = @drm.include?('aes') && @drm.length > 1
<rapha> roflmaololcopter
<RougeRR> i cant for the life of me think of ome
<RougeRR> tried looking at array interesections etc
xco has joined #ruby
<phaul> RougeRR: why can't you lose the @drm.length > 1 part?
<phaul> isn't the include something that already implies it?
<RougeRR> because i want to do something else if there are more drm providers or zero
<phaul> nvm for some reason i thought >=
<RougeRR> i only want this to be true if it equals ['aes] and is not an empty array
mre- has joined #ruby
<phaul> but that's not what you have there . not empty would be >= and then it would be implied by the include?
AJA4351 has joined #ruby
<RougeRR> @drm != ['aes'] && @drm.any?
<RougeRR> is the same
<RougeRR> i just cant find a way to not use &&
<phaul> in other words if @drm.include('aes') is true then @drm can't be empty
<RougeRR> no
<rapha> phaul: you're too knowledgable to be surprised by these, I understand. To me it's just funny/funky/interesting because it's mind-blowing in a way.
<RougeRR> its saying
<RougeRR> only set this variable to true. if 'aes' is the only item in the array
<RougeRR> and the array is not empty
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
<phaul> then @apply_encryption = @drm == ['aes']
<RougeRR> wait ugh i explained that wrong
conta2 has joined #ruby
<RougeRR> im sorry
<RougeRR> Only set this variable to true, if aes is present in the array and there are more items in the array and the array is not empty
<RougeRR> so ['aes', 'fairplay'] would be true
<RougeRR> ['aes'] would not
<RougeRR> [] would not
dhollinger has joined #ruby
mre- has quit [Ping timeout: 245 seconds]
<phaul> then I would settle with your original code :)
<RougeRR> yeah, i cant see another way of doing it lol
<RougeRR> i just know my boss will kick up a fuss...its legacy im building on top of
<RougeRR> its going to be
xco has quit [Quit: xco]
<RougeRR> (@foo && @bar) || @baz && @drm.include? && @drm.length > 1
<RougeRR> which is ugh
<phaul> can you transfer some of the logic into priv methods? that might help readablity
<RougeRR> not really for this to be honest. Its doable, but i know it wont be accepted
<RougeRR> its okay phaul i'll see if there is another way
<RougeRR> i just wanted to check i couldnt do that without a &&
renich has joined #ruby
Obats has joined #ruby
<RougeRR> thanks for help
<phaul> RougeRR: np. sorry we couldn't give any better suggestion
<RougeRR> its okay, that was helpful. I was not sure if it was possible
RougeRR has quit [Quit: Leaving]
conta2 has quit [Ping timeout: 265 seconds]
DTZUZO has joined #ruby
<Obats> Ruby newbie here. Is it not allowed to do multiple calls to open()? They *do* close immediately, right? I have one open() that loads a webpage that holds a list. The list items are then extracted and I want to open() the pages that the list items link to. But even though I copied the open() from the first line the second open() line seems to fail..
<phaul> rapha: It's useful to realize that everything is a method call. If the receiver is not visible then it's implicitly self. 1 + 2 is the same as 1.+(2) . &. is just a syntactic addition for checking nil. puts 'hello' is a method call and it's the same as self.puts 'hello'
schne1der has quit [Ping timeout: 240 seconds]
<phaul> Obats: can you share the code with us? Also how does it fail?
rbanffy has quit [Quit: rbanffy]
queip has quit [Ping timeout: 240 seconds]
<Obats> phaul: I don't know. No messages at least, would love to know how to check that better. All I know right now is that if I uncomment the course_html assignment line I no longer get anything in the file.
mre- has joined #ruby
<Obats> Sorry, this one should have all the lines: https://hastebin.com/obipajurud.rb
<phaul> this seems sensible to me. I can't spot anything obvious
queip has joined #ruby
<Obats> I was afraid you'd say that ;-7
rbanffy has joined #ruby
<Obats> I'll try to dig into ruby error handling then, I guess. So strange. And annoying.
<Obats> Thanks for trying to help anyway:)
<phaul> but how does it behave? does it hang? maybe step through it with byebug
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
Obats has quit [Remote host closed the connection]
dretnx has joined #ruby
etupat has joined #ruby
mre- has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
dellavg has joined #ruby
davidw_ has joined #ruby
fphilipe has quit [Ping timeout: 245 seconds]
kyrylo has joined #ruby
jacksoow has quit [Read error: Connection reset by peer]
jacksoow has joined #ruby
<rapha> phaul: wait, so *every*thing you *ever* type into a ruby file or command line "secretly" starts with "self."?
<phaul> pretty much. there is an object instantiated at top level, it's singleton class will hold things that look like "just functions"
DaRock has quit [Ping timeout: 240 seconds]
priodev has joined #ruby
<phaul> try puts self at top level. or puts self.class
hiroaki has joined #ruby
mre- has joined #ruby
<phaul> actually Im not sure about the singleton part.
cthulchu_ has joined #ruby
<phaul> ok this states that they become private instance methods on Object https://vitobotta.com/2013/09/13/top-level-methods-in-ruby/
ellcs has joined #ruby
schne1der has joined #ruby
fphilipe has joined #ruby
<phaul> normally all the usual methods are defined in Kernel (module) which is then included by Object, so those methods work everywhere just by inheritance. But you can inherit BasicObject, that doesn't have kernel:
<phaul> &>> class X < BasicObject; def foo; puts 'hi'; end; end; X.new.foo
<rubydoc> stderr: -e:2:in `foo': undefined method `puts' for #<X:0x00005614d93e6d10> (NoMethodError)... check link for more (https://carc.in/#/r/7ng2)
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
etupat has quit [Remote host closed the connection]
fphilipe has quit [Ping timeout: 276 seconds]
etupat has joined #ruby
smurfendrek123_ has joined #ruby
etupat has quit [Remote host closed the connection]
chalkmonster has quit [Quit: WeeChat 2.6]
etupat has joined #ruby
mre- has quit [Ping timeout: 265 seconds]
jrafanie has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
mre- has joined #ruby
BH23 has quit [Ping timeout: 264 seconds]
Technodrome has joined #ruby
mre- has quit [Ping timeout: 245 seconds]
Intelo has joined #ruby
john2496 has joined #ruby
RougeRRR has joined #ruby
<RougeRRR> phaul, just wanted to let you know me and my manager had a discussion together and came up with a somewhat more elegant solution
<RougeRRR> ill share shortly
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
<phaul> cool. Im intrigued
fphilipe has joined #ruby
ellcs has quit [Read error: No route to host]
ellcs has joined #ruby
<RougeRRR> phaul,
dretnx has quit [Ping timeout: 245 seconds]
<RougeRRR> it might read slightly different to the sanitized code before
<RougeRRR> but its generic enough i dont care
<RougeRRR> that was our solution
<havenwood> RougeRRR: @drm.size.positive?
dretnx has joined #ruby
<havenwood> RougeRRR: I'd extract `%w[aes fairplay]` into a constant.
<RougeRRR> havenwood, mmm also possibility
<RougeRRR> why? its only used that once
<phaul> 1 is positive but 1 > 1 is false
<havenwood> phaul: ooops!
<havenwood> coffeetime!
<RougeRRR> yeah also true
dionysus69 has quit [Ping timeout: 240 seconds]
<RougeRRR> i did think about positive but yah needs to be greater than 1
<RougeRRR> anyway yes im much happier with this phaul and the if statement means the rest of the logic only gets run when that edgecase gets hit
etupat has quit [Remote host closed the connection]
<phaul> cool. if you understand this code better makes you happier then it's a win. Its somewhat subjective I personally preffered the initial way.
xco has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<RougeRRR> Yeah i understand what you mean phaul
<RougeRRR> When given the context for how the rest of the code is run
<RougeRRR> this was is much more clear and desirable
<RougeRRR> i can see what you mean without context though
codefriar has quit [Ping timeout: 240 seconds]
wildtrees has joined #ruby
dbugger has joined #ruby
dbugger has quit [Remote host closed the connection]
Intelo has quit [Remote host closed the connection]
dionysus69 has joined #ruby
renich has quit [Ping timeout: 268 seconds]
MrCrackPotBob has quit [Read error: Connection reset by peer]
<NL3limin4t0r> RougeRRR: `@drm.to_set > Set['aes']`
<NL3limin4t0r> If you don't mind using the set std-lib.
<RougeRRR> possibly....let me have a look. thanks for input
MrCrackPot has joined #ruby
<NL3limin4t0r> If you have no objection to using set you could also replace `(%w[aes fairplay] - @drm).empty?` with `@drm.to_set >= Set['aes', 'fairplay']`.
<RougeRRR> I could do yeah. im just looking i dont think we have Set required
orbyt_ has joined #ruby
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
freedom has joined #ruby
AJA4351 has joined #ruby
renich has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<NL3limin4t0r> I personally like set comparisons. `@drm.to_set > Set['aes']` clearly states that @drm must contain more than only "aes", but I understand if you you don't want to require new libraries.
<RougeRRR> nono i like set comparisons too
<RougeRRR> i hadnt thought of doing it that way
<RougeRRR> but yeah, i dont think it iwll get through code review
etupat has joined #ruby
blackmesa has joined #ruby
fphilipe has quit [Ping timeout: 246 seconds]
impermanence has joined #ruby
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
freedom has quit [Quit: freedom]
freedom has joined #ruby
<NL3limin4t0r> Why don't you expect it to get through? Because of the additional requirement?
<RougeRRR> NL3limin4t0r, hmmm
<RougeRRR> Set is in scope
<RougeRRR> as in we have it required
<RougeRRR> i wasnt sure if we did
<NL3limin4t0r> Keep in mind that #to_set removes duplicates, but I assumed that they aren't in the array.
raul782 has joined #ruby
<RougeRRR> there will be no duplicates correct
<NL3limin4t0r> So the behaviour is not exactly the same.
<NL3limin4t0r> Ah, then there should be no issue.
<RougeRRR> im trying to find docs for Set >
<RougeRRR> for ruby]
<RougeRRR> been a while since ive used sets
<RougeRRR> got it
hiroaki has quit [Ping timeout: 265 seconds]
<NL3limin4t0r> &>> require 'set'; [ Set[:a] > Set[:a], Set[:a, :b] > Set[:a], Set[:a] >= Set[:a], Set[:a, :b] >= Set[:a] ]
<rubydoc> # => [false, true, true, true] (https://carc.in/#/r/7nib)
queip has quit [Ping timeout: 268 seconds]
<RougeRRR> so im essentially replacing
<RougeRRR> @drm.length > 1 && @drm.include?('aes')
<RougeRRR> with @drm.to_set > Set['aes']
ellcs has quit [Ping timeout: 240 seconds]
<NL3limin4t0r> seems correct and has only differing behaviour in the case that @drm can contain duplicates. For example @drm = %w[aes aes] has a different output.
<RougeRRR> yeah
<RougeRRR> if the use included dups
<RougeRRR> then thats their problem
<RougeRRR> or we should be validating elsewhere
<havenwood> @drm.uniq.size > 1
<havenwood> totally depends if dups *should* be ignored
<havenwood> You I like Set.
<havenwood> >.> Oops, I meant: I like Set.
<RougeRRR> for this use case im not concerned about dupicates
nowhere_man has quit [Ping timeout: 276 seconds]
<RougeRRR> im just looking how using set would integreate in
<NL3limin4t0r> If @drm is under your control you could also make it a set to begin with. Then you can even leave out the #to_set call.
<RougeRRR> yeah its not under out control alas
<havenwood> RougeRRR: Can it just be a Set to begin with?
<RougeRRR> noo
<havenwood> NL3limin4t0r: haha, beat me to it
<RougeRRR> its got lots of other places to go ;)
<RougeRRR> and it needs to be an array to visit them
pdub has joined #ruby
<RougeRRR> its going in and out of a parser for starters
<RougeRRR> which would just die if it saw a set haha
chalkmonster has joined #ruby
pdub has quit [Remote host closed the connection]
<havenwood> RougeRRR: it'll always be an Array of Strings?
<RougeRRR> yeah
<NL3limin4t0r> You can always convert it back to an array with the #to_a call which is less intensive then #to_set, however if you don't control the creation of @drm this isn't worth discussing to begin with.
pdub has joined #ruby
queip has joined #ruby
<RougeRRR> NL3limin4t0r, no we dont. its input from the user at api
<RougeRRR> sure i could change it then
<RougeRRR> but, yeah its not really an option worth considering
<RougeRRR> this drm array is used in a lot of different places
<NL3limin4t0r> Then I wouldn't change it.
<NL3limin4t0r> But you can still #to_set in the comparison.
<RougeRRR> indeed i can
<RougeRRR> ill write it down in a branch
MrCrackPot has quit [Ping timeout: 276 seconds]
<RougeRRR> and put it to boss
<RougeRRR> just knocking it up now
etupat has quit [Ping timeout: 240 seconds]
pdub has quit [Remote host closed the connection]
<NL3limin4t0r> havenwood: great minds think alike =p
etupat has joined #ruby
<NL3limin4t0r> although I feel like you're the more knowledgeble here
jenrzzz has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
banisterfiend has joined #ruby
<havenwood> NL3limin4t0r: if i have more knowledge it's definitely obscured by my morning fog. i can't wake up today!
<RougeRRR> i will say
<RougeRRR> set is much less efficient (having to call to_set
<RougeRRR> not that it makes much difference
<havenwood> RougeRRR: benchmarked it?
<RougeRRR> yeah
<RougeRRR> irb(main):009:0> puts Benchmark.measure { 10000.times { (%w[aes fairplay] - @drm).empty? } }
<RougeRRR> 0.010000 0.000000 0.010000 ( 0.016126)
<RougeRRR> 0.130000 0.010000 0.140000 ( 0.154264)
<RougeRRR> irb(main):010:0> puts Benchmark.measure { 10000.times { @drm.to_set >= Set['aes', 'fairplay'] } }
<havenwood> RougeRRR: Check out benchmark-ips gem. It's a gem!
<RougeRRR> will have a shifty :)
<RougeRRR> ty :)
salinasce has joined #ruby
<NL3limin4t0r> RougeRRR: Now I'm curious how it does when it doesn't have to call #to_set, can you run:
<RougeRRR> yeah
<RougeRRR> emmmm
<NL3limin4t0r> aes_set = @drm.to_set; puts Benchmark.measure { 10000.times { drm_set >= Set['aes', 'fairplay'] } }
<NL3limin4t0r> drm_set = @drm.to_set; puts Benchmark.measure { 10000.times { drm_set >= Set['aes', 'fairplay'] } }
<NL3limin4t0r> ^ typo
queip has quit [Ping timeout: 240 seconds]
<RougeRRR> irb(main):007:0> drm_set = @drm.to_set; puts Benchmark.measure { 10000.times { drm_set >= Set['aes', 'fairplay'] } }
<RougeRRR> 0.070000 0.000000 0.070000 ( 0.073689)
<RougeRRR> slower that the array one still suprisingly
<RougeRRR> but you are still calling set on the second array
salinasce has quit [Remote host closed the connection]
salinasce has joined #ruby
<RougeRRR> irb(main):009:0> drm_set = @drm.to_set; puts Benchmark.measure { 10000.times { drm_set >= comparison_set } }
<RougeRRR> 0.010000 0.000000 0.010000 ( 0.014638)
<RougeRRR> NL3limin4t0r,
<RougeRRR> ^
<RougeRRR> thats without calling to_set / Set[]
<RougeRRR> at all
<RougeRRR> which is...actually marginally quicker than the aray method
<RougeRRR> interesting
etupat has quit [Remote host closed the connection]
<NL3limin4t0r> Yeah, instantiating objects is havier than comparing them.
<NL3limin4t0r> But it's not all about speed. Readability should be accounted for too.
codefriar has joined #ruby
<RougeRRR> i agree
<RougeRRR> i just know ill be asked speed by boss
<RougeRRR> apply_aes = @drm.to_set > Set['aes'] || @cpix && @drm.to_set >= Set['aes', 'fairplay']
<RougeRRR> would be the full line
etupat has joined #ruby
pdub has joined #ruby
<RougeRRR> i actually think my one with a method is more readable
<RougeRRR> its completly up for debate though
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> RougeRRR: I didn't pay much attention to the examples I used, so take those with a grain of salt, but example of using benchmark-ips: https://gist.github.com/havenwood/588c7a941bf967b46bfcedce1baccffc
<havenwood> sec, i'll fix the glaring errors
<RougeRRR> its oaky, i get the idea. thanks for running them. thats cool little gem :)
<RougeRRR> i have to go home!
<RougeRRR> its 6:30pm on a friday lol
gigetoo has quit [Ping timeout: 245 seconds]
<RougeRRR> i'll get upSET if i dont have a beer soon ;)
<havenwood> Freyja's day!
* havenwood rides off on a chariot pulled by cats
etupat has quit [Ping timeout: 240 seconds]
<RougeRRR> seeya guys ty for help
<NL3limin4t0r> Understandable
<NL3limin4t0r> gl
mre- has joined #ruby
queip has joined #ruby
<NL3limin4t0r> I'm also going home it's 19:30 here.
NL3limin4t0r is now known as NL3limin4t0r_afk
<havenwood> o/
RougeRRR has quit [Ping timeout: 240 seconds]
osieln has quit [Ping timeout: 268 seconds]
raul782 has quit [Ping timeout: 245 seconds]
mre- has quit [Ping timeout: 245 seconds]
mre- has joined #ruby
dretnx has quit [Quit: Going offline, see ya! (www.adiirc.com)]
duderonomy has joined #ruby
gigetoo has joined #ruby
ramfjord has joined #ruby
dinfuehr has quit [Ping timeout: 276 seconds]
dinfuehr has joined #ruby
queip has quit [Ping timeout: 246 seconds]
davidw has joined #ruby
davidw_ has quit [Remote host closed the connection]
davidw is now known as Guest56543
yasumi2136 has joined #ruby
freedom has quit [Quit: freedom]
pdub has quit [Remote host closed the connection]
etupat has joined #ruby
duderonomy has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
hightower2 has joined #ruby
osieln has joined #ruby
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
fphilipe has joined #ruby
freedom has joined #ruby
jacksoow_ has joined #ruby
queip has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
freedom is now known as gnufr33d0m
fphilipe has quit [Ping timeout: 245 seconds]
jacksoow has quit [Ping timeout: 264 seconds]
poontangmessiah has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
salinasce has quit [Ping timeout: 240 seconds]
dellavg has quit [Ping timeout: 276 seconds]
osieln has quit [Quit: leaving]
renich_ has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
duderonomy is now known as Guest95291
renich has quit [Ping timeout: 268 seconds]
renich_ is now known as renich
mre- has quit [Ping timeout: 240 seconds]
jrafanie has quit [Quit: Textual IRC Client: www.textualapp.com]
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
xco has quit [Quit: xco]
fphilipe has joined #ruby
etupat has quit [Remote host closed the connection]
AJA4351 has joined #ruby
Inline has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
etupat has joined #ruby
gix has joined #ruby
sauvin has quit [Ping timeout: 240 seconds]
xco has joined #ruby
SeepingN has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
Guest95291 has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
stryek has quit [Quit: Connection closed for inactivity]
etupat has quit [Read error: Connection reset by peer]
etupat has joined #ruby
mre- has joined #ruby
rippa has quit [Read error: Connection reset by peer]
sauvin has joined #ruby
jenrzzz has joined #ruby
xco has quit [Quit: xco]
duderono_ has quit [Quit: Textual IRC Client: www.textualapp.com]
duderono_ has joined #ruby
duderono_ has quit [Client Quit]
duderono_ has joined #ruby
etupat has quit [Remote host closed the connection]
xco has joined #ruby
r29v has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yann-kaelig has quit [Quit: yann-kaelig]
elphe has joined #ruby
r29v has quit [Client Quit]
elphe has quit [Ping timeout: 276 seconds]
fphilipe has quit [Ping timeout: 276 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
raul782 has joined #ruby
xco has quit [Quit: xco]
etupat has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
drincruz has quit [Read error: Connection reset by peer]
drincruz has joined #ruby
etupat has quit [Remote host closed the connection]
queip has quit [Ping timeout: 240 seconds]
duderono_ has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
queip has joined #ruby
duderonomy is now known as Guest23590
deathwishdave has joined #ruby
Guest23590 has quit [Read error: Connection reset by peer]
cd has joined #ruby
duderono_ has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yasumi2136_ has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
yasumi2136 has quit [Ping timeout: 265 seconds]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m27frogy has quit [Ping timeout: 245 seconds]
Technodrome has joined #ruby
chalkmonster has joined #ruby
m27frogy has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
duderono_ has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
xco has joined #ruby
mre- has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
mre- has joined #ruby
Intelo has joined #ruby
drincruz has quit [Read error: No route to host]
drincruz_ has joined #ruby
bambanx has joined #ruby
frem has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
xco has quit [Quit: xco]
jenrzzz has quit [Ping timeout: 276 seconds]
orbyt_ has joined #ruby
heavendestroyer has joined #ruby
madhatter has quit [Remote host closed the connection]
madhatter has joined #ruby
heavendestroyer has left #ruby [#ruby]
elphe has joined #ruby
john2496 has quit [Remote host closed the connection]
hutch1 has quit [Ping timeout: 252 seconds]
elphe has quit [Ping timeout: 245 seconds]
houhoulis has joined #ruby
Bish has quit [Disconnected by services]
queip has quit [Ping timeout: 265 seconds]
renich has quit [Quit: renich]
renich has joined #ruby
fphilipe has joined #ruby
queip has joined #ruby
mre- has quit [Ping timeout: 240 seconds]
grilix has quit [Ping timeout: 265 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
duderono_ has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
duderonomy is now known as Guest84749
tfitts has joined #ruby
houhoulis has quit [Remote host closed the connection]
greengriminal has joined #ruby
AJA4351 has joined #ruby
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 276 seconds]
fig-le-deunch has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
fig-le-deunch has quit [Client Quit]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest84749 has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
Intelo has quit [Read error: Connection reset by peer]
fphilipe has quit [Ping timeout: 245 seconds]
Intelo has joined #ruby
jenrzzz has joined #ruby
elphe has joined #ruby
wildtrees has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 240 seconds]
elphe has quit [Ping timeout: 240 seconds]
drincruz_ has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
davor has quit [Ping timeout: 276 seconds]
DaRock has joined #ruby
davor has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
schne1der has quit [Ping timeout: 276 seconds]
uranoss has joined #ruby
dhollinger has quit [Quit: dhollinger]
leitz has joined #ruby
gnufr33d0m has quit [Quit: gnufr33d0m]
<leitz> I've been travelling for a few days, and just saw a reference to the Chef-Sugar issue. Is there more to it than "Open Source developer didn't like how his code was being used"?
fphilipe has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
Intelo has quit [Ping timeout: 276 seconds]
mre- has joined #ruby
Intelo has joined #ruby
rbanffy has quit [Quit: rbanffy]
rbanffy has joined #ruby
rbanffy has quit [Client Quit]
al2o3-cr has quit [Ping timeout: 246 seconds]
Intelo has quit [Remote host closed the connection]
Intelo has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
Intelo has quit [Remote host closed the connection]
Intelo has joined #ruby
rbanffy has joined #ruby
Intelo has quit [Remote host closed the connection]
Intelo has joined #ruby
freedom has joined #ruby
i9zO5AP has joined #ruby
hightower3 has quit [Ping timeout: 240 seconds]
nahra has joined #ruby
Ai9zO5AP has quit [Ping timeout: 240 seconds]
Intelo has quit [Remote host closed the connection]
<leftylink> can I tell `Enumerable#map` "no more mapping, just go with what you've got up to this point"... nope, guess not. https://stackoverflow.com/questions/6668008/how-do-i-break-out-of-a-map-collect-and-return-whatever-has-been-collected-up-to
AJA4351 has joined #ruby
<leftylink> okay then
<leftylink> also for anyone who was thinking `raise StopIteration`... no, map isn't looking to rescue that
Intelo has joined #ruby
Intelo has quit [Remote host closed the connection]
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
yasumi2136_ has quit [Remote host closed the connection]
fphilipe has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
jenrzzz has joined #ruby
<leftylink> it is probably for the better
<leftylink> it is advantgaeous to be able to assume that e.map.size == e.size
<leftylink> a case where your lack of freedom frees you
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderono_ has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
duderonomy is now known as Guest68933
mroutis has joined #ruby
orbyt_ has joined #ruby
Guest56543 has quit [Ping timeout: 265 seconds]
DaRock has quit [Ping timeout: 265 seconds]
DaRock has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
mroutis has quit [Quit: leaving]
mroutis has joined #ruby
salinasc has quit [Remote host closed the connection]
ramfjord has joined #ruby
elphe has joined #ruby
Exagone313 has quit [Quit: see ya!]
banisterfiend has joined #ruby
queip has quit [Ping timeout: 240 seconds]
Exagone313 has joined #ruby
AJA4351 has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
queip has joined #ruby
fphilipe has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
bitwinery has joined #ruby
Guest68933 has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest56543 has joined #ruby
kyrylo has joined #ruby
kyrylo has quit [Client Quit]
queip has quit [Ping timeout: 240 seconds]
DaRock has quit [Ping timeout: 240 seconds]
DaRock has joined #ruby
hightower2 has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
freedom has quit [Ping timeout: 265 seconds]
queip has joined #ruby
brool has joined #ruby
DaRock has quit [Ping timeout: 276 seconds]
chalkmonster has joined #ruby
elphe has joined #ruby
Fernando-Basso has quit [Remote host closed the connection]
blackmesa1 has quit [Ping timeout: 252 seconds]
mre- has quit [Ping timeout: 240 seconds]