build/test_basics.rb in passenger-6.0.18 vs build/test_basics.rb in passenger-6.0.19
- old
+ new
@@ -60,12 +60,16 @@
if !PlatformInfo.locate_ruby_tool('bundle') || bundler_too_old?
sh "#{gem_install} bundler"
end
if install_base_deps
- sh "bundle install #{bundle_args} --without="
+ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.0.0') || RUBY_PLATFORM =~ /darwin/
+ sh "bundle install #{bundle_args} --without="
+ else
+ sh "bundle install #{bundle_args} --without future"
+ end
else
- sh "bundle install #{bundle_args} --without base"
+ sh "bundle install #{bundle_args} --without base future"
end
if boolean_option('NODE_MODULES', default)
sh "npm install #{npm_args}"
end