Skip to content

Commit

Permalink
fix: pin bundler version on ruby < 3
Browse files Browse the repository at this point in the history
  • Loading branch information
g-arjones committed Jan 4, 2024
1 parent 47e93f1 commit ebd36d9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion bin/autoproj_bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,11 @@ require 'bundler/setup'
end

def self.default_bundler_version
"2.3.6" if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.6.0")
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.6.0")
"2.3.6"
elsif Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.0.0")
"2.4.22"
end
end

def save_config
Expand Down
6 changes: 5 additions & 1 deletion bin/autoproj_install
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,11 @@ require 'bundler/setup'
end

def self.default_bundler_version
"2.3.6" if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.6.0")
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.6.0")
"2.3.6"
elsif Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.0.0")
"2.4.22"
end
end

def save_config
Expand Down
6 changes: 5 additions & 1 deletion lib/autoproj/ops/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,11 @@ def load_config
end

def self.default_bundler_version
"2.3.6" if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.6.0")
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.6.0")
"2.3.6"
elsif Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.0.0")
"2.4.22"
end
end

def save_config
Expand Down

0 comments on commit ebd36d9

Please sign in to comment.