rubygems-update 3.2.18 → 3.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66be509531c57a4b354ae2bc3659fbe4f9dc375489b56ce77c6a5b5e7f45fd00
4
- data.tar.gz: d2e4d40b260adf5a6e858e98ec64ef5cc73c6d71080fcc73d5af87c2dbe63ec5
3
+ metadata.gz: ba52b4a462e0da9cf903bc69e61096bd08a3281bd6d174cc35abf975099eb737
4
+ data.tar.gz: 791cfa5488c4d56d48b60bc372c16be5d426d53bbb603c8b95fbaf20bbc4b0c8
5
5
  SHA512:
6
- metadata.gz: 6218e723da3fc5e75b9e6a4b5429184df3c27950a21c0722a51ade130de5df69341195404bf8b3ea242471d62fc23c8cc82f19cd4b5298b18ee3c2a7c6385024
7
- data.tar.gz: f9abbc6dc9d704deeba13c969817a502a34aa564408ed65c143f5f1781c5edab1721be70c4168e5d25a512a6664d14eb128f817e18ffb6c880a37e9c870e961d
6
+ metadata.gz: 89c0efcd3e1f639edfac4af460a7bbb891f13cae5b1dc5c58829e10f0a64d9fe04c0d0e58c108b6dbff8b7f7e7f77d96edbe993dfbb6086ae998fb68b9b05793
7
+ data.tar.gz: a01059a530f414a334a8d16af04d8507ca6ca10891e869b395795bacb5748822b44e98eb4491f3f98dc781d72b9c4a228700eb1ee8ff18fdeb1a50aa14482114
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 3.2.19 / 2021-05-31
2
+
3
+ ## Enhancements:
4
+
5
+ * Fix `gem help build` output format. Pull request #4613 by tnir
6
+
1
7
  # 3.2.18 / 2021-05-25
2
8
 
3
9
  ## Enhancements:
