rubygems-update 3.3.11 → 3.3.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/bundler/CHANGELOG.md +8 -0
  4. data/bundler/lib/bundler/build_metadata.rb +2 -2
  5. data/bundler/lib/bundler/current_ruby.rb +1 -0
  6. data/bundler/lib/bundler/definition.rb +1 -18
  7. data/bundler/lib/bundler/dependency.rb +18 -0
  8. data/bundler/lib/bundler/resolver/spec_group.rb +2 -2
  9. data/bundler/lib/bundler/resolver.rb +60 -27
  10. data/bundler/lib/bundler/ruby_version.rb +0 -13
  11. data/bundler/lib/bundler/rubygems_ext.rb +17 -0
  12. data/bundler/lib/bundler/source/metadata.rb +1 -1
  13. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +1 -1
  14. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +32 -26
  15. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +1 -1
  16. data/bundler/lib/bundler/vendor/tsort/lib/tsort.rb +318 -319
  17. data/bundler/lib/bundler/version.rb +1 -1
  18. data/lib/rubygems/installer.rb +0 -2
  19. data/lib/rubygems/optparse/lib/optparse/ac.rb +1 -1
  20. data/lib/rubygems/optparse/lib/optparse/date.rb +1 -1
  21. data/lib/rubygems/optparse/lib/optparse/kwargs.rb +1 -1
  22. data/lib/rubygems/optparse/lib/optparse/shellwords.rb +1 -1
  23. data/lib/rubygems/optparse/lib/optparse/time.rb +1 -1
  24. data/lib/rubygems/optparse/lib/optparse/uri.rb +1 -1
  25. data/lib/rubygems/optparse/lib/optparse.rb +75 -2
  26. data/lib/rubygems/specification.rb +10 -0
  27. data/lib/rubygems.rb +6 -8
  28. data/rubygems-update.gemspec +1 -1
  29. data/test/rubygems/helper.rb +1 -6
  30. data/test/rubygems/test_gem.rb +6 -14
  31. data/test/rubygems/test_gem_ext_cargo_builder/custom_name/Cargo.lock +2 -2
  32. data/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/Cargo.lock +2 -2
  33. data/test/rubygems/test_gem_ext_cargo_builder.rb +1 -3
  34. data/test/rubygems/test_gem_installer.rb +3 -5
  35. metadata +3 -3
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Bundler
4
- VERSION = "2.3.11".freeze
4
+ VERSION = "2.3.12".freeze
5
5
 
6
6
  def self.bundler_major_version
7
7
  @bundler_major_version ||= VERSION.split(".").first.to_i
@@ -285,8 +285,6 @@ class Gem::Installer
285
285
 
286
286
  def spec
287
287
  @package.spec
288
- rescue Gem::Package::Error => e
289
- raise Gem::InstallError, "invalid gem: #{e.message}"
290
288
  end
291
289
 
292
290
  ##
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
- require 'rubygems/optparse/lib/optparse'
2
+ require_relative '../optparse'
3
3
 
4
4
  class Gem::OptionParser::AC < Gem::OptionParser
5
5
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
- require 'rubygems/optparse/lib/optparse'
2
+ require_relative '../optparse'
3
3
  require 'date'
4
4
 
5
5
  Gem::OptionParser.accept(DateTime) do |s,|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/optparse/lib/optparse'
2
+ require_relative '../optparse'
3
3
 
4
4
  class Gem::OptionParser
5
5
  # :call-seq:
@@ -2,6 +2,6 @@
2
2
  # -*- ruby -*-
3
3
 
4
4
  require 'shellwords'
5
- require 'rubygems/optparse/lib/optparse'
5
+ require_relative '../optparse'
6
6
 
7
7
  Gem::OptionParser.accept(Shellwords) {|s,| Shellwords.shellwords(s)}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
- require 'rubygems/optparse/lib/optparse'
2
+ require_relative '../optparse'
3
3
  require 'time'
4
4
 
5
5
  Gem::OptionParser.accept(Time) do |s,|
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
  # -*- ruby -*-
3
3
 
4
- require 'rubygems/optparse/lib/optparse'
4
+ require_relative '../optparse'
5
5
  require 'uri'
