postmodern / chruby

Changes the current Ruby
MIT License
2.88k stars 189 forks source link

Wiki instructions for Ruby.md - move to 3.3.0 #498

Closed ewalk153 closed 10 months ago

ewalk153 commented 10 months ago

It's that time of year when we receive a newly minted ruby version (ruby 3.3.0). We should update the installation instructions to point to the latest ruby.

Below is the necessary Wiki patch Ruby.md:

diff --git a/Ruby.md b/Ruby.md
index 0f85e42..4355ea9 100644
--- a/Ruby.md
+++ b/Ruby.md
@@ -71,19 +71,19 @@ CRuby or MRI (Matz's Ruby Implementation), is the defacto [Ruby] and sets the st

 ## Installation

-    wget https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.0.tar.xz
-    tar -xJvf ruby-3.2.0.tar.xz
-    cd ruby-3.2.0
-    ./configure --prefix=/opt/rubies/ruby-3.2.0
+    wget https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.tar.xz
+    tar -xJvf ruby-3.3.0.tar.xz
+    cd ruby-3.3.0
+    ./configure --prefix=/opt/rubies/ruby-3.3.0
     make
     sudo make install

 **Note:** macOS users must [update their OpenSSL CA cert bundle](https://github.com/raggi/openssl-osx-ca#readme) and properly set `./configure --with-opt-dir` to compile against Homebrew's libraries:

-    curl --remote-name https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.0.tar.xz
-    tar -xJvf ruby-3.2.0.tar.xz
-    cd ruby-3.2.0
-    ./configure --prefix="$HOME/.rubies/ruby-3.2.0" --with-opt-dir="$(brew --prefix openssl):$(brew --prefix readline):$(brew --prefix libyaml):$(brew --prefix gdbm):$(brew --prefix libffi)"
+    curl --remote-name https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.tar.xz
+    tar -xJvf ruby-3.3.0.tar.xz
+    cd ruby-3.3.0
+    ./configure --prefix="$HOME/.rubies/ruby-3.3.0" --with-opt-dir="$(brew --prefix openssl):$(brew --prefix readline):$(brew --prefix libyaml):$(brew --prefix gdbm):$(brew --prefix libffi)"
     make -j4
     make install
postmodern commented 10 months ago

I updated the installation instructions based on the most recent macOS specific logic in ruby-install-0.9.3.