totoro has quit [Remote host closed the connection]
aeris has joined #ruby
_root has joined #ruby
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Ziyan has joined #ruby
totoro has joined #ruby
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 256 seconds]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
moldorcoder7_ has quit [Ping timeout: 256 seconds]
Ziyan_ has quit [Ping timeout: 248 seconds]
Ziyan has joined #ruby
moldorcoder7 has joined #ruby
Sankalp has quit [Ping timeout: 248 seconds]
Sankalp has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
arg_ has quit [Quit: Connection closed for inactivity]
arg_ has joined #ruby
cahoots has joined #ruby
cek has joined #ruby
<cek>
any idea on uninstalling a gem from site_ruby?
<cek>
wondering how it got there in the first place. definitely my doing.
Michaela has quit [Remote host closed the connection]
Michaela has joined #ruby
<comeoooon>
cek: damn that sucks :/
* comeoooon
never installs anything globally ever
<mikecmpbll>
probably just delete it
<cek>
yeah, went to $site_dir//specifications/default/ , removed it, all is fine now. somehow, version no longer show up anymore in the list
protektwar has quit [Ping timeout: 256 seconds]
Sankalp has quit [Ping timeout: 256 seconds]
nirvdrum has joined #ruby
markong has joined #ruby
Sankalp has joined #ruby
Sankalp has quit [Ping timeout: 256 seconds]
Sankalp has joined #ruby
arg_ has quit [Quit: Connection closed for inactivity]
Ziyan has quit [Ping timeout: 244 seconds]
Ziyan has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
nirvdrum has quit [Read error: Connection reset by peer]
nirvdrum_ has joined #ruby
<hightower3>
Hey with rb-inotify, if I'm listening for multiple events in the directory, once `event` arrives, how do I see which event it was? I am looking at the event object and don't see the field containing it
bit4bit has joined #ruby
<hightower3>
ah it's in .flags
supay has quit [Quit: Connection closed for inactivity]
cek has quit [Quit: Connection closed for inactivity]
___nick___ has joined #ruby
protektwar has quit [Ping timeout: 248 seconds]
<hightower3>
I've been out of ruby for a while. How to do a case/when statement which checks whether certain symbols are found within an array?
<hightower3>
like case(array) when(&:include? :abc) ?
<adam12>
hightower3: case/when accepts procs.
<adam12>
hightower3: I didn't test this, but you could do when proc { _1.include?(:abc) }
<adam12>
Rather, case/when supports anything which responds to ===. Which proc does.
Ziyan_ has joined #ruby
kalli has joined #ruby
duds- has quit [Quit: Leaving.]
Ziyan has quit [Ping timeout: 244 seconds]
duds- has joined #ruby
<hightower3>
hm _1 is undefined, and &. or &: syntax is not accepted at compile time
<adam12>
hightower3: Ah. Maybe your version of Ruby.
<hightower3>
2.5.5 doh
<adam12>
You can do the same, just name the arg.
<adam12>
proc { |ary| ary.include?(:abc) }
<hightower3>
Works! thank you kindly
<adam12>
hightower3: yw!
<hightower3>
oh and what's the current way to do some globbing... like, if I'd like to run File.delete "glob*" ?
<hightower3>
hm maybe Dir.glob('*patt*').each { |file| File.delete(file)} , well, OK
kalli has quit [Ping timeout: 252 seconds]
<adam12>
hightower3: There's also FileUtils.rm _f I believe.
nirvdrum_ has quit [Quit: nirvdrum_]
polishdub has joined #ruby
<hightower3>
indeed. but I realized I need to keep the dir, so went with individual deletes
John_Ivan has joined #ruby
<hightower3>
Hm what is the way to create a temporary directory with random name? I see some mentions of mktmpdir, which seems to no longer exist
bit4bit has quit [Ping timeout: 248 seconds]
<hightower3>
oh require 'tmpdir' and then Dir.mktmpdir
<adam12>
Yeah.
nirvdrum has joined #ruby
protektwar has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
libsys has quit [Ping timeout: 256 seconds]
libsys has joined #ruby
reset has quit [Read error: Connection reset by peer]