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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fabd6b3a8c9a1227a3e8ff908a04bf28135b91899339425536dbec5559ce3dc1
4
- data.tar.gz: ec941700bc4d70da0affb1585808eaacc4031a325fa2d2fc06d4d5575cef051b
3
+ metadata.gz: d8c683b5b8ebeb45839a1e4e148c66e706823d2d3e79d168fce8745b9be194df
4
+ data.tar.gz: 245eb17bc84ee70ea02919f508d819a19570443a8e569c49fbe58e3d4ca77c92
5
5
  SHA512:
6
- metadata.gz: 219a1de618e568af684eadc59945d7f773e0fcb5e1e9c55510c8c2401911bf41a22f546414b0f01a24f4adabc8ba4cf28fc05078b817c49bf737601b1ca4925d
7
- data.tar.gz: 5cb299dedf5e3eda38a970205e5354a326964efe7d70fc53b9444a4982c96dc0852d693cc3e1833e41a633bc13eec86f430e7e1d13da7b67676eceecc14d32dd
6
+ metadata.gz: 73cb48fa32e961185618f1a9978f67c66b29f28597ebfb7c6c764e20d719336458884e0371ad49e9ef7a3bf7a3363850315984d43f189266a7852766924dff95
7
+ data.tar.gz: 2bbaeff8ede469f7e70beed2523517884d7fef8a69834a8df00feac62efdc0094a0a9f5c5388e689728d87033e351ffb2a6f1af5b65c3c63d51382f5807e1bbf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 3.6.8 / 2025-04-13
2
+
3
+ ## Enhancements:
4
+
5
+ * Installs bundler 2.6.8 as a default gem.
6
+
1
7
  # 3.6.7 / 2025-04-03
2
8
 
3
9
  ## Enhancements:
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # RubyGems [![Maintainability](https://api.codeclimate.com/v1/badges/30f913e9c2dd932132c1/maintainability)](https://codeclimate.com/github/rubygems/rubygems/maintainability)
1
+ # RubyGems
2
2
 
3
3
  RubyGems is a package management framework for Ruby.
4
4
 
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:
@@ -5,7 +5,7 @@ module Bundler
5
5
  module BuildMetadata
6
6
  # begin ivars
7
7
  @built_at = "1980-01-02".freeze
8
- @git_commit_sha = "32896b3570e".freeze
8
+ @git_commit_sha = "2a353e42e2e".freeze
9
9
  @release = true
10
10
  # end ivars
11
11
 
@@ -337,11 +337,7 @@ module Bundler
337
337
  end
338
338
  end
339
339
  else
340
- if lockfile_exists?
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
- @platforms = resolve.normalize_platforms!(current_dependencies, platforms)
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
- reason = resolve_needed? ? change_reason : "some dependencies were deleted from your gemfile"
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 change_reason
800
- if unlocking?
801
- unlock_targets = if @gems_to_unlock.any?
802
- ["gems", @gems_to_unlock]
803
- elsif @sources_to_unlock.any?
804
- ["sources", @sources_to_unlock]
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
- unlock_reason = if unlock_targets
808
- "#{unlock_targets.first}: (#{unlock_targets.last.join(", ")})"
805
+ def change_reason
806
+ if resolve_needed?
807
+ if unlocking?
808
+ unlocking_reason
809
809
  else
810
- @unlocking_ruby ? "ruby" : ""
810
+ lockfile_changed_reason
811
811
  end
812
+ else
813
+ "some dependencies were deleted from your gemfile"
814
+ end
815
+ end
812
816
 
813
- return "bundler is unlocking #{unlock_reason}"
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}, and copy and paste the report template above in there.
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.requested_specs.select {|s| s.source.is_a?(Source::Path) }
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
- complete_platforms = add_extra_platforms!(platforms)
32
+ add_extra_platforms!(platforms)
33
33
 
34
- complete_platforms.map do |platform|
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
- self[name].first&.version
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 |spec|
289
- version_for(spec.name) == spec.version && valid_dependencies?(spec)
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Bundler
4
- VERSION = "2.6.7".freeze
4
+ VERSION = "2.6.8".freeze
5
5
 
6
6
  def self.bundler_major_version
7
7
  @bundler_major_version ||= VERSION.split(".").first.to_i
@@ -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
@@ -9,7 +9,7 @@
9
9
  require "rbconfig"
10
10
 
11
11
  module Gem
12
- VERSION = "3.6.7"
12
+ VERSION = "3.6.8"
13
13
  end
14
14
 
15
15
  # 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.6.7"
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.7
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.7
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.