bundler 2.5.12 → 2.5.13

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: 829276824aba6fb47236a5d2a3312f24d34d6331a7e7aa36e506fb93f51d510b
4
- data.tar.gz: f1b897fcea468ad974ca7882c6f67a8c2a9d48852f9746e45a7888fc6c49d66f
3
+ metadata.gz: 3d55a4e4a51daffe5907ad748a96349876c9797fdf174433a32754c3d062236b
4
+ data.tar.gz: 3650a3a40f4b01e274b4a72f5a167354600e9d404aa3b688f8bb006023877eb3
5
5
  SHA512:
6
- metadata.gz: 7a35ad5e1282b37700c6ffac4579f296befbfcf22884d57f88987196c537ed8fc8d5a79d2304b1d1ae589a73210198ba69d6ece57e396ecd7c77cb6b3a20f91a
7
- data.tar.gz: 8e342919b00cbf6ffbc25bb22e9b6c4e798bbc5d29975254df77dbbd7690c66d3493a4e5207ea4c12f7cc15fa1ab7bac7af9f85fbb53c02f12b80b0100373848
6
+ metadata.gz: 3f558a26f42b927607933af8ad62e30a9ee6350dfe8230584b8e9d57fbd414f5b4239ac119c289dbf52ca7881cd956d69255f44b4e389e87d522c168ff67178b
7
+ data.tar.gz: b50b14773bd8b8aab8d938b322c1e93e0454bef759fedd74a054dc64cdc25d85990c1a9e843e5a8ba2be15fd937ca73d64a41dce76496ad5fcb2f2bcca562953
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 2.5.13 (June 14, 2024)
2
+
3
+ ## Bug fixes:
4
+
5
+ - Fix funding metadata not being printed in some situations [#7746](https://github.com/rubygems/rubygems/pull/7746)
6
+ - Make sure to not re-resolve when a not fully specific local platform is locked [#7751](https://github.com/rubygems/rubygems/pull/7751)
7
+ - Don't print bug report template when bin dir is not writable [#7748](https://github.com/rubygems/rubygems/pull/7748)
8
+
1
9
  # 2.5.12 (June 13, 2024)
2
10
 
3
11
  ## 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 = "2024-06-13".freeze
8
- @git_commit_sha = "05dc7d98e5".freeze
7
+ @built_at = "2024-06-14".freeze
8
+ @git_commit_sha = "5525a3d9b0".freeze
9
9
  @release = true
10
10
  # end ivars
11
11
 
@@ -621,11 +621,13 @@ module Bundler
621
621
  end
622
622
 
623
623
  def start_resolution
624
+ @platforms |= [local_platform]
625
+
624
626
  result = SpecSet.new(resolver.start)
625
627
 
626
628
  @resolved_bundler_version = result.find {|spec| spec.name == "bundler" }&.version
627
629
 
628
- if @current_ruby_locked_platform && @current_ruby_locked_platform != local_platform
630
+ if most_specific_ruby_locked_platform_is_not_local_platform?
629
631
  @platforms.delete(result.incomplete_for_platform?(dependencies, @current_ruby_locked_platform) ? @current_ruby_locked_platform : local_platform)
630
632
  end
631
633
 
@@ -667,10 +669,15 @@ module Bundler
667
669
 
668
670
  def add_current_platform
669
671
  @current_ruby_locked_platform = most_specific_locked_platform if current_ruby_platform_locked?
672
+ return if most_specific_ruby_locked_platform_is_not_local_platform?
670
673
 
671
674
  add_platform(local_platform)
672
675
  end
673
676
 
677
+ def most_specific_ruby_locked_platform_is_not_local_platform?
678
+ @current_ruby_locked_platform && @current_ruby_locked_platform != local_platform
679
+ end
680
+
674
681
  def change_reason
675
682
  if unlocking?
676
683
  unlock_targets = if @gems_to_unlock.any?
@@ -92,6 +92,17 @@ module Bundler
92
92
  end
93
93
  end
94
94
 
95
+ # needed for `bundle fund`
96
+ def metadata
97
+ if @remote_specification
98
+ @remote_specification.metadata
99
+ elsif _local_specification
100
+ _local_specification.metadata
101
+ else
102
+ super
103
+ end
104
+ end
105
+
95
106
  def _local_specification
96
107
  return unless @loaded_from && File.exist?(local_specification_path)
97
108
  eval(File.read(local_specification_path), nil, local_specification_path).tap do |spec|
@@ -29,7 +29,10 @@ module Bundler
29
29
  write_build_info_file
30
30
  run_post_build_hooks
31
31
 
32
- generate_bin
32
+ SharedHelpers.filesystem_access(bin_dir, :write) do
33
+ generate_bin
34
+ end
35
+
33
36
  generate_plugins
34
37
 
35
38
  write_spec
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Bundler
4
- VERSION = "2.5.12".freeze
4
+ VERSION = "2.5.13".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.5.12
4
+ version: 2.5.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
@@ -22,7 +22,7 @@ authors:
22
22
  autorequire:
23
23
  bindir: exe
24
24
  cert_chain: []
25
- date: 2024-06-13 00:00:00.000000000 Z
25
+ date: 2024-06-14 00:00:00.000000000 Z
26
26
  dependencies: []
27
27
  description: Bundler manages an application's dependencies through its entire life,
28
28
  across many machines, systematically and repeatably
@@ -400,7 +400,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
400
400
  - !ruby/object:Gem::Version
401
401
  version: 3.2.3
402
402
  requirements: []
403
- rubygems_version: 3.5.12
403
+ rubygems_version: 3.5.13
404
404
  signing_key:
405
405
  specification_version: 4
406
406
  summary: The best way to manage your application's dependencies