bundler 2.6.4 → 2.6.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6db19c6c72f2c38f056adfac393dcfebd51e4ae14eee0fc6a1b8122ba5f9f92
4
- data.tar.gz: a83020c6d99aef70bee13b2ea4ef794dc0a5804aba44baff57a9a90777070361
3
+ metadata.gz: 244b150c10d3a97538eb2fca0bfd11f4f1d52498e017a412cb22cafab11b95d9
4
+ data.tar.gz: 3c09d427c503b26379f13fdb225368e2d7987f9588b6f1c3e9691145fb8b90ba
5
5
  SHA512:
6
- metadata.gz: 6ebc0d4dda2d618578455c0d322008014beb2c81671f271bed81d904ace7c6871fbf25b2aa584b5331244814987299fc6b0aebe69ed4d02c2411db41a819c47f
7
- data.tar.gz: aacaaef051b9e0f1fd08b24892e3f1b995d7c88ed3e9b4b401c94f922e4632bef37b02f8fdaac4dcc2457dde8bb45bd558f5410a6e514f41a6a8ee42899ba7f1
6
+ metadata.gz: 9edd329b4f4e36c9bfce9ad4468f764d011afe7f774439d6700f49064201fbe06bf1c374a938a96ae24933df34344c142f6db071324306b4255a235da2f1ff20
7
+ data.tar.gz: e26f55ba1f69d938047333d1065f1cc75ebf4c865ba966ba5355084681263392928c3f902fbd26d94077ac51dabfd1aacad4a2329b7c934fbc689f363761f4db
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ # 2.6.5 (February 20, 2025)
2
+
3
+ ## Enhancements:
4
+
5
+ - Fix lockfile platforms inconveniently added on JRuby [#8494](https://github.com/rubygems/rubygems/pull/8494)
6
+
7
+ ## Bug fixes:
8
+
9
+ - Fix resolver issue due to ill-defined version ranges being created [#8503](https://github.com/rubygems/rubygems/pull/8503)
10
+ - Make sure empty gems are not reinstalled every time [#8502](https://github.com/rubygems/rubygems/pull/8502)
11
+
1
12
  # 2.6.4 (February 17, 2025)
2
13
 
3
14
  ## Enhancements:
@@ -4,8 +4,8 @@ module Bundler
4
4
  # Represents metadata from when the Bundler gem was built.
5
5
  module BuildMetadata
6
6
  # begin ivars
7
- @built_at = "2025-02-17".freeze
8
- @git_commit_sha = "87f7bf0ac12".freeze
7
+ @built_at = "2025-02-20".freeze
8
+ @git_commit_sha = "cffd973142d".freeze
9
9
  @release = true
10
10
  # end ivars
11
11
 
@@ -490,7 +490,7 @@ module Bundler
490
490
  end
491
491
 
492
492
  def validate_platforms!
493
- return if current_platform_locked?
493
+ return if current_platform_locked? || @platforms.include?(Gem::Platform::RUBY)
494
494
 
495
495
  raise ProductionError, "Your bundle only supports platforms #{@platforms.map(&:to_s)} " \
496
496
  "but your local platform is #{local_platform}. " \
@@ -731,7 +731,7 @@ module Bundler
731
731
  end
732
732
 
733
733
  def start_resolution
734
- local_platform_needed_for_resolvability = @most_specific_non_local_locked_ruby_platform && !@platforms.include?(local_platform)
734
+ local_platform_needed_for_resolvability = @most_specific_non_local_locked_platform && !@platforms.include?(local_platform)
735
735
  @platforms << local_platform if local_platform_needed_for_resolvability
736
736
  add_platform(Gem::Platform::RUBY) if RUBY_ENGINE == "truffleruby"
737
737
 
@@ -739,9 +739,9 @@ module Bundler
739
739
 
740
740
  @resolved_bundler_version = result.find {|spec| spec.name == "bundler" }&.version
741
741
 
742
- if @most_specific_non_local_locked_ruby_platform
743
- if spec_set_incomplete_for_platform?(result, @most_specific_non_local_locked_ruby_platform)
744
- @platforms.delete(@most_specific_non_local_locked_ruby_platform)
742
+ if @most_specific_non_local_locked_platform
743
+ if spec_set_incomplete_for_platform?(result, @most_specific_non_local_locked_platform)
744
+ @platforms.delete(@most_specific_non_local_locked_platform)
745
745
  elsif local_platform_needed_for_resolvability
746
746
  @platforms.delete(local_platform)
747
747
  end
@@ -758,23 +758,23 @@ module Bundler
758
758
 
759
759
  def current_platform_locked?
760
760
  @platforms.any? do |bundle_platform|
761
- MatchPlatform.platforms_match?(bundle_platform, local_platform)
761
+ generic_local_platform == bundle_platform || local_platform === bundle_platform
762
762
  end
763
763
  end
764
764
 
765
765
  def add_current_platform
766
766
  return if @platforms.include?(local_platform)
767
767
 
768
- @most_specific_non_local_locked_ruby_platform = find_most_specific_locked_ruby_platform
769
- return if @most_specific_non_local_locked_ruby_platform
768
+ @most_specific_non_local_locked_platform = find_most_specific_locked_platform
769
+ return if @most_specific_non_local_locked_platform
770
770
 
771
771
  @new_platforms << local_platform
772
772
  @platforms << local_platform
773
773
  true
774
774
  end
775
775
 
776
- def find_most_specific_locked_ruby_platform
777
- return unless generic_local_platform_is_ruby? && current_platform_locked?
776
+ def find_most_specific_locked_platform
777
+ return unless current_platform_locked?
778
778
 
779
779
  @most_specific_locked_platform
780
780
  end
@@ -237,7 +237,7 @@ module Bundler
237
237
  sorted_versions[high]
238
238
  end
239
239
 
240
- range = PubGrub::VersionRange.new(min: low, max: high, include_min: true)
240
+ range = PubGrub::VersionRange.new(min: low, max: high, include_min: !low.nil?)
241
241
 
242
242
  self_constraint = PubGrub::VersionConstraint.new(package, range: range)
243
243
 
@@ -259,7 +259,7 @@ module Gem
259
259
  end
260
260
 
261
261
  def installation_missing?
262
- !default_gem? && (!Dir.exist?(full_gem_path) || Dir.empty?(full_gem_path))
262
+ !default_gem? && !File.directory?(full_gem_path)
263
263
  end
264
264
 
265
265
  unless VALIDATES_FOR_RESOLUTION
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Bundler
4
- VERSION = "2.6.4".freeze
4
+ VERSION = "2.6.5".freeze
5
5
 
6
6
  def self.bundler_major_version
7
7
  @bundler_major_version ||= VERSION.split(".").first.to_i
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
4
+ version: 2.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
@@ -21,7 +21,7 @@ authors:
21
21
  - Yehuda Katz
22
22
  bindir: exe
23
23
  cert_chain: []
24
- date: 2025-02-17 00:00:00.000000000 Z
24
+ date: 2025-02-20 00:00:00.000000000 Z
25
25
  dependencies: []
26
26
  description: Bundler manages an application's dependencies through its entire life,
27
27
  across many machines, systematically and repeatably
@@ -411,7 +411,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
411
411
  - !ruby/object:Gem::Version
412
412
  version: 3.3.3
413
413
  requirements: []
414
- rubygems_version: 3.6.4
414
+ rubygems_version: 3.6.5
415
415
  specification_version: 4
416
416
  summary: The best way to manage your application's dependencies
417
417
  test_files: []