bundler 2.3.18 → 2.3.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +78 -0
  3. data/lib/bundler/build_metadata.rb +2 -2
  4. data/lib/bundler/cli/common.rb +1 -0
  5. data/lib/bundler/cli/install.rb +5 -2
  6. data/lib/bundler/cli/outdated.rb +12 -3
  7. data/lib/bundler/cli/platform.rb +1 -1
  8. data/lib/bundler/cli.rb +5 -3
  9. data/lib/bundler/definition.rb +103 -29
  10. data/lib/bundler/dsl.rb +2 -2
  11. data/lib/bundler/endpoint_specification.rb +1 -12
  12. data/lib/bundler/fetcher.rb +6 -6
  13. data/lib/bundler/gem_helpers.rb +7 -1
  14. data/lib/bundler/gem_version_promoter.rb +4 -0
  15. data/lib/bundler/index.rb +10 -12
  16. data/lib/bundler/inline.rb +1 -1
  17. data/lib/bundler/installer/standalone.rb +1 -1
  18. data/lib/bundler/installer.rb +14 -12
  19. data/lib/bundler/lazy_specification.rb +30 -23
  20. data/lib/bundler/man/bundle-add.1 +1 -1
  21. data/lib/bundler/man/bundle-binstubs.1 +1 -1
  22. data/lib/bundler/man/bundle-cache.1 +7 -1
  23. data/lib/bundler/man/bundle-cache.1.ronn +7 -0
  24. data/lib/bundler/man/bundle-check.1 +1 -1
  25. data/lib/bundler/man/bundle-clean.1 +1 -1
  26. data/lib/bundler/man/bundle-config.1 +25 -6
  27. data/lib/bundler/man/bundle-config.1.ronn +16 -6
  28. data/lib/bundler/man/bundle-doctor.1 +1 -1
  29. data/lib/bundler/man/bundle-exec.1 +2 -2
  30. data/lib/bundler/man/bundle-exec.1.ronn +1 -1
  31. data/lib/bundler/man/bundle-gem.1 +1 -1
  32. data/lib/bundler/man/bundle-info.1 +1 -1
  33. data/lib/bundler/man/bundle-init.1 +1 -1
  34. data/lib/bundler/man/bundle-inject.1 +5 -2
  35. data/lib/bundler/man/bundle-inject.1.ronn +3 -1
  36. data/lib/bundler/man/bundle-install.1 +5 -1
  37. data/lib/bundler/man/bundle-install.1.ronn +6 -0
  38. data/lib/bundler/man/bundle-list.1 +1 -1
  39. data/lib/bundler/man/bundle-lock.1 +1 -1
  40. data/lib/bundler/man/bundle-open.1 +1 -1
  41. data/lib/bundler/man/bundle-outdated.1 +1 -1
  42. data/lib/bundler/man/bundle-platform.1 +16 -6
  43. data/lib/bundler/man/bundle-platform.1.ronn +14 -7
  44. data/lib/bundler/man/bundle-plugin.1 +81 -0
  45. data/lib/bundler/man/bundle-plugin.1.ronn +59 -0
  46. data/lib/bundler/man/bundle-pristine.1 +1 -1
  47. data/lib/bundler/man/bundle-remove.1 +1 -1
  48. data/lib/bundler/man/bundle-show.1 +1 -1
  49. data/lib/bundler/man/bundle-update.1 +1 -1
  50. data/lib/bundler/man/bundle-viz.1 +4 -1
  51. data/lib/bundler/man/bundle-viz.1.ronn +2 -0
  52. data/lib/bundler/man/bundle.1 +10 -9
  53. data/lib/bundler/man/bundle.1.ronn +8 -6
  54. data/lib/bundler/man/gemfile.5 +16 -10
  55. data/lib/bundler/man/gemfile.5.ronn +23 -16
  56. data/lib/bundler/man/index.txt +1 -0
  57. data/lib/bundler/match_metadata.rb +13 -0
  58. data/lib/bundler/match_remote_metadata.rb +26 -0
  59. data/lib/bundler/plugin.rb +2 -0
  60. data/lib/bundler/remote_specification.rb +6 -11
  61. data/lib/bundler/resolver/spec_group.rb +11 -8
  62. data/lib/bundler/resolver.rb +40 -18
  63. data/lib/bundler/ruby_dsl.rb +1 -1
  64. data/lib/bundler/ruby_version.rb +5 -5
  65. data/lib/bundler/rubygems_ext.rb +41 -0
  66. data/lib/bundler/rubygems_gem_installer.rb +19 -12
  67. data/lib/bundler/settings.rb +1 -0
  68. data/lib/bundler/source/metadata.rb +1 -1
  69. data/lib/bundler/source_list.rb +4 -0
  70. data/lib/bundler/spec_set.rb +38 -33
  71. data/lib/bundler/version.rb +1 -1
  72. data/lib/bundler.rb +3 -3
  73. metadata +7 -3
