bundler 2.4.16 → 2.4.17

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: 6f9e9c83cf5645d84d7383ca3fdf70e8344283bfee08a8a197354ad3b9c20f63
4
- data.tar.gz: 0630dce294ba12c3d357d339d21b703a24d71c946751c5598c001b955f2effea
3
+ metadata.gz: 8c93ff76be7428157de06fe91e895647e240bb9d19d2e4396751391011db4f1d
4
+ data.tar.gz: 48566c7332546fadc07817de241887c7ab8bbee1d591445df28b6d6cef14fa88
5
5
  SHA512:
6
- metadata.gz: c9e5534ed8dd3b86f9413363c5aec4a12c28a8ec0295b8ca0b2a2b10112b0e19ce95a8c369efe2d5faff856168aa47e37f8e44fa96c55fb04e5d449b456aa8a1
7
- data.tar.gz: b5e4e73017ed9ac4461b2a346818f6cdd5824d0831be0a912af4a8318ed96578f69b58764072ace893230b0b5b7e61e4b200df779e68424e0c891fb5774ace68
6
+ metadata.gz: 869ceea50b2d613c5bdd0ae1532400e12be99d3e88a8864778ecd0c2d225f4b092e0a4e0fe9e88fcff8638c5aeba9e0331668180112f0dab3a08c40d0f9610e0
7
+ data.tar.gz: 27c36d53376a122e905b4fc194e81a2358cd270e82d7d09344edf9870276482d9100c71beb8bafd5cc772c3b7ca3e48e92d6cb2c0083dd3d23b46c0642b93a8a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ # 2.4.17 (July 14, 2023)
2
+
3
+ ## Enhancements:
4
+
5
+ - Avoid printing "Using ..." messages when version has not changed [#6804](https://github.com/rubygems/rubygems/pull/6804)
6
+
7
+ ## Bug fixes:
8
+
9
+ - Fix `bundler/setup` unintendedly writing to the filesystem [#6814](https://github.com/rubygems/rubygems/pull/6814)
10
+
1
11
  # 2.4.16 (July 10, 2023)
2
12
 
3
13
  ## Bug fixes:
@@ -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 = "2023-07-10".freeze
8
- @git_commit_sha = "bd573c7f8b".freeze
7
+ @built_at = "2023-07-14".freeze
8
+ @git_commit_sha = "36ea2bc283".freeze
9
9
  @release = true
10
10
  # end ivars
11
11
 
@@ -37,7 +37,6 @@ module Bundler
37
37
  settings_flag(:plugins) { @bundler_version >= Gem::Version.new("1.14") }
38
38
  settings_flag(:print_only_version_number) { bundler_3_mode? }
39
39
  settings_flag(:setup_makes_kernel_gem_public) { !bundler_3_mode? }
40
- settings_flag(:suppress_install_using_messages) { bundler_3_mode? }
41
40
  settings_flag(:update_requires_all_flag) { bundler_4_mode? }
42
41
 
43
42
  settings_option(:default_cli_command) { bundler_3_mode? ? :cli_help : :install }
@@ -284,9 +284,6 @@ The following is a list of all configuration keys and their purpose\. You can le
284
284
  \fBssl_verify_mode\fR (\fBBUNDLE_SSL_VERIFY_MODE\fR): The SSL verification mode Bundler uses when making HTTPS requests\. Defaults to verify peer\.
285
285
  .
286
286
  .IP "\(bu" 4
287
- \fBsuppress_install_using_messages\fR (\fBBUNDLE_SUPPRESS_INSTALL_USING_MESSAGES\fR): Avoid printing \fBUsing \.\.\.\fR messages during installation when the version of a gem has not changed\.
288
- .
289
- .IP "\(bu" 4
290
287
  \fBsystem_bindir\fR (\fBBUNDLE_SYSTEM_BINDIR\fR): The location where RubyGems installs binstubs\. Defaults to \fBGem\.bindir\fR\.
291
288
  .
292
289
  .IP "\(bu" 4
@@ -265,9 +265,6 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
265
265
  * `ssl_verify_mode` (`BUNDLE_SSL_VERIFY_MODE`):
266
266
  The SSL verification mode Bundler uses when making HTTPS requests.
267
267
  Defaults to verify peer.
268
- * `suppress_install_using_messages` (`BUNDLE_SUPPRESS_INSTALL_USING_MESSAGES`):
269
- Avoid printing `Using ...` messages during installation when the version of
270
- a gem has not changed.
271
268
  * `system_bindir` (`BUNDLE_SYSTEM_BINDIR`):
272
269
  The location where RubyGems installs binstubs. Defaults to `Gem.bindir`.
273
270
  * `timeout` (`BUNDLE_TIMEOUT`):
@@ -43,7 +43,6 @@ module Bundler
43
43
  setup_makes_kernel_gem_public
44
44
  silence_deprecations
45
45
  silence_root_warning
46
- suppress_install_using_messages
47
46
  update_requires_all_flag
48
47
  ].freeze
49
48
 
@@ -69,19 +69,7 @@ module Bundler
69
69
 
70
70
  def to_s
71
71
  begin
72
- at = if local?
73
- path
74
- elsif user_ref = options["ref"]
75
- if /\A[a-z0-9]{4,}\z/i.match?(ref)
76
- shortref_for_display(user_ref)
77
- else
78
- user_ref
79
- end
80
- elsif ref
81
- ref
82
- else
83
- current_branch
84
- end
72
+ at = humanized_ref || current_branch
85
73
 
86
74
  rev = "at #{at}@#{shortref_for_display(revision)}"
87
75
  rescue GitError
@@ -91,6 +79,10 @@ module Bundler
91
79
  uri_with_specifiers([rev, glob_for_display])
92
80
  end
93
81
 
82
+ def identifier
83
+ uri_with_specifiers([humanized_ref, cached_revision, glob_for_display])
84
+ end
85
+
94
86
  def uri_with_specifiers(specifiers)
95
87
  specifiers.compact!
96
88
 
@@ -256,6 +248,20 @@ module Bundler
256
248
 
257
249
  private
258
250
 
251
+ def humanized_ref
252
+ if local?
253
+ path
254
+ elsif user_ref = options["ref"]
255
+ if /\A[a-z0-9]{4,}\z/i.match?(ref)
256
+ shortref_for_display(user_ref)
257
+ else
258
+ user_ref
259
+ end
260
+ elsif ref
261
+ ref
262
+ end
263
+ end
264
+
259
265
  def serialize_gemspecs_in(destination)
260
266
  destination = destination.expand_path(Bundler.root) if destination.relative?
261
267
  Dir["#{destination}/#{@glob}"].each do |spec_path|
@@ -100,7 +100,7 @@ module Bundler
100
100
  end
101
101
 
102
102
  def print_using_message(message)
103
- if !message.include?("(was ") && Bundler.feature_flag.suppress_install_using_messages?
103
+ if !message.include?("(was ")
104
104
  Bundler.ui.debug message
105
105
  else
106
106
  Bundler.ui.info message
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Bundler
4
- VERSION = "2.4.16".freeze
4
+ VERSION = "2.4.17".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.4.16
4
+ version: 2.4.17
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: 2023-07-10 00:00:00.000000000 Z
25
+ date: 2023-07-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
@@ -381,7 +381,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
381
381
  - !ruby/object:Gem::Version
382
382
  version: 3.0.1
383
383
  requirements: []
384
- rubygems_version: 3.4.16
384
+ rubygems_version: 3.4.17
385
385
  signing_key:
386
386
  specification_version: 4
387
387
  summary: The best way to manage your application's dependencies