bundler 2.4.0 → 2.4.1
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 +11 -0
- data/exe/bundle +1 -1
- data/lib/bundler/build_metadata.rb +1 -1
- data/lib/bundler/resolver.rb +10 -1
- data/lib/bundler/source/git/git_proxy.rb +17 -14
- data/lib/bundler/version.rb +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: 3879231a44592278d9e95f3a7d14f6e996e5230743167aed240804bba6a38310
|
4
|
+
data.tar.gz: 59b18e9d1028711d8429a959d187874f4a59e5f8eb60b6fde8e20f2014a2696b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a393173a63781a473018a2e8ad480743a3f57507afa8cc60fa4da939604b99cfa78efc5859f18805ed03f3242cbefb5fd4361916270e8eb7077e975a8c85821e
|
7
|
+
data.tar.gz: 94cf58b87543d46ad50b50043e20a6b4c5a2e3d495e3f781065013e3d7d28d6c6dfc9fbaa6edded6253a90f5dfba42d67c0efd0ec9a920a2784c7c653ee57130
|
data/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/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 " \
|
data/lib/bundler/resolver.rb
CHANGED
@@ -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/bundler/version.rb
CHANGED