@@ -47,7 +47,7 @@ module Bundler
47
47
  end
48
48
 
49
49
  def bundler_path
50
- Bundler.root.join(Bundler.settings[:path], "bundler")
50
+ Bundler.root.join(Bundler.settings[:path].to_s, "bundler")
51
51
  end
52
52
 
53
53
  def gem_path(path, spec)
@@ -238,19 +238,14 @@ module Bundler
238
238
  end
239
239
 
240
240
  def ensure_specs_are_compatible!
241
- system_ruby = Bundler::RubyVersion.system
242
- rubygems_version = Bundler.rubygems.version
243
241
  @definition.specs.each do |spec|
244
- if required_ruby_version = spec.required_ruby_version
245
- unless required_ruby_version.satisfied_by?(system_ruby.gem_version)
246
- raise InstallError, "#{spec.full_name} requires ruby version #{required_ruby_version}, " \
247
- "which is incompatible with the current version, #{system_ruby}"
248
- end
242
+ unless spec.matches_current_ruby?
243
+ raise InstallError, "#{spec.full_name} requires ruby version #{spec.required_ruby_version}, " \
244
+ "which is incompatible with the current version, #{Gem.ruby_version}"
249
245
  end
250
- next unless required_rubygems_version = spec.required_rubygems_version
251
- unless required_rubygems_version.satisfied_by?(rubygems_version)
252
- raise InstallError, "#{spec.full_name} requires rubygems version #{required_rubygems_version}, " \
253
- "which is incompatible with the current version, #{rubygems_version}"
246
+ unless spec.matches_current_rubygems?
247
+ raise InstallError, "#{spec.full_name} requires rubygems version #{spec.required_rubygems_version}, " \
248
+ "which is incompatible with the current version, #{Gem.rubygems_version}"
254
249
  end
255
250
  end
256
251
  end
@@ -268,7 +263,14 @@ module Bundler
268
263
  return false if @definition.nothing_changed? && !@definition.missing_specs?
269
264
  end
270
265
 
271
- options["local"] ? @definition.resolve_with_cache! : @definition.resolve_remotely!
266
+ if options["local"]
267
+ @definition.resolve_with_cache!
268
+ elsif options["prefer-local"]
269
+ @definition.resolve_prefering_local!
270
+ else
271
+ @definition.resolve_remotely!
272
+ end
273
+
272
274
  true
273
275
  end
274
276
 
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "match_platform"
4
-
5
3
  module Bundler
6
4
  class LazySpecification
7
5
  include MatchPlatform
@@ -19,7 +17,7 @@ module Bundler
19
17
  end
20
18
 
21
19
  def full_name
22
- if platform == Gem::Platform::RUBY || platform.nil?
20
+ if platform == Gem::Platform::RUBY
23
21
  "#{@name}-#{@version}"
24
22
  else
25
23
  "#{@name}-#{@version}-#{platform}"
@@ -61,7 +59,7 @@ module Bundler
61
59
  def to_lock
