adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
drincruz_ has joined #ruby
drincruz_ has quit [Ping timeout: 268 seconds]
Garb0 has quit [Quit: Garb0]
ur5us has joined #ruby
drincruz_ has joined #ruby
drincruz_ has quit [Ping timeout: 246 seconds]
drincruz_ has joined #ruby
gr33n7007h has quit [Ping timeout: 255 seconds]
gr33n7007h has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
drincruz has joined #ruby
drincruz_ has quit [Ping timeout: 265 seconds]
ur5us has quit [Ping timeout: 246 seconds]
drincruz has quit [Ping timeout: 255 seconds]
gr33n7007h has quit [Ping timeout: 255 seconds]
gr33n7007h has joined #ruby
pwnd_sfw has quit [Quit: Ping timeout (120 seconds)]
pwnd_sfw has joined #ruby
gr33n7001 has joined #ruby
gr33n7007h has quit [Ping timeout: 255 seconds]
gr33n7007h has joined #ruby
gr33n7001 has quit [Ping timeout: 258 seconds]
gr33n7007h has quit [Ping timeout: 268 seconds]
gr33n7007h has joined #ruby
jmcgnh has quit [Ping timeout: 252 seconds]
gr33n7001 has joined #ruby
gr33n7007h has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
gr33n7001 has quit [Ping timeout: 255 seconds]
swaggboi has quit [Quit: C-x C-c]
gr33n7007h has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
bandithijo has quit [Quit: WeeChat 3.2-rc1]
bandithijo has joined #ruby
bandithijo has quit [Client Quit]
bandithijo has joined #ruby
gr33n7007h has quit [Ping timeout: 255 seconds]
gr33n7007h has joined #ruby
bandithijo has quit [Ping timeout: 268 seconds]
bandithijo has joined #ruby
gr33n7001 has joined #ruby
gr33n7007h has quit [Ping timeout: 258 seconds]
lad has joined #ruby
lad_ has quit [Ping timeout: 265 seconds]
lad_ has joined #ruby
lad has quit [Ping timeout: 255 seconds]
lunarkitty has joined #ruby
sagax has quit [Quit: Konversation terminated!]
_ht has joined #ruby
sagax has joined #ruby
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
jetchisel has joined #ruby
Rounin has joined #ruby
niv has joined #ruby
gr33n7001 has quit [Ping timeout: 265 seconds]
gr33n7001 has joined #ruby
drincruz has joined #ruby
drincruz has quit [Ping timeout: 255 seconds]
goldfish has joined #ruby
goldfish has quit [Remote host closed the connection]
goldfish has joined #ruby
drincruz has joined #ruby
drincruz has quit [Ping timeout: 258 seconds]
gr33n7001 has quit [Quit: WeeChat 3.2]
ur5us has joined #ruby
ur5us has quit [Quit: Leaving]
lunarkitty has quit [Quit: Connection closed for inactivity]
bandithijo has quit [Ping timeout: 252 seconds]
bandithijo has joined #ruby
lad_ has quit [Ping timeout: 255 seconds]
Guest77 has joined #ruby
bandithijo has quit [Ping timeout: 246 seconds]
graywolf has quit [Quit: WeeChat 3.2]
pwnd_sfw has quit [Quit: Ping timeout (120 seconds)]
pwnd_sfw has joined #ruby
Rounin has quit [Ping timeout: 268 seconds]
bandithijo has joined #ruby
goldfish has quit [Quit: Leaving]
FetidToot has quit [Ping timeout: 255 seconds]
Guest15 has joined #ruby
Guest15 has quit [Client Quit]
drincruz has joined #ruby
FetidToot has joined #ruby
graywolf has joined #ruby
bandithijo has quit [Ping timeout: 255 seconds]
drincruz has quit [Ping timeout: 240 seconds]
drincruz has joined #ruby
Guest77 has quit [Quit: Ping timeout (120 seconds)]
Guest77 has joined #ruby
Guest77 has quit [Quit: Client closed]
Guest77 has joined #ruby
nolesswrong has quit [Ping timeout: 268 seconds]
jidar has quit [Ping timeout: 268 seconds]
nolesswrong has joined #ruby
jidar has joined #ruby
elf_fortrez has joined #ruby
elf_fortrez has quit [Quit: Client closed]
Guest77 has quit [Quit: Client closed]
<nakilon> am I the one who lost his userpic on SO? I thought it's on Gravatar and I don't see the Gravatar to be discontinued
drincruz has quit [Ping timeout: 258 seconds]
aesthetikx has quit [Quit: WeeChat 3.0]
drincruz has joined #ruby
drincruz has quit [Ping timeout: 268 seconds]
FetidToot has quit [Ping timeout: 255 seconds]
lad_ has joined #ruby
FetidToot has joined #ruby
FetidToot has quit [Ping timeout: 268 seconds]
FetidToot has joined #ruby
FetidToot has quit [Ping timeout: 268 seconds]
FetidToot has joined #ruby
FetidToot has quit [Ping timeout: 255 seconds]
FetidToot has joined #ruby
drincruz has joined #ruby
FetidToot4 has joined #ruby
FetidToot has quit [Ping timeout: 268 seconds]
FetidToot4 is now known as FetidToot
drincruz has quit [Ping timeout: 268 seconds]
FetidToot has quit [Ping timeout: 268 seconds]
FetidToot has joined #ruby
drincruz has joined #ruby
FetidToot9 has joined #ruby
FetidToot has quit [Ping timeout: 258 seconds]
FetidToot has joined #ruby
FetidToot9 has quit [Ping timeout: 268 seconds]
drincruz has quit [Ping timeout: 255 seconds]
drincruz has joined #ruby
willow has joined #ruby
<willow> i set up rvm and installed a ruby version. not sure what to use for the interpreter line in ruby scripts. "#!/usr/bin/env ruby" does not work
drincruz_ has joined #ruby
<willow> 'which ruby' shows /usr/local/rvm/rubies/ruby-2.7.2/bin/ruby so 'ruby' is recognizec
drincruz has quit [Ping timeout: 268 seconds]
<willow> should rvm handle setting up system-wide PATH? other suggested 'solution' is to ln -s /usr/local/rvm/rubies/ruby-2.7.2/bin/ruby to /usr/bin/ruby which also doesn't seem right.
<willow> perhaps i'll set up an alternative in debian
drincruz_ has quit [Ping timeout: 252 seconds]
<willow> but that really doesn't seem right. what's the point of rvm if you have to manually manage the version alternatives on the system?
<weaksauce> willow what shell are you using?
<weaksauce> and where are you calling that script from?
<willow> weaksauce: bash
<willow> weaksauce: in some cases i call a ruby script with non-interactive shell vi sudo -u <user> script.rb
<weaksauce> where do you setup rvm?
<willow> system-wide
<weaksauce> i mean in bashrc or profile or what
<willow> when any logged in user runs 'ruby -v' it shows the version.
<weaksauce> because you need to set it up in the non-interactive shell if you want to call it like that or do something ugly like link it like you were doing
<willow> i just used the install script curl -sSL https://get.rvm.io | bash -s stable
<willow> i think it put someting in /etc/profile.d/rvm.sh
<willow> in rvm.sh i see rvm environment being set up but nothing about ruby and PATH
drincruz_ has joined #ruby
FetidToot has quit [Ping timeout: 258 seconds]
<weaksauce> have you considered something simpler like chruby?
<weaksauce> it's like <100loc
<willow> no. i picked rvm because am already familiar with nvm which is straightforward
<willow> if i can figure out how the heck /usr/local/rvm/gems/ruby-2.7.2/bin is getting assigned to PATH i can get this to work.
lucf117 has joined #ruby
<willow> grep -r '/usr/local/rvm/gems/ruby-2.7.2/bin' /etc comes up empty. so it's not being assigned there. ugh
<weaksauce> idk i don't use rvm anymore as it does way too much stuff
<weaksauce> probably need to call rvm use whatever in your startup script for whatever you want to use a ruby for
<weaksauce> there is also https://rvm.io/workflow/scripting willow
<willow> thanks. i also found this info on rbenv which looks good https://linoxide.com/how-to-install-ruby-on-ubuntu-20-04/
<willow> aha! i see that the user in question's shell was set to /bin/sh instead of /bin/bash
<willow> unfortuantely switching it to /bin/bash doesn't help even though ruby is now in the user's PATH
<willow> /usr/bin/env: ‘ruby’: No such file or directory
<weaksauce> odd
<weaksauce> try /usr/bin/env bash and then call env in that script
<weaksauce> see if your path is set right
steinomead has left #ruby [pterm]
<willow> yes, can also just run 'env ruby' from the command line and it is successful
<willow> for example 'evn ruby -v'
<willow> i don't know. perhaps something with running it via 'sudo -u <command>'
<willow> instead i can just su - <user> and then run the command
havenwood3 has joined #ruby
<weaksauce> it seems like such a common problem that people have with ruby
<weaksauce> does that user have the profile setup right for non-interactive shells?
havenwood has quit [Ping timeout: 240 seconds]
havenwood3 is now known as havenwood
<ccooke> weaksauce: having so many ruby managers means things can easily be fragmentary and confusing
finsternis has quit [Remote host closed the connection]
<weaksauce> ccooke yeah i like chruby because it just does one thing and does it well
<weaksauce> are gemsets even worth having anymore since bundler exists?
finsternis has joined #ruby
FetidToot has joined #ruby
lunarkitty has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
aesthetikx has joined #ruby
drincruz_ has quit [Ping timeout: 258 seconds]
_ht has quit [Remote host closed the connection]
darkxploit has quit [Read error: Connection reset by peer]
FetidToot2 has joined #ruby
FetidToot has quit [Ping timeout: 268 seconds]
FetidToot has joined #ruby
darkxploit has joined #ruby
FetidToot2 has quit [Ping timeout: 268 seconds]
nmollerup has joined #ruby
seisatsu_ is now known as seisatsu
<rg1> i stopped using bundler for rubygem + gem.deps.rb
<weaksauce> why is that
drincruz_ has joined #ruby
<rg1> i dont rely on an external dependency that's not part of Ruby and it is a simple process: `gem install -g gem.dep.rb` installs the gems and doesnt utilize sandboxing, at least not for now
<weaksauce> rg1 bundler has been a part of ruby since 2.6
<rg1> oh really? i didnt know that. well, there's a parallel effort in rubygems so i'm not sure where that will end up.
<rg1> in any case i think i prefer rubygems effort for its simplicity. you don't have to initialize a sandbox, or `bundle exec` commands.
bandithijo has joined #ruby
<adam12> rg1: bundler and rubygems are merging, gradually. They live in the same repo right now.
<rg1> cool. it'll be interesting to see how that plays sout.
<rg1> out.*
AriT93 has joined #ruby
AriT93 has quit [Client Quit]
Rounin has joined #ruby
drincruz_ has quit [Ping timeout: 265 seconds]
isekaijin has quit [Ping timeout: 252 seconds]
drincruz_ has joined #ruby
AriT93 has joined #ruby
drincruz_ has quit [Ping timeout: 268 seconds]
drincruz_ has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
drincruz has joined #ruby
drincruz_ has quit [Ping timeout: 265 seconds]
seydar has joined #ruby
<seydar> i'm using sequel to connect to an sqlite3 db (file based). do i need to do something special in order to take advantage of the connection pool?
lad_ has quit [Ping timeout: 268 seconds]
<adam12> seydar: You shouldn't have to, but you might need to send sqlite a PRAGMA to enable WAL, which can help with concurrent writes.
<seydar> adam12: Conveniently, I'm only doing concurrent reads, which is why I'm so confused as to why I'm struggling so much with this
<seydar> I'm gonna try setting :preconnect => true to see if that helps. Which I guess it shouldn't, because my max connections is 4
<adam12> seydar: what are you experiencing?
AriT93 has quit [Remote host closed the connection]
drincruz has quit [Ping timeout: 255 seconds]
drincruz has joined #ruby