rubygems-update 3.2.27 → 3.2.28

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ce1a1e494194a4df6708ff29699aa24f85cae78793b58ea82a9432d80fc7d58
4
- data.tar.gz: 5a922a7db514f0b88f2b93aea3c830086362ee161f85146dd3f2fd7113e4c405
3
+ metadata.gz: ef3b3d5da1e7cb11b95714c00fa4e0b0026112870503550c694d5c502dab5339
4
+ data.tar.gz: 7ec21881232ed07b1061a4570f5af5e80246f74cd20e8a27592f45c609c70f8d
5
5
  SHA512:
6
- metadata.gz: 49129d596674dd6f3ed1e5192ff959bcaee181eb9940871b75728d29f4bc09c18ab8edcccdd31de259048e3c58fec08738f7c065d345b701863ea4a5772ef980
7
- data.tar.gz: c303eb6c77393bd3770e962b2bd3af13725af4626b952b2ea7ad012f85dd96879615306727ed1882935476087bd7f4222692dc602b9e891b9b66b9bd8d6fc14c
6
+ metadata.gz: 4806038e2893fd4957e02b09f6ed6289ec5759142c8ba3329500b5423aa4d1e6dddeb3f2f218667bfd17791b886f0a7d436b465795368217d9ee7e94d0e4479f
7
+ data.tar.gz: 680548baf911d819513df953d56005d4bf59f903d5a37dc0fb24eb057f5e0cf7bcf77cad9821efb9962f95c13353f0858538ddc1ebc5844f31f8237d83e48c4b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ # 3.2.28 / 2021-09-23
2
+
3
+ ## Enhancements:
4
+
5
+ * Support MINGW-UCRT. Pull request #4925 by hsbt
6
+ * Only check if descriptions *start with* FIXME/TODO. Pull request #4841
7
+ by duckinator
8
+ * Avoid loading `uri` unnecessarily when activating gems. Pull request
9
+ #4897 by deivid-rodriguez
10
+
11
+ ## Bug fixes:
12
+
13
+ * Fix redacted credentials being sent to gemserver. Pull request #4919 by
14
+ jdliss
15
+
1
16
  # 3.2.27 / 2021-09-03
2
17
 
3
18
  ## Enhancements:
