favadi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seydar has quit [Ping timeout: 260 seconds]
seydar has joined #ruby
dviola has quit [Ping timeout: 260 seconds]
seydar has quit [Ping timeout: 256 seconds]
dviola has joined #ruby
seydar has joined #ruby
dviola has quit [Ping timeout: 246 seconds]
dviola has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
reset has quit [Quit: reset]
seydar has joined #ruby
hololeap_ has quit [Remote host closed the connection]
seydar has quit [Ping timeout: 256 seconds]
hololeap_ has joined #ruby
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
favadi has joined #ruby
donofrio has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
donofrio has joined #ruby
o|||||o has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 256 seconds]
jpn_ has joined #ruby
TCZ has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
favadi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has quit [Ping timeout: 256 seconds]
dviola has joined #ruby
dviola has quit [Max SendQ exceeded]
dviola has joined #ruby
some14u has joined #ruby
favadi has joined #ruby
gr33n7007h has quit [Ping timeout: 248 seconds]
gr33n7007h has joined #ruby
favadi has quit [Client Quit]
<John_Ivan_>
mooff, if you insist, I will give it a try then. :)
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has quit [Quit: Leaving]
some14u has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
dviola has quit [Remote host closed the connection]
dviola has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpn_ has quit [Ping timeout: 260 seconds]
seydar has joined #ruby
some14u has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
seydar has quit [Ping timeout: 256 seconds]
seydar has joined #ruby
seydar has quit [Ping timeout: 272 seconds]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpn has joined #ruby
goepsilongo has joined #ruby
seydar has joined #ruby
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
jpn_ has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
seydar has quit [Ping timeout: 246 seconds]
favadi has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 272 seconds]
seydar has joined #ruby
seydar has quit [Ping timeout: 248 seconds]
jongsta has joined #ruby
<jongsta>
anyone know why this fails when remotely through capistrano? su -lc "source ~/.rvm/scripts/rvm user && rvm install ruby-2.7.1 user"
<oz>
nope, sorry. I don't use capistrano or rvm ¯\_(ツ)_/¯
hellstabber has joined #ruby
davidw has joined #ruby
hololeap_ is now known as hololeap
<havenwood>
jongsta: What error does it fail with?
<jongsta>
failed: "sh -c 'su user -c \"source /home/user/.rvm/scripts/rvm & rvm install ruby-2.7.1\"'" on IP
<havenwood>
jongsta: That's not a helpful error, seems it swallowed the real one. I'd expect for you to use a wrapper if you want to do this manually — that's the RVM way. Or for cap particularly, you can use the gem. https://rvm.io/deployment/capistrano
<havenwood>
jongsta: If you don't want to use the gem, see the surrounding docs for god, init, etc that show using wrappers.
<havenwood>
jongsta: RVM makes a wrapper (shim) that you can run RVM with in this fashion and it'll autoconfigure ruby-2.7.1 for you.
<havenwood>
jongsta: An aside, but you should bump to the newest Ruby 2.7.
John_Ivan_ has quit [Read error: Connection reset by peer]
dviola has quit [Ping timeout: 256 seconds]
RougeR has joined #ruby
John_Ivan has joined #ruby
dviola has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
dviola has quit [Ping timeout: 246 seconds]
dviola has joined #ruby
dviola has quit [Ping timeout: 246 seconds]
dviola has joined #ruby
dviola has quit [Remote host closed the connection]
___nick___ has joined #ruby
dviola has joined #ruby
o|||||o has quit [Ping timeout: 248 seconds]
eddof13 has joined #ruby
favadi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has quit [Client Quit]
o|||||o has joined #ruby
_ht has joined #ruby
impermanence has joined #ruby
dviola has quit [Ping timeout: 260 seconds]
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
donofrio has quit [Ping timeout: 248 seconds]
seydar has joined #ruby
donofrio has joined #ruby
fef has quit [Ping timeout: 240 seconds]
fef has joined #ruby
jpn has joined #ruby
seydar has quit [Ping timeout: 256 seconds]
jpn has quit [Ping timeout: 246 seconds]
oxfuxxx has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 272 seconds]
dviola has quit [Ping timeout: 256 seconds]
jpn has joined #ruby
dviola has joined #ruby
dviola has quit [Remote host closed the connection]
dviola has joined #ruby
orbyt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reset has joined #ruby
dionysus69 has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 240 seconds]
<adam12>
morning
seydar has joined #ruby
seydar has quit [Ping timeout: 268 seconds]
dviola has quit [Ping timeout: 246 seconds]
dviola has joined #ruby
dviola has quit [Max SendQ exceeded]
some14u has joined #ruby
seydar has joined #ruby
xuochi has joined #ruby
seydar has quit [Ping timeout: 248 seconds]
<mooff>
morning (UGT)
<mooff>
should i check in Gemfile.lock to my gem's repo?
<weaksauce>
yes
<mooff>
what's the benefit?
<weaksauce>
reproducibility?
dviola has joined #ruby
<mooff>
sold
fef has quit [Ping timeout: 240 seconds]
seydar has joined #ruby
dviola has quit [Ping timeout: 256 seconds]
xuochi has quit [Quit: leaving]
seydar has quit [Ping timeout: 268 seconds]
dviola has joined #ruby
dviola has quit [Max SendQ exceeded]
seydar has joined #ruby
dviola has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
jpn has quit [Ping timeout: 260 seconds]
ssh073 has joined #ruby
dviola has quit [Ping timeout: 248 seconds]
ssh073 has quit [Client Quit]
_ht has quit [Remote host closed the connection]
dviola has joined #ruby
dviola has quit [Max SendQ exceeded]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
___nick___ has quit [Ping timeout: 272 seconds]
dviola has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
<adam12>
Ooh, Gemfile.lock in gem repo's is a spicy take. I am normally in favour of this, but it actually bit me recently.
<mooff>
how did it bite you?
<adam12>
I can't remember the specifics, but somehow something was out of date, even tho it looked like it wasn't.
seydar has joined #ruby
<rapha>
evening all
<rapha>
how's everything?
* rapha
is on vacation, and what does he do ... some ruby
some14u has joined #ruby
<adam12>
rapha: lol. I do the same sometimes.
seydar has quit [Ping timeout: 256 seconds]
<adam12>
mooff: I've gone back on not having a Gemfile.lock for gems, but it is the official guidance of Bundler to have a Gemfile.lock. https://bundler.io/guides/faq.html
<rapha>
adam12: just with the pressure from work gone i remembered again that i wanted to have a thing that always shows the last 15 minutes or so of internet bandwidth usage on the house's central router.
<adam12>
Oooh, they added a new FAQ entry with a suggestion on deleting Gemfile.lock. Interesting.
<rapha>
it's probably going to end up being more JS than Ruby.
<rapha>
oh, when and for what reason(s) should we (not) delete it?
<adam12>
rapha: Gemfile.lock in gems can be problematic because during CI you might not notice tests breaking due to dependencies changing. Official stance for gems used to be not commiting Gemfile.lock, but this changed, with guidance for CI to delete Gemfile.lock during the CI run.
<rapha>
oh, it's a gem-specific thing, alright
<John_Ivan>
hi, any particular idea why attempting to choose the delimeter for a csv file under the "CSV.open()" call, I get back saying the function only expects 1..2 arguments? the API/Manual clearly offers multiple overloads.
<John_Ivan>
my code: CSV.open("a-csv.csv", "w+:UTF-8", {:col_sep => "\t"})
gfawcett has quit [Quit: Ping timeout (120 seconds)]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has quit [Ping timeout: 272 seconds]
dviola has joined #ruby
donofrio has quit [Ping timeout: 246 seconds]
donofrio has joined #ruby
some14u has joined #ruby
dviola has quit [Ping timeout: 256 seconds]
dviola has joined #ruby
some14u has quit [Client Quit]
dionysus69 has quit [Ping timeout: 246 seconds]
jpn has joined #ruby
dviola has quit [Ping timeout: 260 seconds]
<rapha>
say y'all ... my rails days are a long, long time ago, and even my sinatra days have been a few years. nowadays, is there a way of teaching a web server Ruby that's as convenient an troublefree as, say, it is with PHP using php-fpm?
dviola has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
dviola has quit [Max SendQ exceeded]
markong has joined #ruby
<newton>
passenger maybe?
<rapha>
good lord, that is STILL not dead?
<rapha>
they should pay people recompensation for having to touch that
<newton>
I probably wouldn't use it now but found it pretty convenient pre-docker ¯\_(ツ)_/¯
<rapha>
i might be a special person then ... same feeling about docker :P
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
o|||||o has quit [Ping timeout: 246 seconds]
ssh073 has joined #ruby
<adam12>
rapha: I use dokku almost everywhere. It's more encompassing, since it also does postgres and things, but it's quite nice. Install it on a VM and then host all your apps on it.
<adam12>
rapha: Passenger works great but its' only a small part of the picture. Ruby version, dev dependencies, etc.
<rapha>
yeah it all gets so much so quickly
<adam12>
I won't do much Ruby without Docker anymore. It's just so much nicer.
<adam12>
And especially not for deployment. Dokku or Caprover. git push and done.
<newton>
does dokku handle SSL generation stuff?
<rapha>
the thing i always liked about PHP (say about it what you will, otherwise), was always that after what basically amounts to a simple "apt install php" you can write a something.php file and things will work right away. sure, that has its downsides and implications, but for some quick and small things can be very nice. wondering if something similar could be achieved with just rack and erb.
<newton>
I got tired of doing self-hosting so I started using heroku but if dokku is just as easy I might try it out
<adam12>
newton: Yes. It's an add-on official plugin for LetsEncrypt.
<rapha>
Looking at its website, Dokku looks nice for when you've bought into the whole swath of things that come with it, most notably, Docker.
<adam12>
rapha: It's still probably similar but not exactly, since now they have a package manager too (composer)
<rapha>
fair enough, we have gems :)
<adam12>
Technically you can just upload and go too. I made a pure Rack URL shortener that had only rack as a dependency and ran with CGI. https://github.com/adam12/shorturl
<newton>
might be a flawed take but php is designed for web, ruby isn't specifically designed for web
<rapha>
oh cool, i'll check that out right away
<adam12>
The only issue really has been the availability of Ruby on shared hosts.
<rapha>
newton: no, thats a fair enough take. i do realize i have a bit of an oddball wish here.
<newton>
adam12, that's cool 👀
<adam12>
rapha: Using Dokku, you don't need Docker for dev. It's no different than Heroku, really.
<adam12>
You git push, it uses the herokuish image, builds your app into a Docker image, and then deploys that image.
<rapha>
<3'ing your config.ru, adam12 :)
<rapha>
that's a _very_ cool app
<adam12>
You can technically vender your bundler dependencies too. The only challenge is if they have native deps.
Thanzex has quit [Read error: Connection reset by peer]
<rapha>
i think i'll try that out and by-heart the method
<adam12>
bbiaf.
Thanzex has joined #ruby
dviola has quit [Ping timeout: 256 seconds]
dviola has joined #ruby
<rapha>
... and for a fortnight will we be left wondering why he just left for a whole fortnight like that ....
dviola has quit [Ping timeout: 256 seconds]
orbyt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]