Saturday, January 02, 2021

lang/ruby: mention ruby-shims in MESSAGE

Installing ruby-shims gives a more user-friendly default experience
since it will automatically make /usr/local/bin/ruby and friends
work with whichever ruby package is installed, without having to use
symlinks.


diff --git lang/ruby/2.6/pkg/MESSAGE-main lang/ruby/2.6/pkg/MESSAGE-main
index 46eef2f38aa..673902dad71 100644
--- lang/ruby/2.6/pkg/MESSAGE-main
+++ lang/ruby/2.6/pkg/MESSAGE-main
@@ -1,5 +1,6 @@
If you want to use this package as your default system ruby, as root
create symbolic links like so (overwriting any previous default):
+
ln -sf ${PREFIX}/bin/ruby26 ${PREFIX}/bin/ruby
ln -sf ${PREFIX}/bin/erb26 ${PREFIX}/bin/erb
ln -sf ${PREFIX}/bin/irb26 ${PREFIX}/bin/irb
@@ -9,3 +10,6 @@ create symbolic links like so (overwriting any previous default):
ln -sf ${PREFIX}/bin/gem26 ${PREFIX}/bin/gem
ln -sf ${PREFIX}/bin/bundle26 ${PREFIX}/bin/bundle
ln -sf ${PREFIX}/bin/bundler26 ${PREFIX}/bin/bundler
+
+The ruby-shims package is also available to automatically select an
+appropriate Ruby version per-project directory or system-wide.
diff --git lang/ruby/2.7/pkg/MESSAGE-main lang/ruby/2.7/pkg/MESSAGE-main
index d7687ea6b65..42897ddacc5 100644
--- lang/ruby/2.7/pkg/MESSAGE-main
+++ lang/ruby/2.7/pkg/MESSAGE-main
@@ -1,5 +1,6 @@
If you want to use this package as your default system ruby, as root
create symbolic links like so (overwriting any previous default):
+
ln -sf ${PREFIX}/bin/ruby27 ${PREFIX}/bin/ruby
ln -sf ${PREFIX}/bin/erb27 ${PREFIX}/bin/erb
ln -sf ${PREFIX}/bin/irb27 ${PREFIX}/bin/irb
@@ -12,3 +13,6 @@ create symbolic links like so (overwriting any previous default):
ln -sf ${PREFIX}/bin/racc27 ${PREFIX}/bin/racc
ln -sf ${PREFIX}/bin/racc2y27 ${PREFIX}/bin/racc2y
ln -sf ${PREFIX}/bin/y2racc27 ${PREFIX}/bin/y2racc
+
+The ruby-shims package is also available to automatically select an
+appropriate Ruby version per-project directory or system-wide.
diff --git lang/ruby/3.0/pkg/MESSAGE-main lang/ruby/3.0/pkg/MESSAGE-main
index 8ec5c9814ce..69a3d56627c 100644
--- lang/ruby/3.0/pkg/MESSAGE-main
+++ lang/ruby/3.0/pkg/MESSAGE-main
@@ -1,5 +1,6 @@
If you want to use this package as your default system ruby, as root
create symbolic links like so (overwriting any previous default):
+
ln -sf ${PREFIX}/bin/ruby30 ${PREFIX}/bin/ruby
ln -sf ${PREFIX}/bin/erb30 ${PREFIX}/bin/erb
ln -sf ${PREFIX}/bin/irb30 ${PREFIX}/bin/irb
@@ -12,3 +13,6 @@ create symbolic links like so (overwriting any previous default):
ln -sf ${PREFIX}/bin/bundle30 ${PREFIX}/bin/bundle
ln -sf ${PREFIX}/bin/bundler30 ${PREFIX}/bin/bundler
ln -sf ${PREFIX}/bin/typeprof30 ${PREFIX}/bin/typeprof
+
+The ruby-shims package is also available to automatically select an
+appropriate Ruby version per-project directory or system-wide.

No comments:

Post a Comment