havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.1, 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!
<blackmesa> sry did anyone write me back later ago?
Swyper has joined #ruby
<blackmesa> thx havenwood and leftylink
tdy has quit [Ping timeout: 250 seconds]
Swyper has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
tdy has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
tdy has quit [Quit: WeeChat 1.9.1]
tdy has joined #ruby
gix has quit [Quit: Client exiting]
Azure has quit [Quit: Oops.]
robscomputer has joined #ruby
houhoulis has quit [Remote host closed the connection]
orbyt_ has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has joined #ruby
robscomputer has joined #ruby
ellcs has joined #ruby
houhoulis has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
krawchyk has quit [Quit: krawchyk]
jmcgnh has joined #ruby
funnel has quit [Ping timeout: 268 seconds]
funnel has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
rkazak has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
ellcs has quit [Ping timeout: 268 seconds]
marz_d`ghostman has quit [Ping timeout: 256 seconds]
lxsameer has quit [Ping timeout: 245 seconds]
AJA4350 has quit [Ping timeout: 244 seconds]
rkazak has quit [Quit: Sleep.....ing....]
Swyper has joined #ruby
jottr has joined #ruby
_whitelogger has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 245 seconds]
Swyper has quit [Remote host closed the connection]
_whitelogger has joined #ruby
_whitelogger has joined #ruby
jgarcia has joined #ruby
orbyt_ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
braincrash has quit [Quit: bye bye]
havenwood has quit [Quit: ZNC 1.7.1 - https://znc.in]
braincrash has joined #ruby
havenwood has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
MzrE has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v3.4 Beta Build (2019/02/01 UTC) 64 Bit]
Tempesta has joined #ruby
cnsvc has joined #ruby
Xiti has quit [Ping timeout: 246 seconds]
jgarcia has quit [Quit: jgarcia]
Xiti has joined #ruby
houhoulis has quit [Remote host closed the connection]
Azure has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
segy has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
jottr has joined #ruby
segy has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
MzrE has quit [Read error: Connection reset by peer]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
robscomputer has joined #ruby
_whitelogger has joined #ruby
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marmotini_ has joined #ruby
rippa has joined #ruby
cd has quit [Quit: cd]
_whitelogger has joined #ruby
marmotini_ has quit [Ping timeout: 246 seconds]
\void has quit [Quit: So long, and thanks for all the fish.]
alfiemax has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robscomputer has joined #ruby
marmotini_ has joined #ruby
marmotini_ has quit [Remote host closed the connection]
dellavg__ has joined #ruby
marmotini_ has joined #ruby
teej has quit [Quit: Connection closed for inactivity]
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
marmotini has joined #ruby
jottr has joined #ruby
marmotini_ has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 268 seconds]
Swyper has joined #ruby
vonfry has joined #ruby
themsay has quit [Ping timeout: 268 seconds]
mikecmpbll has joined #ruby
renich has quit [Quit: renich]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
reber has joined #ruby
reber has quit [Remote host closed the connection]
vonfry has quit [Quit: WeeChat 2.3]
cthulchu_ has quit [Ping timeout: 246 seconds]
alfiemax has quit [Remote host closed the connection]
dellavg__ has quit [Ping timeout: 272 seconds]
dellavg__ has joined #ruby
catbusters has joined #ruby
clemens3_ has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
cthulchu has quit [Ping timeout: 250 seconds]
clemens3_ has joined #ruby
blackmesa has joined #ruby
alfiemax has joined #ruby
nfk has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
<al2o3-cr> &>> class NilClass def |(n) n % 2 == 0 ? ":)" : ":(" end; def coerce(n) [self, n] end end; 10.times.map { |n| n | () }
<rubydoc> # => [":)", ":(", ":)", ":(", ":)", ":(", ":)", ":(", ":)", ":("] (https://carc.in/#/r/65rt)
<al2o3-cr> morning peeps ;)
obiwahn has joined #ruby
<obiwahn> i am a user on a system and i would like to install something with rake
<obiwahn> i will not get root so how can i install something to my local directroy?
<obiwahn> i tried to install a single gem with `gem install -l ./path/to/file.gem`
<obiwahn> but it seems that that needs another gem that would be provided when calling rake
<elomatreb> There is the --user-install option for installing to your home directory instead of the global default
<al2o3-cr> obiwahn: gem i --user-install <gem>
<elomatreb> You may need to add something additional to your PATH though if you want to use executables installed by gem
<obiwahn> I have never coded in ruby so i know almost nothing about the eco-system. But I would like to try some software written in ruby
<obiwahn> al2o3-cr: is there some option for rake?
<obiwahn> i could not find it in the manpage
<obiwahn> shouln't it have something like --prefix
<elomatreb> rake usually doesn't install anything, it's a task runner system (rake = Ruby Make)
yasumi2136 has joined #ruby
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cnsvc has quit [Ping timeout: 256 seconds]
dellavg__ has quit [Ping timeout: 240 seconds]
ravenousmoose has joined #ruby
clemens3_ has quit [Remote host closed the connection]
Fernando-Basso has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
gix has joined #ruby
alfiemax has quit [Remote host closed the connection]
dellavg__ has joined #ruby
kapil____ has joined #ruby
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
clemens3 has joined #ruby
ellcs has joined #ruby
marmotini has quit [Ping timeout: 245 seconds]
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
laaron has quit [Remote host closed the connection]
roshanavand has joined #ruby
lucasb has joined #ruby
jottr has joined #ruby
conta has joined #ruby
roshanavand has quit [Ping timeout: 250 seconds]
conta has quit [Ping timeout: 246 seconds]
petems_ has joined #ruby
tdy has quit [Ping timeout: 244 seconds]
ellcs has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
<phaul> is it possible to use yard @!macro attach automatic expansion on DSL methods defined in a concern that has a nested module for class methods and the included hook extends with class methods?
<phaul> I create a quick gist to demonstrate what I want..
lxsameer has joined #ruby
<phaul> now the expectation is to have blah automatically documented in X
<phaul> but it's not.
Puffball has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Guest16678 has joined #ruby
AJA4350 has joined #ruby
manakanapa has quit [Quit: The Lounge - https://thelounge.chat]
Guest16678 has quit [Ping timeout: 268 seconds]
manakanapa has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
catbusters has quit [Quit: Connection closed for inactivity]
ravenousmoose has joined #ruby
Azure has quit [Quit: Oops.]
blackmesa has joined #ruby
<phaul> oh well. whatever
<phaul> FTR his suggestion worked on the gist.
catbusters has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
ravenousmoose has joined #ruby
marmotini_ has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
Azure has joined #ruby
roshanavand has quit [Ping timeout: 250 seconds]
ua has quit [Ping timeout: 250 seconds]
petems_ has quit [Quit: Connection closed for inactivity]
yasumi2136 has quit [Quit: Konversation terminated!]
ua has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
mostlybadfly has joined #ruby
conta has joined #ruby
marmotini_ has quit [Ping timeout: 250 seconds]
conta has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
dellavg__ has quit [Ping timeout: 240 seconds]
clemens3 has quit [Remote host closed the connection]
dellavg__ has joined #ruby
jottr has quit [Quit: WeeChat 2.3]
lucasb has quit [Quit: Connection closed for inactivity]
Ai9zO5AP has joined #ruby
catbusters has quit [Quit: Connection closed for inactivity]
blackmesa has joined #ruby
roshanavand has joined #ruby
AJA4350 has quit [Ping timeout: 244 seconds]
blackmesa1 has joined #ruby
Dbugger has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
DTZUZO has joined #ruby
blackmesa1 has quit [Remote host closed the connection]
icy` has quit [Quit: .: adios :.]
blackmesa1 has joined #ruby
<al2o3-cr> &>> RubyVM.resolve_feature_path 'openssl'
<rubydoc> # => [:rb, "/usr/lib/ruby/2.6.0/openssl.rb"] (https://carc.in/#/r/65uc)
<al2o3-cr> nice feature.
<phaul> &ri resolve_feature_path
<rubydoc> Found no entry that matches method resolve_feature_path
* phaul slaps rubydoc
cthulchu has joined #ruby
<phaul> although to be fair I can't find documentation by hand either
alfiemax has joined #ruby
<al2o3-cr> phaul: it's new in 2.6 so fair.
dionysus70 has joined #ruby
tdy has joined #ruby
alfiemax has quit [Ping timeout: 272 seconds]
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
za1b1tsu has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
dionysus70 has quit [Remote host closed the connection]
cow[moo] has joined #ruby
cow[moo] has quit [Client Quit]
liya has joined #ruby
<liya> what are some best resources to learn ruby
tdy has joined #ruby
<liya> tdy hello
liya has quit [Quit: Page closed]
octos has joined #ruby
octos has quit [Remote host closed the connection]
octos has joined #ruby
mzo has joined #ruby
orbyt_ has joined #ruby
AJA4350 has joined #ruby
houhoulis has joined #ruby
za1b1tsu has quit [Ping timeout: 245 seconds]
renich has joined #ruby
\void has joined #ruby
Swyper has joined #ruby
za1b1tsu has joined #ruby
<al2o3-cr> &ri Enumerator#= Enumerable#chain
<rubydoc> did not understand that, parser error @ char position 13
<al2o3-cr> &ri Enumerator#+
<al2o3-cr> &ri Enumerable#chain
mzo has quit [Ping timeout: 240 seconds]
hahuang6- has quit [Ping timeout: 250 seconds]
conta has joined #ruby
cd has joined #ruby
conta has quit [Ping timeout: 245 seconds]
cnsvc has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4350 has joined #ruby
themsay has joined #ruby
themsay has quit [Ping timeout: 240 seconds]
ellcs has joined #ruby
za1b1tsu has quit [Read error: Connection reset by peer]
roshanavand has quit [Ping timeout: 268 seconds]
za1b1tsu has joined #ruby
duderonomy has joined #ruby
houhoulis has quit [Remote host closed the connection]
hahuang6- has joined #ruby
Ai9zO5AP has quit [Ping timeout: 245 seconds]
d^sh has quit [Ping timeout: 250 seconds]
za1b1tsu has quit [Remote host closed the connection]
d^sh has joined #ruby
carbone5 has joined #ruby
Pinchiukas has joined #ruby
<Pinchiukas> I'm a Ruby newbie and I just cannot understand how from a hash I can return the key which matches a given string.
carbone5 has quit [Client Quit]
carbone5 has joined #ruby
krawchyk has joined #ruby
<al2o3-cr> Enumerable#detect Pinchiukas
<al2o3-cr> &ri Enumerable#detect Pinchiukas
krawchyk has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<al2o3-cr> Pinchiukas: example?
<Pinchiukas> This seems to only return one match.
<Pinchiukas> I have a hash with block devices and their properties.
<Pinchiukas> I want to return the key if it matches one of two strings.
<Pinchiukas> Though I only needed just the one so I guess this works. :)
<al2o3-cr> Pinchiukas: return multiple matches use #select
AJA4350 has quit [Ping timeout: 245 seconds]
uplime has quit [Quit: ZNC 1.7.1 - https://znc.in]
<al2o3-cr> Pinchiukas: example input/output?
<al2o3-cr> minimal
<al2o3-cr> Pinchiukas: ah, Hash#invert
uplime has joined #ruby
<al2o3-cr> &>> {[1,2,3]=>"foo"}.invert["foo"]
<rubydoc> # => [1, 2, 3] (https://carc.in/#/r/65x0)
<al2o3-cr> Pinchiukas: inverts keys with values
jokester has quit [Ping timeout: 240 seconds]
uplime has quit [Client Quit]
jokester has joined #ruby
robscomputer has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
AJA4350 has joined #ruby
uplime has joined #ruby
Yxhuvud has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 244 seconds]
AJA4351 is now known as AJA4350
dellavg__ has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
cnsvc has joined #ruby
armyriad has joined #ruby
renich has quit [Quit: renich]
xrexeon has joined #ruby
xrexeon has quit [Max SendQ exceeded]
Dbugger has quit [Ping timeout: 264 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
agent_white has quit [Quit: later]
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wildermind has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
AJA4351 has joined #ruby
eldritch has quit [Quit: ZNC 1.6.6+deb1ubuntu0.1 - http://znc.in]
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
moei has quit [Quit: Leaving...]
cd has quit [Quit: cd]
eldritch has joined #ruby
hahuang6- has quit [Ping timeout: 272 seconds]
carbone5 has quit [Quit: carbone5]
carbone5 has joined #ruby
Fernando-Basso has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ItsAVortex has joined #ruby
carbone5 has quit [Quit: carbone5]
fuzzface has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
carbone5 has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
cnsvc has quit [Ping timeout: 256 seconds]
Swyper has quit [Remote host closed the connection]
carbone5 has quit [Quit: carbone5]
ItsAVortex has quit [Ping timeout: 268 seconds]
carbone5 has joined #ruby
Swyper has joined #ruby
carbone5 has quit [Quit: carbone5]
carbone5 has joined #ruby
carbone5 has quit [Client Quit]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
nowhereman has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
fuzzface has quit [Quit: Leaving]