Skip to content

Commit ce019c9

Browse files
Stop using Bundler::RubyVersion#to_gem_version_with_patchlevel (#41)
This method reports the patch level of Ruby, which is no longer useful since Ruby 2.0.0, and was causing Bundler to show some strange error messages about Ruby version with 4 segments, like 3.1.1.0. The method was removed too aggressively from Bundler without knowing that it was actually being used by bootboot. Depending on how widely it's actually used, we might restore it with a deprecation, but this commit makes bootboot use a better method.
1 parent 4f64231 commit ce019c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bootboot/ruby_source.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def specs
2626
# version is present, as well as when updating the lockfile itself.
2727
ruby_version = Bundler::Definition.build(Bootboot::GEMFILE, nil, false).ruby_version
2828
ruby_version ||= Bundler::RubyVersion.system
29-
ruby_spec = Gem::Specification.new(ruby_spec_name, ruby_version.to_gem_version_with_patchlevel)
29+
ruby_spec = Gem::Specification.new(ruby_spec_name, ruby_version.gem_version)
3030
ruby_spec.source = self
3131
idx << ruby_spec
3232
end

0 commit comments

Comments
 (0)