bundler 2.6.7 → 2.6.8
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 +12 -0
- data/lib/bundler/build_metadata.rb +1 -1
- data/lib/bundler/definition.rb +38 -19
- data/lib/bundler/friendly_errors.rb +1 -1
- data/lib/bundler/installer.rb +1 -1
- data/lib/bundler/spec_set.rb +16 -6
- data/lib/bundler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 926890a7c51ad73546e74cc32762fc85dcbc5e76ab6e07db09a2d8b3d06f780e
|
4
|
+
data.tar.gz: 2304e49dde5042a25144e9fd0cb1fa17c835ca58316c34525289953fc2712b1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46a06466c40b2107eba50fd887794f2f6f1c08f253c58832200e81ceeebcd1b9d1a06ff3a179d26bf6daa1547a86c6025cad159dad3aa04570dfbe4728afcb01
|
7
|
+
data.tar.gz: 75542b7a6c7988e06fae4f856d276afea01ac1c48657e2739c19efed13f37e463325d09aa31ee1ecbb4d77668aa5329cceea5b30e134a13db7de600b70e636a1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
# 2.6.8 (April 13, 2025)
|
2
|
+
|
3
|
+
## Enhancements:
|
4
|
+
|
5
|
+
- Refine `bundle update --verbose` logs [#8627](https://github.com/rubygems/rubygems/pull/8627)
|
6
|
+
- Improve bug report instructions [#8607](https://github.com/rubygems/rubygems/pull/8607)
|
7
|
+
|
8
|
+
## Bug fixes:
|
9
|
+
|
10
|
+
- Fix `bundle update` crash in an edge case [#8626](https://github.com/rubygems/rubygems/pull/8626)
|
11
|
+
- Fix `bundle lock --normalize-platforms` regression [#8620](https://github.com/rubygems/rubygems/pull/8620)
|
12
|
+
|
1
13
|
# 2.6.7 (April 3, 2025)
|
2
14
|
|
3
15
|
## Enhancements:
|
data/lib/bundler/definition.rb
CHANGED
@@ -337,11 +337,7 @@ module Bundler
|
|
337
337
|
end
|
338
338
|
end
|
339
339
|
else
|
340
|
-
|
341
|
-
Bundler.ui.debug "Found changes from the lockfile, re-resolving dependencies because #{change_reason}"
|
342
|
-
else
|
343
|
-
Bundler.ui.debug "Resolving dependencies because there's no lockfile"
|
344
|
-
end
|
340
|
+
Bundler.ui.debug resolve_needed_reason
|
345
341
|
|
346
342
|
start_resolution
|
347
343
|
end
|
@@ -465,7 +461,7 @@ module Bundler
|
|
465
461
|
end
|
466
462
|
|
467
463
|
def normalize_platforms
|
468
|
-
|
464
|
+
resolve.normalize_platforms!(current_dependencies, platforms)
|
469
465
|
|
470
466
|
@resolve = SpecSet.new(resolve.for(current_dependencies, @platforms))
|
471
467
|
end
|
@@ -537,9 +533,7 @@ module Bundler
|
|
537
533
|
|
538
534
|
return unless added.any? || deleted.any? || changed.any? || resolve_needed?
|
539
535
|
|
540
|
-
|
541
|
-
|
542
|
-
msg = String.new("#{reason.capitalize.strip}, but ")
|
536
|
+
msg = String.new("#{change_reason.capitalize.strip}, but ")
|
543
537
|
msg << "the lockfile " unless msg.start_with?("Your lockfile")
|
544
538
|
msg << "can't be updated because #{update_refused_reason}"
|
545
539
|
msg << "\n\nYou have added to the Gemfile:\n" << added.join("\n") if added.any?
|
@@ -796,22 +790,47 @@ module Bundler
|
|
796
790
|
@most_specific_locked_platform
|
797
791
|
end
|
798
792
|
|
799
|
-
def
|
800
|
-
if
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
793
|
+
def resolve_needed_reason
|
794
|
+
if lockfile_exists?
|
795
|
+
if unlocking?
|
796
|
+
"Re-resolving dependencies because #{unlocking_reason}"
|
797
|
+
else
|
798
|
+
"Found changes from the lockfile, re-resolving dependencies because #{lockfile_changed_reason}"
|
805
799
|
end
|
800
|
+
else
|
801
|
+
"Resolving dependencies because there's no lockfile"
|
802
|
+
end
|
803
|
+
end
|
806
804
|
|
807
|
-
|
808
|
-
|
805
|
+
def change_reason
|
806
|
+
if resolve_needed?
|
807
|
+
if unlocking?
|
808
|
+
unlocking_reason
|
809
809
|
else
|
810
|
-
|
810
|
+
lockfile_changed_reason
|
811
811
|
end
|
812
|
+
else
|
813
|
+
"some dependencies were deleted from your gemfile"
|
814
|
+
end
|
815
|
+
end
|
812
816
|
|
813
|
-
|
817
|
+
def unlocking_reason
|
818
|
+
unlock_targets = if @gems_to_unlock.any?
|
819
|
+
["gems", @gems_to_unlock]
|
820
|
+
elsif @sources_to_unlock.any?
|
821
|
+
["sources", @sources_to_unlock]
|
814
822
|
end
|
823
|
+
|
824
|
+
unlock_reason = if unlock_targets
|
825
|
+
"#{unlock_targets.first}: (#{unlock_targets.last.join(", ")})"
|
826
|
+
else
|
827
|
+
@unlocking_ruby ? "ruby" : ""
|
828
|
+
end
|
829
|
+
|
830
|
+
"bundler is unlocking #{unlock_reason}"
|
831
|
+
end
|
832
|
+
|
833
|
+
def lockfile_changed_reason
|
815
834
|
[
|
816
835
|
[@source_changes, "the list of sources changed"],
|
817
836
|
[@dependency_changes, "the dependencies in your gemfile changed"],
|
@@ -80,7 +80,7 @@ module Bundler
|
|
80
80
|
First, try this link to see if there are any existing issue reports for this error:
|
81
81
|
#{issues_url(e)}
|
82
82
|
|
83
|
-
If there aren't any reports for this error yet, please fill in the new issue form located at #{new_issue_url}
|
83
|
+
If there aren't any reports for this error yet, please fill in the new issue form located at #{new_issue_url}. Make sure to copy and paste the full output of this command under the "What happened instead?" section.
|
84
84
|
EOS
|
85
85
|
end
|
86
86
|
|
data/lib/bundler/installer.rb
CHANGED
@@ -212,7 +212,7 @@ module Bundler
|
|
212
212
|
def load_plugins
|
213
213
|
Gem.load_plugins
|
214
214
|
|
215
|
-
requested_path_gems = @definition.
|
215
|
+
requested_path_gems = @definition.specs.select {|s| s.source.is_a?(Source::Path) }
|
216
216
|
path_plugin_files = requested_path_gems.flat_map do |spec|
|
217
217
|
spec.matches_for_glob("rubygems_plugin#{Bundler.rubygems.suffix_pattern}")
|
218
218
|
rescue TypeError
|
data/lib/bundler/spec_set.rb
CHANGED
@@ -29,9 +29,9 @@ module Bundler
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def normalize_platforms!(deps, platforms)
|
32
|
-
|
32
|
+
add_extra_platforms!(platforms)
|
33
33
|
|
34
|
-
|
34
|
+
platforms.map! do |platform|
|
35
35
|
next platform if platform == Gem::Platform::RUBY
|
36
36
|
|
37
37
|
begin
|
@@ -44,7 +44,7 @@ module Bundler
|
|
44
44
|
next platform if incomplete_for_platform?(deps, less_specific_platform)
|
45
45
|
|
46
46
|
less_specific_platform
|
47
|
-
end.uniq
|
47
|
+
end.uniq!
|
48
48
|
end
|
49
49
|
|
50
50
|
def add_originally_invalid_platforms!(platforms, originally_invalid_platforms)
|
@@ -68,6 +68,7 @@ module Bundler
|
|
68
68
|
return if new_platforms.empty?
|
69
69
|
|
70
70
|
platforms.concat(new_platforms)
|
71
|
+
return if new_platforms.include?(Bundler.local_platform)
|
71
72
|
|
72
73
|
less_specific_platform = new_platforms.find {|platform| platform != Gem::Platform::RUBY && Bundler.local_platform === platform && platform === Bundler.local_platform }
|
73
74
|
platforms.delete(Bundler.local_platform) if less_specific_platform
|
@@ -180,7 +181,7 @@ module Bundler
|
|
180
181
|
end
|
181
182
|
|
182
183
|
def version_for(name)
|
183
|
-
|
184
|
+
exemplary_spec(name)&.version
|
184
185
|
end
|
185
186
|
|
186
187
|
def what_required(spec)
|
@@ -285,8 +286,13 @@ module Bundler
|
|
285
286
|
end
|
286
287
|
|
287
288
|
def additional_variants_from(other)
|
288
|
-
other.select do |
|
289
|
-
|
289
|
+
other.select do |other_spec|
|
290
|
+
spec = exemplary_spec(other_spec.name)
|
291
|
+
next unless spec
|
292
|
+
|
293
|
+
selected = spec.version == other_spec.version && valid_dependencies?(other_spec)
|
294
|
+
other_spec.source = spec.source if selected
|
295
|
+
selected
|
290
296
|
end
|
291
297
|
end
|
292
298
|
|
@@ -363,5 +369,9 @@ module Bundler
|
|
363
369
|
hash[key] ||= []
|
364
370
|
hash[key] << value
|
365
371
|
end
|
372
|
+
|
373
|
+
def exemplary_spec(name)
|
374
|
+
self[name].first
|
375
|
+
end
|
366
376
|
end
|
367
377
|
end
|
data/lib/bundler/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André Arko
|
@@ -412,7 +412,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
412
412
|
- !ruby/object:Gem::Version
|
413
413
|
version: 3.3.3
|
414
414
|
requirements: []
|
415
|
-
rubygems_version: 3.6.
|
415
|
+
rubygems_version: 3.6.8
|
416
416
|
specification_version: 4
|
417
417
|
summary: The best way to manage your application's dependencies
|
418
418
|
test_files: []
|