bundler 2.6.0 → 2.6.1

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: 7e5040339545260efa41ad3b7bd4201dfdc9275e322b970ed3c768a45ec01e06
4
- data.tar.gz: 6d8271cc5fd5a98f98637ef49a597ff4edc8ce78e2fcb2f504b21c29b6f4b0a1
3
+ metadata.gz: 7bfa8675573c163266376b8d0db160906de8e1f96c701803d8ce1805fcd2483b
4
+ data.tar.gz: 97fa241962c9c6bd4359807f8c14419bb2d01dfafce9e6255f6814bb92808261
5
5
  SHA512:
6
- metadata.gz: 1cfdf00dc9e185a6af93c187a55b2c4d2c61f0f21edcfd0b5e213f1b00026e010815c7b1ea4ea2efd96c199b514061b3b183257a4e7aa6b25bd1bce2b6e7404e
7
- data.tar.gz: b32951d8312bb7d65fabd06c269ca6ec6e2114f9f2836aeb74aa72a73a2b219c56a173f0383f7e917072fe9ab78c7a0fa9c31a58aca24d9faf078490145e9dfa
6
+ metadata.gz: f43793bc6ef1428699716d32ee2b7fb48ba0bb32b4a1dd6a28468c6677be7814b975598545f109d38eb13e6160117c2193fb9feba5df35911ab2a6bcae935c9e
7
+ data.tar.gz: 025362f4733db21ed544eb34467e9b944e011a45896c3dfbd1a3ecc571bcb81db68fec9dce2725c52ee9ac2c285c97541b78ad7ca079c403c5a4684da3df43fa
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # 2.6.1 (December 17, 2024)
2
+
3
+ ## Bug fixes:
4
+
5
+ - Fix missing `Gem::Uri.redact` on some Ruby 3.1 versions [#8337](https://github.com/rubygems/rubygems/pull/8337)
6
+ - Fix `bundle lock --add-checksums` when gems are already installed [#8326](https://github.com/rubygems/rubygems/pull/8326)
7
+
1
8
  # 2.6.0 (December 16, 2024)
2
9
 
3
10
  ## Security:
@@ -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-12-16".freeze
8
- @git_commit_sha = "d6be0319aaf".freeze
7
+ @built_at = "2024-12-17".freeze
8
+ @git_commit_sha = "00a344e02c8".freeze
9
9
  @release = true
10
10
  # end ivars
11
11
 
@@ -186,13 +186,13 @@ module Bundler
186
186
  def setup_domain!(options = {})
187
187
  prefer_local! if options[:"prefer-local"]
188
188
 
189
- if options[:local] || no_install_needed?
190
- Bundler.settings.set_command_option(:jobs, 1) if no_install_needed? # to avoid the overhead of Bundler::Worker
191
- with_cache!
192
- false
193
- else
189
+ if options[:add_checksums] || (!options[:local] && install_needed?)
194
190
  remotely!
195
191
  true
192
+ else
193
+ Bundler.settings.set_command_option(:jobs, 1) unless install_needed? # to avoid the overhead of Bundler::Worker
194
+ with_cache!
195
+ false
196
196
  end
197
197
  end
198
198
 
@@ -513,26 +513,11 @@ module Bundler
513
513
  end
514
514
 
515
515
  def nothing_changed?
516
- return false unless lockfile_exists?
517
-
518
- !@source_changes &&
519
- !@dependency_changes &&
520
- !@current_platform_missing &&
521
- @new_platforms.empty? &&
522
- !@path_changes &&
523
- !@local_changes &&
524
- !@missing_lockfile_dep &&
525
- !@unlocking_bundler &&
526
- !@locked_spec_with_missing_deps &&
527
- !@locked_spec_with_invalid_deps
528
- end
529
-
530
- def no_install_needed?
531
- no_resolve_needed? && !missing_specs?
516
+ !something_changed?
532
517
  end
533
518
 
534
519
  def no_resolve_needed?
535
- !unlocking? && nothing_changed?
520
+ !resolve_needed?
536
521
  end
537
522
 
538
523
  def unlocking?
@@ -544,13 +529,36 @@ module Bundler
544
529
  def add_checksums
545
530
  @locked_checksums = true
546
531
 
547
- setup_domain!
532
+ setup_domain!(add_checksums: true)
548
533
 
549
534
  specs # force materialization to real specifications, so that checksums are fetched
550
535
  end
551
536
 
552
537
  private
553
538
 
539
+ def install_needed?
540
+ resolve_needed? || missing_specs?
541
+ end
542
+
543
+ def something_changed?
544
+ return true unless lockfile_exists?
545
+
546
+ @source_changes ||
547
+ @dependency_changes ||
548
+ @current_platform_missing ||
549
+ @new_platforms.any? ||
550
+ @path_changes ||
551
+ @local_changes ||
552
+ @missing_lockfile_dep ||
553
+ @unlocking_bundler ||
554
+ @locked_spec_with_missing_deps ||
555
+ @locked_spec_with_invalid_deps
556
+ end
557
+
558
+ def resolve_needed?
559
+ unlocking? || something_changed?
560
+ end
561
+
554
562
  def should_add_extra_platforms?
555
563
  !lockfile_exists? && generic_local_platform_is_ruby? && !Bundler.settings[:force_ruby_platform]
556
564
  end
@@ -455,4 +455,15 @@ module Gem
455
455
 
456
456
  Package::TarReader::Entry.prepend(FixFullNameEncoding)
457
457
  end
458
+
459
+ require "rubygems/uri"
460
+
461
+ # Can be removed once RubyGems 3.3.15 support is dropped
462
+ unless Gem::Uri.respond_to?(:redact)
463
+ class Uri
464
+ def self.redact(uri)
465
+ new(uri).redacted
466
+ end
467
+ end
468
+ end
458
469
  end
@@ -41,7 +41,7 @@ require 'random/formatter'
41
41
  module Bundler::SecureRandom
42
42
 
43
43
  # The version
44
- VERSION = "0.4.0"
44
+ VERSION = "0.4.1"
45
45
 
46
46
  class << self
47
47
  # Returns a random binary string containing +size+ bytes.
@@ -51,6 +51,12 @@ module Bundler::SecureRandom
51
51
  return gen_random(n)
52
52
  end
53
53
 
54
+ # Compatibility methods for Ruby 3.2, we can remove this after dropping to support Ruby 3.2
55
+ def alphanumeric(n = nil, chars: ALPHANUMERIC)
56
+ n = 16 if n.nil?
57
+ choose(chars, n)
58
+ end if RUBY_VERSION < '3.3'
59
+
54
60
  private
55
61
 
56
62
  # :stopdoc:
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Bundler
4
- VERSION = "2.6.0".freeze
4
+ VERSION = "2.6.1".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.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  original_platform: ''
7
7
  authors:
@@ -22,7 +22,7 @@ authors:
22
22
  - Yehuda Katz
23
23
  bindir: exe
24
24
  cert_chain: []
25
- date: 2024-12-16 00:00:00.000000000 Z
25
+ date: 2024-12-17 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
@@ -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.0
415
+ rubygems_version: 3.6.1
416
416
  specification_version: 4
417
417
  summary: The best way to manage your application's dependencies
418
418
  test_files: []