Skip to content

Commit bd88cff

Browse files
deivid-rodriguezmatzbot
authored andcommitted
[rubygems/rubygems] Test with Ruby 3.4
ruby/rubygems@23d06195fa
1 parent 3e30897 commit bd88cff

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/bundler/process_lock.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def self.lock(bundle_path = Bundler.bundle_path, &block)
66
lock_file_path = File.join(bundle_path, "bundler.lock")
77
base_lock_file_path = lock_file_path.delete_suffix(".lock")
88

9-
require "fileutils" if Bundler.rubygems.provides?("< 3.5.23")
9+
require "fileutils" if Bundler.rubygems.provides?("< 3.6.0")
1010

1111
begin
1212
SharedHelpers.filesystem_access(lock_file_path, :write) do

lib/bundler/rubygems_ext.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def installed?
442442
end
443443
end
444444

445-
unless Gem.rubygems_version >= Gem::Version.new("3.5.23")
445+
if Gem.rubygems_version < Gem::Version.new("3.6.0")
446446
class Package; end
447447
require "rubygems/package/tar_reader"
448448
require "rubygems/package/tar_reader/entry"

spec/bundler/runtime/setup_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@ def lock_with(ruby_version = nil)
15541554
RUBY
15551555

15561556
expect(last_command.stdboth).not_to include "FAIL"
1557-
expect(err).to include "private method `gem'"
1557+
expect(err).to match(/private method [`']gem'/)
15581558
end
15591559

15601560
it "keeps Kernel#require private" do

0 commit comments

Comments
 (0)