data/bundler/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # 2.2.19 (May 31, 2021)
2
+
3
+ ## Bug fixes:
4
+
5
+ - Restore support for configuration keys with dashes [#4582](https://github.com/rubygems/rubygems/pull/4582)
6
+ - Fix some cached gems being unintentionally ignored when using rubygems 3.2.18 [#4623](https://github.com/rubygems/rubygems/pull/4623)
7
+
1
8
  # 2.2.18 (May 25, 2021)
2
9
 
3
10
  ## Security fixes:
@@ -4,8 +4,8 @@ module Bundler
4
4
  # Represents metadata from when the Bundler gem was built.
5
5
  module BuildMetadata
6
6
  # begin ivars
7
- @built_at = "2021-05-25".freeze
8
- @git_commit_sha = "6a9e89bacd".freeze
7
+ @built_at = "2021-05-31".freeze
8
+ @git_commit_sha = "43f80b12c0".freeze
9
9
  @release = true
10
10
  # end ivars
11
11
 
@@ -442,7 +442,20 @@ module Bundler
442
442
  valid_file = file.exist? && !file.size.zero?
443
443
  return {} unless valid_file
444
444
  require_relative "yaml_serializer"
445
- YAMLSerializer.load file.read
445
+ YAMLSerializer.load(file.read).inject({}) do |config, (k, v)|
446
+ new_k = k
447
+
448
+ if k.include?("-")
449
+ Bundler.ui.warn "Your #{file} config includes `#{k}`, which contains the dash character (`-`).\n" \
450
+ "This is deprecated, because configuration through `ENV` should be possible, but `ENV` keys cannot include dashes.\n" \
451
+ "Please edit #{file} and replace any dashes in configuration keys with a triple underscore (`___`)."
452
+
453
+ new_k = k.gsub("-", "___")
454
+ end
455
+
456
+ config[new_k] = v
457
+ config
458
+ end
446
459
  end
447
460
  end
448
461
 
@@ -398,10 +398,6 @@ module Bundler
398
398
  next if gemfile =~ /^bundler\-[\d\.]+?\.gem/
399
399
  s ||= Bundler.rubygems.spec_from_gem(gemfile)
400
400
  s.source = self
401
- if Bundler.rubygems.spec_missing_extensions?(s, false)
402
- Bundler.ui.debug "Source #{self} is ignoring #{s} because it is missing extensions"
403
- next
404
- end
405
401
  idx << s
406
402
  end
407
403
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Bundler
4
- VERSION = "2.2.18".freeze
4
+ VERSION = "2.2.19".freeze
5
5
 
6
6
  def self.bundler_major_version
7
7
  @bundler_major_version ||= VERSION.split(".").first.to_i
data/lib/rubygems.rb CHANGED
@@ -8,7 +8,7 @@
8
8
  require 'rbconfig'
9
9
 
10
10
  module Gem
11
- VERSION = "3.2.18".freeze
11
+ VERSION = "3.2.19".freeze
12
12
  end
13
13
 
14
14
  # Must be first since it unloads the prelude from 1.9.2
@@ -355,6 +355,8 @@ class Gem::Command
355
355
  def add_option(*opts, &handler) # :yields: value, options
356
356
  group_name = Symbol === opts.first ? opts.shift : :options
357
357
 
358
+ raise "Do not pass an empty string in opts" if opts.include?("")
359
+
358
360
  @option_groups[group_name] << [opts, handler]
359
361
  end
360
362
 
@@ -23,7 +23,7 @@ class Gem::Commands::BuildCommand < Gem::Command
23
23
  options[:output] = value
24
24
  end
25
25
 
26
- add_option '-C PATH', '', 'Run as if gem build was started in <PATH> instead of the current working directory.' do |value, options|
26
+ add_option '-C PATH', 'Run as if gem build was started in <PATH> instead of the current working directory.' do |value, options|
27
27
  options[:build_path] = value
28
28
  end
29
29
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rubygems-update"
5
- s.version = "3.2.18"
5
+ s.version = "3.2.19"
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
 
@@ -189,6 +189,18 @@ class TestGemCommand < Gem::TestCase
189
189
  assert_match %r{Usage: gem doit}, @ui.output
190
190
  end
191
191
 
192
+ def test_add_option
193
+ assert_nothing_raised RuntimeError do
194
+ @cmd.add_option('--force', 'skip validation of the spec') {|v,o| }
195
+ end
196
+ end
197
+
198
+ def test_add_option_with_empty
199
+ assert_raise RuntimeError, "Do not pass an empty string in opts" do
200
+ @cmd.add_option('', 'skip validation of the spec') {|v,o| }
201
+ end
202
+ end
203
+
192
204
  def test_option_recognition
193
205
  @cmd.add_option('-h', '--help [COMMAND]', 'Get help on COMMAND') do |value, options|
194
206
  options[:help] = true
@@ -35,6 +35,13 @@ class TestGemCommandsHelpCommand < Gem::TestCase
35
35
  end
36
36
  end
37
37
 
38
+ def test_gem_help_build
39
+ util_gem 'build' do |out, err|
40
+ assert_match(/-C PATH *Run as if gem build was started in <PATH>/, out)
41
+ assert_equal '', err
42
+ end
43
+ end
44
+
38
45
  def test_gem_help_commands
39
46
  mgr = Gem::CommandManager.new
40
47
 
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.2.18
4
+ version: 3.2.19
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: 2021-05-25 00:00:00.000000000 Z
19
+ date: 2021-05-31 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
@@ -771,7 +771,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
771
771
  - !ruby/object:Gem::Version
772
772
  version: '0'
773
773
  requirements: []
774
- rubygems_version: 3.2.18
774
+ rubygems_version: 3.2.19
775
775
  signing_key:
776
776
  specification_version: 4
777
777
  summary: RubyGems is a package management framework for Ruby.