We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10ec81b commit decfd72Copy full SHA for decfd72
script/update_rubygems_and_install_bundler
@@ -11,9 +11,21 @@ function is_ruby_3_plus {
11
fi
12
}
13
14
-if is_ruby_3_plus; then
+function is_ruby_3_1_plus {
15
+ if ruby -e "exit(RUBY_VERSION.to_f >= 3.1)"; then
16
+ return 0
17
+ else
18
+ return 1
19
+ fi
20
+}
21
+
22
23
+if is_ruby_3_1_plus; then
24
gem update --no-document --system
25
gem install --no-document bundler
26
+elif is_ruby_3_plus; then
27
+ gem update --no-document --system '3.5.23'
28
+ gem install --no-document bundler
29
else
30
gem update --no-document --system '3.4.22'
31
0 commit comments