62
60
  out = String.new
63
61
 
64
- if platform == Gem::Platform::RUBY || platform.nil?
62
+ if platform == Gem::Platform::RUBY
65
63
  out << " #{name} (#{version})\n"
66
64
  else
67
65
  out << " #{name} (#{version}-#{platform})\n"
@@ -75,27 +73,36 @@ module Bundler
75
73
  out
76
74
  end
77
75
 
78
- def __materialize__
79
- @specification = if source.is_a?(Source::Gemspec) && source.gemspec.name == name
80
- source.gemspec.tap {|s| s.source = source }
81
- else
82
- search_object = if source.is_a?(Source::Path)
83
- Dependency.new(name, version)
84
- else
85
- ruby_platform_materializes_to_ruby_platform? ? self : Dependency.new(name, version)
86
- end
87
- platform_object = ruby_platform_materializes_to_ruby_platform? ? Gem::Platform.new(platform) : Gem::Platform.local
88
- candidates = source.specs.search(search_object)
89
- same_platform_candidates = candidates.select do |spec|
90
- MatchPlatform.platforms_match?(spec.platform, platform_object)
76
+ def materialize_for_installation
77
+ source.local!
78
+
79
+ candidates = if source.is_a?(Source::Path) || !ruby_platform_materializes_to_ruby_platform?
80
+ target_platform = ruby_platform_materializes_to_ruby_platform? ? platform : Bundler.local_platform
81
+
82
+ source.specs.search(Dependency.new(name, version)).select do |spec|
83
+ MatchPlatform.platforms_match?(spec.platform, target_platform)
91
84
  end
92
- installable_candidates = same_platform_candidates.select do |spec|
85
+ else
86
+ source.specs.search(self)
87
+ end
88
+
89
+ return self if candidates.empty?
90
+
91
+ __materialize__(candidates)
92
+ end
93
+
94
+ def __materialize__(candidates)
95
+ @specification = begin
96
+ search = candidates.reverse.find do |spec|
93
97
  spec.is_a?(StubSpecification) ||
94
- (spec.required_ruby_version.satisfied_by?(Gem.ruby_version) &&
95
- spec.required_rubygems_version.satisfied_by?(Gem.rubygems_version))
98
+ (spec.matches_current_ruby? &&
99
+ spec.matches_current_rubygems?)
100
+ end
101
+ if search.nil? && Bundler.frozen_bundle?
102
+ search = candidates.last
103
+ else
104
+ search.dependencies = dependencies if search && search.full_name == full_name && (search.is_a?(RemoteSpecification) || search.is_a?(EndpointSpecification))
96
105
  end
97
- search = installable_candidates.last || same_platform_candidates.last
98
- search.dependencies = dependencies if search && (search.is_a?(RemoteSpecification) || search.is_a?(EndpointSpecification))
99
106
  search
100
107
  end
101
108
  end
@@ -105,7 +112,7 @@ module Bundler
105
112
  end
106
113
 
107
114
  def to_s
108
- @__to_s ||= if platform == Gem::Platform::RUBY || platform.nil?
115
+ @__to_s ||= if platform == Gem::Platform::RUBY
109
116
  "#{name} (#{version})"
110
117
  else
111
118
  "#{name} (#{version}-#{platform})"
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-ADD" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-ADD" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-add\fR \- Add gem to the Gemfile and run bundle install
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-BINSTUBS" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-BINSTUBS" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-binstubs\fR \- Install the binstubs of the listed gems
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-CACHE" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-CACHE" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-cache\fR \- Package your needed \fB\.gem\fR files into your application
@@ -9,6 +9,9 @@
9
9
  .SH "SYNOPSIS"
10
10
  \fBbundle cache\fR
11
11
  .
12
+ .P
13
+ alias: \fBpackage\fR, \fBpack\fR
14
+ .
12
15
  .SH "DESCRIPTION"
