John_Ivan_ has quit [Read error: Connection reset by peer]
John_Ivan has joined #ruby
John_Ivan has quit [Remote host closed the connection]
nona has quit [Quit: WeeChat 3.8]
John_Ivan has joined #ruby
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ruby
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ruby
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ruby
John_Ivan has quit [Max SendQ exceeded]
John_Ivan has joined #ruby
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ruby
<caleb>
morning everyone, been a while since I've opened my IRC client.
lena64t has joined #ruby
rvalue has quit [Ping timeout: 240 seconds]
rvalue has joined #ruby
lena64t1 has joined #ruby
lena64t has quit [Remote host closed the connection]
BazzaBazaa has quit [Ping timeout: 245 seconds]
BazzaBazaa has joined #ruby
nona has joined #ruby
<adam12>
caleb: morning
John_Ivan has quit [Ping timeout: 265 seconds]
<BazzaBazaa>
afternoon here
rvalue has quit [Ping timeout: 265 seconds]
<caleb>
was doing some robustness work on a client library in Python yesterday, really missed ruby's built in `retry`
<adam12>
caleb: Yeah! retry is super handy.
rvalue has joined #ruby
bambanxx has joined #ruby
ox1eef_ has quit [Quit: Leaving]
ox1eef_ has joined #ruby
cek has joined #ruby
BazzaBazaa has quit [Remote host closed the connection]
BazzaBazaa has joined #ruby
BazzaBazaa has quit [Remote host closed the connection]
BazzaBazaa has joined #ruby
BazzaBazaa has quit [Remote host closed the connection]
caedmon has joined #ruby
lena64t1 has quit [Remote host closed the connection]
ikke has joined #ruby
<ikke>
Trying to find the cause of a difference. Using docker image ruby:3.0-alpine3.16, something is writing config to /usr/local/bundle/config (see the last without setting: https://tpaste.us/LRMa). Switchignng the image to ruby:3.1-alpine3.17 (but also upgrading the project version), this config is no longer there. We do explicitly set bundle config like this: https://tpaste.us/Z5Wa, but that ends up in
<ikke>
~/.bundle/config, so I wonder if there is anything that would write to /usr/local/bundle/config.
<ikke>
I'll continue investigating the build process, but maybe it's something obvious
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
TomyWork has quit [Remote host closed the connection]
<adam12>
ikke: Inspect the image. I think this might be pre-set.
<weaksauce>
you have system ruby which install gems in a system protected path
<Mindiell>
well, I tried their commands and it exploded ;)
<weaksauce>
you don't have permission by default to install there
<weaksauce>
if you logged in as root you could run that command
<weaksauce>
if you install a user ruby via ruby-build you could install the gem to a local gem folder
<Mindiell>
well, I just want to compile 3 markdown pages and I need to use root for this ? It's problematic I guess
<weaksauce>
no you have alternative ways to do this. build a ruby. use sudo. maybe find a docker
<Doc_X>
If I need to go to a #rails channel, LMK. For rake db migrations, setting 'protected_environment' prevents "destructive" actions (according to the docs). But I can't seem to find a list of what actions rake/rails considers destructive. Anyone have a link to that info they can share?
otisolsen70 has joined #ruby
<aestheti1>
Doc_X iirc it's just referring to preventing rake db:drop, nothing to do with migrations i don't think
<Mindiell>
weaksauce: ok, I'll try to use ruby-build so
<Doc_X>
curses. . . trying to find something to prevent DB rollbacks and i was hoping that would be it. the search continues.
<aestheti1>
yeah, afaik you can rollback in production... hmm maybe I am unaware of this setting though, where are you seeing this?
<Mindiell>
and yeepee, it downloads and build a totally new version :/
<weaksauce>
just load that file up in the rakefile before you load up the rails rake tasks
hightower2 has joined #ruby
tomtmym has quit [Quit: Gone.]
fat_shinobi has joined #ruby
fat_shinobi has quit [Client Quit]
fat_shinobi has joined #ruby
fat_shinobi has quit [Quit: Leaving]
infinityfye has quit [Read error: Connection reset by peer]
otisolsen70 has quit [Quit: Leaving]
c10l has joined #ruby
teclator has joined #ruby
c10l has quit [Client Quit]
c10l has joined #ruby
<Doc_X>
weaksauce: And instead of `:migrate` i should be able to specify `:rollback`?
<weaksauce>
oh yeah
<Doc_X>
I want to be able to do roll forwards, but stop rolling back.
<Doc_X>
excellent. i'll try that out!
<weaksauce>
should work... i did the migrate one and it did work
<weaksauce>
yeah i just tried it with rollback and it stops it
<weaksauce>
you can override it if you need to by setting DISABLE_DATABASE_ENVIRONMENT_CHECK=1
<weaksauce>
of course that is predicated on that method not being renamed but it's probably pretty safe
<Doc_X>
weaksauce: Yeah, the idea is to set protection up by default in our deployment scripts, then have a checkbox saying "Allow rollbacks. Don't use this unless you verified it is okay with the oncall first!" :-)
teclator has quit [Ping timeout: 268 seconds]
<weaksauce>
ah nice
<weaksauce>
rake is pretty cool with how flexible it is... you can keep adding to tasks as needed and they stack
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
cognemo has quit [Ping timeout: 240 seconds]
cognemo has joined #ruby
superv has quit [Ping timeout: 265 seconds]
ua_ has quit [Excess Flood]
ua_ has joined #ruby
aighearach_ has joined #ruby
aighearach has quit [Ping timeout: 256 seconds]
Cache_Money has joined #ruby
<isene>
I love the simplicity and efficiency of Ruby. I spent more than 15 years on and off tweaking and enhancing zsh (after having used bash before that). Two weeks ago I decided to write my own shell. After around 30 hours of coding I now have a shell that is (for me) better than my fine-tuned zsh setup. If
<isene>
... I am sure few others would agree as rsh suits MY needs. But it does so surprisingly well.
<isene>
Color me happy today.
<isene>
🤗
<isene>
The "If" up there was a typo, btw
shokohsc3 has joined #ruby
shokohsc has quit [Ping timeout: 256 seconds]
shokohsc3 is now known as shokohsc
<aestheti1>
isene, I thought of doing the same thing a while back, i may try it out
<aestheti1>
isene if you have some free time, maybe do a whole OS in ruby that way I dont' have to use linux anymore
<aestheti1>
I was thinking of doing a tiling window manager in ruby