havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.0-preview3: 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!
jacksoow has joined #ruby
spectra has quit [Ping timeout: 276 seconds]
Fernando-Basso has quit [Quit: Leaving]
hutch1 has quit [Ping timeout: 240 seconds]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
spectra has joined #ruby
nofxx has joined #ruby
Nahra_ has quit [Ping timeout: 250 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
NODE has quit [Quit: changing servers]
greenhat has joined #ruby
NODE has joined #ruby
Inline has quit [Read error: Connection reset by peer]
davidw has quit [Ping timeout: 240 seconds]
Inline has joined #ruby
hutch1 has joined #ruby
FastJack has quit [Ping timeout: 264 seconds]
FastJack has joined #ruby
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jacksoow has quit [Read error: Connection reset by peer]
jacksoow has joined #ruby
AJA4351 has joined #ruby
AJA4351 is now known as AJA4350
AJA4350 has quit [Ping timeout: 265 seconds]
CalimeroTeknik has quit [Quit: バイバイ]
CalimeroTeknik has joined #ruby
<dorian> hey question: suppose you want to wad together a bunch of (pure) functions in a module, but also want to be able to include them as instance methods. is there a pattern for that?
fmccann has joined #ruby
gix has quit [Ping timeout: 268 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiroaki has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
dasher00 has quit [Ping timeout: 240 seconds]
fmccann has quit [Ping timeout: 276 seconds]
<AndroidKitKat> can someone help me figure out why here: https://ruby-doc.org/core-2.6.5/Array.html#class-Array-label-Accessing+Elements, arr[2, 3] returns [3, 4, 5]
<AndroidKitKat> why does asking for only 2 indices return 3 elements
Autolycus has joined #ruby
<AndroidKitKat> oh wait, nevermind i see now
<AndroidKitKat> it's start pos, and how many you want
<AndroidKitKat> maybe i should try reading
dasher00 has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
nowhereman has quit [Ping timeout: 252 seconds]
<havenwood> AndroidKitKat: I like the Range form better, so I don't have to remember.
drincruz has joined #ruby
Autolycus has quit []
DTZUZO has quit [Quit: WeeChat 2.6]
DTZUZO has joined #ruby
cthulchu_ has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
jacksoow has quit [Read error: Connection reset by peer]
jacksoow has joined #ruby
cthulchu_ has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
cthulchu_ has joined #ruby
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
drincruz has quit [Ping timeout: 276 seconds]
dasher00 has quit [Ping timeout: 265 seconds]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
drincruz has joined #ruby
Swyper has quit [Remote host closed the connection]
wildtrees has quit [Quit: Leaving]
wallace_mu has joined #ruby
qeopo has joined #ruby
qeopo has quit [Remote host closed the connection]
davidw has quit [Ping timeout: 246 seconds]
davor_ has joined #ruby
davor has quit [Ping timeout: 240 seconds]
davor_ is now known as davor
AJA4350 has joined #ruby
wallace_mu has quit [Read error: Connection reset by peer]
wallace_mu has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
cthulchu_ has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
orbyt_ has joined #ruby
s2013 has joined #ruby
duderonomy has joined #ruby
millerti has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
AJA4350 has quit [Quit: AJA4350]
cthulchu_ has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Ping timeout: 276 seconds]
NODE has quit [Quit: changing servers]
comet23 has joined #ruby
NODE has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jacksoow has quit [Read error: Connection reset by peer]
jacksoow has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
Tempesta has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
brool has quit [Ping timeout: 276 seconds]
kapil_ has joined #ruby
entel has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 245 seconds]
sergioro has joined #ruby
cthu| has joined #ruby
cthulchu_ has quit [Ping timeout: 250 seconds]
cthu| has quit [Ping timeout: 246 seconds]
donofrio has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
uplime is now known as Rudolph
rekliure has joined #ruby
<rekliure> hey there world!!
rekliure has quit [Remote host closed the connection]
code_zombie has quit [Quit: Leaving]
spllr has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 268 seconds]
wallace_mu has joined #ruby
Tempesta has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
Inline has quit [Quit: Leaving]
orbyt_ has joined #ruby
NODE has joined #ruby
jenrzzz has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
hiroaki has joined #ruby
schne1der has joined #ruby
schne1der has quit [Ping timeout: 265 seconds]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
nofxx has quit [Ping timeout: 250 seconds]
nofxx has joined #ruby
_whitelogger has joined #ruby
Nahra has joined #ruby
nofxx has quit [Ping timeout: 250 seconds]
Swyper has joined #ruby
NODE has quit [Quit: changing servers]
za1b1tsu has joined #ruby
NODE has joined #ruby
TomyLobo2 has joined #ruby
chalkmonster has joined #ruby
Swyper has quit [Ping timeout: 265 seconds]
nofxx has joined #ruby
ta1 has quit [Quit: WeeChat 2.6]
ta1 has joined #ruby
prestorium has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
xco has joined #ruby
hutch1 has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 276 seconds]
hutch1 has joined #ruby
ur5us has joined #ruby
spllr has quit [Quit: This computer has gone to sleep]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
Swyper has joined #ruby
s2013 has quit [Ping timeout: 245 seconds]
luminousnine has quit [Ping timeout: 246 seconds]
Swyper has quit [Ping timeout: 252 seconds]
evertvdb has quit [Ping timeout: 250 seconds]
xco has quit [Quit: Textual IRC Client: www.textualapp.com]
nibbo has quit [Ping timeout: 246 seconds]
nibbo has joined #ruby
schne1der has joined #ruby
Swyper has joined #ruby
Swyper has quit [Ping timeout: 252 seconds]
rafadc has quit [Remote host closed the connection]
r3m has quit [Quit: WeeChat 2.7-rc1]
comet23 has quit [Quit: Connection closed for inactivity]
cd has quit [Quit: cd]
r3m has joined #ruby
luminousnine has joined #ruby
luminousnine has quit [Changing host]
luminousnine has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
Swyper has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
evert has joined #ruby
abc_not_cba has joined #ruby
<abc_not_cba> hi
Swyper has quit [Ping timeout: 268 seconds]
rafadc has joined #ruby
nofxx has joined #ruby
ta1 has quit [Quit: WeeChat 2.6]
<havenwood> abc_not_cba: hi
ta1 has joined #ruby
ta1 has quit [Quit: WeeChat 2.6]
ta1 has joined #ruby
conta has joined #ruby
snickers has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
ta1 has quit [Quit: WeeChat 2.6]
ta1 has joined #ruby
Swyper has joined #ruby
Swyper has quit [Ping timeout: 268 seconds]
feep[work] has joined #ruby
<feep[work]> yo
<feep[work]> I've been trying to patch in ^ operator support, ie. "semver compatible", is this the way to go? https://gist.github.com/FeepingCreature/4228805edb4ef425ba47e134d3f7408e
conta has quit [Quit: conta]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
Swyper has joined #ruby
<MrCrackPot> whats the best way to use .map or similar to get the values from an array with a key and then use those values with another key on another hash and lastly those values to be used with another hash and another key
<MrCrackPot> currently i use @job_ids_inprocess = @in_process_jobs.map(&:job_id) to get the values in an array from the first hash
<MrCrackPot> but the only thing i can think of is using a loop to iterate through and then match another key with each value in the array
<abc_not_cba> horrific code
dionysus69 has joined #ruby
NODE has quit [Quit: changing servers]
Swyper has quit [Ping timeout: 240 seconds]
NODE has joined #ruby
<havenwood> MrCrackPot: In Ruby 2.6 there's a block form of #to_h, so you can:
<havenwood> &>> 'c'.upto('e').to_h { |s| [s, s.ord] }
<rubydoc> # => {"c"=>99, "d"=>100, "e"=>101} (https://carc.in/#/r/86ll)
<havenwood> MrCrackPot: Show the expected input and desired output of a few cases if the way to get there with #to_h isn't clear?
NODE has quit [Client Quit]
NODE has joined #ruby
kapil_ has quit [Quit: Connection closed for inactivity]
abc_not_cba has quit [Remote host closed the connection]
Swyper has joined #ruby
<havenwood> feep[work]: I love the idea. Neat!
Swyper has quit [Ping timeout: 250 seconds]
im0nde has joined #ruby
<feep[work]> yay~
im0nde_ has quit [Ping timeout: 245 seconds]
NODE has quit [Quit: changing servers]
<havenwood> feep[work]: might consider Regexp.union for line 26: https://gist.github.com/FeepingCreature/4228805edb4ef425ba47e134d3f7408e#file-gistfile1-txt-L26
<havenwood> feep[work]: quoted = Regexp.union *OPS.keys
NODE has joined #ruby
<feep[work]> havenwood: that's 1:1 copypaste from the ruby source
<feep[work]> I did get the OPS= smaller tho
<havenwood> feep[work]: haha, oh!
<havenwood> feep[work]: I should propose the change there then, haha.
<feep[work]> :)
<feep[work]> not sure I like the global PREV_OPS but not sure how to fix it either
<feep[work]> I don't think I can access "previous Gem::Requirement" inside my redefining Gem::Requirement?
<feep[work]> ... er, especially since I just removed the constant lol
<havenwood> feep[work]: You're reopening the class, so you can get at Requirement—but yeah, OPS is gone!
<feep[work]> havenwood: found a way to have it a bit more lexically isolated https://gist.github.com/FeepingCreature/7c660628389ec4d29e959547478299b4
<havenwood> feep[work]: I'd suggest movinng it all inside Gem::Requirement and opening the class once.
<feep[work]> ... oh, I can do that, lol
_phaul has quit [Ping timeout: 268 seconds]
<feep[work]> ... and for completeness, I can remove the helper after :D
<havenwood> feep[work]: Nice
Swyper has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
Swyper has quit [Ping timeout: 245 seconds]
ellcs has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
_phaul has joined #ruby
sergioro has quit [Quit: leaving]
_phaul has quit [Ping timeout: 276 seconds]
Swyper has joined #ruby
<MrCrackPot> havenwood thanks ill give it a look now
_phaul has joined #ruby
Swyper has quit [Ping timeout: 250 seconds]
Nahra has quit [Quit: leaving]
_phaul has quit [Ping timeout: 240 seconds]
_phaul has joined #ruby
yann-kaelig has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
_phaul has joined #ruby
johnny56 has joined #ruby
Swyper has joined #ruby
Nahra has joined #ruby
entel has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
Nahra has quit [Client Quit]
Nahra has joined #ruby
Nahra has joined #ruby
Swyper has quit [Ping timeout: 246 seconds]
_phaul has joined #ruby
Nahra has quit [Client Quit]
NODE has quit [Quit: changing servers]
_phaul has quit [Ping timeout: 240 seconds]
Nahra has joined #ruby
NODE has joined #ruby
Nahra has quit [Client Quit]
za1b1tsu has quit [Ping timeout: 265 seconds]
Nahra has joined #ruby
Swyper has joined #ruby
nofxx has quit [Remote host closed the connection]
_phaul has joined #ruby
nofxx has joined #ruby
jlhgasdkjhg has joined #ruby
nofxx has quit [Remote host closed the connection]
Jonopoly has joined #ruby
nfsnobody has quit [Ping timeout: 264 seconds]
_phaul has quit [Ping timeout: 240 seconds]
fmccann has joined #ruby
za1b1tsu has joined #ruby
nofxx has joined #ruby
nfsnobody has joined #ruby
nofxx has quit [Remote host closed the connection]
_phaul has joined #ruby
Swyper has quit [Ping timeout: 268 seconds]
Swyper has joined #ruby
nofxx has joined #ruby
<Bish> is there IO.select that you can give some context to the socket you're selecting?
<Bish> like.. you have a hash with sockets and their handlers
<Bish> you IO.select and it gives you the handlers?
_phaul has quit [Ping timeout: 250 seconds]
<ytti> i'm not sure what you mean
<ytti> but you can create your own IO object w ith all the methods and context you want
<ytti> and select will return that object, and you can call the methods which return the context
_phaul has joined #ruby
<Bish> yeah im still writing my own eventloop for ssh, and that code saaawks
<Bish> it's has this weird {socket⇒handler} hash, that doesn't seem to be used!?
<Bish> it's odd
_phaul has quit [Ping timeout: 276 seconds]
jlhgasdkjhg has left #ruby ["Leaving"]
kapil_ has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
_phaul has joined #ruby
bvdw has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
rubydoc has quit [Ping timeout: 276 seconds]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 252 seconds]
whiis has quit [Remote host closed the connection]
_phaul has joined #ruby
AJA4350 has joined #ruby
whiis has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
dviola has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
Swyper has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 265 seconds]
nofxx has joined #ruby
dviola has quit [Quit: WeeChat 2.6]
nofxx has quit [Ping timeout: 276 seconds]
foxxx0 has quit [Ping timeout: 245 seconds]
lucasb has joined #ruby
nofxx has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
vircung has quit [Quit: Nothing to do here]
vircung has joined #ruby
sixty4bit has quit [Ping timeout: 276 seconds]
AJA4350 has quit [Ping timeout: 265 seconds]
snickers has quit [Quit: Textual IRC Client: www.textualapp.com]
AJA4350 has joined #ruby
spllr has joined #ruby
<al2o3-cr> is there a rubygem to view markdown locally similar to grip in python?
nofxx has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby
bvdw has quit [Quit: bvdw]
bvdw has joined #ruby
Nahra has quit [Ping timeout: 240 seconds]
conta1 has joined #ruby
TCZ has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
spllr has quit [Quit: Leaving]
<Bish> &> 1
yokel has quit [Ping timeout: 245 seconds]
za1b1tsu has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
moonshine_ has joined #ruby
za1b1tsu has joined #ruby
moonshine_ has left #ruby [#ruby]
nofxx has quit [Ping timeout: 250 seconds]
nofxx has joined #ruby
kapil_ has quit [Quit: Connection closed for inactivity]
conta1 has quit [Ping timeout: 252 seconds]
<Bish> why is mutex.synchronize { mutex.synchronize { 1 } } not allowed
<Bish> i mean, i have the lock, don't i?
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4350 has joined #ruby
schne1der has quit [Ping timeout: 268 seconds]
akemhp has quit [Ping timeout: 268 seconds]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
goepsilongo has joined #ruby
ta1 has quit [Quit: WeeChat 2.6]
NODE has quit [Client Quit]
ta has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
foxxx0 has joined #ruby
drincruz has joined #ruby
TCZ has quit [Quit: Bye Bye]
Technodrome has joined #ruby
Nahra has joined #ruby
drincruz has quit [Read error: No route to host]
drincruz has joined #ruby
whiis has quit [Quit: Connection closed for inactivity]
akemhp has joined #ruby
jacksoow has quit [Remote host closed the connection]
akemhp has quit [Ping timeout: 276 seconds]
Inline has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sagax has quit [Quit: Konversation terminated!]
vondruch has quit [Ping timeout: 276 seconds]
TCZ has joined #ruby
vondruch has joined #ruby
NODE has quit [Quit: changing servers]
<havenwood> Bish: Mutex isn't reentrant. Try the same with Monitor.
rubydoc has joined #ruby
rubydoc has quit [Remote host closed the connection]
NODE has joined #ruby
ljarvis has joined #ruby
schne1der has joined #ruby
rubydoc has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
Esa_ has joined #ruby
drincruz_ has joined #ruby
NODE has quit [Quit: changing servers]
AJA4350 has quit [Ping timeout: 268 seconds]
NODE has joined #ruby
drincruz has quit [Ping timeout: 276 seconds]
spacesuitdiver has joined #ruby
prestorium has quit [Quit: prestorium]
brool has joined #ruby
Esa_ has quit []
<rapha> dafuq?
<rapha> &>> {}.empty?
<rubydoc> # => true (https://carc.in/#/r/86n5)
<rapha> &>> {}.respond_t? :empty
<rubydoc> stderr: -e:4:in `<main>': undefined method `respond_t?' for {}:Hash (NoMethodError)... check link for more (https://carc.in/#/r/86n6)
<rapha> &>> {}.respond_to? :empty
<rubydoc> # => false (https://carc.in/#/r/86n7)
<rapha> Why?!
feep[work] has left #ruby [#ruby]
ljarvis has quit [Quit: WeeChat 2.4]
_phaul has quit [Ping timeout: 246 seconds]
* rapha pulls his haisr out
hutch1 has quit [Quit: WeeChat 2.6]
<al2o3-cr> &>> {}.respond_to? :empty?
<rubydoc> # => true (https://carc.in/#/r/86n8)
<rapha> ooooooooooooh
<rapha> the QUESTION MARK
<rapha> thank you al2o3-cr
<al2o3-cr> yep
<al2o3-cr> np rapha
NODE has quit [Quit: changing servers]
NODE has joined #ruby
_phaul has joined #ruby
AJA4350 has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
clemens3 has joined #ruby
TCZ has quit [Quit: Bye Bye]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
_phaul has joined #ruby
happyhans has joined #ruby
TCZ has joined #ruby
_phaul has quit [Ping timeout: 250 seconds]
hutch1 has joined #ruby
_phaul has joined #ruby
hutch1 has quit [Client Quit]
william1 has joined #ruby
<william1> Hi everyone :)
hutch1 has joined #ruby
<havenwood> william1: hi!
<william1> :)
_phaul has quit [Ping timeout: 250 seconds]
william1 has quit [Quit: WeeChat 1.9.1]
wallace_mu has quit [Read error: Connection reset by peer]
wallace_mu has joined #ruby
TCZ has quit [Quit: Bye Bye]
william1 has joined #ruby
_phaul has joined #ruby
william1 has quit [Client Quit]
william1 has joined #ruby
siasmj has quit []
siasmj has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.5]
_phaul has quit [Ping timeout: 245 seconds]
ellcs has quit [Ping timeout: 265 seconds]
_phaul has joined #ruby
dionysus70 has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Ping timeout: 276 seconds]
dionysus70 is now known as dionysus69
Umbraca has joined #ruby
twodayslate has quit []
_phaul has joined #ruby
twodayslate has joined #ruby
<william1> Where is everyone based? I'm based near London, England
davidw has joined #ruby
william1 has quit [Quit: WeeChat 1.9.1]
william1 has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
Synthead has joined #ruby
Pillus has quit []
Pillus has joined #ruby
<Synthead> Hey! I'm looking to change the cassette paths in the RSpec helper: https://github.com/vcr/vcr/blob/5327cb5dd15d68e874e48e8982aacca5ab3c1a55/lib/vcr/test_frameworks/rspec.rb#L10-L28
william1 has quit [Client Quit]
william1 has joined #ruby
<Synthead> Is there a clever way I can do this without monkey patching or copying the entire configure! method?
justache has quit []
_phaul has joined #ruby
justache has joined #ruby
AJA4350 has quit [Ping timeout: 252 seconds]
clemens3 has quit [Quit: WeeChat 1.6]
_phaul has quit [Ping timeout: 252 seconds]
Umbraca has quit [Remote host closed the connection]
_phaul has joined #ruby
cow[moo] has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
za1b1tsu has quit [Remote host closed the connection]
_phaul has joined #ruby
akemhp has joined #ruby
goepsilongo has quit [Quit: Textual IRC Client: www.textualapp.com]
duderonomy has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
_phaul has quit [Ping timeout: 265 seconds]
ljarvis has joined #ruby
Nicmavr has joined #ruby
<davidw> More work on the bug I keep looking at https://bugs.ruby-lang.org/issues/16288
_phaul has joined #ruby
cthulchu has joined #ruby
_phaul has quit [Ping timeout: 246 seconds]
d10n-work has quit []
d10n-work has joined #ruby
NODE has quit [Quit: changing servers]
MrCrackPot has quit [Ping timeout: 252 seconds]
TomyLobo2 has quit [Ping timeout: 246 seconds]
NODE has joined #ruby
_phaul has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
gix has joined #ruby
bvdw has joined #ruby
evert is now known as evertvdb
MrCrackPot has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
BuildTheRobots has quit []
BuildTheRobots has joined #ruby
_phaul has joined #ruby
fphilipe has quit [Ping timeout: 240 seconds]
akemhp has quit [Ping timeout: 268 seconds]
_phaul has quit [Ping timeout: 268 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_phaul has joined #ruby
duderonomy has joined #ruby
i9zO5AP has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
Ai9zO5AP has quit [Ping timeout: 250 seconds]
duderonomy has quit [Client Quit]
ljarvis has quit [Quit: WeeChat 2.4]
_phaul has joined #ruby
dionysus69 has quit [Remote host closed the connection]
fphilipe has joined #ruby
dionysus69 has joined #ruby
MrCrackPot has quit [Quit: Leaving]
_phaul has quit [Ping timeout: 250 seconds]
chromis has left #ruby [#ruby]
duderonomy has joined #ruby
NODE has quit [Quit: changing servers]
fphilipe has quit [Ping timeout: 246 seconds]
_phaul has joined #ruby
NODE has joined #ruby
Synthead has quit [Quit: Leaving]
_phaul has quit [Ping timeout: 265 seconds]
DTZUZO has joined #ruby
_phaul has joined #ruby
sagax has joined #ruby
NODE has left #ruby [#ruby]
davispuh has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
NODE has joined #ruby
NODE has quit [Client Quit]
_phaul has joined #ruby
NODE has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
kapil_ has joined #ruby
_phaul has joined #ruby
_phaul has quit [Ping timeout: 252 seconds]
rippa has joined #ruby
_phaul has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
ellcs has joined #ruby
Technodrome has quit [Ping timeout: 245 seconds]
_phaul has joined #ruby
dasher00 has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
cow[moo] has quit [Ping timeout: 265 seconds]
_phaul has joined #ruby
akemhp has joined #ruby
Pillus has quit []
_phaul has quit [Ping timeout: 276 seconds]
houhoulis has joined #ruby
Pillus has joined #ruby
_phaul has joined #ruby
spacesuitdiver has quit [Quit: Textual IRC Client: www.textualapp.com]
JohanP has joined #ruby
_phaul has quit [Ping timeout: 276 seconds]
_phaul has joined #ruby
ellcs has quit [Ping timeout: 276 seconds]
<adam12> davidw: The never ending bug.
MrCrackPot has joined #ruby
<davidw> adam12, luckily it only happens at the very ending of Ruby's execution
_phaul has quit [Ping timeout: 268 seconds]
_phaul has joined #ruby
<MrCrackPot> is there a way to make this a one liner and also run a bit more efficiently https://dpaste.org/DqMw
<adam12> MrCrackPot: It's helpful when we can actually run the snippets.
<adam12> MrCrackPot: Can you adjust it so it's runnable? Then at least we don't have to speculate on what the data looks like.
_phaul has quit [Ping timeout: 268 seconds]
sameerynho has joined #ruby
<MrCrackPot> adam12 its a bit difficult
<MrCrackPot> basically is a rails object with all of the data from the database from a model
_phaul has joined #ruby
<MrCrackPot> i'll have a go at making it runable will be easier than explaining it
<adam12> MrCrackPot: You can make objects to stand in for the Rails object. OpenStruct, Struct, plain Ruby object, whatever.
<adam12> MrCrackPot: Once it's runnable, you can use a benchmark tool to compare implementations. Right now we'd just have to speculate and you're like O(n^3) or something.
happyhans has quit [Remote host closed the connection]
_phaul has quit [Ping timeout: 265 seconds]
happyhans has joined #ruby
s2013 has joined #ruby
william1 has quit [Ping timeout: 240 seconds]
_phaul has joined #ruby
Jennip has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
_phaul has quit [Ping timeout: 268 seconds]
<Jennip> Quick question, if someone could help it would be much appreciated:
<Jennip> Why does "This is a sentence. I need to split! Unfortunately, it doesn't work as expected".split /(\.|!) /
<Jennip> Result in ["This is a sentence", ".", "I need to split", "!", "Unfortunately, it doesn't work as expected"]
<Jennip> And not ["This is a sentence", "I need to split", "Unfortunately, it doesn't work as expected"]
JohanP` has joined #ruby
NODE has quit [Quit: changing servers]
<leftylink> ah, I see
<leftylink> &ri String#split
<leftylink> > If pattern contains groups, the respective matches will be returned in the array as well.
<leftylink> "If pattern contains groups" applies here
<leftylink> since it does
JohanP has quit [Ping timeout: 240 seconds]
_phaul has joined #ruby
NODE has joined #ruby
<axsuul> How can I define a class helper that wraps tests in RSpec within a context block and also adds a before hook? Here's what I have so far but doesn't seem to be wrapping the tests properly within the context block: https://gist.github.com/axsuul/c63e0727648f4bec0f95676e1e3523cc
<Jennip> Amazing, thanks leftylink. I had completely missed that :)
<Jennip> "This is a sentence. I need to split! Unfortunately, it doesn't work as expected".split /(?:\.|!) /
<Jennip> Works perfectly
yann-kaelig has quit [Quit: yann-kaelig]
JohanP`` has joined #ruby
JohanP` has quit [Ping timeout: 250 seconds]
_phaul has quit [Ping timeout: 265 seconds]
fphilipe has joined #ruby
_phaul has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
JohanP`` has quit [Ping timeout: 240 seconds]
JohanP`` has joined #ruby
fphilipe has quit [Ping timeout: 276 seconds]
_phaul has joined #ruby
<al2o3-cr> 1.clamp(3..) i wish this were true :(
william1 has joined #ruby
<Rudolph> what does clamp do?
<al2o3-cr> &ri Comparable#clamp Rudolph
<Rudolph> haha fair enough
<Rudolph> oh i see. its to keep it within a range
_phaul has quit [Ping timeout: 265 seconds]
<al2o3-cr> Rudolph: 👍
<Rudolph> ty
<al2o3-cr> anyway where's prancer? ;)
<Rudolph> they're off playing reindeer games :(
<Rudolph> they wouldn't let me join in
snk has quit [Quit: WeeChat 1.9.1]
wildtrees has joined #ruby
<al2o3-cr> haha :)
teardown is now known as knifehits
_phaul has joined #ruby
johnny56_ has joined #ruby
johnny56 has quit [Ping timeout: 240 seconds]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
arooni_team_b is now known as arooni
_phaul has quit [Ping timeout: 245 seconds]
Axy has quit [Ping timeout: 276 seconds]
NODE has quit [Client Quit]
rafadc has quit [Ping timeout: 240 seconds]
houhoulis has quit [Remote host closed the connection]
NODE has joined #ruby
NODE has quit [Client Quit]
_phaul has joined #ruby
NODE has joined #ruby
_phaul has quit [Ping timeout: 250 seconds]
phaul has joined #ruby
ur5us has joined #ruby
sphex has quit [Ping timeout: 276 seconds]
sphex has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
william1 has quit [Ping timeout: 268 seconds]
fphilipe has joined #ruby
rafadc has joined #ruby
cthulchu has quit [Read error: Connection reset by peer]
cthulchu has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
akemhp has quit [Ping timeout: 245 seconds]
cthulchu has quit [Read error: Connection reset by peer]
cthulchu has joined #ruby
kapil_ has quit [Quit: Connection closed for inactivity]
Jennip has quit [Remote host closed the connection]
davor_ has joined #ruby
davor has quit [Ping timeout: 276 seconds]
davor_ is now known as davor
william1 has joined #ruby
william1 has quit [Client Quit]
william1 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
william1 has quit [Client Quit]
william1 has joined #ruby
DTZUZU has quit [Quit: WeeChat 2.6]
DTZUZU has joined #ruby
william1 has quit [Client Quit]
william1 has joined #ruby
<phaul> hi william1 , which direction from London?
schne1der has quit [Ping timeout: 252 seconds]
fig-le-deunch has joined #ruby
akemhp has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
donofrio has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
weaksauce has quit [Ping timeout: 265 seconds]
jinie has joined #ruby
Fernando-Basso has joined #ruby
william1 has quit [Ping timeout: 265 seconds]
JohanP`` has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
Esa_ has joined #ruby
sphex has quit [Remote host closed the connection]
_phaul has joined #ruby
phaul has quit [Ping timeout: 250 seconds]
_phaul has quit [Ping timeout: 265 seconds]
rmnull has joined #ruby
jinie_ has joined #ruby
jinie has quit [Ping timeout: 265 seconds]
jinie_ is now known as jinie
rmnull has left #ruby ["WeeChat 2.4"]
Scriptonaut has joined #ruby
_phaul has joined #ruby
Mrgoose845701915 has joined #ruby
fig-le-deunch has quit [Quit: Konversation terminated!]
_phaul has quit [Ping timeout: 265 seconds]
jinie_ has joined #ruby
jinie has quit [Ping timeout: 268 seconds]
jinie_ is now known as jinie
cthu| has joined #ruby
_phaul has joined #ruby
cthulchu has quit [Ping timeout: 250 seconds]
_phaul has quit [Ping timeout: 268 seconds]
ged has quit [Ping timeout: 240 seconds]
mahlon has quit [Ping timeout: 246 seconds]
_phaul has joined #ruby
sphex has joined #ruby
akemtab has joined #ruby
akemtab has quit [Excess Flood]
_phaul has quit [Ping timeout: 276 seconds]
_phaul has joined #ruby
akemtab has joined #ruby
akemtab has quit [Excess Flood]
_phaul has quit [Ping timeout: 240 seconds]
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
fphilipe has quit [Ping timeout: 246 seconds]
akemtab has joined #ruby
akemtab has quit [Excess Flood]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
Nahra has quit [Ping timeout: 268 seconds]
<Scriptonaut> I am trying to find the mimetype of an uploaded document. The file is uploaded as a RackMultipart tmp file. For some reason, when I do MIME::Types.type_for(tmp_file.path) it returns nothing. It works on all other files though
<Scriptonaut> any idea why this file would have no mimetype?
<Scriptonaut> doing `file --mime -b /tmp/RackMultipart-my-tmp-file` works
<woodruffw> Scriptonaut: MIME::Types probably uses your system MIME database, while `file` has its own magic DB
Nahra has joined #ruby
<woodruffw> MIME::Types is also worked based on the file extension, while `file` is parsing the input to see what it looks like
<woodruffw> so if your filename has no extension, it can't give you a meaningful result
_phaul has joined #ruby
im0nde has quit [Ping timeout: 252 seconds]
im0nde has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
nofxx has quit [Quit: Leaving]
nofxx has joined #ruby
_phaul has joined #ruby
ellcs has joined #ruby
happyhans has quit [Quit: Leaving...]
_phaul has quit [Ping timeout: 268 seconds]
_phaul has joined #ruby
Nahra has quit [Ping timeout: 268 seconds]
<Scriptonaut> woodruffw: ok, I was thinking it might be the lack of an extension, thanks
Nahra has joined #ruby
<Scriptonaut> I do have the extension, so I guess I'll trust it based on that
NODE has quit [Quit: changing servers]
NODE has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
akem has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
drincruz_ has quit [Ping timeout: 245 seconds]
NODE has joined #ruby
vondruch_ has joined #ruby
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
jacksoow has joined #ruby
vondruch has quit [Ping timeout: 276 seconds]
vondruch_ is now known as vondruch
sphex has quit [Ping timeout: 265 seconds]
sphex has joined #ruby
ged has joined #ruby
howdoi has joined #ruby
mahlon has joined #ruby
NODE has quit [Quit: changing servers]
Fernando-Basso has quit [Remote host closed the connection]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
NODE has joined #ruby