13
16
  Copy all of the \fB\.gem\fR files needed to run the application into the \fBvendor/cache\fR directory\. In the future, when running [bundle install(1)][bundle\-install], use the gems in the cache in preference to the ones on \fBrubygems\.org\fR\.
14
17
  .
@@ -53,3 +56,6 @@ One way to be sure that you have the right platformed versions of all your gems
53
56
  .
54
57
  .P
55
58
  By default, bundle cache(1) \fIbundle\-cache\.1\.html\fR fetches and also installs the gems to the default location\. To package the dependencies to \fBvendor/cache\fR without installing them to the local install location, you can run \fBbundle cache \-\-no\-install\fR\.
59
+ .
60
+ .SH "HISTORY"
61
+ In Bundler 2\.1, \fBcache\fR took in the functionalities of \fBpackage\fR and now \fBpackage\fR and \fBpack\fR are aliases of \fBcache\fR\.
@@ -5,6 +5,8 @@ bundle-cache(1) -- Package your needed `.gem` files into your application
5
5
 
6
6
  `bundle cache`
7
7
 
8
+ alias: `package`, `pack`
9
+
8
10
  ## DESCRIPTION
9
11
 
10
12
  Copy all of the `.gem` files needed to run the application into the
@@ -70,3 +72,8 @@ By default, [bundle cache(1)](bundle-cache.1.html) fetches and also
70
72
  installs the gems to the default location. To package the
71
73
  dependencies to `vendor/cache` without installing them to the
72
74
  local install location, you can run `bundle cache --no-install`.
75
+
76
+ ## HISTORY
77
+
78
+ In Bundler 2.1, `cache` took in the functionalities of `package` and now
79
+ `package` and `pack` are aliases of `cache`.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-CHECK" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-CHECK" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-check\fR \- Verifies if dependencies are satisfied by installed gems
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-CLEAN" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-CLEAN" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-clean\fR \- Cleans up unused gems in your bundler directory
@@ -1,13 +1,22 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-CONFIG" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-CONFIG" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-config\fR \- Set bundler configuration options
8
8
  .
9
9
  .SH "SYNOPSIS"
10
- \fBbundle config\fR [list|get|set|unset] [\fIname\fR [\fIvalue\fR]]
10
+ \fBbundle config\fR list
11
+ .
12
+ .br
13
+ \fBbundle config\fR [get] NAME
14
+ .
15
+ .br
16
+ \fBbundle config\fR [set] NAME VALUE
17
+ .
18
+ .br
19
+ \fBbundle config\fR unset NAME
11
20
  .
12
21
  .SH "DESCRIPTION"
13
22
  This command allows you to interact with Bundler\'s configuration system\.
@@ -51,7 +60,7 @@ Executing \fBbundle config unset <name>\fR will delete the configuration in both
51
60
  Executing \fBbundle config unset \-\-global <name>\fR will delete the configuration only from the user configuration\.
52
61
  .
53
62
  .P
54
- Executing \fBbundle config unset \-\-local <name> <value>\fR will delete the configuration only from the local application\.
63
+ Executing \fBbundle config unset \-\-local <name>\fR will delete the configuration only from the local application\.
55
64
  .
56
65
  .P
57
66
  Executing bundle with the \fBBUNDLE_IGNORE_CONFIG\fR environment variable set will cause it to ignore all configuration\.
@@ -74,6 +83,10 @@ Creates a directory (defaults to \fB~/bin\fR) and place any executables from the
74
83
  In deployment mode, Bundler will \'roll\-out\' the bundle for \fBproduction\fR use\. Please check carefully if you want to have this option enabled in \fBdevelopment\fR or \fBtest\fR environments\.
75
84
  .
76
85
  .TP
86
+ \fBonly\fR
87
+ A space\-separated list of groups to install only gems of the specified groups\.
88
+ .
89
+ .TP
77
90
  \fBpath\fR
