rubygems-update 3.4.0 → 3.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/bundler/CHANGELOG.md +11 -0
- data/bundler/exe/bundle +1 -1
- data/bundler/lib/bundler/build_metadata.rb +1 -1
- data/bundler/lib/bundler/resolver.rb +10 -1
- data/bundler/lib/bundler/source/git/git_proxy.rb +17 -14
- data/bundler/lib/bundler/version.rb +1 -1
- data/lib/rubygems.rb +1 -1
- data/rubygems-update.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ff07798220eea8fe771daf272bc87ef2e3e37cc0a6868107be9c6778956fa35
|
4
|
+
data.tar.gz: 0c77e50152f414b51e7d57d07d270b883b8b775cd55e1804cbac0318384b323b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d75fee7a19d1b77e660665c3880063201df700d261c21e28d050d07102a5817f7561f5832f6cd4aadd3aba0f29606ba264e38db378d87d38c1133dee2fb8e3b
|
7
|
+
data.tar.gz: cf3773f53b3f5fb0555286da101354b7259412af4476991b6e854d0d3755837275b0712c8ad994955f1e374918cf8f220e50c1983aee7f9611058e1cb4a4d1f8
|
data/CHANGELOG.md
CHANGED
data/bundler/CHANGELOG.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
# 2.4.1 (December 24, 2022)
|
2
|
+
|
3
|
+
## Enhancements:
|
4
|
+
|
5
|
+
- Allow Bundler to run on old RubyGems + Ruby 2.7 without warnings [#6187](https://github.com/rubygems/rubygems/pull/6187)
|
6
|
+
|
7
|
+
## Bug fixes:
|
8
|
+
|
9
|
+
- Fix dependencies scoped to other platforms making resolver fail [#6189](https://github.com/rubygems/rubygems/pull/6189)
|
10
|
+
- Restore annotated git tag support [#6186](https://github.com/rubygems/rubygems/pull/6186)
|
11
|
+
|
1
12
|
# 2.4.0 (December 24, 2022)
|
2
13
|
|
3
14
|
## Security:
|
data/bundler/exe/bundle
CHANGED
@@ -15,7 +15,7 @@ else
|
|
15
15
|
require "bundler"
|
16
16
|
end
|
17
17
|
|
18
|
-
if Gem.rubygems_version < Gem::Version.new("3.2.3") && Gem.ruby_version < Gem::Version.new("
|
18
|
+
if Gem.rubygems_version < Gem::Version.new("3.2.3") && Gem.ruby_version < Gem::Version.new("2.7.a") && !ENV["BUNDLER_NO_OLD_RUBYGEMS_WARNING"]
|
19
19
|
Bundler.ui.warn \
|
20
20
|
"Your RubyGems version (#{Gem::VERSION}) has a bug that prevents " \
|
21
21
|
"`required_ruby_version` from working for Bundler. Any scripts that use " \
|
@@ -311,7 +311,16 @@ module Bundler
|
|
311
311
|
def prepare_dependencies(requirements, packages)
|
312
312
|
to_dependency_hash(requirements, packages).map do |dep_package, dep_constraint|
|
313
313
|
name = dep_package.name
|
314
|
-
|
314
|
+
|
315
|
+
# If a dependency is scoped to a platform different from the current
|
316
|
+
# one, we ignore it. However, it may reappear during resolution as a
|
317
|
+
# transitive dependency of another package, so we need to reset the
|
318
|
+
# package so the proper versions are considered if reintroduced later.
|
319
|
+
if dep_package.platforms.empty?
|
320
|
+
@packages.delete(name)
|
321
|
+
next
|
322
|
+
end
|
323
|
+
|
315
324
|
next [dep_package, dep_constraint] if name == "bundler"
|
316
325
|
next [dep_package, dep_constraint] unless versions_for(dep_package, dep_constraint.range).empty?
|
317
326
|
next unless dep_package.current_platform?
|
@@ -58,6 +58,7 @@ module Bundler
|
|
58
58
|
@explicit_ref = branch || tag || ref
|
59
59
|
@revision = revision
|
60
60
|
@git = git
|
61
|
+
@commit_ref = nil
|
61
62
|
end
|
62
63
|
|
63
64
|
def revision
|
@@ -116,7 +117,7 @@ module Bundler
|
|
116
117
|
end
|
117
118
|
end
|
118
119
|
|
119
|
-
git "fetch", "--force", "--quiet", *extra_fetch_args, :dir => destination
|
120
|
+
git "fetch", "--force", "--quiet", *extra_fetch_args, :dir => destination if @commit_ref
|
120
121
|
|
121
122
|
git "reset", "--hard", @revision, :dir => destination
|
122
123
|
|
@@ -185,11 +186,16 @@ module Bundler
|
|
185
186
|
end
|
186
187
|
|
187
188
|
def refspec
|
188
|
-
|
189
|
+
commit = pinned_to_full_sha? ? ref : @revision
|
189
190
|
|
190
|
-
|
191
|
+
if commit
|
192
|
+
@commit_ref = "refs/#{commit}-sha"
|
193
|
+
return "#{commit}:#{@commit_ref}"
|
194
|
+
end
|
195
|
+
|
196
|
+
reference = fully_qualified_ref
|
191
197
|
|
192
|
-
|
198
|
+
reference ||= if ref.include?("~")
|
193
199
|
ref.split("~").first
|
194
200
|
elsif ref.start_with?("refs/")
|
195
201
|
ref
|
@@ -197,7 +203,7 @@ module Bundler
|
|
197
203
|
"refs/*"
|
198
204
|
end
|
199
205
|
|
200
|
-
"#{
|
206
|
+
"#{reference}:#{reference}"
|
201
207
|
end
|
202
208
|
|
203
209
|
def fully_qualified_ref
|
@@ -218,10 +224,6 @@ module Bundler
|
|
218
224
|
ref =~ /\A\h{40}\z/
|
219
225
|
end
|
220
226
|
|
221
|
-
def legacy_locked_revision?
|
222
|
-
!@revision.nil? && @revision =~ /\A\h{7}\z/
|
223
|
-
end
|
224
|
-
|
225
227
|
def git_null(*command, dir: nil)
|
226
228
|
check_allowed(command)
|
227
229
|
|
@@ -241,9 +243,9 @@ module Bundler
|
|
241
243
|
|
242
244
|
out, err, status = capture(command, dir)
|
243
245
|
|
244
|
-
|
246
|
+
raise GitCommandError.new(command_with_no_credentials, dir || SharedHelpers.pwd, err) unless status.success?
|
245
247
|
|
246
|
-
|
248
|
+
Bundler.ui.warn err unless err.empty?
|
247
249
|
|
248
250
|
out
|
249
251
|
end
|
@@ -344,9 +346,10 @@ module Bundler
|
|
344
346
|
end
|
345
347
|
|
346
348
|
def extra_clone_args
|
347
|
-
|
349
|
+
args = depth_args
|
350
|
+
return [] if args.empty?
|
348
351
|
|
349
|
-
args
|
352
|
+
args += ["--single-branch"]
|
350
353
|
args.unshift("--no-tags") if supports_cloning_with_no_tags?
|
351
354
|
|
352
355
|
args += ["--branch", branch || tag] if branch || tag
|
@@ -361,7 +364,7 @@ module Bundler
|
|
361
364
|
|
362
365
|
def extra_fetch_args
|
363
366
|
extra_args = [path.to_s, *depth_args]
|
364
|
-
extra_args.push(
|
367
|
+
extra_args.push(@commit_ref)
|
365
368
|
extra_args
|
366
369
|
end
|
367
370
|
|
data/lib/rubygems.rb
CHANGED
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.4.
|
5
|
+
s.version = "3.4.1"
|
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
|
|