#chruby

Joop KnoopJoopKnoop
2025-01-03

Hey, ! That’s cool!
Oh, that’s only static pages.
But we can use !
Oh, need to install .
But first install and .
Oh, wrong version of ruby, need to install again.
Good! Now install jekyll.
Oh, compile error on .
Checking out .
doctor.
alert! Fuck it.
brew remove githubpages cascade;

Todd A. Jacobs | Rubyisttodd_a_jacobs@ruby.social
2024-08-30

@jamiemccarthy @mistersql I don't have raw numbers because #chruby and #rbenv are not gems; they're shell hooks. However, @postmodern actively maintains chruby, and it doesn't need to be updated and rehashed for every upstream update or beta. It also has great support for the Fish shell.

All of them have good use cases & some edge cases. For example, #RVM is "batteries included." I didn't care about how it hooks `cd` until I started using other apps that did, too.

There's no wrong choice!

Todd A. Jacobs | Rubyisttodd_a_jacobs@ruby.social
2024-08-29

@jamiemccarthy @mistersql You missed #chruby and #asdf. I personally recommend chruby over the others, but have used all of them and they each have their good points. *Please* don't mess with your system Ruby or Bad Stuff™ is likely to happen.

#venv is now part of the #Python3 standard library these days, but #RubyLang offers more choices. Plus, there are various ways to install #RubyGems locally into your project even without #Bundler. See `gem install --help` for options.

Todd A. Jacobs | Rubyisttodd_a_jacobs@ruby.social
2024-05-25

For anyone using the #fish_shell, the following #shell_function definition will let you switch to the latest CRuby #chruby knows about. It could be simplified (e.g. setting a function-local variable is mostly for debugging) or use builtins instead of pipes in shells where that matters, but I still find it useful for myself. Maybe you will, too.

```fish
function chruby-latest
set latest (
chruby | tr -d '*' |
pcregrep -o '\bruby-[\d.]+' | tail -1)
chruby $latest
end
```

Todd A. Jacobs | Pragmatic Cybersecuritytodd_a_jacobs@infosec.exchange
2024-04-26

#RubyLang 3.3.1 is now out, and has some important #CVE fixes. If you use #chruby and #rubyinstall then this is all you need for a basic update without additional compilation options:

ruby-install -U
RUBYOPT="" ruby-install 3.3.1

Also, don't forget to chruby 3.3.1 and then run gem update. A lot of #RubyGems included in the default install have been updated since the patch was released too!

ruby-lang.org/en/news/2024/04/

Todd A. Jacobs | Rubyisttodd_a_jacobs@ruby.social
2024-04-26

#RubyLang 3.3.1 is now out, and has some important #CVE fixes. If you use #chruby and #rubyinstall then:

```
ruby-install -U
RUBYOPT="" ruby-install -c 3.3.1 -- --with-openssl-dir="$(brew --prefix openssl@3)"
```

will get you updated using the latest #OpenSSL v3 from #HomeBrew.

Also, don't forget to `chruby 3.3.1` and then run `gem update`. A lot of core gems have been updated in the past two days too!

ruby-lang.org/en/news/2024/04/

2023-11-30

I also need to update the signing mechanism. Either I need to generate a new PGP 4096 bit key and load it onto a YubiKey, or switch to sigstore (which uses OpenID) which is what all of the cool kids are apparently using.
sigstore.dev/
#rubyinstall #chruby

2023-11-30

What would people think about if I moved chruby, ruby-install, ruby-versions, and maybe rubygems-tasks, into a new GitHub Org? GitHub does support automatic redirects for moved repos. It would give it an air of official-ness, instead of going to my GitHub. I would probably have to do this in ruby-install 0.10.0 and change the URL for the ruby-versions repo, which it downloads version info from.

Only downside is it would automatically close *ALL* outstanding PRs.
#rubyinstall #chruby

2023-11-12

I'm considering adding source options to chruby 1.0.0 which would control loading additional chruby "modules".

source /usr/local/share/chruby/chruby.sh --auto --bundler

#chruby

Todd A. Jacobs | Rubyisttodd_a_jacobs@ruby.social
2023-05-12

@postmodern BTW, this worked flawless on my M2:

ruby-install -c ruby-3.3.0-preview1 -- "--enable-yjit"
echo "RUBYOPT=--yjit" >> ~/.zshrc

I have been relying on #chruby and #rubyinstall for years. I'm not sure why they aren't everyone's favorites. :)

Just had a PR merged into #ronin after a long time away from open source work. It was super fun jumping back into #ruby and @postmodern was really nice along the way. I used to use ronin, #chruby, #ruby-install, and #chgems (now #gem_home) quite a lot so it was even cooler collaborating with a rubyist who made a bunch of my favorite projects!

https://github.com/ronin-rb/ronin/pull/155
2023-04-20

Appears that ruby-install and chruby were effected by GitHub's recent `git archive` upgrade which broke the PGP signatures. I am now uploading the original `.tar.gz` and `.tar.gz.asc` files to GitHub Releases, so they will [hopefully] never change.
github.blog/2023-02-21-update-
#rubyinstall #chruby #ruby

Andreas Finger 🦋mediafinger@ruby.social
2022-11-09

@k0kubun @joeldrapper I've briefly used #rvm and #rbenv, then #rbfu for a few years and for 8 or so years I'm a happy #chruby user.
Though if it's (optional) autoswitcher would win a startup competition, I'm not sure. Guess that's something you've gotta measure yourself.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst