[rubygems/rubygems] Test with Ruby 3.4
https://github.com/rubygems/rubygems/commit/23d06195fa
This commit is contained in:
parent
3e308971ef
commit
bd88cffd8c
@ -6,7 +6,7 @@ module Bundler
|
|||||||
lock_file_path = File.join(bundle_path, "bundler.lock")
|
lock_file_path = File.join(bundle_path, "bundler.lock")
|
||||||
base_lock_file_path = lock_file_path.delete_suffix(".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
|
begin
|
||||||
SharedHelpers.filesystem_access(lock_file_path, :write) do
|
SharedHelpers.filesystem_access(lock_file_path, :write) do
|
||||||
|
@ -442,7 +442,7 @@ module Gem
|
|||||||
end
|
end
|
||||||
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
|
class Package; end
|
||||||
require "rubygems/package/tar_reader"
|
require "rubygems/package/tar_reader"
|
||||||
require "rubygems/package/tar_reader/entry"
|
require "rubygems/package/tar_reader/entry"
|
||||||
|
@ -1554,7 +1554,7 @@ end
|
|||||||
RUBY
|
RUBY
|
||||||
|
|
||||||
expect(last_command.stdboth).not_to include "FAIL"
|
expect(last_command.stdboth).not_to include "FAIL"
|
||||||
expect(err).to include "private method `gem'"
|
expect(err).to match(/private method [`']gem'/)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "keeps Kernel#require private" do
|
it "keeps Kernel#require private" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user