rubygems-update 3.6.7 → 3.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 +6 -0
- data/README.md +1 -1
- data/bundler/CHANGELOG.md +12 -0
- data/bundler/lib/bundler/build_metadata.rb +1 -1
- data/bundler/lib/bundler/definition.rb +38 -19
- data/bundler/lib/bundler/friendly_errors.rb +1 -1
- data/bundler/lib/bundler/installer.rb +1 -1
- data/bundler/lib/bundler/spec_set.rb +16 -6
- data/bundler/lib/bundler/version.rb +1 -1
- data/doc/rubygems/CONTRIBUTING.md +0 -4
- data/lib/rubygems.rb +1 -1
- data/rubygems-update.gemspec +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: d8c683b5b8ebeb45839a1e4e148c66e706823d2d3e79d168fce8745b9be194df
|
4
|
+
data.tar.gz: 245eb17bc84ee70ea02919f508d819a19570443a8e569c49fbe58e3d4ca77c92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73cb48fa32e961185618f1a9978f67c66b29f28597ebfb7c6c764e20d719336458884e0371ad49e9ef7a3bf7a3363850315984d43f189266a7852766924dff95
|
7
|
+
data.tar.gz: 2bbaeff8ede469f7e70beed2523517884d7fef8a69834a8df00feac62efdc0094a0a9f5c5388e689728d87033e351ffb2a6f1af5b65c3c63d51382f5807e1bbf
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/bundler/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:
|
@@ -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
|
|
@@ -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
|
@@ -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
|
@@ -70,10 +70,6 @@ And to run an individual test method named `test_default` within a test file, yo
|
|
70
70
|
|
71
71
|
### Running bundler tests
|
72
72
|
|
73
|
-
To setup bundler tests:
|
74
|
-
|
75
|
-
bin/rake spec:parallel_deps
|
76
|
-
|
77
73
|
To run the entire bundler test suite in parallel (it takes a while), run the following from the `bundler/` subfolder:
|
78
74
|
|
79
75
|
bin/parallel_rspec
|
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.6.
|
5
|
+
s.version = "3.6.8"
|
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
|
|
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.6.
|
4
|
+
version: 3.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Weirich
|
@@ -747,7 +747,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
747
747
|
- !ruby/object:Gem::Version
|
748
748
|
version: '0'
|
749
749
|
requirements: []
|
750
|
-
rubygems_version: 3.6.
|
750
|
+
rubygems_version: 3.6.8
|
751
751
|
specification_version: 4
|
752
752
|
summary: RubyGems is a package management framework for Ruby. This gem is downloaded
|
753
753
|
and installed by `gem update --system`, so that the `gem` CLI can update itself.
|