data/bundler/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # 2.2.28 (September 23, 2021)
2
+
3
+ ## Enhancements:
4
+
5
+ - Use example.com in new gem template, since it will never have a potentially dangerous backing website [#4918](https://github.com/rubygems/rubygems/pull/4918)
6
+ - Deprecate `--install` flag to `bundle remove` and trigger install by default [#4891](https://github.com/rubygems/rubygems/pull/4891)
7
+
1
8
  # 2.2.27 (September 3, 2021)
2
9
 
3
10
  ## Enhancements:
@@ -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-09-03".freeze
8
- @git_commit_sha = "b737e1c930".freeze
7
+ @built_at = "2021-09-23".freeze
8
+ @git_commit_sha = "99b72cbd55".freeze
9
9
  @release = true
10
10
  # end ivars
11
11
 
@@ -11,8 +11,7 @@ module Bundler
11
11
  raise InvalidOption, "Please specify gems to remove." if @gems.empty?
12
12
 
13
13
  Injector.remove(@gems, {})
14
-
15
- Installer.install(Bundler.root, Bundler.definition) if @options["install"]
14
+ Installer.install(Bundler.root, Bundler.definition)
16
15
  end
17
16
  end
18
17
  end
@@ -184,6 +184,7 @@ module Bundler
184
184
  method_option "install", :type => :boolean, :banner =>
185
185
  "Runs 'bundle install' after removing the gems from the Gemfile"
186
186
  def remove(*gems)
187
+ SharedHelpers.major_deprecation(2, "The `--install` flag has been deprecated. `bundle install` is triggered by default.") if ARGV.include?("--install")
187
188
  require_relative "cli/remove"
188
189
  Remove.new(gems, options).run
189
190
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  <%- end -%>
17
17
  spec.required_ruby_version = ">= <%= config[:required_ruby_version] %>"
18
18
 
19
- spec.metadata["allowed_push_host"] = "TODO: Set to 'https://mygemserver.com'"
19
+ spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
20
20
 
21
21
  spec.metadata["homepage_uri"] = spec.homepage
22
22
  spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Bundler
4
- VERSION = "2.2.27".freeze
4
+ VERSION = "2.2.28".freeze
5
5
 
6
6
  def self.bundler_major_version
7
7
  @bundler_major_version ||= VERSION.split(".").first.to_i
@@ -100,6 +100,7 @@ class Gem::Platform
100
100
  when /^dotnet([\d.]*)/ then [ 'dotnet', $1 ]
101
101
  when /linux-?((?!gnu)\w+)?/ then [ 'linux', $1 ]
102
102
  when /mingw32/ then [ 'mingw32', nil ]
103
+ when /mingw-?(\w+)?/ then [ 'mingw', $1 ]
103
104
  when /(mswin\d+)(\_(\d+))?/ then
104
105
  os, version = $1, $3
105
106
  @cpu = 'x86' if @cpu.nil? and os =~ /32$/
@@ -20,7 +20,6 @@ class Gem::Resolver::Set
20
20
  attr_accessor :prerelease
21
21
 
22
22
  def initialize # :nodoc:
23
- require 'uri'
24
23
  @prerelease = false
25
24
  @remote = true
26
25
  @errors = []
@@ -381,7 +381,7 @@ http://spdx.org/licenses or '#{Gem::Licenses::NONSTANDARD}' for a nonstandard li
381
381
  end
382
382
 
383
383
  LAZY = '"FIxxxXME" or "TOxxxDO"'.gsub(/xxx/, '')
384
- LAZY_PATTERN = /FI XME|TO DO/x.freeze
384
+ LAZY_PATTERN = /^FI XME|^TO DO/x.freeze
385
385
  HOMEPAGE_URI_PATTERN = /\A[a-z][a-z\d+.-]*:/i.freeze
386
386
 
387
387
  def validate_lazy_metadata
data/lib/rubygems/uri.rb CHANGED
@@ -43,6 +43,11 @@ class Gem::Uri
43
43
  @parsed_uri.respond_to?(method_name, include_private) || super
44
44
  end
45
45
 
46
+ protected
47
+
48
+ # Add a protected reader for the cloned instance to access the original object's parsed uri
49
+ attr_reader :parsed_uri
50
+
46
51
  private
47
52
 
48
53
  ##
@@ -99,4 +104,8 @@ class Gem::Uri
99
104
  def token?
100
105
  !user.nil? && password.nil?
101
106
  end
107
+
108
+ def initialize_copy(original)
109
+ @parsed_uri = original.parsed_uri.clone
110
+ end
102
111
  end
data/lib/rubygems.rb CHANGED
@@ -8,7 +8,7 @@
8
8
  require 'rbconfig'
9
9
 
10
10
  module Gem
11
- VERSION = "3.2.27".freeze
11
+ VERSION = "3.2.28".freeze
12
12
  end
13
13
 
14
14
  # Must be first since it unloads the prelude from 1.9.2
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rubygems-update"
5
- s.version = "3.2.27"
5
+ s.version = "3.2.28"
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
 
@@ -122,6 +122,7 @@ class TestGemPlatform < Gem::TestCase
122
122
  'i586-linux-gnu' => ['x86', 'linux', nil],
123
123
  'i386-linux-gnu' => ['x86', 'linux', nil],
124
124
  'i386-mingw32' => ['x86', 'mingw32', nil],
125
+ 'x64-mingw-ucrt' => ['x64', 'mingw', 'ucrt'],
125
126
  'i386-mswin32' => ['x86', 'mswin32', nil],
126
127
  'i386-mswin32_80' => ['x86', 'mswin32', '80'],
127
128
  'i386-mswin32-80' => ['x86', 'mswin32', '80'],
@@ -185,7 +185,7 @@ class TestGemRequest < Gem::TestCase
185
185
  end
186
186
 
187
187
  def test_fetch
188
- uri = URI.parse "#{@gem_repo}/specs.#{Gem.marshal_version}"
188
+ uri = Gem::Uri.new(URI.parse "#{@gem_repo}/specs.#{Gem.marshal_version}")
189
189
  response = util_stub_net_http(:body => :junk, :code => 200) do
190
190
  @request = make_request(uri, Net::HTTP::Get, nil, nil)
191
191
 
@@ -198,7 +198,7 @@ class TestGemRequest < Gem::TestCase
198
198
 
199
199
  def test_fetch_basic_auth
200
200
  Gem.configuration.verbose = :really
201
- uri = URI.parse "https://user:pass@example.rubygems/specs.#{Gem.marshal_version}"
201
+ uri = Gem::Uri.new(URI.parse "https://user:pass@example.rubygems/specs.#{Gem.marshal_version}")
202
202
  conn = util_stub_net_http(:body => :junk, :code => 200) do |c|
203
203
  use_ui @ui do
204
204
  @request = make_request(uri, Net::HTTP::Get, nil, nil)
@@ -214,7 +214,7 @@ class TestGemRequest < Gem::TestCase
214
214
 
215
215
  def test_fetch_basic_auth_encoded
216
216
  Gem.configuration.verbose = :really
217
- uri = URI.parse "https://user:%7BDEScede%7Dpass@example.rubygems/specs.#{Gem.marshal_version}"
217
+ uri = Gem::Uri.new(URI.parse "https://user:%7BDEScede%7Dpass@example.rubygems/specs.#{Gem.marshal_version}")
218
218
 
219
219
  conn = util_stub_net_http(:body => :junk, :code => 200) do |c|
220
220
  use_ui @ui do
@@ -231,7 +231,7 @@ class TestGemRequest < Gem::TestCase
231
231
 
232
232
  def test_fetch_basic_oauth_encoded
233
233
  Gem.configuration.verbose = :really
234
- uri = URI.parse "https://%7BDEScede%7Dpass:x-oauth-basic@example.rubygems/specs.#{Gem.marshal_version}"
234
+ uri = Gem::Uri.new(URI.parse "https://%7BDEScede%7Dpass:x-oauth-basic@example.rubygems/specs.#{Gem.marshal_version}")
235
235
 
236
236
  conn = util_stub_net_http(:body => :junk, :code => 200) do |c|
237
237
  use_ui @ui do
@@ -247,7 +247,7 @@ class TestGemRequest < Gem::TestCase
247
247
  end
248
248
 
249
249
  def test_fetch_head
250
- uri = URI.parse "#{@gem_repo}/specs.#{Gem.marshal_version}"
250
+ uri = Gem::Uri.new(URI.parse "#{@gem_repo}/specs.#{Gem.marshal_version}")
251
251
  response = util_stub_net_http(:body => '', :code => 200) do |conn|
252
252
  @request = make_request(uri, Net::HTTP::Get, nil, nil)
253
253
  @request.fetch
@@ -258,7 +258,7 @@ class TestGemRequest < Gem::TestCase
258
258
  end
259
259
 
260
260
  def test_fetch_unmodified
261
- uri = URI.parse "#{@gem_repo}/specs.#{Gem.marshal_version}"
261
+ uri = Gem::Uri.new(URI.parse "#{@gem_repo}/specs.#{Gem.marshal_version}")
262
262
  t = Time.utc(2013, 1, 2, 3, 4, 5)
263
263
  conn, response = util_stub_net_http(:body => '', :code => 304) do |c|
264
264
  @request = make_request(uri, Net::HTTP::Get, t, nil)
@@ -2781,6 +2781,20 @@ duplicate dependency on c (>= 1.2.3, development), (~> 1.2) use:
2781
2781
  end
2782
2782
 
2783
2783
  assert_equal %("#{f}" or "#{t}" is not a description), e.message
2784
+
2785
+ # Adding #{f} anywhere after the start of the description should be fine.
2786
+ @a1.description = "(some description) #{f}"
2787
+
2788
+ assert_nothing_raised do
2789
+ @a1.validate
2790
+ end
2791
+
2792
+ # Adding #{t} anywhere after the start of the description should be fine.
2793
+ @a1.description = "(some description) #{t}"
2794
+
2795
+ assert_nothing_raised do
2796
+ @a1.validate
2797
+ end
2784
2798
  end
2785
2799
  end
2786
2800
 
@@ -29,4 +29,11 @@ class TestUri < Gem::TestCase
29
29
  def test_redacted_with_invalid_uri
30
30
  assert_equal "https://www.example.com:80index", Gem::Uri.new("https://www.example.com:80index").redacted.to_s
31
31
  end
32
+
33
+ def test_redacted_does_not_modify_uri
34
+ url = 'https://user:password@example.com'
35
+ uri = Gem::Uri.new(url)
36
+ assert_equal 'https://user:REDACTED@example.com', uri.redacted.to_s
37
+ assert_equal url, uri.to_s
38
+ end
32
39
  end
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.27
4
+ version: 3.2.28
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-09-03 00:00:00.000000000 Z
19
+ date: 2021-09-23 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.27
774
+ rubygems_version: 3.2.28
775
775
  signing_key:
776
776
  specification_version: 4
777
777
  summary: RubyGems is a package management framework for Ruby.