havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.1, 2.6.6, 2.5.8: 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!
cliluw has quit [Read error: Connection reset by peer]
evert has quit [Quit: ZNC - https://znc.in]
evert has joined #ruby
cliluw has joined #ruby
leitz has joined #ruby
nixy37179 has quit [Quit: The Lounge - https://thelounge.chat]
nixy37179 has joined #ruby
ChmEarl has quit [Quit: Leaving]
leitz has quit [Quit: Leaving]
houhoulis has quit [Remote host closed the connection]
<adam12> RingtailedFox: Do you use VSCode?
<RingtailedFox> sometimes, eys
bga57 has quit [Ping timeout: 240 seconds]
<adam12> RingtailedFox: I'm using VS Code + SSH Remote extension on Windows, and I run a Linux VM, since I'm waiting on WSL2 as well. Just suggesting it might be an option.
bga57 has joined #ruby
Axy has joined #ruby
Mia has quit [Ping timeout: 256 seconds]
nixy37179 has quit [Quit: The Lounge - https://thelounge.chat]
nixy37179 has joined #ruby
braj has joined #ruby
DarthGandalf has quit [Quit: Bye]
jinmiaoluo has joined #ruby
nixy37179 has quit [Quit: The Lounge - https://thelounge.chat]
teclator has quit [Ping timeout: 265 seconds]
teclator has joined #ruby
nixy37179 has joined #ruby
bruce_lee has quit [Ping timeout: 258 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
gavlee has quit [Read error: Connection reset by peer]
gavlee has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shakes has joined #ruby
shakes has quit [Remote host closed the connection]
DarthGandalf has joined #ruby
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
chalkmonster has quit [Quit: WeeChat 2.8]
chalkmonster has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
r29v has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
orbyt_ has joined #ruby
jenrzzz has joined #ruby
phenom has quit [Ping timeout: 272 seconds]
jinmiaoluo has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
s2013 has joined #ruby
bruce_lee has quit [Ping timeout: 256 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
renich has joined #ruby
renich_ has joined #ruby
dan64- has quit [Quit: ZNC - http://znc.in]
renich has quit [Ping timeout: 272 seconds]
renich_ is now known as renich
dan64 has joined #ruby
Benett is now known as pussy
pussy is now known as Benett
haraoka has joined #ruby
jinmiaoluo has joined #ruby
lesha__ has quit [Ping timeout: 256 seconds]
gavlee has quit [Excess Flood]
tau has joined #ruby
tau has quit [Changing host]
tau has joined #ruby
gavlee has joined #ruby
r29v has quit [Ping timeout: 256 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
DaniG2k has joined #ruby
<nofxx> there's a quick way to remove all the nested ary, no? [["R"]] => "R"
<nofxx> or some opt for #scan? always forget
<nofxx> String#scan
jenrzzz has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
jinmiaoluo has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> nofxx: [["R"]].join #=> "R"
jenrzzz has quit [Ping timeout: 264 seconds]
<havenwood> &>> [[[["R"]]]].flatten
<rubydoc> # => ["R"] (https://carc.in/#/r/97dy)
jinmiaoluo has quit [Remote host closed the connection]
<havenwood> &>> [["R"]] * '🍰'
<rubydoc> # => "R" (https://carc.in/#/r/97dz)
<havenwood> :P
<havenwood> nofxx: Might be able to give a better suggestion if you have other examples or context.
<havenwood> nofxx: For your current case, #join is the method that gets there without arguments.
dviola has quit [Ping timeout: 264 seconds]
jinmiaoluo has joined #ruby
dviola has joined #ruby
dviola has left #ruby [#ruby]
dviola has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thewrinklyninja has joined #ruby
mr_rich102 has quit [Quit: ZNC - http://znc.in]
xco has joined #ruby
mr_rich101 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jenrzzz has joined #ruby
phenom has joined #ruby
thewrinklyninja has quit [Quit: Leaving]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jinmiaoluo has quit [Ping timeout: 258 seconds]
DaniG2k has quit [Quit: leaving]
jinmiaoluo has joined #ruby
houhoulis has joined #ruby
RingtailedFox has quit [Ping timeout: 256 seconds]
renich has quit [Quit: renich]
xco has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
TzilTzal has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tau has quit [Ping timeout: 265 seconds]
jinmiaoluo has quit [Ping timeout: 240 seconds]
houhoulis has quit []
BTRE has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
braj has quit []
kenso has joined #ruby
alexherbo2 has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
Archenoth has joined #ruby
jinmiaoluo has joined #ruby
teclator has quit [Ping timeout: 264 seconds]
teclator has joined #ruby
woodruffw has quit [Ping timeout: 260 seconds]
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
venmx has quit [Ping timeout: 258 seconds]
InfosecTai has joined #ruby
InfosecTai has quit [Client Quit]
InfosecTai has joined #ruby
woodruffw has quit [Ping timeout: 256 seconds]
<belak> Are there any recommended books for learning ruby?
<havenwood> belak: There's a list of books here: https://goo.gl/wpGhoQ
conta has joined #ruby
<belak> Are there any in particular that stand out? I know ages ago people pointed at the pragmatic programmer books but I’m not sure if those are good or still updated
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
<belak> Ah that first link looks nice because it actually has summaries - I’ll go through that
imode has quit [Ping timeout: 272 seconds]
<belak> Thanks!
ur5us has joined #ruby
miskatonic has joined #ruby
alexherbo20 has joined #ruby
alexherbo2 has quit [Ping timeout: 264 seconds]
alexherbo20 is now known as alexherbo2
schne1der has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
InfosecTN has joined #ruby
cacheeror has quit [Ping timeout: 246 seconds]
InfosecTai has quit [Ping timeout: 246 seconds]
jetchisel has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
TvL2386 has quit [Ping timeout: 240 seconds]
TvL2386 has joined #ruby
cliluw has quit [Ping timeout: 272 seconds]
conta has quit [Ping timeout: 258 seconds]
cliluw has joined #ruby
ur5us has joined #ruby
conta has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
erpel has joined #ruby
erpel has quit [Ping timeout: 240 seconds]
plutes has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
plutes has quit [Max SendQ exceeded]
erpel has joined #ruby
plutes has joined #ruby
bruce_lee has quit [Ping timeout: 260 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
jenrzzz has joined #ruby
TCZ has joined #ruby
raj has quit [Quit: Just quitting]
bruce_lee has quit [Ping timeout: 260 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
grimgnr has joined #ruby
venmx has joined #ruby
GodFather has quit [Ping timeout: 272 seconds]
TomyWork has joined #ruby
blessedonekobo has joined #ruby
GodFather has joined #ruby
raj_ has joined #ruby
raj_ is now known as raj
wogi has joined #ruby
TCZ has quit [Quit: Leaving]
haraoka has quit [Ping timeout: 258 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
con3 has joined #ruby
tekk has quit [Ping timeout: 240 seconds]
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
lxsameer has joined #ruby
venmx has quit [Read error: Connection reset by peer]
venmx has joined #ruby
conta has quit [Remote host closed the connection]
bruce_lee has quit [Ping timeout: 256 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
Xiti` has joined #ruby
maths22_ has joined #ruby
maths22_ has quit [Changing host]
maths22_ has joined #ruby
Mikaela6 has joined #ruby
Axy has quit [Read error: Connection reset by peer]
Mikaela has quit [Quit: Ping timeout (120 seconds)]
Mikaela6 is now known as Mikaela
Inoperable has quit [Quit: All your buffer are belong to us!]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
lxsameer has quit [Ping timeout: 265 seconds]
rubydoc has quit [Ping timeout: 265 seconds]
duderonomy has quit [Ping timeout: 265 seconds]
rubydoc has joined #ruby
schne1der has quit [Ping timeout: 265 seconds]
arooni has quit [Ping timeout: 265 seconds]
maths22 has quit [Read error: Connection reset by peer]
Xiti has quit [Ping timeout: 265 seconds]
jmcgnh has quit [Ping timeout: 265 seconds]
michael_mbp has quit [Ping timeout: 265 seconds]
schne1der has joined #ruby
arooni has joined #ruby
lxsameer has joined #ruby
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
duderonomy has joined #ruby
jmcgnh has joined #ruby
pwnd__ has quit [Remote host closed the connection]
pwnd__ has joined #ruby
michael_mbp has joined #ruby
Mikaela has left #ruby [#ruby]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
tf2ftw has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
In0perable has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
cnsvc_ has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
ur5us has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
bruce_lee has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
blessedonekobo has quit [Ping timeout: 256 seconds]
marens_ has joined #ruby
marens_ has joined #ruby
venmx_ has joined #ruby
venmx has quit [Read error: Connection reset by peer]
alexherbo23 has joined #ruby
alexherbo2 has quit [Ping timeout: 272 seconds]
alexherbo23 is now known as alexherbo2
ua has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
conta has joined #ruby
drincruz_ has joined #ruby
ua has joined #ruby
drincruz_ has quit [Ping timeout: 240 seconds]
greengriminal has quit [Quit: Leaving]
kenso has quit [Quit: Connection closed for inactivity]
wogi has left #ruby ["Leaving"]
xco has joined #ruby
bruce_lee has quit [Ping timeout: 265 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
ta has quit [Ping timeout: 260 seconds]
alexherbo28 has joined #ruby
alexherbo2 has quit [Ping timeout: 264 seconds]
alexherbo28 is now known as alexherbo2
ta has joined #ruby
cd has joined #ruby
tf2ftw has joined #ruby
burningserenity has joined #ruby
nofxx_ has joined #ruby
greengriminal has joined #ruby
InfosecTai has joined #ruby
mozzarel1 has joined #ruby
venmx_ has quit [Read error: Connection reset by peer]
NODE has quit [Excess Flood]
shansen_ has joined #ruby
nirix has joined #ruby
lypsis_ has joined #ruby
justinmcp has joined #ruby
NODE has joined #ruby
dorian_ has joined #ruby
_Caerus has joined #ruby
linetrac1 has joined #ruby
Jello_Raptor_ has joined #ruby
Arkantos_ has joined #ruby
lucianp_ has joined #ruby
woodruffw has quit [Ping timeout: 246 seconds]
Jello_Raptor has quit [Ping timeout: 246 seconds]
Caerus has quit [Ping timeout: 246 seconds]
shansen has quit [Ping timeout: 246 seconds]
InfosecTN has quit [Ping timeout: 246 seconds]
dorian has quit [Ping timeout: 246 seconds]
lucianp has quit [Ping timeout: 246 seconds]
sol1d has quit [Ping timeout: 246 seconds]
Sp4rKy has quit [Ping timeout: 246 seconds]
BH23 has quit [Ping timeout: 246 seconds]
mozzarella has quit [Ping timeout: 246 seconds]
nofxx has quit [Ping timeout: 246 seconds]
legit has quit [Ping timeout: 246 seconds]
volix has quit [Ping timeout: 246 seconds]
canton7 has quit [Ping timeout: 246 seconds]
darris has quit [Ping timeout: 246 seconds]
Jello_Raptor_ is now known as Jello_Raptor
NODE has quit [Excess Flood]
r3m_ has joined #ruby
Sp4rKy_ has joined #ruby
mozzarel1 is now known as mozzarella
Guest99333 has quit [Ping timeout: 264 seconds]
nirix_ has quit [Ping timeout: 264 seconds]
Arkantos has quit [Ping timeout: 264 seconds]
leah2 has quit [Ping timeout: 264 seconds]
cliluw has quit [Ping timeout: 264 seconds]
Rudd0 has quit [Ping timeout: 264 seconds]
shaman42 has quit [Ping timeout: 264 seconds]
adam12 has quit [Ping timeout: 264 seconds]
sol1d_ has joined #ruby
adam12 has joined #ruby
lypsis has quit [Ping timeout: 264 seconds]
linetrace has quit [Ping timeout: 264 seconds]
r3m has quit [Ping timeout: 264 seconds]
justinmcp_ has quit [Ping timeout: 264 seconds]
MasterNayru_ has joined #ruby
shaman42 has joined #ruby
IsoLinCHiP has joined #ruby
volix has joined #ruby
Sp4rKy_ is now known as Sp4rKy
Rudd0 has joined #ruby
volix has quit [Changing host]
volix has joined #ruby
woodruffw has joined #ruby
adam12 is now known as Guest99545
woodruffw has quit [Changing host]
woodruffw has joined #ruby
cliluw has joined #ruby
leah2_ has joined #ruby
baweaver has joined #ruby
BH23 has joined #ruby
donofrio has quit [Remote host closed the connection]
legit has joined #ruby
darris has joined #ruby
baweaver is now known as Guest93362
NODE has joined #ruby
donofrio has joined #ruby
venmx has joined #ruby
TCZ has joined #ruby
sarna has joined #ruby
canton7 has joined #ruby
jinmiaoluo has quit [Quit: WeeChat 2.8]
cnsvc_ has joined #ruby
leah2_ is now known as leah2
cnsvc_ has quit [Ping timeout: 240 seconds]
naught-fowl has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
InfosecTai has quit [Ping timeout: 256 seconds]
naught-fowl has quit [Remote host closed the connection]
Guest99545 is now known as adam12
adam12 has quit [Changing host]
adam12 has joined #ruby
InfosecTai has joined #ruby
InfosecTai has quit [Remote host closed the connection]
InfosecTai has joined #ruby
jinmiaoluo has joined #ruby
Sajad has joined #ruby
chalkmonster has joined #ruby
cliluw has quit [Ping timeout: 272 seconds]
TCZ has quit [Quit: Leaving]
jinmiaoluo has quit [Ping timeout: 260 seconds]
lesha__ has joined #ruby
grimgnr has quit [Remote host closed the connection]
chalkmonster has quit [Quit: WeeChat 2.8]
impermanence has quit [Quit: Connection closed]
cnsvc_ has joined #ruby
fercell has joined #ruby
jinmiaoluo has joined #ruby
sarna has quit [Quit: Connection closed]
lazarus1 has joined #ruby
howdoi has joined #ruby
Sajad has quit [Remote host closed the connection]
tekk has joined #ruby
ChmEarl has joined #ruby
chalkmonster has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
lesha__ has quit [Ping timeout: 265 seconds]
s2013 has joined #ruby
jinmiaoluo has quit [Ping timeout: 246 seconds]
jinmiaoluo has joined #ruby
s2013 has quit [Max SendQ exceeded]
lesha has joined #ruby
rippa has joined #ruby
burningserenity has quit [Remote host closed the connection]
phenom has quit [Ping timeout: 260 seconds]
DaRock has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
DaRock has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fercell has quit [Quit: WeeChat 2.8]
xco has joined #ruby
DaRock has quit [Ping timeout: 256 seconds]
cnsvc_ has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
<tekk> hi all, why would .gsub(/[\u00080-\u000ff]/, "") fail yet its little brother .gsub(/[\u0080-\u00ff]/, "") work ?
<tekk> getting empty range in char class
<tekk> although its a valid range
venmx has quit [Read error: Connection reset by peer]
mniip has quit [Remote host closed the connection]
<jhass> should it be \u{...} for that many?
<tekk> oh, should it?
<jhass> tekk: https://ruby-doc.com/core/doc/syntax/literals_rdoc.html#label-Strings I believe the same rules apply to regex literals
<tekk> damn
phenom has joined #ruby
<tekk> im writing a small irc bot and simply trying to strip the colour codes that some people use
jinmiaoluo has quit [Ping timeout: 258 seconds]
<havenwood> tekk: Consider using #delete instead of #gsub.
jenrzzz has joined #ruby
TomyWork has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
lesha has quit [Ping timeout: 256 seconds]
major_majors has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
major_majors has joined #ruby
major_majors has joined #ruby
poro has joined #ruby
<poro> Hi, anybody using neovim for Ruby development? I've started using nvim and would like to know what options/plugins are good
<havenwood> poro: There are some discussions in the logs, fwiw: https://freenode.irclog.whitequark.org/ruby/search?q=neovim
<phaul> I use neovim. Altough I don't really go with advanced features
<phaul> like language server stuff
<phaul> FZF + ripgrep + ultisnips is my ultimate go to combo. I always have seeing_is_beleiving for ruby
<poro> @phaul, I'm just looking for simple things like autoclosing parenthesis and not having to type each variable or method's name each time
<poro> automatic indentation etc
s2013 has joined #ruby
<phaul> that's done by 'tpope/vim-endwise'
<phaul> https://github.com/phaul/dotfiles/blob/zephyrus/.config/nvim/init.vim my current machine, there are a few different branches with different machines / OSs
fercell has joined #ruby
<poro> whats the point of relative numbers?
<phaul> 3j / 3k 3 up/down. You use relative navigation in the vacinity of the current line.
<phaul> you are not interested going to line 2987 , you are interested in going 7 lines up
<poro> I see
<phaul> neomake picks up rubocop, reek, flog
conta has quit [Quit: conta]
<phaul> oh, poro, splitjoin is an absolute musthave for ruby
<phaul> it transforms between multi-line and single line code
<phaul> if .. \n .. \n end <===> .. if .. etc.
<poro> nice thx
ldepandis has joined #ruby
<belak> Are there huge differences between the ruby version managers? I've got rbenv installed and working (since I already use pyenv) but I know there are a ton of options out there...
cnsvc_ has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
lesha has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
poro has quit [Quit: Leaving]
TzilTzal has quit [Quit: Leaving.]
mniip has joined #ruby
patrick99e99 has joined #ruby
<patrick99e99> anyone here have any experience with the parslet gem?
phenom has quit [Ping timeout: 265 seconds]
<havenwood> belak: There are differences, yeah. Many Rails folk use rbenv. It's fine. It creates shims. If you find it's too slow, try chruby. If you find it's too fast, try RVM. :P
<belak> Hah, thanks
<havenwood> belak: Happy to discuss differences in detail, but RVM was first, then came rbenv, and finally chruby. RVM bites off the most and chruby the least.
<belak> Yeah, I picked rbenv because I was familiar with pyenv and the tradeoffs
<havenwood> belak: I use chruby, but many in this channel use rbenv or RVM.
<havenwood> I think chruby is most popular here but that might be my bias.
ellcs1 has joined #ruby
<belak> So, in python, when you install a package, it gets installed globally (as long as you have permission and didn't use --user), but the common practice is to create a virtualenv per project where those project-local packages are installed... how does ruby handle that?
<belak> I know bundler exists but I don't know much about it
<belak> It might be covered in that rubyreference doc you sent me, but that's very dense - I'm still going through it
<havenwood> belak: We typically install our gems globally, then use a Gemfile.lock which specifies the exact versions of the gems to use for the project.
<belak> So, ruby can handle having multiple versions of the same gem installed globally?
<havenwood> belak: Yes.
<belak> And the gemfile determines which ones actually get loaded
<belak> That's interesting
<havenwood> Yup
<belak> I really do appreciate all the direction
tau has joined #ruby
tau has joined #ruby
tau has quit [Changing host]
cacheeror has joined #ruby
reyfi9e has quit [Ping timeout: 240 seconds]
cxl has joined #ruby
jenrzzz has joined #ruby
<cxl> Hi, I can I have named capture groups in multiline regexes with %r{...}x?
reyfi9e has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
<cxl> oh no I see my issue, I can't have ( |_) in a regex with an x modifier, I have to use (\s|_)
duderonomy has joined #ruby
<belak> So, I've been noticing that there are a lot of methods named things like `to_ary` rather than `to_array`... is there a reason behind the more terse naming?
burningserenity has joined #ruby
phenom has joined #ruby
chalkmonster has joined #ruby
ldepandis has quit [Quit: Textual IRC Client: www.textualapp.com]
gix has joined #ruby
davispuh has joined #ruby
ldepandis has joined #ruby
ua has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Read error: Connection reset by peer]
alexherbo2 has joined #ruby
vircung has quit [Ping timeout: 265 seconds]
vircung has joined #ruby
ua has joined #ruby
rkoller has joined #ruby
rkoller has quit [Client Quit]
venmx has joined #ruby
<havenwood> belak: #to_ary, #to_str and friends are for when you're implementing your own class and you want to support implicit conversions.
<havenwood> belak: Matz makes the things most used beautiful. These are seldom used.
<havenwood> Maybe "most used" isn't the right way to say it. The preferred path is lit.
<belak> Hm, ok, fair enough
jenrzzz has joined #ruby
jetchisel has joined #ruby
<yxhuvud> I would recommend mostly using the shortest variants, to_i to_a to_s to_h etc.
<havenwood> Those ^ are for explicit conversion and a far-more used.
Ringtailed-Fox has joined #ruby
Ringtailed-Fox is now known as RingtailedFox
<RingtailedFox> so, a ruby script i have requires a specific version of unf_ext (0.0.7.5), which SHOULD run on my version of ruby, but does not...
<RingtailedFox> ERROR: Error installing unf_ext:
<RingtailedFox> unf_ext requires Ruby version >= 2.0, < 2.6. The current ruby version is 2.6.6.146.
<RingtailedFox> The last version of unf_ext (= 0.0.7.5) to support your Ruby & RubyGems was 0.0.7.5. Try installing it with `gem install unf_ext -v 0.0.7.5`
<RingtailedFox> that's what i get when i type gem install unf_ext -v 0.0.7.5
jenrzzz has quit [Ping timeout: 256 seconds]
<RingtailedFox> ruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]
<RingtailedFox> gem --version
<RingtailedFox> 3.0.3
RingtailedFox has quit [Read error: Connection reset by peer]
<havenwood> rippa: Try?: gem install unf_ext --platform=ruby
<havenwood> err, oops
<havenwood> Ring, they left?
<havenwood> Whenever you try to talk to a ring-tailed fox it seems they run off.
vondruch_ has joined #ruby
RingtailedFox has joined #ruby
r3m_ is now known as r3m
burningserenity has quit [Ping timeout: 256 seconds]
vondruch has quit [Ping timeout: 260 seconds]
vondruch_ is now known as vondruch
burningserenity has joined #ruby
cassolas has joined #ruby
lazarus1 has quit [Quit: Leaving]
cliluw has joined #ruby
burningserenity has quit [Client Quit]
erpel has quit [Quit: Textual IRC Client: www.textualapp.com]
cassolas has quit [Ping timeout: 240 seconds]
cassolas has joined #ruby
FastJack has quit [Ping timeout: 272 seconds]
phenom has quit [Ping timeout: 256 seconds]
phenom has joined #ruby
FastJack has joined #ruby
tau has quit [Remote host closed the connection]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
ur5us has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
schne1der has quit [Ping timeout: 260 seconds]
snickers has joined #ruby
jenrzzz has joined #ruby
orbyt_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 258 seconds]
zapata has quit [Ping timeout: 260 seconds]
zapata has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
InfosecTai has quit [Ping timeout: 265 seconds]
jetchisel has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has joined #ruby
bruce_lee has quit [Remote host closed the connection]
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
ldepandis has quit [Read error: Connection reset by peer]
fercell has quit [Quit: WeeChat 2.8]
<phaul> patrick99e99: I have *some* experience with parslet, what about it? The channel bot runs with parslet ...
<phaul> "the" channel bot is maybe too assumptious. one of the channel bots.
<phaul> & aaaa
<rubydoc> phaul: parser error at position 0 around ` '
<phaul> that;s parslet complaining :)
venmx has quit [Ping timeout: 272 seconds]
Nowaker has joined #ruby
Emmanuel_Chanel has joined #ruby
ellcs1 has quit [Ping timeout: 252 seconds]
oneeggeach has joined #ruby
oneeggeach has quit [Client Quit]
TCZ has quit [Quit: Leaving]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kozowu has quit [Ping timeout: 240 seconds]
pitastrudl has quit [Ping timeout: 244 seconds]
Lewix has quit [Ping timeout: 252 seconds]
troulouliou_dev has joined #ruby
Fenhl has quit [Ping timeout: 260 seconds]
peteretep has quit [Ping timeout: 260 seconds]
maxmanders has quit [Ping timeout: 260 seconds]
hodbogi has quit [Ping timeout: 256 seconds]
Net has quit [Ping timeout: 246 seconds]
Pillus has quit [Ping timeout: 246 seconds]
gmcintire has quit [Ping timeout: 272 seconds]
redlegion has quit [Ping timeout: 272 seconds]
Mutsuhito has quit [Ping timeout: 272 seconds]
sylario has quit [Ping timeout: 272 seconds]
podman has quit [Ping timeout: 272 seconds]
lawr3nce has joined #ruby
grvgr has quit [Ping timeout: 272 seconds]
alnk has quit [Ping timeout: 252 seconds]
timwis has quit [Ping timeout: 252 seconds]
mattwc has quit [Ping timeout: 260 seconds]
gorsuch has quit [Ping timeout: 260 seconds]
JayDoubleu has quit [Ping timeout: 260 seconds]
englishm has quit [Ping timeout: 244 seconds]
itok has quit [Ping timeout: 260 seconds]
manveru has quit [Ping timeout: 260 seconds]
entel has quit [Ping timeout: 260 seconds]
BuildTheRobots has quit [Ping timeout: 260 seconds]
dputtick has quit [Ping timeout: 260 seconds]
howdoi has quit [Ping timeout: 252 seconds]
gajus has quit [Ping timeout: 272 seconds]
chromis has quit [Ping timeout: 272 seconds]
strmpnk has quit [Ping timeout: 272 seconds]
gorsuch has joined #ruby
ctOS has quit [Ping timeout: 244 seconds]
afisher has quit [Ping timeout: 244 seconds]
hahuang65 has quit [Ping timeout: 244 seconds]
jnoon_ has joined #ruby
d0liver has quit [Ping timeout: 260 seconds]
jetpack_joe has quit [Ping timeout: 260 seconds]
meinside has quit [Ping timeout: 260 seconds]
ec has quit [Ping timeout: 260 seconds]
en10n has quit [Ping timeout: 260 seconds]
jnoon has quit [Ping timeout: 260 seconds]
jhill has quit [Ping timeout: 260 seconds]
jnoon_ is now known as jnoon
teej has quit [Ping timeout: 252 seconds]
kevinsjoberg has quit [Ping timeout: 246 seconds]
coffeejunk has quit [Ping timeout: 260 seconds]
MentalPower has quit [Ping timeout: 260 seconds]
jimeh has quit [Ping timeout: 244 seconds]
matti has quit [Ping timeout: 244 seconds]
troulouliou_dev has quit [Max SendQ exceeded]
pyrmont_ has joined #ruby
graphicsv has quit [Ping timeout: 272 seconds]
justache has quit [Ping timeout: 272 seconds]
zipkid has quit [Ping timeout: 272 seconds]
jerme_ has quit [Ping timeout: 272 seconds]
integral has quit [Ping timeout: 272 seconds]
kevinsjoberg has joined #ruby
hodbogi has joined #ruby
jrhorn424 has quit [Ping timeout: 246 seconds]
CustosLimen has quit [Ping timeout: 246 seconds]
ReinH has quit [Ping timeout: 246 seconds]
Liothen has quit [Ping timeout: 260 seconds]
pyrmont has quit [Ping timeout: 260 seconds]
Argorok has quit [Ping timeout: 260 seconds]
pyrmont_ is now known as pyrmont
r3my has quit [Ping timeout: 260 seconds]
jimeh has joined #ruby
Argorok_ has joined #ruby
troulouliou_dev has joined #ruby
podman has joined #ruby
ctOS has joined #ruby
meinside has joined #ruby
ryzokuken has quit [Ping timeout: 272 seconds]
lipoqil has quit [Ping timeout: 272 seconds]
nuck has quit [Ping timeout: 272 seconds]
d10n-work has quit [Ping timeout: 272 seconds]
Pillus has joined #ruby
Net has joined #ruby
Iambchop has quit [Ping timeout: 260 seconds]
darthThorik has quit [Ping timeout: 260 seconds]
kermit has quit [Ping timeout: 260 seconds]
NODE has quit [Excess Flood]
jetpack_joe has joined #ruby
darthThorik_ has joined #ruby
howdoi has joined #ruby
gmcintire has joined #ruby
mattwc has joined #ruby
pitastrudl has joined #ruby
JayDoubleu has joined #ruby
BuildTheRobots has joined #ruby
justache has joined #ruby
Iambchop has joined #ruby
sylario has joined #ruby
afisher has joined #ruby
ryzokuken has joined #ruby
Lewix has joined #ruby
zipkid has joined #ruby
d10n-work has joined #ruby
NODE has joined #ruby
entel has joined #ruby
Liothen has joined #ruby
peteretep has joined #ruby
jerme_ has joined #ruby
alnk has joined #ruby
MentalPower has joined #ruby
lipoqil has joined #ruby
integral has joined #ruby
teej has joined #ruby
maxmanders has joined #ruby
itok has joined #ruby
NODE has quit [Remote host closed the connection]
kermit has joined #ruby
coffeejunk has joined #ruby
grvgr has joined #ruby
graphicsv has joined #ruby
Mutsuhito has joined #ruby
dputtick has joined #ruby
jrhorn424 has joined #ruby
hahuang65 has joined #ruby
timwis has joined #ruby
redlegion has joined #ruby
nuck has joined #ruby
en10n has joined #ruby
Fenhl has joined #ruby
NODE has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
d0liver has joined #ruby
chromis has joined #ruby
manveru has joined #ruby
prp-e has joined #ruby
venmx has joined #ruby
prp-e has quit [Quit: Leaving]
jhill has joined #ruby
matti has joined #ruby
kozowu has joined #ruby
strmpnk has joined #ruby
gajus has joined #ruby
imode has joined #ruby
InfosecTai has joined #ruby
poro has joined #ruby
banisterfiend has joined #ruby
<poro> halp
ReinH has joined #ruby
<poro> Why does this work
<poro> Isnt this supposed to just select unenven numbers? not primes
r3my has joined #ruby
englishm has joined #ruby
ec has joined #ruby
CustosLimen has joined #ruby
gix has quit [Ping timeout: 265 seconds]
troulouliou_dev has quit [Quit: Leaving]
<poro> nvm I get it now
gix has joined #ruby
banisterfiend has quit [Ping timeout: 260 seconds]
poro has quit [Read error: Connection reset by peer]
poro has joined #ruby
InfosecTai has quit [Ping timeout: 256 seconds]
chromis has left #ruby [#ruby]
jenrzzz has joined #ruby
<leftylink> whoever wrote that code needs to stop using while when they actually mean each
jenrzzz has quit [Read error: Connection reset by peer]
<poro> stooges = ['Larry', 'Curly', 'Moe']
<poro> stooges.each { |stooge| print stooge + "\n" }
<poro> whats the point of the placeholder
<poro> |stooge|
<poro> cant I just skip that
jenrzzz has joined #ruby
<leftylink> I am going to qualify my comment about while vs each for a special circumstance - for a special circumstance where performance is important, while does run faster than each
<leftylink> ... I guess you can skip the block arg if you want, and just use puts _1, but you can only do that in Ruby 2.7 and above.
<leftylink> so if any earlier version of Ruby, surely it's necessary to name the block arg
<leftylink> otherwise, how are you going to refer to what you're going to print
<poro> oh I see
<poro> thats the purpose
<poro> ok so I'll keep the while statements for this prime number finder program but use .each when efficiency is not the goal
<poro> I use while loops and if statements for every single thing lol, time to learn new stuff
jenrzzz has quit [Ping timeout: 260 seconds]
cadeskywalker has quit [Ping timeout: 240 seconds]
teclator has quit [Ping timeout: 256 seconds]
teclator has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
amjam has joined #ruby