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 +4 -4
- data/CHANGELOG.md +6 -0
- data/bundler/CHANGELOG.md +7 -0
- data/bundler/lib/bundler/build_metadata.rb +2 -2
- data/bundler/lib/bundler/settings.rb +14 -1
- data/bundler/lib/bundler/source/rubygems.rb +0 -4
- data/bundler/lib/bundler/version.rb +1 -1
- data/lib/rubygems.rb +1 -1
- data/lib/rubygems/command.rb +2 -0
- data/lib/rubygems/commands/build_command.rb +1 -1
- data/rubygems-update.gemspec +1 -1
- data/test/rubygems/test_gem_command.rb +12 -0
- data/test/rubygems/test_gem_commands_help_command.rb +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba52b4a462e0da9cf903bc69e61096bd08a3281bd6d174cc35abf975099eb737
|
|
4
|
+
data.tar.gz: 791cfa5488c4d56d48b60bc372c16be5d426d53bbb603c8b95fbaf20bbc4b0c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 89c0efcd3e1f639edfac4af460a7bbb891f13cae5b1dc5c58829e10f0a64d9fe04c0d0e58c108b6dbff8b7f7e7f77d96edbe993dfbb6086ae998fb68b9b05793
|
|
7
|
+
data.tar.gz: a01059a530f414a334a8d16af04d8507ca6ca10891e869b395795bacb5748822b44e98eb4491f3f98dc781d72b9c4a228700eb1ee8ff18fdeb1a50aa14482114
|
data/CHANGELOG.md
CHANGED
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-
|
|
8
|
-
@git_commit_sha = "
|
|
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
|
|
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
|
|
data/lib/rubygems.rb
CHANGED
data/lib/rubygems/command.rb
CHANGED
|
@@ -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', '
|
|
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
|
data/rubygems-update.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = "rubygems-update"
|
|
5
|
-
s.version = "3.2.
|
|
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.
|
|
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-
|
|
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.
|
|
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.
|