bundler 2.7.0 → 2.7.1

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: 47c879a30420e218f704088e1a9c5eb3dd164e0ee5f942fea415b19ec616661f
4
- data.tar.gz: f3d9d4c7034ec23b40a94c0e279b420b72abc4745e86ab6af0ff1eecf68a63c8
3
+ metadata.gz: 7646bb07e1de3699f3cde655ea56767abc4b8f0b31b54bbe97db921b3190f6a6
4
+ data.tar.gz: b86ad0963600740f1f966d82880f8f1b648c9cb2d5097da720201a4da6424bfa
5
5
  SHA512:
6
- metadata.gz: 982d36bf916dffff2abd6698481a358dfb5505af7d8c2f23d60334df412854f086d76eacb0dfdf624d84e05a8695d2631675252433ce101a3287b520a6b2336f
7
- data.tar.gz: 20864a8da985d5d98d5dd1fc1c29b17a20bea8e0e4d57949e656ef5a9a3101fb2b96bc04247764e5174bfb088147655625d22d83febaa068cf32b89d9cd4d79e
6
+ metadata.gz: 106db161a170ecca9cb3fe526e796c4663e0f55c79e6a24a5e1ae1762af9af899408040edf30f143e640e67aeefdcf2a028e7ff7a20441478c4599a423b6f351
7
+ data.tar.gz: 689de87d686762ff8539cdb800b00ad79816f4b48c1b447ac7ec87b1db9a76516f4df4ed9dd2a69d4588d9ab72b375b08df01dfaf1f2622dd3838f0aad81c5a2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.7.1 (2025-07-21)
4
+
5
+ ### Enhancements:
6
+
7
+ - Add some missing deprecation messages [#8844](https://github.com/rubygems/rubygems/pull/8844)
8
+
9
+ ### Bug fixes:
10
+
11
+ - Cancel deprecation of `--force` flag to `bundle install` and `bundle update` [#8843](https://github.com/rubygems/rubygems/pull/8843)
12
+
13
+ ### Documentation:
14
+
15
+ - Clarify documentation about new default gem installation directory in Bundler 4 [#8857](https://github.com/rubygems/rubygems/pull/8857)
16
+ - Use mailto link in Code of Conduct [#8849](https://github.com/rubygems/rubygems/pull/8849)
17
+ - Update Code of Conduct email to conduct@rubygems.org [#8848](https://github.com/rubygems/rubygems/pull/8848)
18
+ - Add missing link to `irb` repo in DEBUGGING.md [#8842](https://github.com/rubygems/rubygems/pull/8842)
19
+
3
20
  ## 2.7.0 (2025-07-16)
4
21
 
5
22
  ### Breaking changes:
@@ -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-07-16".freeze
8
- @git_commit_sha = "24a46f4f3d6".freeze
7
+ @built_at = "2025-07-21".freeze
8
+ @git_commit_sha = "bd22001d8c7".freeze
9
9
  # end ivars
10
10
 
11
11
  # A hash representation of the build metadata.
@@ -179,7 +179,7 @@ module Bundler
179
179
 
180
180
  normalize_groups if options[:without] || options[:with]
181
181
 
182
- options[:force] = options[:redownload]
182
+ options[:force] = options[:redownload] if options[:redownload]
183
183
  end
184
184
 
185
185
  def warn_ambiguous_gems
@@ -63,7 +63,7 @@ module Bundler
63
63
  opts = options.dup
64
64
  opts["update"] = true
65
65
  opts["local"] = options[:local]
66
- opts["force"] = options[:redownload]
66
+ opts["force"] = options[:redownload] if options[:redownload]
67
67
 
68
68
  Bundler.settings.set_command_option_if_given :jobs, opts["jobs"]
69
69
 
data/lib/bundler/cli.rb CHANGED
@@ -220,7 +220,7 @@ module Bundler
220
220
  method_option "local", type: :boolean, banner: "Do not attempt to fetch gems remotely and use the gem cache instead"
221
221
  method_option "prefer-local", type: :boolean, banner: "Only attempt to fetch gems remotely if not present locally, even if newer versions are available remotely"
222
222
  method_option "no-cache", type: :boolean, banner: "Don't update the existing gem cache."
223
- method_option "redownload", type: :boolean, aliases: "--force", banner: "Force downloading every gem."
223
+ method_option "force", type: :boolean, aliases: "--redownload", banner: "Force reinstalling every gem, even if already installed"
224
224
  method_option "no-prune", type: :boolean, banner: "Don't remove stale gems from the cache."
225
225
  method_option "path", type: :string, banner: "Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME).#{" Bundler will remember this value for future installs on this machine" unless Bundler.feature_flag.forget_cli_options?}"
226
226
  method_option "quiet", type: :boolean, banner: "Only output warnings and errors."
@@ -232,15 +232,13 @@ module Bundler
232
232
  method_option "without", type: :array, banner: "Exclude gems that are part of the specified named group."
233
233
  method_option "with", type: :array, banner: "Include gems that are part of the specified named group."
234
234
  def install
235
- SharedHelpers.major_deprecation(2, "The `--force` option has been renamed to `--redownload`") if ARGV.include?("--force")
236
-
237
235
  %w[clean deployment frozen no-prune path shebang without with].each do |option|
238
236
  remembered_flag_deprecation(option)
239
237
  end
240
238
 
241
239
  print_remembered_flag_deprecation("--system", "path.system", "true") if ARGV.include?("--system")
242
240
 
243
- remembered_negative_flag_deprecation("no-deployment")
241
+ remembered_flag_deprecation("deployment", negative: true)
244
242
 
245
243
  require_relative "cli/install"
246
244
  Bundler.settings.temporary(no_install: false) do
@@ -263,7 +261,7 @@ module Bundler
263
261
  method_option "local", type: :boolean, banner: "Do not attempt to fetch gems remotely and use the gem cache instead"
264
262
  method_option "quiet", type: :boolean, banner: "Only output warnings and errors."
265
263
  method_option "source", type: :array, banner: "Update a specific source (and all gems associated with it)"
266
- method_option "redownload", type: :boolean, aliases: "--force", banner: "Force downloading every gem."
264
+ method_option "force", type: :boolean, aliases: "--redownload", banner: "Force reinstalling every gem, even if already installed"
267
265
  method_option "ruby", type: :boolean, banner: "Update ruby specified in Gemfile.lock"
268
266
  method_option "bundler", type: :string, lazy_default: "> 0.a", banner: "Update the locked version of bundler"
269
267
  method_option "patch", type: :boolean, banner: "Prefer updating only to next patch version"
@@ -274,7 +272,6 @@ module Bundler
274
272
  method_option "conservative", type: :boolean, banner: "Use bundle install conservative update behavior and do not allow shared dependencies to be updated."
275
273
  method_option "all", type: :boolean, banner: "Update everything."
276
274
  def update(*gems)
277
- SharedHelpers.major_deprecation(2, "The `--force` option has been renamed to `--redownload`") if ARGV.include?("--force")
278
275
  require_relative "cli/update"
279
276
  Bundler.settings.temporary(no_install: false) do
280
277
  Update.new(options, gems).run
@@ -331,6 +328,8 @@ module Bundler
331
328
  method_option "all", type: :boolean, banner: "Install binstubs for all gems"
332
329
  method_option "all-platforms", type: :boolean, default: false, banner: "Install binstubs for all platforms"
333
330
  def binstubs(*gems)
331
+ remembered_flag_deprecation("path", option_name: "bin")
332
+
334
333
  require_relative "cli/binstubs"
335
334
  Binstubs.new(options, gems).run
336
335
  end
@@ -414,7 +413,7 @@ module Bundler
414
413
  def cache
415
414
  print_remembered_flag_deprecation("--all", "cache_all", "true") if ARGV.include?("--all")
416
415
 
417
- if ARGV.include?("--path")
416
+ if flag_passed?("--path")
418
417
  message =
419
418
  "The `--path` flag is deprecated because its semantics are unclear. " \
420
419
  "Use `bundle config cache_path` to configure the path of your cache of gems, " \
@@ -743,30 +742,17 @@ module Bundler
743
742
  nil
744
743
  end
745
744
 
746
- def remembered_negative_flag_deprecation(name)
747
- positive_name = name.gsub(/\Ano-/, "")
748
- option = current_command.options[positive_name]
749
- flag_name = "--no-" + option.switch_name.gsub(/\A--/, "")
750
-
751
- flag_deprecation(positive_name, flag_name, option)
752
- end
753
-
754
- def remembered_flag_deprecation(name)
745
+ def remembered_flag_deprecation(name, negative: false, option_name: nil)
755
746
  option = current_command.options[name]
756
747
  flag_name = option.switch_name
757
-
758
- flag_deprecation(name, flag_name, option)
759
- end
760
-
761
- def flag_deprecation(name, flag_name, option)
762
- name_index = ARGV.find {|arg| flag_name == arg.split("=")[0] }
763
- return unless name_index
748
+ flag_name = "--no-" + flag_name.gsub(/\A--/, "") if negative
749
+ return unless flag_passed?(flag_name)
764
750
 
765
751
  value = options[name]
766
752
  value = value.join(" ").to_s if option.type == :array
767
753
  value = "'#{value}'" unless option.type == :boolean
768
754
 
769
- print_remembered_flag_deprecation(flag_name, name.tr("-", "_"), value)
755
+ print_remembered_flag_deprecation(flag_name, option_name || name.tr("-", "_"), value)
770
756
  end
771
757
 
772
758
  def print_remembered_flag_deprecation(flag_name, option_name, option_value)
@@ -782,5 +768,9 @@ module Bundler
782
768
  "#{option_value}`, and stop using this flag"
783
769
  Bundler::SharedHelpers.major_deprecation 2, message, removed_message: removed_message
784
770
  end
771
+
772
+ def flag_passed?(name)
773
+ ARGV.any? {|arg| name == arg.split("=")[0] }
774
+ end
785
775
  end
786
776
  end
@@ -4,7 +4,7 @@
4
4
  .SH "NAME"
5
5
  \fBbundle\-install\fR \- Install the dependencies specified in your Gemfile
6
6
  .SH "SYNOPSIS"
7
- \fBbundle install\fR [\-\-binstubs[=DIRECTORY]] [\-\-clean] [\-\-deployment] [\-\-frozen] [\-\-full\-index] [\-\-gemfile=GEMFILE] [\-\-jobs=NUMBER] [\-\-local] [\-\-no\-cache] [\-\-no\-prune] [\-\-path PATH] [\-\-prefer\-local] [\-\-quiet] [\-\-redownload] [\-\-retry=NUMBER] [\-\-shebang=SHEBANG] [\-\-standalone[=GROUP[ GROUP\|\.\|\.\|\.]]] [\-\-system] [\-\-trust\-policy=TRUST\-POLICY] [\-\-target\-rbconfig=TARGET\-RBCONFIG] [\-\-with=GROUP[ GROUP\|\.\|\.\|\.]] [\-\-without=GROUP[ GROUP\|\.\|\.\|\.]]
7
+ \fBbundle install\fR [\-\-binstubs[=DIRECTORY]] [\-\-clean] [\-\-deployment] [\-\-force] [\-\-frozen] [\-\-full\-index] [\-\-gemfile=GEMFILE] [\-\-jobs=NUMBER] [\-\-local] [\-\-no\-cache] [\-\-no\-prune] [\-\-path PATH] [\-\-prefer\-local] [\-\-quiet] [\-\-retry=NUMBER] [\-\-shebang=SHEBANG] [\-\-standalone[=GROUP[ GROUP\|\.\|\.\|\.]]] [\-\-system] [\-\-trust\-policy=TRUST\-POLICY] [\-\-target\-rbconfig=TARGET\-RBCONFIG] [\-\-with=GROUP[ GROUP\|\.\|\.\|\.]] [\-\-without=GROUP[ GROUP\|\.\|\.\|\.]]
8
8
  .SH "DESCRIPTION"
9
9
  Install the gems specified in your Gemfile(5)\. If this is the first time you run bundle install (and a \fBGemfile\.lock\fR does not exist), Bundler will fetch all remote sources, resolve dependencies and install all needed gems\.
10
10
  .P
@@ -29,8 +29,8 @@ In \fIdeployment mode\fR, Bundler will 'roll\-out' the bundle for production or
29
29
  .IP
30
30
  This option is deprecated in favor of the \fBdeployment\fR setting\.
31
31
  .TP
32
- \fB\-\-redownload\fR, \fB\-\-force\fR
33
- Force download every gem, even if the required versions are already available locally\.
32
+ \fB\-\-force\fR, \fB\-\-redownload\fR
33
+ Force reinstalling every gem, even if already installed\.
34
34
  .TP
35
35
  \fB\-\-frozen\fR
36
36
  Do not allow the Gemfile\.lock to be updated after this install\. Exits non\-zero if there are going to be changes to the Gemfile\.lock\.
@@ -6,6 +6,7 @@ bundle-install(1) -- Install the dependencies specified in your Gemfile
6
6
  `bundle install` [--binstubs[=DIRECTORY]]
7
7
  [--clean]
8
8
  [--deployment]
9
+ [--force]
9
10
  [--frozen]
10
11
  [--full-index]
11
12
  [--gemfile=GEMFILE]
@@ -16,7 +17,6 @@ bundle-install(1) -- Install the dependencies specified in your Gemfile
16
17
  [--path PATH]
17
18
  [--prefer-local]
18
19
  [--quiet]
19
- [--redownload]
20
20
  [--retry=NUMBER]
21
21
  [--shebang=SHEBANG]
22
22
  [--standalone[=GROUP[ GROUP...]]]
@@ -80,9 +80,8 @@ automatically and that requires `bundler` to silently remember them. Since
80
80
 
81
81
  This option is deprecated in favor of the `deployment` setting.
82
82
 
83
- * `--redownload`, `--force`:
84
- Force download every gem, even if the required versions are already available
85
- locally.
83
+ * `--force`, `--redownload`:
84
+ Force reinstalling every gem, even if already installed.
86
85
 
87
86
  * `--frozen`:
88
87
  Do not allow the Gemfile.lock to be updated after this install. Exits
@@ -4,7 +4,7 @@
4
4
  .SH "NAME"
5
5
  \fBbundle\-update\fR \- Update your gems to the latest available versions
6
6
  .SH "SYNOPSIS"
7
- \fBbundle update\fR \fI*gems\fR [\-\-all] [\-\-group=NAME] [\-\-source=NAME] [\-\-local] [\-\-ruby] [\-\-bundler[=VERSION]] [\-\-full\-index] [\-\-gemfile=GEMFILE] [\-\-jobs=NUMBER] [\-\-quiet] [\-\-patch|\-\-minor|\-\-major] [\-\-pre] [\-\-redownload] [\-\-strict] [\-\-conservative]
7
+ \fBbundle update\fR \fI*gems\fR [\-\-all] [\-\-group=NAME] [\-\-source=NAME] [\-\-local] [\-\-ruby] [\-\-bundler[=VERSION]] [\-\-force] [\-\-full\-index] [\-\-gemfile=GEMFILE] [\-\-jobs=NUMBER] [\-\-quiet] [\-\-patch|\-\-minor|\-\-major] [\-\-pre] [\-\-strict] [\-\-conservative]
8
8
  .SH "DESCRIPTION"
9
9
  Update the gems specified (all gems, if \fB\-\-all\fR flag is used), ignoring the previously installed gems specified in the \fBGemfile\.lock\fR\. In general, you should use bundle install(1) \fIbundle\-install\.1\.html\fR to install the same exact gems and versions across machines\.
10
10
  .P
@@ -29,6 +29,9 @@ Update the locked version of Ruby to the current version of Ruby\.
29
29
  \fB\-\-bundler[=BUNDLER]\fR
30
30
  Update the locked version of bundler to the invoked bundler version\.
31
31
  .TP
32
+ \fB\-\-force\fR, \fB\-\-redownload\fR
33
+ Force reinstalling every gem, even if already installed\.
34
+ .TP
32
35
  \fB\-\-full\-index\fR
33
36
  Fall back to using the single\-file index of all gems\.
34
37
  .TP
@@ -44,9 +47,6 @@ Retry failed network or git requests for \fInumber\fR times\.
44
47
  \fB\-\-quiet\fR
45
48
  Only output warnings and errors\.
46
49
  .TP
47
- \fB\-\-redownload\fR, \fB\-\-force\fR
48
- Force downloading every gem\.
49
- .TP
50
50
  \fB\-\-patch\fR
51
51
  Prefer updating only to next patch version\.
52
52
  .TP
@@ -9,13 +9,13 @@ bundle-update(1) -- Update your gems to the latest available versions
9
9
  [--local]
10
10
  [--ruby]
11
11
  [--bundler[=VERSION]]
12
+ [--force]
12
13
  [--full-index]
13
14
  [--gemfile=GEMFILE]
14
15
  [--jobs=NUMBER]
15
16
  [--quiet]
16
17
  [--patch|--minor|--major]
17
18
  [--pre]
18
- [--redownload]
19
19
  [--strict]
20
20
  [--conservative]
21
21
 
@@ -54,6 +54,9 @@ gem.
54
54
  * `--bundler[=BUNDLER]`:
55
55
  Update the locked version of bundler to the invoked bundler version.
56
56
 
57
+ * `--force`, `--redownload`:
58
+ Force reinstalling every gem, even if already installed.
59
+
57
60
  * `--full-index`:
58
61
  Fall back to using the single-file index of all gems.
59
62
 
@@ -70,9 +73,6 @@ gem.
70
73
  * `--quiet`:
71
74
  Only output warnings and errors.
72
75
 
73
- * `--redownload`, `--force`:
74
- Force downloading every gem.
75
-
76
76
  * `--patch`:
77
77
  Prefer updating only to next patch version.
78
78
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Bundler
4
- VERSION = "2.7.0".freeze
4
+ VERSION = "2.7.1".freeze
5
5
 
6
6
  def self.bundler_major_version
7
7
  @bundler_major_version ||= gem_version.segments.first
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.7.0
4
+ version: 2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
@@ -404,7 +404,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
404
404
  - !ruby/object:Gem::Version
405
405
  version: 3.4.1
406
406
  requirements: []
407
- rubygems_version: 3.7.0
407
+ rubygems_version: 3.7.1
408
408
  specification_version: 4
409
409
  summary: The best way to manage your application's dependencies
410
410
  test_files: []