78
91
  The location to install the specified gems to\. This defaults to Rubygems\' setting\. Bundler shares this location with Rubygems, \fBgem install \.\.\.\fR will have gem installed there, too\. Therefore, gems installed without a \fB\-\-path \.\.\.\fR setting will show up by calling \fBgem list\fR\. Accordingly, gems installed to other locations will not get listed\.
79
92
  .
@@ -205,6 +218,9 @@ The following is a list of all configuration keys and their purpose\. You can le
205
218
  \fBglobal_gem_cache\fR (\fBBUNDLE_GLOBAL_GEM_CACHE\fR): Whether Bundler should cache all gems globally, rather than locally to the installing Ruby installation\.
206
219
  .
207
220
  .IP "\(bu" 4
221
+ \fBignore_funding_requests\fR (\fBBUNDLE_IGNORE_FUNDING_REQUESTS\fR): When set, no funding requests will be printed\.
222
+ .
223
+ .IP "\(bu" 4
208
224
  \fBignore_messages\fR (\fBBUNDLE_IGNORE_MESSAGES\fR): When set, no post install messages will be printed\. To silence a single gem, use dot notation like \fBignore_messages\.httparty true\fR\.
209
225
  .
210
226
  .IP "\(bu" 4
@@ -220,6 +236,9 @@ The following is a list of all configuration keys and their purpose\. You can le
220
236
  \fBno_prune\fR (\fBBUNDLE_NO_PRUNE\fR): Whether Bundler should leave outdated gems unpruned when caching\.
221
237
  .
222
238
  .IP "\(bu" 4
239
+ \fBonly\fR (\fBBUNDLE_ONLY\fR): A space\-separated list of groups to install only gems of the specified groups\.
240
+ .
241
+ .IP "\(bu" 4
223
242
  \fBpath\fR (\fBBUNDLE_PATH\fR): The location on disk where all gems in your bundle will be located regardless of \fB$GEM_HOME\fR or \fB$GEM_PATH\fR values\. Bundle gems not found in this location will be installed by \fBbundle install\fR\. Defaults to \fBGem\.dir\fR\. When \-\-deployment is used, defaults to vendor/bundle\.
224
243
  .
225
244
  .IP "\(bu" 4
@@ -288,7 +307,7 @@ The following is a list of all configuration keys and their purpose\. You can le
288
307
  .IP "" 0
289
308
  .
290
309
  .P
291
- In general, you should set these settings per\-application by using the applicable flag to the bundle install(1) \fIbundle\-install\.1\.html\fR or bundle package(1) \fIbundle\-package\.1\.html\fR command\.
310
+ In general, you should set these settings per\-application by using the applicable flag to the bundle install(1) \fIbundle\-install\.1\.html\fR or bundle cache(1) \fIbundle\-cache\.1\.html\fR command\.
292
311
  .
293
312
  .P
294
313
  You can set them globally either via environment variables or \fBbundle config\fR, whichever is preferable for your setup\. If you use both, environment variables will take preference over global settings\.
@@ -342,13 +361,13 @@ bundle config set \-\-global mirror\.SOURCE_URL MIRROR_URL
342
361
  .IP "" 0
343
362
  .
344
363
  .P
345
- For example, to use a mirror of rubygems\.org hosted at rubygems\-mirror\.org:
364
+ For example, to use a mirror of https://rubygems\.org hosted at https://example\.org:
346
365
  .
347
366
  .IP "" 4
348
367
  .
349
368
  .nf
350
369
 
351
- bundle config set \-\-global mirror\.http://rubygems\.org http://rubygems\-mirror\.org
370
+ bundle config set \-\-global mirror\.https://rubygems\.org https://example\.org
352
371
  .
353
372
  .fi
354
373
  .
@@ -3,7 +3,10 @@ bundle-config(1) -- Set bundler configuration options
3
3
 
4
4
  ## SYNOPSIS
5
5
 
6
- `bundle config` [list|get|set|unset] [<name> [<value>]]
6
+ `bundle config` list<br>
7
+ `bundle config` [get] NAME<br>
8
+ `bundle config` [set] NAME VALUE<br>
9
+ `bundle config` unset NAME
7
10
 