6
6
 
7
7
  Gem::OptionParser.accept(URI) {|s,| URI.parse(s) if s}
@@ -50,7 +50,7 @@
50
50
  #
51
51
  # === New to \Gem::OptionParser?
52
52
  #
53
- # See the {Tutorial}[./doc/optparse/tutorial_rdoc.html].
53
+ # See the {Tutorial}[optparse/tutorial.rdoc].
54
54
  #
55
55
  # === Introduction
56
56
  #
@@ -420,7 +420,7 @@
420
420
  # === Further documentation
421
421
  #
422
422
  # The above examples, along with the accompanying
423
- # {Tutorial}[./doc/optparse/tutorial_rdoc.html],
423
+ # {Tutorial}[optparse/tutorial.rdoc],
424
424
  # should be enough to learn how to use this class.
425
425
  # If you have any questions, file a ticket at http://bugs.ruby-lang.org.
426
426
  #
@@ -674,6 +674,29 @@ class Gem::OptionParser
674
674
  end
675
675
  end
676
676
 
677
+ def pretty_print_contents(q) # :nodoc:
678
+ if @block
679
+ q.text ":" + @block.source_location.join(":") + ":"
680
+ first = false
681
+ else
682
+ first = true
683
+ end
684
+ [@short, @long].each do |list|
685
+ list.each do |opt|
686
+ if first
687
+ q.text ":"
688
+ first = false
689
+ end
690
+ q.breakable
691
+ q.text opt
692
+ end
693
+ end
694
+ end
695
+
696
+ def pretty_print(q) # :nodoc:
697
+ q.object_group(self) {pretty_print_contents(q)}
698
+ end
699
+
677
700
  #
678
701
  # Switch that takes no arguments.
679
702
  #
@@ -693,6 +716,10 @@ class Gem::OptionParser
693
716
  def self.pattern
694
717
  Object
695
718
  end
719
+
720
+ def pretty_head # :nodoc:
721
+ "NoArgument"
722
+ end
696
723
  end
697
724
 
698
725
  #
@@ -710,6 +737,10 @@ class Gem::OptionParser
710
737
  end
711
738
  conv_arg(*parse_arg(arg, &method(:raise)))
712
739
  end
740
+
741
+ def pretty_head # :nodoc:
742
+ "Required"
743
+ end
713
744
  end
714
745
 
715
746
  #
@@ -727,6 +758,10 @@ class Gem::OptionParser
727
758
  conv_arg(arg)
728
759
  end
729
760
  end
761
+
762
+ def pretty_head # :nodoc:
763
+ "Optional"
764
+ end
730
765
  end
731
766
 
732
767
  #
@@ -750,6 +785,10 @@ class Gem::OptionParser
750
785
  end
751
786
  val
752
787
  end
788
+
789
+ def pretty_head # :nodoc:
790
+ "Placed"
791
+ end
753
792
  end
754
793
  end
755
794
 
@@ -781,6 +820,17 @@ class Gem::OptionParser
781
820
  @list = []
782
821
  end
783
822
 
823
+ def pretty_print(q) # :nodoc:
824
+ q.group(1, "(", ")") do
825
+ @list.each do |sw|
826
+ next unless Switch === sw
827
+ q.group(1, "(" + sw.pretty_head, ")") do
828
+ sw.pretty_print_contents(q)
829
+ end
830
+ end
831
+ end
832
+ end
833
+
784
834
  #
785
835
  # See Gem::OptionParser.accept.
786
836
  #
@@ -1293,6 +1343,29 @@ XXX
1293
1343
  def help; summarize("#{banner}".sub(/\n?\z/, "\n")) end
1294
1344
  alias to_s help
1295
1345
 
1346
+ def pretty_print(q) # :nodoc:
1347
+ q.object_group(self) do
1348
+ first = true
1349
+ if @stack.size > 2
1350
+ @stack.each_with_index do |s, i|
1351
+ next if i < 2
1352
+ next if s.list.empty?
1353
+ if first
1354
+ first = false
1355
+ q.text ":"
1356
+ end
1357
+ q.breakable
1358
+ s.pretty_print(q)
1359
+ end
1360
+ end
1361
+ end
1362
+ end
1363
+
1364
+ def inspect # :nodoc:
1365
+ require 'pp'
1366
+ pretty_print_inspect
1367
+ end
1368
+
1296
1369
  #
