From 7202f862ab423bb0f45ebb62eeccc6fd520f435d Mon Sep 17 00:00:00 2001 From: nagachika Date: Sun, 1 May 2022 18:44:55 +0900 Subject: merge revision(s) 1ff174bfd17f80433f2cb9888eafd1c297efd2a5: [rubygems/rubygems] Fix a test for `bin/bundle update --bundler` to pass on ruby/ruby. Consider the case that the latest Bundler version on RubyGems is higher than the `system_bundler_version` (= `Bundler::VERSION`) in `make test-bundler` on ruby/ruby. See . https://github.com/rubygems/rubygems/commit/bfa2f72cfa --- spec/bundler/commands/binstubs_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- spec/bundler/commands/binstubs_spec.rb | 5 ++++- tool/bundler/rubocop_gems.rb.lock | 1 + tool/bundler/standard_gems.rb.lock | 1 + version.h | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/spec/bundler/commands/binstubs_spec.rb b/spec/bundler/commands/binstubs_spec.rb index 198226207b..2634f43417 100644 --- a/spec/bundler/commands/binstubs_spec.rb +++ b/spec/bundler/commands/binstubs_spec.rb @@ -226,7 +226,10 @@ RSpec.describe "bundle binstubs " do it "calls through to the latest bundler version" do sys_exec "bin/bundle update --bundler", :env => { "DEBUG" => "1" } - expect(out).to include %(Using bundler #{system_bundler_version}\n) + using_bundler_line = /Using bundler ([\w\.]+)\n/.match(out) + expect(using_bundler_line).to_not be_nil + latest_version = using_bundler_line[1] + expect(Gem::Version.new(latest_version)).to be >= Gem::Version.new(system_bundler_version) end it "calls through to the explicit bundler version" do diff --git a/tool/bundler/rubocop_gems.rb.lock b/tool/bundler/rubocop_gems.rb.lock index 2d0439f0c3..bcf1972f8b 100644 --- a/tool/bundler/rubocop_gems.rb.lock +++ b/tool/bundler/rubocop_gems.rb.lock @@ -49,6 +49,7 @@ PLATFORMS universal-java-11 x86_64-darwin-19 x86_64-darwin-20 + x86_64-darwin-21 x86_64-linux DEPENDENCIES diff --git a/tool/bundler/standard_gems.rb.lock b/tool/bundler/standard_gems.rb.lock index b29da06064..0ae48a1974 100644 --- a/tool/bundler/standard_gems.rb.lock +++ b/tool/bundler/standard_gems.rb.lock @@ -55,6 +55,7 @@ PLATFORMS universal-java-11 x86_64-darwin-19 x86_64-darwin-20 + x86_64-darwin-21 x86_64-linux DEPENDENCIES diff --git a/version.h b/version.h index 01fe9a2738..431359075a 100644 --- a/version.h +++ b/version.h @@ -11,7 +11,7 @@ # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR #define RUBY_VERSION_TEENY 3 #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR -#define RUBY_PATCHLEVEL 24 +#define RUBY_PATCHLEVEL 25 #define RUBY_RELEASE_YEAR 2022 #define RUBY_RELEASE_MONTH 5 -- cgit v1.2.3