8
11
  ## DESCRIPTION
9
12
 
@@ -43,8 +46,8 @@ local and global sources.
43
46
  Executing `bundle config unset --global <name>` will delete the configuration
44
47
  only from the user configuration.
45
48
 
46
- Executing `bundle config unset --local <name> <value>` will delete the
47
- configuration only from the local application.
49
+ Executing `bundle config unset --local <name>` will delete the configuration
50
+ only from the local application.
48
51
 
49
52
  Executing bundle with the `BUNDLE_IGNORE_CONFIG` environment variable set will
50
53
  cause it to ignore all configuration.
@@ -74,6 +77,9 @@ The options that can be configured are:
74
77
  `production` use. Please check carefully if you want to have this option
75
78
  enabled in `development` or `test` environments.
76
79
 
80
+ * `only`:
81
+ A space-separated list of groups to install only gems of the specified groups.
82
+
77
83
  * `path`:
78
84
  The location to install the specified gems to. This defaults to Rubygems'
79
85
  setting. Bundler shares this location with Rubygems, `gem install ...` will
@@ -204,6 +210,8 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
204
210
  * `global_gem_cache` (`BUNDLE_GLOBAL_GEM_CACHE`):
205
211
  Whether Bundler should cache all gems globally, rather than locally to the
206
212
  installing Ruby installation.
213
+ * `ignore_funding_requests` (`BUNDLE_IGNORE_FUNDING_REQUESTS`):
214
+ When set, no funding requests will be printed.
207
215
  * `ignore_messages` (`BUNDLE_IGNORE_MESSAGES`):
208
216
  When set, no post install messages will be printed. To silence a single gem,
209
217
  use dot notation like `ignore_messages.httparty true`.
@@ -216,6 +224,8 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
216
224
  Whether `bundle package` should skip installing gems.
217
225
  * `no_prune` (`BUNDLE_NO_PRUNE`):
218
226
  Whether Bundler should leave outdated gems unpruned when caching.
227
+ * `only` (`BUNDLE_ONLY`):
228
+ A space-separated list of groups to install only gems of the specified groups.
219
229
  * `path` (`BUNDLE_PATH`):
220
230
  The location on disk where all gems in your bundle will be located regardless
221
231
  of `$GEM_HOME` or `$GEM_PATH` values. Bundle gems not found in this location
@@ -273,7 +283,7 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
273
283
  A `:`-separated list of groups whose gems bundler should not install.
274
284
 
275
285
  In general, you should set these settings per-application by using the applicable
276
- flag to the [bundle install(1)](bundle-install.1.html) or [bundle package(1)](bundle-package.1.html) command.
286
+ flag to the [bundle install(1)](bundle-install.1.html) or [bundle cache(1)](bundle-cache.1.html) command.
277
287
 
278
288
  You can set them globally either via environment variables or `bundle config`,
279
289
  whichever is preferable for your setup. If you use both, environment variables
@@ -321,9 +331,9 @@ mirror to fetch gems.
321
331
 
322
332
  bundle config set --global mirror.SOURCE_URL MIRROR_URL
323
333
 
324
- For example, to use a mirror of rubygems.org hosted at rubygems-mirror.org:
334
+ For example, to use a mirror of https://rubygems.org hosted at https://example.org:
325
335
 
326
- bundle config set --global mirror.http://rubygems.org http://rubygems-mirror.org
336
+ bundle config set --global mirror.https://rubygems.org https://example.org
327
337
 
328
338
  Each mirror also provides a fallback timeout setting. If the mirror does not
329
339
  respond within the fallback timeout, Bundler will try to use the original
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-DOCTOR" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-DOCTOR" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-doctor\fR \- Checks the bundle for common problems
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-EXEC" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-EXEC" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-exec\fR \- Execute a command in the context of the bundle
@@ -155,7 +155,7 @@ You can find a list of all the gems containing gem plugins by running
155
155
  .