1297
1370
  # Returns option summary list.
1298
1371
  #
@@ -657,6 +657,8 @@ class Gem::Specification < Gem::BasicSpecification
657
657
  @rdoc_options ||= []
658
658
  end
659
659
 
660
+ LATEST_RUBY_WITHOUT_PATCH_VERSIONS = Gem::Version.new("2.1")
661
+
660
662
  ##
661
663
  # The version of Ruby required by this gem. The ruby version can be
662
664
  # specified to the patch-level:
@@ -683,6 +685,14 @@ class Gem::Specification < Gem::BasicSpecification
683
685
 
684
686
  def required_ruby_version=(req)
685
687
  @required_ruby_version = Gem::Requirement.create req
688
+
689
+ @required_ruby_version.requirements.map! do |op, v|
690
+ if v >= LATEST_RUBY_WITHOUT_PATCH_VERSIONS && v.release.segments.size == 4
691
+ [op == "~>" ? "=" : op, Gem::Version.new(v.segments.tap {|s| s.delete_at(3) }.join("."))]
692
+ else
693
+ [op, v]
694
+ end
695
+ end
686
696
  end
687
697
 
688
698
  ##
data/lib/rubygems.rb CHANGED
@@ -8,7 +8,7 @@
8
8
  require 'rbconfig'
9
9
 
10
10
  module Gem
11
- VERSION = "3.3.11".freeze
11
+ VERSION = "3.3.12".freeze
12
12
  end
13
13
 
14
14
  # Must be first since it unloads the prelude from 1.9.2
@@ -48,7 +48,7 @@ require_relative 'rubygems/errors'
48
48
  # special location and loaded on boot.
49
49
  #
50
50
  # For an example plugin, see the {Graph gem}[https://github.com/seattlerb/graph]
51
- # which adds a `gem graph` command.
51
+ # which adds a <tt>gem graph</tt> command.
52
52
  #
53
53
  # == RubyGems Defaults, Packaging
54
54
  #
@@ -581,8 +581,8 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
581
581
  end
582
582
 
583
583
  ##
584
- # The number of paths in the `$LOAD_PATH` from activated gems. Used to
585
- # prioritize `-I` and `ENV['RUBYLIB`]` entries during `require`.
584
+ # The number of paths in the +$LOAD_PATH+ from activated gems. Used to
585
+ # prioritize +-I+ and +ENV['RUBYLIB']+ entries during +require+.
586
586
 
587
587
  def self.activated_gem_paths
588
588
  @activated_gem_paths ||= 0
@@ -864,9 +864,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
864
864
  return @ruby_version if defined? @ruby_version
865
865
  version = RUBY_VERSION.dup
866
866
 
867
- if defined?(RUBY_PATCHLEVEL) && RUBY_PATCHLEVEL != -1
868
- version << ".#{RUBY_PATCHLEVEL}"
869
- elsif defined?(RUBY_DESCRIPTION)
867
+ if defined?(RUBY_DESCRIPTION)
870
868
  if RUBY_ENGINE == "ruby"
