[rubygems/rubygems] Test with Ruby 3.4

https://github.com/rubygems/rubygems/commit/23d06195fa
This commit is contained in:
David Rodríguez 2024-11-11 19:09:29 +01:00 committed by git
parent 3e308971ef
commit bd88cffd8c
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ module Bundler
lock_file_path = File.join(bundle_path, "bundler.lock")
base_lock_file_path = lock_file_path.delete_suffix(".lock")
require "fileutils" if Bundler.rubygems.provides?("< 3.5.23")
require "fileutils" if Bundler.rubygems.provides?("< 3.6.0")
begin
SharedHelpers.filesystem_access(lock_file_path, :write) do

View File

@ -442,7 +442,7 @@ module Gem
end
end
unless Gem.rubygems_version >= Gem::Version.new("3.5.23")
if Gem.rubygems_version < Gem::Version.new("3.6.0")
class Package; end
require "rubygems/package/tar_reader"
require "rubygems/package/tar_reader/entry"

View File

@ -1554,7 +1554,7 @@ end
RUBY
expect(last_command.stdboth).not_to include "FAIL"
expect(err).to include "private method `gem'"
expect(err).to match(/private method [`']gem'/)
end
it "keeps Kernel#require private" do