havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.0, 2.5.3, 2.4.5: 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!
laaron has joined #ruby
cschneid has joined #ruby
laaron- has quit [Remote host closed the connection]
ogres has joined #ruby
cschneid has quit [Ping timeout: 245 seconds]
Guest44017 has quit [Ping timeout: 252 seconds]
Guest44017 has joined #ruby
cschneid has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
horribleprogram has quit [Quit: WeeChat 2.3]
sarink has joined #ruby
cschneid has quit [Ping timeout: 246 seconds]
davidw_ has joined #ruby
<mspo> yeah
<mspo> justache: where can I find a channel who answers "no" to that question? :)
<justache> mspo: no
<justache> mspo: #reddit
<mspo> I'm in #redditaquariums and it's pretty friendly
Renich has joined #ruby
gix has quit [Ping timeout: 246 seconds]
<cthu|> omfg
<cthu|> now it becomes irritating
<mspo> cthu|: try antifungal cream
<cthu|> don't call ruby fungus
<cthu|> def qwe(a: "foo") byebug()
<cthu|> why don't I see a from that byebug's perspective?
davidw_ has quit [Ping timeout: 240 seconds]
<cthu|> I think I know why...
<mspo> I've never used byebug
<cthu|> yes, it was my mistake
<cthu|> I forgot that It sees only immediate context. And I forgot that I actually don't call it directly but rather a proxy method that does some sugar :)
sanscoeu_ has joined #ruby
<cthu|> I love byebug
sanscoeur has quit [Ping timeout: 250 seconds]
sanscoeu_ has quit [Ping timeout: 244 seconds]
sarink has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 272 seconds]
laaron- has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
laaron has quit [Remote host closed the connection]
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cthu|> what is ?-mix:
mistergibson has quit [Quit: Leaving]
Guest44017 has quit [Ping timeout: 252 seconds]
garyserj has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tiff has joined #ruby
connermcd has joined #ruby
sarink has joined #ruby
r29v has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
<havenwood> cthu|: the regexp options m, i and x
<cthu|> ah, interesting
<cthu|> weird, too
<cthu|> that puts does it to //
<cthu|> but mkay
<havenwood> cthu|: multiline is default in Ruby unlike some langs
<cthu|> yeah, I got it
<cthu|> it's just I expect to see the keys at the end of the regex
<cthu|> where I usually set them
<cthu|> puts puts them at the beginning
<cthu|> what a weirdo
sarink has quit [Remote host closed the connection]
Guest44017 has joined #ruby
<havenwood> cthu|: you can have a single regexp with different delimiters in different parts
<cthu|> delimiters?
<havenwood> cthu|: (except `o`, for compiling the Regexp once, which is the whole thing or nothign)
<havenwood> cthu|: mixo
<cthu|> what is a delimiter?
<cthu|> in regex
<havenwood> cthu|: end delmiters, the mix thing you noticed
<havenwood> I guess I should say oxim, since that's a word
<havenwood> an instrument for measuring the proportion of oxygenated hemoglobin in the blood.
DTZUZO has quit [Ping timeout: 272 seconds]
bmurt has joined #ruby
<havenwood> ^ acc'd to dictionary
<cthu|> fascinating
<havenwood> adding the `o` delimiter would be a good regexp cop when just constants are interpolated into a regexp
AJA4350 has quit [Quit: AJA4350]
connermcd has quit [Quit: WeeChat 2.3]
cschneid has joined #ruby
Guest44017 has quit [Ping timeout: 252 seconds]
Guest44017 has joined #ruby
cschneid has quit [Ping timeout: 246 seconds]
laaron- has quit [Remote host closed the connection]
laaron has joined #ruby
cthu| has quit [Ping timeout: 252 seconds]
_whitelogger has joined #ruby
orbyt_ has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
dysfigured has quit [Quit: I hate quit messages.]
dysfigured has joined #ruby
r29v has quit [Quit: r29v]
Guest44017 has quit [Ping timeout: 252 seconds]
ogres has quit [Quit: Connection closed for inactivity]
Guest58 has joined #ruby
Guest58 is now known as devpolish
sidepocket has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest44017 has joined #ruby
laaron- has joined #ruby
laaron has quit [Remote host closed the connection]
r29v has joined #ruby
darkhanb has joined #ruby
spacesuitdiver has joined #ruby
hutch has quit [Ping timeout: 244 seconds]
Guest44017 has quit [Ping timeout: 252 seconds]
Guest44017 has joined #ruby
hutch has joined #ruby
uplime is now known as uptime
kapil____ has joined #ruby
tag has quit [Quit: Connection closed for inactivity]
garyserj has quit [Quit: garyserj]
cschneid has joined #ruby
garyserj has joined #ruby
nowhere_man has joined #ruby
s2013 has joined #ruby
Guest44017 has quit [Read error: Connection reset by peer]
r29v has quit [Quit: r29v]
cschneid has quit [Ping timeout: 250 seconds]
tdy has joined #ruby
exchgr has quit [Quit: ZNC - http://znc.in]
<hays> POODR seems to be one of the few up to date books
<hays> eloquent ruby is 1.9, pickaxe also
exchgr has joined #ruby
quipa has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
laaron has joined #ruby
quipa has quit [Read error: Connection reset by peer]
laaron- has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 246 seconds]
braincrash has quit [Quit: bye bye]
_whitelogger has joined #ruby
braincrash has joined #ruby
<Iambchop> Isn't pickaxe 4th edition is 1.9 and 2.0? :-)
cschneid has joined #ruby
hutch has joined #ruby
cschneid has quit [Ping timeout: 245 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tdy has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure|dc has joined #ruby
sauvin has joined #ruby
cschneid has joined #ruby
laaron- has joined #ruby
laaron has quit [Remote host closed the connection]
JoeA2552 has joined #ruby
hutch has quit [Ping timeout: 246 seconds]
r3m has quit [Quit: WeeChat 2.4-dev]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoeA2552 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ruby
hutch has joined #ruby
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tiff has joined #ruby
r3m has joined #ruby
tdy has quit [Ping timeout: 240 seconds]
laaron has joined #ruby
laaron- has quit [Remote host closed the connection]
cschneid has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
<garyserj> I am having difficulty programmatically sending the ENTER key. I am using IRB (ruby interactive). If I do driver.find_element(:name, "q").send_keys("aaa\n"); it sends the aaa but not the ENTER. If I do driver.action.send_keys("\n").perform. That doesn’t do it either. And if I do \u0006 and \u0007 instead of \n, it still doesn’t work. i’ve also tried b=driver.find_element(:tag_name, "body”); b.send_key “\n”; b.send_keys
<garyserj> “n”; but it hasn’t worked either.
<garyserj> (using Selenium and the firefox browser. sendkeys to the searchbox on google.com.
hutch has joined #ruby
cschneid has quit [Ping timeout: 245 seconds]
sarink has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
sarink has quit [Ping timeout: 244 seconds]
tdy has joined #ruby
<uptime> is there a way to tell if a file is requirable besides just doing a require + rescue
hutch has quit [Ping timeout: 245 seconds]
bga57 has quit [Quit: Leaving.]
_whitelogger has quit [Ping timeout: 250 seconds]
_whitelogger has joined #ruby
SeepingN_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RougeR has joined #ruby
reber has joined #ruby
tdy has joined #ruby
sidepocket has quit [Quit: Leaving]
tdy has quit [Ping timeout: 240 seconds]
laaron has joined #ruby
laaron- has quit [Remote host closed the connection]
dellavg_ has joined #ruby
cschneid has joined #ruby
reber has quit [Remote host closed the connection]
uptime has quit [Quit: WeeChat 2.2]
hutch has joined #ruby
za1b1tsu has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
hutch has quit [Ping timeout: 272 seconds]
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
code_zombie has quit [Quit: Leaving]
gix has joined #ruby
nanothief has joined #ruby
<nanothief> Is there a shortcut in pry (or irb) to reload the last loaded file? E.g. if I start pry then `load "my_file.rb"`. After editing the file I want to reload it without having to type out that load statement again
cschneid has quit [Ping timeout: 246 seconds]
laaron has quit [Remote host closed the connection]
laaron- has joined #ruby
<nanothief> Never mind, solved this myself by writing a custom pry command: https://pastebin.com/HAwYeHfV
<ruby[bot]> nanothief: 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
ujjain has quit [Ping timeout: 250 seconds]
ujjain has joined #ruby
Renich has quit [Quit: Renich]
ur5us has joined #ruby
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tiff has joined #ruby
tiff has quit [Client Quit]
tiff has joined #ruby
tiff has quit [Client Quit]
daqing has joined #ruby
<daqing> hello everyone, I'm using rbenv with systemd. when my service starts, rbenv reports error with "rbenv: version '2.6.0' not found"
<daqing> so how to fix it
daqing has quit []
Fernando-Basso has joined #ruby
daqing has joined #ruby
<fountainpuppy> by quitting 4 minutes in
DTZUZO has joined #ruby
vonfry has joined #ruby
DTZUZO has quit [Ping timeout: 246 seconds]
daqing has quit []
jusss has joined #ruby
jusss has quit [Quit: ERC (IRC client for Emacs 26.1)]
bga57 has joined #ruby
RougeR has quit [Ping timeout: 268 seconds]
cd has quit [Quit: cd]
laaron- has quit [Remote host closed the connection]
laaron has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 268 seconds]
mikecmpbll has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
kapil____ has quit [Quit: Connection closed for inactivity]
Menteb has joined #ruby
Menteb has quit [Client Quit]
Menteb has joined #ruby
Menteb has quit [Remote host closed the connection]
<hays> i didn't know rbenv was tied to systemd
vonfry1 has joined #ruby
cschneid has joined #ruby
vonfry has quit [Ping timeout: 244 seconds]
JoeA2552 has joined #ruby
reber has joined #ruby
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
vonfry1 has quit [Quit: WeeChat 2.3]
dinfuehr_ has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
ur5us has quit [Remote host closed the connection]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
Mike11 has joined #ruby
DTZUZO has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
cschneid has quit [Ping timeout: 272 seconds]
clemens3 has joined #ruby
laaron has quit [Remote host closed the connection]
reber has quit [Remote host closed the connection]
Mike11 has quit [Ping timeout: 250 seconds]
isene has quit [Quit: WeeChat 2.2]
szulak_ has joined #ruby
JoeA2552 has quit [Read error: Connection reset by peer]
gix has quit [Disconnected by services]
Fernando-Basso has quit [Remote host closed the connection]
szulak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has joined #ruby
lucasb has joined #ruby
jottr has joined #ruby
kapil____ has joined #ruby
Madmanden has joined #ruby
cschneid has joined #ruby
garyserj has joined #ruby
garyserj has quit [Quit: garyserj]
sarink has joined #ruby
Inline has quit [Quit: Leaving]
garyserj has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
Inline has joined #ruby
sarink has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 250 seconds]
cschneid has quit [Ping timeout: 240 seconds]
tdy has joined #ruby
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
dinfuehr has quit [Ping timeout: 250 seconds]
clemens3_ has joined #ruby
dinfuehr has joined #ruby
clemens3 has quit [Ping timeout: 250 seconds]
dinfuehr has quit [Ping timeout: 244 seconds]
dinfuehr has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
garyserj has quit [Read error: Connection reset by peer]
garyserj has joined #ruby
davidw_ has joined #ruby
garyserj has quit [Ping timeout: 268 seconds]
dinfuehr has quit [Ping timeout: 272 seconds]
dinfuehr has joined #ruby
garyserj has joined #ruby
RougeR has joined #ruby
Fernando-Basso has joined #ruby
jinie has joined #ruby
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
roshanavand1 is now known as roshanavand
za1b1tsu has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
nchambers has joined #ruby
RougeR has quit [Ping timeout: 250 seconds]
Mike11 has joined #ruby
garyserj has quit [Quit: garyserj]
ellcs has joined #ruby
cschneid has joined #ruby
davidw_ has quit [Ping timeout: 272 seconds]
RougeR has joined #ruby
beastiero has joined #ruby
tdy has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
szulak_ has joined #ruby
garyserj has joined #ruby
szulak_ has quit [Ping timeout: 246 seconds]
davidw_ has joined #ruby
masterasia has joined #ruby
garyserj has quit [Quit: garyserj]
lightstalker has joined #ruby
ellcs has quit [Ping timeout: 268 seconds]
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
garyserj has joined #ruby
cschneid has quit [Ping timeout: 272 seconds]
RougeR has quit [Ping timeout: 245 seconds]
nowhere_man has quit [Ping timeout: 252 seconds]
kapil____ has quit [Quit: Connection closed for inactivity]
Inline has quit [Quit: Leaving]
tdy1 has joined #ruby
Inline has joined #ruby
tdy has quit [Ping timeout: 244 seconds]
powerbit has quit [Ping timeout: 250 seconds]
armyriad has joined #ruby
solocshaw has joined #ruby
za1b1tsu has joined #ruby
orbyt_ has joined #ruby
RougeR has joined #ruby
clemens3_ has quit [Remote host closed the connection]
RougeR has quit [Max SendQ exceeded]
RougeR has joined #ruby
solocshaw has quit [Quit: solocshaw]
Mike11 has quit [Quit: Leaving.]
ellcs has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
Madmanden has quit [Quit: Going offline, see ya! (www.adiirc.com)]
donofrio has joined #ruby
cschneid has joined #ruby
status402 has joined #ruby
mikecmpbll has joined #ruby
mikecmpb_ has joined #ruby
donofrio has quit [Ping timeout: 268 seconds]
mikecmpbll has quit [Ping timeout: 246 seconds]
tdy1 has quit [Ping timeout: 252 seconds]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davidw_ has quit [Ping timeout: 245 seconds]
davidw_ has joined #ruby
cschneid has quit [Ping timeout: 250 seconds]
Renich has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
spiette has quit [Ping timeout: 240 seconds]
spiette has joined #ruby
tdy1 has joined #ruby
donofrio has joined #ruby
harmaahylje has left #ruby [#ruby]
ellcs has quit [Ping timeout: 250 seconds]
ellcs has joined #ruby
laaron has joined #ruby
donofrio has quit [Ping timeout: 244 seconds]
tdy1 has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 250 seconds]
hutch has joined #ruby
nchambers is now known as uplime
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
connermcd has joined #ruby
hutch has quit [Ping timeout: 268 seconds]
mikecmpbll has joined #ruby
connermcd has quit [Client Quit]
kapil____ has joined #ruby
za1b1tsu has quit [Ping timeout: 250 seconds]
solocshaw has joined #ruby
infernix has quit [Ping timeout: 264 seconds]
tdy has joined #ruby
beastiero has quit [Quit: [BX] Do you... BitchX?]
garyserj has quit [Quit: garyserj]
solocshaw has quit [Client Quit]
armyriad has quit [Ping timeout: 250 seconds]
planigan has quit [Ping timeout: 268 seconds]
RougeR has quit [Ping timeout: 268 seconds]
Renich_ has joined #ruby
Renich has quit [Ping timeout: 246 seconds]
Renich_ is now known as Renich
planigan has joined #ruby
laaron- has joined #ruby
Renich_ has joined #ruby
laaron has quit [Ping timeout: 256 seconds]
Renich has quit [Ping timeout: 272 seconds]
Renich_ is now known as Renich
infernix has joined #ruby
hutch has joined #ruby
reber has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dviola has joined #ruby
hiroaki has joined #ruby
vutral1 has quit [Ping timeout: 250 seconds]
sheepman has quit [Remote host closed the connection]
lucasb has quit [Quit: Connection closed for inactivity]
ellcs has joined #ruby
laaron has joined #ruby
laaron- has quit [Remote host closed the connection]
cschneid has joined #ruby
laaron- has joined #ruby
laaron has quit [Remote host closed the connection]
darkhanb has quit [Quit: Textual IRC Client: www.textualapp.com]
cschneid has quit [Ping timeout: 250 seconds]
RougeR has joined #ruby
za1b1tsu has joined #ruby
cow[moo] has quit [Read error: Connection reset by peer]
sarink has joined #ruby
Calinou has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
cow[moo] has joined #ruby
sarink has quit [Remote host closed the connection]
cschneid has joined #ruby
davidw_ has quit [Ping timeout: 240 seconds]
dellavg_ has quit [Ping timeout: 240 seconds]
<hays> is there any way to make sure code is run before an object is destroyed?
<hays> kind of like a destructor
Inline has quit [Quit: Leaving]
tdy1 has joined #ruby
sarink has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
Calinou has joined #ruby
RougeR has quit [Ping timeout: 268 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
Inline has joined #ruby
<hays> i have an object that creates some stuff at the system level that i'd like to ensure gets cleaned up
ellcs has quit [Ping timeout: 250 seconds]
masterasia has joined #ruby
masterasia has quit [Client Quit]
<hays> i guess i could have the user deal with it by having a method they call in an ensure block or something..
<phaul> hays: look at File.open API as an example
MyMind has joined #ruby
Sembei has quit [Ping timeout: 268 seconds]
<phaul> &ri File.open
<hays> phaul: that indicates if you don't pass it a block the file doesn't close?
<phaul> yeah, true, then the user has to close it.
<phaul> but if you don't like that you can mimick the block API
<hays> seems reasonable
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hays> so in that case you pass it a block an then run .close after the yield I guess
<hays> or maybe just in an ensure block
laaron- has quit [Ping timeout: 256 seconds]
<phaul> ensure is better, with ensure it will run even if one jumps out somehow, throwing exception etc
<hays> and as a user if I want to have a bunch of objects like this and don't want nested blocks, I can just use begin/ensure/end to manage the resources
RougeR has joined #ruby
laaron has joined #ruby
<phaul> yes, even File gives two APIs, leaves the choice to the user
cschneid has quit [Ping timeout: 246 seconds]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
ellcs has joined #ruby
sarink has quit []
hutch has quit [Ping timeout: 246 seconds]
cd has joined #ruby
laaron- has joined #ruby
laaron has quit [Ping timeout: 256 seconds]
laaron has joined #ruby
agent_white has joined #ruby
laaron- has quit [Remote host closed the connection]
laaron has quit [Remote host closed the connection]
uplime has quit [Quit: WeeChat 2.2]
<hays> I guess something like this
<havenwood> you can check #block_given? and omit `&block` when you use yield
<havenwood> hays: or don't use yield and do: block.call self
ellcs has quit [Ping timeout: 252 seconds]
masterasia has joined #ruby
<hays> might be nice to have a class method with a list of open objects
d^sh has quit [Ping timeout: 250 seconds]
<hays> so you could do B.close_all or something
d^sh has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
hutch has joined #ruby
hutch has quit [Ping timeout: 245 seconds]
zapata has joined #ruby
gix has joined #ruby
hutch has joined #ruby
nowhere_man has joined #ruby
rexmie has joined #ruby
<rexmie> hello world
hutch has quit [Ping timeout: 250 seconds]
nchambers has joined #ruby
powerbit has joined #ruby
ellcs has joined #ruby
houhoulis has joined #ruby
garyserj has joined #ruby
<rexmie> hi all
<phaul> hi rexmie
<rexmie> howz life? having a great holiday?
reber has quit [Remote host closed the connection]
cschneid has joined #ruby
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
garyserj has quit [Quit: garyserj]
garyserj has joined #ruby
cschneid has quit [Ping timeout: 244 seconds]
cschneid has joined #ruby
cschneid has quit [Ping timeout: 246 seconds]
Fernando-Basso has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 252 seconds]
DTZUZO has quit [Ping timeout: 250 seconds]
kapil____ has quit [Quit: Connection closed for inactivity]
donofrio has joined #ruby
ogres has joined #ruby