871
869
  desc = RUBY_DESCRIPTION[/\Aruby #{Regexp.quote(RUBY_VERSION)}([^ ]+) /, 1]
872
870
  else
@@ -1120,7 +1118,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
1120
1118
 
1121
1119
  ##
1122
1120
  # If the SOURCE_DATE_EPOCH environment variable is set, returns it's value.
1123
- # Otherwise, returns the time that `Gem.source_date_epoch_string` was
1121
+ # Otherwise, returns the time that +Gem.source_date_epoch_string+ was
1124
1122
  # first called in the same format as SOURCE_DATE_EPOCH.
1125
1123
  #
1126
1124
  # NOTE(@duckinator): The implementation is a tad weird because we want to:
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rubygems-update"
5
- s.version = "3.3.11"
5
+ s.version = "3.3.12"
6
6
  s.authors = ["Jim Weirich", "Chad Fowler", "Eric Hodel", "Luis Lavena", "Aaron Patterson", "Samuel Giddins", "André Arko", "Evan Phoenix", "Hiroshi SHIBATA"]
7
7
  s.email = ["", "", "drbrain@segment7.net", "luislavena@gmail.com", "aaron@tenderlovemaking.com", "segiddins@segiddins.me", "andre@arko.net", "evan@phx.io", "hsbt@ruby-lang.org"]
8
8
 
@@ -1098,13 +1098,12 @@ Also, a list:
1098
1098
  Zlib::Deflate.deflate data
1099
1099
  end
1100
1100
 
1101
- def util_set_RUBY_VERSION(version, patchlevel = nil, revision = nil, description = nil, engine = "ruby", engine_version = nil)
1101
+ def util_set_RUBY_VERSION(version, revision = nil, description = nil, engine = "ruby", engine_version = nil)
1102
1102
  if Gem.instance_variables.include? :@ruby_version
1103
1103
  Gem.send :remove_instance_variable, :@ruby_version
1104
1104
  end
1105
1105
 
1106
1106
  @RUBY_VERSION = RUBY_VERSION
1107
- @RUBY_PATCHLEVEL = RUBY_PATCHLEVEL if defined?(RUBY_PATCHLEVEL)
1108
1107
  @RUBY_REVISION = RUBY_REVISION if defined?(RUBY_REVISION)
1109
1108
  @RUBY_DESCRIPTION = RUBY_DESCRIPTION if defined?(RUBY_DESCRIPTION)
1110
1109
  @RUBY_ENGINE = RUBY_ENGINE
@@ -1113,7 +1112,6 @@ Also, a list:
1113
1112
  util_clear_RUBY_VERSION
1114
1113
 
1115
1114
  Object.const_set :RUBY_VERSION, version
1116
- Object.const_set :RUBY_PATCHLEVEL, patchlevel if patchlevel
1117
1115
  Object.const_set :RUBY_REVISION, revision if revision
1118
1116
  Object.const_set :RUBY_DESCRIPTION, description if description
1119
1117
  Object.const_set :RUBY_ENGINE, engine
@@ -1124,8 +1122,6 @@ Also, a list:
1124
1122
  util_clear_RUBY_VERSION
1125
1123
 
1126
1124
  Object.const_set :RUBY_VERSION, @RUBY_VERSION
1127
- Object.const_set :RUBY_PATCHLEVEL, @RUBY_PATCHLEVEL if
1128
- defined?(@RUBY_PATCHLEVEL)
1129
1125
  Object.const_set :RUBY_REVISION, @RUBY_REVISION if
1130
1126
  defined?(@RUBY_REVISION)
1131
1127
  Object.const_set :RUBY_DESCRIPTION, @RUBY_DESCRIPTION if
@@ -1137,7 +1133,6 @@ Also, a list:
1137
1133
 
1138
1134
  def util_clear_RUBY_VERSION
1139
1135
  Object.send :remove_const, :RUBY_VERSION
1140
- Object.send :remove_const, :RUBY_PATCHLEVEL if defined?(RUBY_PATCHLEVEL)
1141
1136
  Object.send :remove_const, :RUBY_REVISION if defined?(RUBY_REVISION)
1142
1137
  Object.send :remove_const, :RUBY_DESCRIPTION if defined?(RUBY_DESCRIPTION)
1143
1138
  Object.send :remove_const, :RUBY_ENGINE
@@ -1114,16 +1114,8 @@ class TestGem < Gem::TestCase
1114
1114
  util_restore_RUBY_VERSION
1115
1115
  end
1116
1116
 
1117
- def test_self_ruby_version_with_release
1118
- util_set_RUBY_VERSION '1.8.6', 287
1119
-
1120
- assert_equal Gem::Version.new('1.8.6.287'), Gem.ruby_version
1121
- ensure
1122
- util_restore_RUBY_VERSION
1123
- end
1124
-
1125
1117
  def test_self_ruby_version_with_non_mri_implementations
1126
- util_set_RUBY_VERSION '2.5.0', 0, 60928, 'jruby 9.2.0.0 (2.5.0) 2018-05-24 81156a8 OpenJDK 64-Bit Server VM 25.171-b11 on 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11 [linux-x86_64]'
1118
+ util_set_RUBY_VERSION '2.5.0', 60928, 'jruby 9.2.0.0 (2.5.0) 2018-05-24 81156a8 OpenJDK 64-Bit Server VM 25.171-b11 on 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11 [linux-x86_64]'
1127
1119
 
1128
1120
  assert_equal Gem::Version.new('2.5.0'), Gem.ruby_version
1129
1121
  ensure
@@ -1131,7 +1123,7 @@ class TestGem < Gem::TestCase
1131
1123
  end
1132
1124
 
1133
1125
  def test_self_ruby_version_with_svn_prerelease
1134
- util_set_RUBY_VERSION '2.6.0', -1, 63539, 'ruby 2.6.0preview2 (2018-05-31 trunk 63539) [x86_64-linux]'
1126
+ util_set_RUBY_VERSION '2.6.0', 63539, 'ruby 2.6.0preview2 (2018-05-31 trunk 63539) [x86_64-linux]'
1135
1127
 
1136
1128
  assert_equal Gem::Version.new('2.6.0.preview2'), Gem.ruby_version
1137
1129
  ensure
@@ -1139,7 +1131,7 @@ class TestGem < Gem::TestCase
1139
1131
  end
1140
1132
 
1141
1133
  def test_self_ruby_version_with_git_prerelease
1142
- util_set_RUBY_VERSION '2.7.0', -1, 'b563439274a402e33541f5695b1bfd4ac1085638', 'ruby 2.7.0preview3 (2019-11-23 master b563439274) [x86_64-linux]'
1134
+ util_set_RUBY_VERSION '2.7.0', 'b563439274a402e33541f5695b1bfd4ac1085638', 'ruby 2.7.0preview3 (2019-11-23 master b563439274) [x86_64-linux]'
1143
1135
 
1144
1136
  assert_equal Gem::Version.new('2.7.0.preview3'), Gem.ruby_version
1145
1137
  ensure
@@ -1147,7 +1139,7 @@ class TestGem < Gem::TestCase
1147
1139
  end
1148
1140
 
1149
1141
  def test_self_ruby_version_with_non_mri_implementations_with_mri_prerelase_compatibility
1150
- util_set_RUBY_VERSION '2.6.0', -1, 63539, 'weirdjruby 9.2.0.0 (2.6.0preview2) 2018-05-24 81156a8 OpenJDK 64-Bit Server VM 25.171-b11 on 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11 [linux-x86_64]', 'weirdjruby', '9.2.0.0'
1142
+ util_set_RUBY_VERSION '2.6.0', 63539, 'weirdjruby 9.2.0.0 (2.6.0preview2) 2018-05-24 81156a8 OpenJDK 64-Bit Server VM 25.171-b11 on 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11 [linux-x86_64]', 'weirdjruby', '9.2.0.0'
1151
1143
 
1152
1144
  assert_equal Gem::Version.new('2.6.0.preview2'), Gem.ruby_version
1153
1145
  ensure
@@ -1155,7 +1147,7 @@ class TestGem < Gem::TestCase
1155
1147
  end
1156
1148
 
1157
1149
  def test_self_ruby_version_with_svn_trunk
1158
- util_set_RUBY_VERSION '1.9.2', -1, 23493, 'ruby 1.9.2dev (2009-05-20 trunk 23493) [x86_64-linux]'
1150
+ util_set_RUBY_VERSION '1.9.2', 23493, 'ruby 1.9.2dev (2009-05-20 trunk 23493) [x86_64-linux]'
1159
1151
 
1160
1152
  assert_equal Gem::Version.new('1.9.2.dev'), Gem.ruby_version
1161
1153
  ensure
@@ -1163,7 +1155,7 @@ class TestGem < Gem::TestCase
1163
1155
  end
1164
1156
 
1165
1157
  def test_self_ruby_version_with_git_master
1166
- util_set_RUBY_VERSION '2.7.0', -1, '5de284ec78220e75643f89b454ce999da0c1c195', 'ruby 2.7.0dev (2019-12-23T01:37:30Z master 5de284ec78) [x86_64-linux]'
1158
+ util_set_RUBY_VERSION '2.7.0', '5de284ec78220e75643f89b454ce999da0c1c195', 'ruby 2.7.0dev (2019-12-23T01:37:30Z master 5de284ec78) [x86_64-linux]'
1167
1159
 
1168
1160
  assert_equal Gem::Version.new('2.7.0.dev'), Gem.ruby_version
1169
1161
  ensure
@@ -271,9 +271,9 @@ dependencies = [
271
271
 
272
272
  [[package]]
273
273
  name = "regex"
274
- version = "1.5.4"
274
+ version = "1.5.5"
275
275
  source = "registry+https://github.com/rust-lang/crates.io-index"
276
- checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461"
276
+ checksum = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286"
277
277
  dependencies = [
278
278
  "aho-corasick",
279
279
  "memchr",
@@ -264,9 +264,9 @@ dependencies = [
264
264
 
265
265
  [[package]]
266
266
  name = "regex"
267
- version = "1.5.4"
267
+ version = "1.5.5"
268
268
  source = "registry+https://github.com/rust-lang/crates.io-index"
269
- checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461"
269
+ checksum = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286"
270
270
  dependencies = [
271
271
  "aho-corasick",
272
272
  "memchr",
@@ -4,7 +4,7 @@ require 'rubygems/ext'
4
4
 
5
5
  class TestGemExtCargoBuilder < Gem::TestCase
6
6
  def setup
7
- @orig_env = ENV.to_hash
7
+ super
8
8
 
9
9
  @rust_envs = {
10
10
  'CARGO_HOME' => File.join(@orig_env['HOME'], '.cargo'),
@@ -13,8 +13,6 @@ class TestGemExtCargoBuilder < Gem::TestCase
13
13
 
14
14
  system(@rust_envs, 'cargo', '-V', out: IO::NULL, err: [:child, :out])
15
15
  pend 'cargo not present' unless $?.success?
16
-
17
- super
18
16
  end
19
17
 
20
18
  def setup_rust_gem(name)
@@ -1221,15 +1221,13 @@ gem 'other', version
1221
1221
  def test_install_missing_dirs
1222
1222
  installer = setup_base_installer
1223
1223
 
1224
- FileUtils.rm_f File.join(Gem.dir, 'cache')
1225
- FileUtils.rm_f File.join(Gem.dir, 'doc')
1226
- FileUtils.rm_f File.join(Gem.dir, 'specifications')
1224
+ FileUtils.rm_rf File.join(Gem.dir, 'doc')
1225
+ FileUtils.rm_rf File.join(Gem.dir, 'specifications')
1227
1226
 
1228
1227
  use_ui @ui do
1229
1228
  installer.install
1230
1229
  end
1231
1230
 
1232
- assert_directory_exists File.join(Gem.dir, 'cache')
1233
1231
  assert_directory_exists File.join(Gem.dir, 'doc')
1234
1232
  assert_directory_exists File.join(Gem.dir, 'specifications')
1235
1233
 
@@ -2237,7 +2235,7 @@ gem 'other', version
2237
2235
  def test_default_gem_without_wrappers
2238
2236
  installer = setup_base_installer
2239
2237
 
2240
- FileUtils.rm_f File.join(Gem.dir, 'specifications')
2238
+ FileUtils.rm_rf File.join(Gem.default_dir, 'specifications')
2241
2239
 
2242
2240
  installer.wrappers = false
2243
2241
  installer.options[:install_as_default] = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-update
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.11
4
+ version: 3.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Weirich
@@ -16,7 +16,7 @@ authors:
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
- date: 2022-04-07 00:00:00.000000000 Z
19
+ date: 2022-04-20 00:00:00.000000000 Z
20
20
  dependencies: []
21
21
  description: |-
22
22
  A package (also known as a library) contains a set of functionality
@@ -817,7 +817,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
817
817
  - !ruby/object:Gem::Version
818
818
  version: '0'
819
819
  requirements: []
820
- rubygems_version: 3.3.11
820
+ rubygems_version: 3.3.12
821
821
  signing_key:
822
822
  specification_version: 4
823
823
  summary: RubyGems is a package management framework for Ruby.