156
156
  .nf
157
157
 
158
- ruby \-rrubygems \-e "puts Gem\.find_files(\'rubygems_plugin\.rb\')"
158
+ ruby \-e "puts Gem\.find_files(\'rubygems_plugin\.rb\')"
159
159
  .
160
160
  .fi
161
161
  .
@@ -145,7 +145,7 @@ their plugins.
145
145
  You can find a list of all the gems containing gem plugins
146
146
  by running
147
147
 
148
- ruby -rrubygems -e "puts Gem.find_files('rubygems_plugin.rb')"
148
+ ruby -e "puts Gem.find_files('rubygems_plugin.rb')"
149
149
 
150
150
  At the very least, you should remove all but the newest
151
151
  version of each gem plugin, and also remove all gem plugins
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-GEM" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-GEM" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-gem\fR \- Generate a project skeleton for creating a rubygem
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-INFO" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-INFO" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-info\fR \- Show information for the given gem in your bundle
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-INIT" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-INIT" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-init\fR \- Generates a Gemfile into the current working directory
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-INJECT" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-INJECT" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-inject\fR \- Add named gem(s) with version requirements to Gemfile
@@ -30,4 +30,7 @@ bundle inject \'rack\' \'> 0\'
30
30
  .IP "" 0
31
31
  .
32
32
  .P
33
- This will inject the \'rack\' gem with a version greater than 0 in your [\fBGemfile(5)\fR][Gemfile(5)] and Gemfile\.lock
33
+ This will inject the \'rack\' gem with a version greater than 0 in your [\fBGemfile(5)\fR][Gemfile(5)] and Gemfile\.lock\.
34
+ .
35
+ .P
36
+ The \fBbundle inject\fR command was deprecated in Bundler 2\.1 and will be removed in Bundler 3\.0\.
@@ -19,4 +19,6 @@ Example:
19
19
  bundle inject 'rack' '> 0'
20
20
 
21
21
  This will inject the 'rack' gem with a version greater than 0 in your
22
- [`Gemfile(5)`][Gemfile(5)] and Gemfile.lock
22
+ [`Gemfile(5)`][Gemfile(5)] and Gemfile.lock.
23
+
24
+ The `bundle inject` command was deprecated in Bundler 2.1 and will be removed in Bundler 3.0.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-INSTALL" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-INSTALL" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-install\fR \- Install the dependencies specified in your Gemfile
@@ -70,6 +70,10 @@ The maximum number of parallel download and install jobs\. The default is the nu
70
70
  Do not attempt to connect to \fBrubygems\.org\fR\. Instead, Bundler will use the gems already present in Rubygems\' cache or in \fBvendor/cache\fR\. Note that if an appropriate platform\-specific gem exists on \fBrubygems\.org\fR it will not be found\.
71
71
  .
72
72
  .TP
73
+ \fB\-\-prefer\-local\fR
74
+ Force using locally installed gems, or gems already present in Rubygems\' cache or in \fBvendor/cache\fR, when resolving, even if newer versions are available remotely\. Only attempt to connect to \fBrubygems\.org\fR for gems that are not present locally\.
75
+ .
76
+ .TP
73
77
  \fB\-\-no\-cache\fR
74
78
  Do not update the cache in \fBvendor/cache\fR with the newly bundled gems\. This does not remove any gems in the cache but keeps the newly bundled gems from being cached during the install\.
75
79
  .
@@ -109,6 +109,12 @@ automatically and that requires `bundler` to silently remember them. Since
109
109
  appropriate platform-specific gem exists on `rubygems.org` it will not be
110
110
  found.
111
111
 
112
+ * `--prefer-local`:
113
+ Force using locally installed gems, or gems already present in Rubygems' cache
114
+ or in `vendor/cache`, when resolving, even if newer versions are available
115
+ remotely. Only attempt to connect to `rubygems.org` for gems that are not
116
+ present locally.
117
+
112
118
  * `--no-cache`:
113
119
  Do not update the cache in `vendor/cache` with the newly bundled gems. This
114
120
  does not remove any gems in the cache but keeps the newly bundled gems from
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-LIST" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-LIST" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-list\fR \- List all the gems in the bundle
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-LOCK" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-LOCK" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-lock\fR \- Creates / Updates a lockfile without installing
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-OPEN" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-OPEN" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-open\fR \- Opens the source directory for a gem in your bundle
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-OUTDATED" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-OUTDATED" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-outdated\fR \- List installed gems with newer versions available
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-PLATFORM" "1" "June 2022" "" ""
4
+ .TH "BUNDLE\-PLATFORM" "1" "August 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-platform\fR \- Displays platform compatibility information
@@ -10,7 +10,7 @@
10
10
  \fBbundle platform\fR [\-\-ruby]
11
11
  .
12
12
  .SH "DESCRIPTION"
13
- \fBplatform\fR will display information from your Gemfile, Gemfile\.lock, and Ruby VM about your platform\.
13
+ \fBplatform\fR displays information from your Gemfile, Gemfile\.lock, and Ruby VM about your platform\.
14
14
  .
15
15
  .P
16
16
  For instance, using this Gemfile(5):
@@ -21,7 +21,7 @@ For instance, using this Gemfile(5):
21
21
 
22
22
  source "https://rubygems\.org"
23
23
 
24
- ruby "1\.9\.3"
24
+ ruby "3\.1\.2"
25
25
 
26
26
  gem "rack"
27
27
  .
@@ -30,7 +30,7 @@ gem "rack"
30
30
  .IP "" 0
31
31
  .
32
32
  .P
33
- If you run \fBbundle platform\fR on Ruby 1\.9\.3, it will display the following output:
33
+ If you run \fBbundle platform\fR on Ruby 3\.1\.2, it displays the following output:
34
34
  .
35
35
  .IP "" 4
36
36
  .
@@ -39,10 +39,13 @@ If you run \fBbundle platform\fR on Ruby 1\.9\.3, it will display the following
39
39
  Your platform is: x86_64\-linux
40
40
 
41
41
  Your app has gems that work on these platforms:
42
+ * arm64\-darwin\-21
42
43
  * ruby
44
+ * x64\-mingw\-ucrt
45
+ * x86_64\-linux
43
46
 
44
47
  Your Gemfile specifies a Ruby version requirement:
45
- * ruby 1\.9\.3
48
+ * ruby 3\.1\.2
46
49
 
47
50
  Your current platform satisfies the Ruby version requirement\.
48
51
  .
@@ -51,11 +54,18 @@ Your current platform satisfies the Ruby version requirement\.
51
54
  .IP "" 0
52
55
  .
53
56
  .P
54
- \fBplatform\fR will list all the platforms in your \fBGemfile\.lock\fR as well as the \fBruby\fR directive if applicable from your Gemfile(5)\. It will also let you know if the \fBruby\fR directive requirement has been met\. If \fBruby\fR directive doesn\'t match the running Ruby VM, it will tell you what part does not\.
57
+ \fBplatform\fR lists all the platforms in your \fBGemfile\.lock\fR as well as the \fBruby\fR directive if applicable from your Gemfile(5)\. It also lets you know if the \fBruby\fR directive requirement has been met\. If \fBruby\fR directive doesn\'t match the running Ruby VM, it tells you what part does not\.
55
58
  .
56
59
  .SH "OPTIONS"
57
60
  .
58
61
  .TP
59
62
  \fB\-\-ruby\fR
60
63
  It will display the ruby directive information, so you don\'t have to parse it from the Gemfile(5)\.
64
+ .
65
+ .SH "SEE ALSO"
66
+ .
67
+ .IP "\(bu" 4
68
+ bundle\-lock(1) \fIbundle\-lock\.1\.ronn\fR
69
+ .
70
+ .IP "" 0
61
71