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 7683b7c commit c2e6d3eCopy full SHA for c2e6d3e
script/downgrade_bundler_on_old_rails
@@ -5,7 +5,7 @@
5
set -e
6
source script/functions.sh
7
8
-if ruby -e "exit(ENV['RAILS_VERSION'].to_f < 5)"; then
+if ruby -e "exit(ENV['RAILS_VERSION'].scan(/\d+\.\d+.\d+/)[0].to_f < 5)"; then
9
# On Rails versions less than 5, Bundler 2.0 is not supported
10
echo "Warning dowgrading to older version of Bundler"
11
gem uninstall -aIx bundler
0 commit comments