rubygems-update 4.0.16 → 4.0.18
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 +4 -4
- data/CHANGELOG.md +30 -0
- data/bundler/CHANGELOG.md +42 -0
- data/bundler/lib/bundler/build_metadata.rb +1 -1
- data/bundler/lib/bundler/cli/check.rb +1 -3
- data/bundler/lib/bundler/cli/issue.rb +2 -2
- data/bundler/lib/bundler/cli/lock.rb +3 -0
- data/bundler/lib/bundler/cli/open.rb +12 -2
- data/bundler/lib/bundler/cli.rb +2 -0
- data/bundler/lib/bundler/compact_index_client/cache.rb +11 -0
- data/bundler/lib/bundler/compact_index_client/cache_file.rb +1 -1
- data/bundler/lib/bundler/endpoint_specification.rb +6 -1
- data/bundler/lib/bundler/fetcher.rb +7 -1
- data/bundler/lib/bundler/installer/parallel_installer.rb +9 -1
- data/bundler/lib/bundler/lockfile_generator.rb +27 -4
- data/bundler/lib/bundler/man/bundle-add.1 +1 -1
- data/bundler/lib/bundler/man/bundle-add.1.ronn +1 -1
- data/bundler/lib/bundler/man/bundle-cache.1 +3 -0
- data/bundler/lib/bundler/man/bundle-cache.1.ronn +6 -0
- data/bundler/lib/bundler/man/bundle-config.1 +1 -1
- data/bundler/lib/bundler/man/bundle-config.1.ronn +2 -0
- data/bundler/lib/bundler/man/bundle-console.1 +2 -2
- data/bundler/lib/bundler/man/bundle-console.1.ronn +2 -2
- data/bundler/lib/bundler/man/bundle-init.1 +1 -1
- data/bundler/lib/bundler/man/bundle-init.1.ronn +1 -1
- data/bundler/lib/bundler/man/bundle-lock.1 +4 -1
- data/bundler/lib/bundler/man/bundle-lock.1.ronn +6 -0
- data/bundler/lib/bundler/man/bundle-plugin.1 +1 -1
- data/bundler/lib/bundler/man/bundle-plugin.1.ronn +1 -1
- data/bundler/lib/bundler/man/bundle.1 +22 -1
- data/bundler/lib/bundler/man/bundle.1.ronn +22 -1
- data/bundler/lib/bundler/man/gemfile.5 +12 -1
- data/bundler/lib/bundler/man/gemfile.5.ronn +20 -1
- data/bundler/lib/bundler/runtime.rb +11 -11
- data/bundler/lib/bundler/self_manager.rb +6 -1
- data/bundler/lib/bundler/shared_helpers.rb +6 -1
- data/bundler/lib/bundler/source/git.rb +1 -1
- data/bundler/lib/bundler/source/rubygems.rb +1 -1
- data/bundler/lib/bundler/source_list.rb +30 -1
- data/bundler/lib/bundler/version.rb +1 -1
- data/bundler/lib/bundler.rb +1 -1
- data/lib/rubygems/basic_specification.rb +18 -14
- data/lib/rubygems/commands/help_command.rb +2 -2
- data/lib/rubygems/commands/open_command.rb +12 -1
- data/lib/rubygems/commands/setup_command.rb +29 -14
- data/lib/rubygems/commands/update_command.rb +4 -1
- data/lib/rubygems/deprecate.rb +1 -1
- data/lib/rubygems/ext/builder.rb +20 -1
- data/lib/rubygems/ext/rake_builder.rb +4 -2
- data/lib/rubygems/package/old.rb +7 -2
- data/lib/rubygems/package.rb +15 -4
- data/lib/rubygems/requirement.rb +9 -2
- data/lib/rubygems/source.rb +7 -0
- data/lib/rubygems/util.rb +7 -2
- data/lib/rubygems.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bf600fcd45beb7a21ff7e319301fa12ebb2fb74e800a11eb0ec49edd79e290ad
|
|
4
|
+
data.tar.gz: 53a095fcf4f29c4e06adf5f5759ffd3f7d481b15553a549bc0d7dc6abc74c087
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 412444397c9bb743e7a573e6838a0e5a5f4c5140bb1878eb11c0fe906c349d047c6d6ddeb0fe74b0da2560e4061359a8fbaa3ffab88b129e0df096406801d145
|
|
7
|
+
data.tar.gz: fe0f8c100c204f73322acd599498e9fa71669e0286a1dc6ef7b576f94c98303d4d9a44117239a6bf6667191623f6d634b0f45424aa48fecd54092aff1c9480ae
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.0.18 / 2026-08-05
|
|
4
|
+
|
|
5
|
+
### Enhancements:
|
|
6
|
+
|
|
7
|
+
* Check the resolved parent directory before extracting old format gems. Pull request [#9755](https://github.com/ruby/rubygems/pull/9755) by hsbt
|
|
8
|
+
* Installs bundler 4.0.18 as a default gem.
|
|
9
|
+
|
|
10
|
+
### Bug fixes:
|
|
11
|
+
|
|
12
|
+
* Call Kernel.format explicitly in Gem::Deprecate wrapper. Pull request [#9714](https://github.com/ruby/rubygems/pull/9714) by hsbt
|
|
13
|
+
|
|
14
|
+
### Documentation:
|
|
15
|
+
|
|
16
|
+
* Point bundler.io URLs at guides.rubygems.org. Pull request [#9737](https://github.com/ruby/rubygems/pull/9737) by hsbt
|
|
17
|
+
|
|
18
|
+
## 4.0.17 / 2026-07-22
|
|
19
|
+
|
|
20
|
+
### Enhancements:
|
|
21
|
+
|
|
22
|
+
* Validate spec name before writing to the spec cache. Pull request [#9690](https://github.com/ruby/rubygems/pull/9690) by hsbt
|
|
23
|
+
* Installs bundler 4.0.17 as a default gem.
|
|
24
|
+
|
|
25
|
+
### Bug fixes:
|
|
26
|
+
|
|
27
|
+
* Unquote Gem.ruby when spawning it as a separate argv element. Pull request [#9695](https://github.com/ruby/rubygems/pull/9695) by hsbt
|
|
28
|
+
* Escape glob metacharacters in install paths when globbing. Pull request [#9687](https://github.com/ruby/rubygems/pull/9687) by hsbt
|
|
29
|
+
* Preserve Windows editor paths in gem open and bundle open. Pull request [#9694](https://github.com/ruby/rubygems/pull/9694) by hsbt
|
|
30
|
+
* Preserve Windows paths in MAKE and rake environment variables. Pull request [#9693](https://github.com/ruby/rubygems/pull/9693) by hsbt
|
|
31
|
+
* Fix `bundle` binstub broken by `gem update --system` on Homebrew ruby. Pull request [#9688](https://github.com/ruby/rubygems/pull/9688) by hsbt
|
|
32
|
+
|
|
3
33
|
## 4.0.16 / 2026-07-10
|
|
4
34
|
|
|
5
35
|
### Enhancements:
|
data/bundler/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.0.18 / 2026-08-05
|
|
4
|
+
|
|
5
|
+
### Enhancements:
|
|
6
|
+
|
|
7
|
+
* Don't mask install errors when no Gemfile can be located. Pull request [#9757](https://github.com/ruby/rubygems/pull/9757) by hsbt
|
|
8
|
+
* Warn when duplicate source declarations conflict on cooldown. Pull request [#9736](https://github.com/ruby/rubygems/pull/9736) by hsbt
|
|
9
|
+
* Redact URI userinfo from settings names in Bundler User-Agent. Pull request [#9716](https://github.com/ruby/rubygems/pull/9716) by hsbt
|
|
10
|
+
* Validate gem name before building compact index cache paths. Pull request [#9717](https://github.com/ruby/rubygems/pull/9717) by hsbt
|
|
11
|
+
|
|
12
|
+
### Bug fixes:
|
|
13
|
+
|
|
14
|
+
* Fail `bundle check` when frozen mode needs lockfile changes. Pull request [#9715](https://github.com/ruby/rubygems/pull/9715) by hsbt
|
|
15
|
+
* Skip empty checksum values in compact index metadata. Pull request [#9713](https://github.com/ruby/rubygems/pull/9713) by hsbt
|
|
16
|
+
|
|
17
|
+
### Security:
|
|
18
|
+
|
|
19
|
+
* Add --cooldown flag to bundle lock and bundle cache. Pull request [#9725](https://github.com/ruby/rubygems/pull/9725) by hsbt
|
|
20
|
+
|
|
21
|
+
### Documentation:
|
|
22
|
+
|
|
23
|
+
* Point bundler.io URLs at guides.rubygems.org. Pull request [#9737](https://github.com/ruby/rubygems/pull/9737) by hsbt
|
|
24
|
+
* Document Bundler checksum behavior for default gems. Pull request [#9735](https://github.com/ruby/rubygems/pull/9735) by p-linnane
|
|
25
|
+
* List missing subcommands in bundle(1) UTILITIES section. Pull request [#9721](https://github.com/ruby/rubygems/pull/9721) by hsbt
|
|
26
|
+
* Document pessimistic operator and eval_gemfile in gemfile(5). Pull request [#9719](https://github.com/ruby/rubygems/pull/9719) by hsbt
|
|
27
|
+
|
|
28
|
+
## 4.0.17 / 2026-07-22
|
|
29
|
+
|
|
30
|
+
### Enhancements:
|
|
31
|
+
|
|
32
|
+
* Open compact index cache in binary mode when appending. Pull request [#9679](https://github.com/ruby/rubygems/pull/9679) by hsbt
|
|
33
|
+
|
|
34
|
+
### Bug fixes:
|
|
35
|
+
|
|
36
|
+
* Unquote Gem.ruby when spawning it as a separate argv element. Pull request [#9695](https://github.com/ruby/rubygems/pull/9695) by hsbt
|
|
37
|
+
* Escape glob metacharacters in install paths when globbing. Pull request [#9687](https://github.com/ruby/rubygems/pull/9687) by hsbt
|
|
38
|
+
* Avoid space-containing absolute path in RUBYOPT. Pull request [#9696](https://github.com/ruby/rubygems/pull/9696) by hsbt
|
|
39
|
+
* Preserve the locked Bundler checksum when the gem isn't cached. Pull request [#9658](https://github.com/ruby/rubygems/pull/9658) by rwstauner
|
|
40
|
+
|
|
41
|
+
### Documentation:
|
|
42
|
+
|
|
43
|
+
* Point Bundler gemspec metadata at the moved docs. Pull request [#9648](https://github.com/ruby/rubygems/pull/9648) by hsbt
|
|
44
|
+
|
|
3
45
|
## 4.0.16 / 2026-07-10
|
|
4
46
|
|
|
5
47
|
### Enhancements:
|
|
@@ -12,6 +12,7 @@ module Bundler
|
|
|
12
12
|
Bundler.settings.set_command_option_if_given :path, options[:path]
|
|
13
13
|
|
|
14
14
|
definition = Bundler.definition
|
|
15
|
+
definition.ensure_equivalent_gemfile_and_lockfile
|
|
15
16
|
definition.validate_runtime!
|
|
16
17
|
|
|
17
18
|
begin
|
|
@@ -28,9 +29,6 @@ module Bundler
|
|
|
28
29
|
not_installed.each {|s| Bundler.ui.error " * #{s.name} (#{s.version})" }
|
|
29
30
|
Bundler.ui.warn "Install missing gems with `bundle install`"
|
|
30
31
|
exit 1
|
|
31
|
-
elsif !Bundler.default_lockfile.file? && Bundler.frozen_bundle?
|
|
32
|
-
Bundler.ui.error "This bundle has been frozen, but there is no #{SharedHelpers.relative_lockfile_path} present"
|
|
33
|
-
exit 1
|
|
34
32
|
else
|
|
35
33
|
definition.lock(true) unless options[:"dry-run"]
|
|
36
34
|
Bundler.ui.info "The Gemfile's dependencies are satisfied"
|
|
@@ -13,10 +13,10 @@ module Bundler
|
|
|
13
13
|
https://github.com/ruby/rubygems/blob/master/doc/bundler/TROUBLESHOOTING.md
|
|
14
14
|
|
|
15
15
|
2. Instructions for common Bundler uses can be found on the documentation
|
|
16
|
-
site: https://
|
|
16
|
+
site: https://guides.rubygems.org/
|
|
17
17
|
|
|
18
18
|
3. Information about each Bundler command can be found in the Bundler
|
|
19
|
-
man pages: https://
|
|
19
|
+
man pages: https://guides.rubygems.org/command-reference/bundle/
|
|
20
20
|
|
|
21
21
|
Hopefully the troubleshooting steps above resolved your problem! If things
|
|
22
22
|
still aren't working the way you expect them to, please let us know so
|
|
@@ -16,6 +16,9 @@ module Bundler
|
|
|
16
16
|
|
|
17
17
|
check_for_conflicting_options
|
|
18
18
|
|
|
19
|
+
Bundler::CLI::Common.validate_cooldown!(options[:cooldown])
|
|
20
|
+
Bundler.settings.set_command_option_if_given :cooldown, options[:cooldown]
|
|
21
|
+
|
|
19
22
|
print = options[:print]
|
|
20
23
|
previous_output_stream = Bundler.ui.output_stream
|
|
21
24
|
Bundler.ui.output_stream = :stderr if print
|
|
@@ -18,12 +18,22 @@ module Bundler
|
|
|
18
18
|
Bundler.ui.info "Unable to open #{name} because it's a default gem, so the directory it would normally be installed to does not exist."
|
|
19
19
|
else
|
|
20
20
|
root_path = spec.full_gem_path
|
|
21
|
-
|
|
22
|
-
command = Shellwords.split(editor) << File.join([root_path, path].compact)
|
|
21
|
+
command = editor_command(editor) << File.join([root_path, path].compact)
|
|
23
22
|
Bundler.with_original_env do
|
|
24
23
|
system(*command, { chdir: root_path })
|
|
25
24
|
end || Bundler.ui.info("Could not run '#{command.join(" ")}'")
|
|
26
25
|
end
|
|
27
26
|
end
|
|
27
|
+
|
|
28
|
+
def editor_command(editor)
|
|
29
|
+
# On Windows an editor is often configured with a full path such as
|
|
30
|
+
# C:\Program Files\Microsoft VS Code\Code.exe, which shell splitting
|
|
31
|
+
# would corrupt. Take a value that names an existing file as a
|
|
32
|
+
# single word.
|
|
33
|
+
return [editor] if Gem.win_platform? && File.file?(editor)
|
|
34
|
+
|
|
35
|
+
require "shellwords"
|
|
36
|
+
Shellwords.split(editor)
|
|
37
|
+
end
|
|
28
38
|
end
|
|
29
39
|
end
|
data/bundler/lib/bundler/cli.rb
CHANGED
|
@@ -461,6 +461,7 @@ module Bundler
|
|
|
461
461
|
method_option "path", type: :string, banner: "Specify a different path than the system default, namely, $BUNDLE_PATH or $GEM_HOME (removed)."
|
|
462
462
|
method_option "quiet", type: :boolean, banner: "Only output warnings and errors."
|
|
463
463
|
method_option "frozen", type: :boolean, banner: "Do not allow the Gemfile.lock to be updated after this bundle cache operation's install (removed)"
|
|
464
|
+
method_option "cooldown", type: :numeric, banner: "Only consider gem versions published at least N days ago. Use 0 to disable."
|
|
464
465
|
long_desc <<-D
|
|
465
466
|
The cache command will copy the .gem files for every gem in the bundle into the
|
|
466
467
|
directory ./vendor/cache. If you then check that directory into your source
|
|
@@ -642,6 +643,7 @@ module Bundler
|
|
|
642
643
|
method_option "strict", type: :boolean, banner: "If updating, do not allow any gem to be updated past latest --patch | --minor | --major"
|
|
643
644
|
method_option "conservative", type: :boolean, banner: "If updating, use bundle install conservative update behavior and do not allow shared dependencies to be updated"
|
|
644
645
|
method_option "bundler", type: :string, lazy_default: "> 0.a", banner: "Update the locked version of bundler"
|
|
646
|
+
method_option "cooldown", type: :numeric, banner: "Only consider gem versions published at least N days ago. Use 0 to disable."
|
|
645
647
|
def lock
|
|
646
648
|
require_relative "cli/lock"
|
|
647
649
|
Lock.new(options).run
|
|
@@ -50,6 +50,7 @@ module Bundler
|
|
|
50
50
|
|
|
51
51
|
def info_path(name)
|
|
52
52
|
name = name.to_s
|
|
53
|
+
validate_name!(name)
|
|
53
54
|
# TODO: converge this into the info_root by hashing all filenames like info_etag_path
|
|
54
55
|
if /[^a-z0-9_-]/.match?(name)
|
|
55
56
|
name += "-#{SharedHelpers.digest(:MD5).hexdigest(name).downcase}"
|
|
@@ -61,9 +62,19 @@ module Bundler
|
|
|
61
62
|
|
|
62
63
|
def info_etag_path(name)
|
|
63
64
|
name = name.to_s
|
|
65
|
+
validate_name!(name)
|
|
64
66
|
@info_etag_root.join("#{name}-#{SharedHelpers.digest(:MD5).hexdigest(name).downcase}")
|
|
65
67
|
end
|
|
66
68
|
|
|
69
|
+
# Gem names come from the remote index and are not otherwise
|
|
70
|
+
# validated, so refuse anything that would escape the cache
|
|
71
|
+
# directory when used as a path component.
|
|
72
|
+
def validate_name!(name)
|
|
73
|
+
return if File.basename(name) == name
|
|
74
|
+
|
|
75
|
+
raise SecurityError, "malformed gem name: #{name.inspect}"
|
|
76
|
+
end
|
|
77
|
+
|
|
67
78
|
def mkdir(name)
|
|
68
79
|
directory.join(name).tap do |dir|
|
|
69
80
|
SharedHelpers.filesystem_access(dir) do
|
|
@@ -103,7 +103,7 @@ module Bundler
|
|
|
103
103
|
# Returns false without appending when no digests since appending is too error prone to do without digests.
|
|
104
104
|
def append(data)
|
|
105
105
|
return false unless digests?
|
|
106
|
-
open("
|
|
106
|
+
open("ab") {|f| f.write data }
|
|
107
107
|
verify && commit
|
|
108
108
|
end
|
|
109
109
|
|
|
@@ -153,8 +153,13 @@ module Bundler
|
|
|
153
153
|
next unless v
|
|
154
154
|
case k.to_s
|
|
155
155
|
when "checksum"
|
|
156
|
+
# Some registries send empty checksum values, treat them as if the
|
|
157
|
+
# checksum was not included at all
|
|
158
|
+
checksum = v.last
|
|
159
|
+
next unless checksum
|
|
160
|
+
|
|
156
161
|
begin
|
|
157
|
-
@checksum = Checksum.from_api(
|
|
162
|
+
@checksum = Checksum.from_api(checksum, @spec_fetcher.uri)
|
|
158
163
|
rescue ArgumentError => e
|
|
159
164
|
raise ArgumentError, "Invalid checksum for #{full_name}: #{e.message}"
|
|
160
165
|
end
|
|
@@ -215,7 +215,13 @@ module Bundler
|
|
|
215
215
|
agent << " #{ruby.engine}/#{ruby.versions_string(engine_version)}"
|
|
216
216
|
end
|
|
217
217
|
|
|
218
|
-
|
|
218
|
+
# Some settings keys embed a URI (e.g. `mirror.<uri>`) whose userinfo can
|
|
219
|
+
# carry credentials. Strip the userinfo before advertising the setting
|
|
220
|
+
# names so we don't leak secrets to every gem source we talk to.
|
|
221
|
+
options = Bundler.settings.all.map do |key|
|
|
222
|
+
key.include?("://") ? key.gsub(%r{//[^/@]+@}, "//") : key
|
|
223
|
+
end
|
|
224
|
+
agent << " options/#{options.join(",")}"
|
|
219
225
|
|
|
220
226
|
agent << " ci/#{cis.join(",")}" if cis.any?
|
|
221
227
|
|
|
@@ -255,7 +255,15 @@ module Bundler
|
|
|
255
255
|
|
|
256
256
|
def require_tree_for_spec(spec)
|
|
257
257
|
tree = @spec_set.what_required(spec)
|
|
258
|
-
|
|
258
|
+
gemfile_name = begin
|
|
259
|
+
File.basename(SharedHelpers.default_gemfile)
|
|
260
|
+
rescue GemfileNotFound
|
|
261
|
+
# This runs while reporting an install error. When no Gemfile can be
|
|
262
|
+
# located (e.g. Bundler used as a library), raising here would mask
|
|
263
|
+
# the original error, so fall back to a generic header instead.
|
|
264
|
+
"Gemfile"
|
|
265
|
+
end
|
|
266
|
+
t = String.new("In #{gemfile_name}:\n")
|
|
259
267
|
tree.each_with_index do |s, depth|
|
|
260
268
|
t << " " * depth.succ << s.name
|
|
261
269
|
unless tree.last == s
|
|
@@ -103,17 +103,40 @@ module Bundler
|
|
|
103
103
|
end
|
|
104
104
|
|
|
105
105
|
def bundler_checksum
|
|
106
|
+
# `.dev` versions and `SKIP_BUNDLER_CHECKSUM` are deliberate opt-outs (used
|
|
107
|
+
# by Bundler/RubyGems' own development and release tasks): never record a
|
|
108
|
+
# checksum for Bundler itself in those cases.
|
|
106
109
|
return [] if Bundler.gem_version.to_s.end_with?(".dev") || ENV["SKIP_BUNDLER_CHECKSUM"]
|
|
107
110
|
|
|
108
111
|
bundler_spec = definition.sources.metadata_source.specs.search(["bundler", Bundler.gem_version]).last
|
|
109
|
-
return [] unless File.exist?(bundler_spec.cache_file)
|
|
110
112
|
|
|
111
|
-
|
|
113
|
+
# Record a fresh checksum from the locally cached gem when it's available.
|
|
114
|
+
# When it isn't (e.g. a fresh checkout/CI that never downloaded the bundler
|
|
115
|
+
# gem), fall back to whatever checksum is already locked rather than
|
|
116
|
+
# dropping it, so the entry stays consistent across environments.
|
|
117
|
+
if File.exist?(bundler_spec.cache_file)
|
|
118
|
+
require "rubygems/package"
|
|
119
|
+
|
|
120
|
+
package = Gem::Package.new(bundler_spec.cache_file)
|
|
121
|
+
definition.sources.metadata_source.checksum_store.register(bundler_spec, Checksum.from_gem_package(package))
|
|
122
|
+
elsif bundled_with_changing?
|
|
123
|
+
# We can't compute a fresh checksum (the bundler gem isn't cached) and the
|
|
124
|
+
# BUNDLED WITH version is changing. Keeping the previously locked checksum
|
|
125
|
+
# would leave a `bundler (<old version>) sha256=...` entry that no longer
|
|
126
|
+
# matches the new BUNDLED WITH version, so drop it instead.
|
|
127
|
+
return []
|
|
128
|
+
end
|
|
112
129
|
|
|
113
|
-
|
|
114
|
-
definition.sources.metadata_source.checksum_store.register(bundler_spec, Checksum.from_gem_package(package))
|
|
130
|
+
return [] if definition.sources.metadata_source.checksum_store.missing?(bundler_spec)
|
|
115
131
|
|
|
116
132
|
[definition.sources.metadata_source.checksum_store.to_lock(bundler_spec)]
|
|
117
133
|
end
|
|
134
|
+
|
|
135
|
+
def bundled_with_changing?
|
|
136
|
+
locked_gems = definition.locked_gems
|
|
137
|
+
return false unless locked_gems
|
|
138
|
+
|
|
139
|
+
locked_gems.bundler_version != definition.bundler_version_to_lock
|
|
140
|
+
end
|
|
118
141
|
end
|
|
119
142
|
end
|
|
@@ -76,4 +76,4 @@ You can assign the gem to more than one group\.
|
|
|
76
76
|
\fBbundle add rails \-\-group "development, test"\fR
|
|
77
77
|
.IP "" 0
|
|
78
78
|
.SH "SEE ALSO"
|
|
79
|
-
Gemfile(5) \fIhttps://
|
|
79
|
+
Gemfile(5) \fIhttps://guides\.rubygems\.org/gemfile/\fR, bundle\-remove(1) \fIbundle\-remove\.1\.html\fR
|
|
@@ -17,6 +17,9 @@ Include gems for all platforms present in the lockfile, not only the current one
|
|
|
17
17
|
\fB\-\-cache\-path=CACHE\-PATH\fR
|
|
18
18
|
Specify a different cache path than the default (vendor/cache)\.
|
|
19
19
|
.TP
|
|
20
|
+
\fB\-\-cooldown=<number>\fR
|
|
21
|
+
Only consider gem versions published at least \fInumber\fR days ago when resolving before caching\. Pass \fB0\fR to disable cooldown for this run, overriding any per\-source or global configuration\. See \fBcooldown\fR in bundle\-config(1)\.
|
|
22
|
+
.TP
|
|
20
23
|
\fB\-\-gemfile=GEMFILE\fR
|
|
21
24
|
Use the specified gemfile instead of Gemfile\.
|
|
22
25
|
.TP
|
|
@@ -21,6 +21,12 @@ use the gems in the cache in preference to the ones on `rubygems.org`.
|
|
|
21
21
|
* `--cache-path=CACHE-PATH`:
|
|
22
22
|
Specify a different cache path than the default (vendor/cache).
|
|
23
23
|
|
|
24
|
+
* `--cooldown=<number>`:
|
|
25
|
+
Only consider gem versions published at least <number> days ago when
|
|
26
|
+
resolving before caching. Pass `0` to disable cooldown for this run,
|
|
27
|
+
overriding any per-source or global configuration. See `cooldown` in
|
|
28
|
+
bundle-config(1).
|
|
29
|
+
|
|
24
30
|
* `--gemfile=GEMFILE`:
|
|
25
31
|
Use the specified gemfile instead of Gemfile.
|
|
26
32
|
|
|
@@ -139,7 +139,7 @@ Cooldown filtering depends on the gem server providing a per\-version \fBcreated
|
|
|
139
139
|
.IP "\(bu" 4
|
|
140
140
|
\fBlockfile\fR (\fBBUNDLE_LOCKFILE\fR): The path to the lockfile that bundler should use\. By default, Bundler adds \fB\.lock\fR to the end of the \fBgemfile\fR entry\. Can be set to \fBfalse\fR in the Gemfile to disable lockfile creation entirely (see gemfile(5))\.
|
|
141
141
|
.IP "\(bu" 4
|
|
142
|
-
\fBlockfile_checksums\fR (\fBBUNDLE_LOCKFILE_CHECKSUMS\fR): Whether Bundler should include a checksums section in new lockfiles, to protect from compromised gem sources\. Defaults to true\.
|
|
142
|
+
\fBlockfile_checksums\fR (\fBBUNDLE_LOCKFILE_CHECKSUMS\fR): Whether Bundler should include a checksums section in new lockfiles, to protect from compromised gem sources\. Defaults to true\. Bundler's own checksum is only included when its \fB\.gem\fR file is cached, which may not be the case when Bundler is installed as a default gem\.
|
|
143
143
|
.IP "\(bu" 4
|
|
144
144
|
\fBno_install\fR (\fBBUNDLE_NO_INSTALL\fR): Whether \fBbundle package\fR should skip installing gems\.
|
|
145
145
|
.IP "\(bu" 4
|
|
@@ -230,6 +230,8 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
|
|
|
230
230
|
Gemfile to disable lockfile creation entirely (see gemfile(5)).
|
|
231
231
|
* `lockfile_checksums` (`BUNDLE_LOCKFILE_CHECKSUMS`):
|
|
232
232
|
Whether Bundler should include a checksums section in new lockfiles, to protect from compromised gem sources. Defaults to true.
|
|
233
|
+
Bundler's own checksum is only included when its `.gem` file is cached, which
|
|
234
|
+
may not be the case when Bundler is installed as a default gem.
|
|
233
235
|
* `no_install` (`BUNDLE_NO_INSTALL`):
|
|
234
236
|
Whether `bundle package` should skip installing gems.
|
|
235
237
|
* `no_prune` (`BUNDLE_NO_PRUNE`):
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
.SH "DESCRIPTION"
|
|
9
9
|
Starts an interactive Ruby console session in the context of the current bundle\.
|
|
10
10
|
.P
|
|
11
|
-
If no \fBGROUP\fR is specified, all gems in the \fBdefault\fR group in the Gemfile(5) \fIhttps://
|
|
11
|
+
If no \fBGROUP\fR is specified, all gems in the \fBdefault\fR group in the Gemfile(5) \fIhttps://guides\.rubygems\.org/gemfile/\fR are preliminarily loaded\.
|
|
12
12
|
.P
|
|
13
13
|
If \fBGROUP\fR is specified, all gems in the given group in the Gemfile in addition to the gems in \fBdefault\fR group are loaded\. Even if the given group does not exist in the Gemfile, IRB console starts without any warning or error\.
|
|
14
14
|
.P
|
|
@@ -30,4 +30,4 @@ Resolving dependencies\|\.\|\.\|\.
|
|
|
30
30
|
[1] pry(main)>
|
|
31
31
|
.fi
|
|
32
32
|
.SH "SEE ALSO"
|
|
33
|
-
Gemfile(5) \fIhttps://
|
|
33
|
+
Gemfile(5) \fIhttps://guides\.rubygems\.org/gemfile/\fR
|
|
@@ -9,7 +9,7 @@ bundle-console(1) -- Open an IRB session with the bundle pre-loaded
|
|
|
9
9
|
|
|
10
10
|
Starts an interactive Ruby console session in the context of the current bundle.
|
|
11
11
|
|
|
12
|
-
If no `GROUP` is specified, all gems in the `default` group in the [Gemfile(5)](https://
|
|
12
|
+
If no `GROUP` is specified, all gems in the `default` group in the [Gemfile(5)](https://guides.rubygems.org/gemfile/) are
|
|
13
13
|
preliminarily loaded.
|
|
14
14
|
|
|
15
15
|
If `GROUP` is specified, all gems in the given group in the Gemfile in addition
|
|
@@ -36,4 +36,4 @@ the shell from the following:
|
|
|
36
36
|
|
|
37
37
|
## SEE ALSO
|
|
38
38
|
|
|
39
|
-
[Gemfile(5)](https://
|
|
39
|
+
[Gemfile(5)](https://guides.rubygems.org/gemfile/)
|
|
@@ -17,4 +17,4 @@ Use the specified name for the gemfile instead of \fBGemfile\fR
|
|
|
17
17
|
.SH "FILES"
|
|
18
18
|
Included in the default [\fBGemfile(5)\fR][Gemfile(5)] generated is the line \fB# frozen_string_literal: true\fR\. This is a magic comment supported for the first time in Ruby 2\.3\. The presence of this line results in all string literals in the file being implicitly frozen\.
|
|
19
19
|
.SH "SEE ALSO"
|
|
20
|
-
Gemfile(5) \fIhttps://
|
|
20
|
+
Gemfile(5) \fIhttps://guides\.rubygems\.org/gemfile/\fR
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.SH "NAME"
|
|
5
5
|
\fBbundle\-lock\fR \- Creates / Updates a lockfile without installing
|
|
6
6
|
.SH "SYNOPSIS"
|
|
7
|
-
\fBbundle lock\fR [\-\-update] [\-\-bundler[=BUNDLER]] [\-\-local] [\-\-print] [\-\-lockfile=PATH] [\-\-full\-index] [\-\-gemfile=GEMFILE] [\-\-add\-checksums] [\-\-add\-platform] [\-\-remove\-platform] [\-\-normalize\-platforms] [\-\-patch] [\-\-minor] [\-\-major] [\-\-pre] [\-\-strict] [\-\-conservative]
|
|
7
|
+
\fBbundle lock\fR [\-\-update] [\-\-bundler[=BUNDLER]] [\-\-local] [\-\-print] [\-\-lockfile=PATH] [\-\-full\-index] [\-\-gemfile=GEMFILE] [\-\-add\-checksums] [\-\-add\-platform] [\-\-remove\-platform] [\-\-normalize\-platforms] [\-\-patch] [\-\-minor] [\-\-major] [\-\-pre] [\-\-strict] [\-\-conservative] [\-\-cooldown=NUMBER]
|
|
8
8
|
.SH "DESCRIPTION"
|
|
9
9
|
Lock the gems specified in Gemfile\.
|
|
10
10
|
.SH "OPTIONS"
|
|
@@ -59,6 +59,9 @@ If updating, do not allow any gem to be updated past latest \-\-patch | \-\-mino
|
|
|
59
59
|
.TP
|
|
60
60
|
\fB\-\-conservative\fR
|
|
61
61
|
If updating, use bundle install conservative update behavior and do not allow shared dependencies to be updated\.
|
|
62
|
+
.TP
|
|
63
|
+
\fB\-\-cooldown=<number>\fR
|
|
64
|
+
Only consider gem versions published at least \fInumber\fR days ago when resolving\. Pass \fB0\fR to disable cooldown for this run, overriding any per\-source or global configuration\. See \fBcooldown\fR in bundle\-config(1)\.
|
|
62
65
|
.SH "UPDATING ALL GEMS"
|
|
63
66
|
If you run \fBbundle lock\fR with \fB\-\-update\fR option without list of gems, bundler will ignore any previously installed gems and resolve all dependencies again based on the latest versions of all gems available in the sources\.
|
|
64
67
|
.SH "UPDATING A LIST OF GEMS"
|
|
@@ -20,6 +20,7 @@ bundle-lock(1) -- Creates / Updates a lockfile without installing
|
|
|
20
20
|
[--pre]
|
|
21
21
|
[--strict]
|
|
22
22
|
[--conservative]
|
|
23
|
+
[--cooldown=NUMBER]
|
|
23
24
|
|
|
24
25
|
## DESCRIPTION
|
|
25
26
|
|
|
@@ -84,6 +85,11 @@ Lock the gems specified in Gemfile.
|
|
|
84
85
|
* `--conservative`:
|
|
85
86
|
If updating, use bundle install conservative update behavior and do not allow shared dependencies to be updated.
|
|
86
87
|
|
|
88
|
+
* `--cooldown=<number>`:
|
|
89
|
+
Only consider gem versions published at least <number> days ago when
|
|
90
|
+
resolving. Pass `0` to disable cooldown for this run, overriding any
|
|
91
|
+
per-source or global configuration. See `cooldown` in bundle-config(1).
|
|
92
|
+
|
|
87
93
|
## UPDATING ALL GEMS
|
|
88
94
|
|
|
89
95
|
If you run `bundle lock` with `--update` option without list of gems, bundler will
|
|
@@ -71,6 +71,6 @@ Describe subcommands or one specific subcommand\.
|
|
|
71
71
|
No options\.
|
|
72
72
|
.SH "SEE ALSO"
|
|
73
73
|
.IP "\(bu" 4
|
|
74
|
-
How to write a Bundler plugin \fIhttps://
|
|
74
|
+
How to write a Bundler plugin \fIhttps://guides\.rubygems\.org/bundler_plugins/\fR
|
|
75
75
|
.IP "" 0
|
|
76
76
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
.SH "DESCRIPTION"
|
|
9
9
|
Bundler manages an \fBapplication's dependencies\fR through its entire life across many machines systematically and repeatably\.
|
|
10
10
|
.P
|
|
11
|
-
See the
|
|
11
|
+
See the RubyGems guides \fIhttps://guides\.rubygems\.org/\fR for information on getting started, and Gemfile(5) for more information on the \fBGemfile\fR format\.
|
|
12
12
|
.SH "OPTIONS"
|
|
13
13
|
.TP
|
|
14
14
|
\fB\-\-no\-color\fR
|
|
@@ -54,6 +54,18 @@ Determine whether the requirements for your application are installed and availa
|
|
|
54
54
|
\fBbundle show(1)\fR \fIbundle\-show\.1\.html\fR
|
|
55
55
|
Show the source location of a particular gem in the bundle
|
|
56
56
|
.TP
|
|
57
|
+
\fBbundle info(1)\fR \fIbundle\-info\.1\.html\fR
|
|
58
|
+
Show information for the given gem in your bundle
|
|
59
|
+
.TP
|
|
60
|
+
\fBbundle list(1)\fR \fIbundle\-list\.1\.html\fR
|
|
61
|
+
List all the gems in the bundle
|
|
62
|
+
.TP
|
|
63
|
+
\fBbundle licenses(1)\fR \fIbundle\-licenses\.1\.html\fR
|
|
64
|
+
Print the license of all gems in the bundle
|
|
65
|
+
.TP
|
|
66
|
+
\fBbundle fund(1)\fR \fIbundle\-fund\.1\.html\fR
|
|
67
|
+
Lists information about gems seeking funding assistance
|
|
68
|
+
.TP
|
|
57
69
|
\fBbundle outdated(1)\fR \fIbundle\-outdated\.1\.html\fR
|
|
58
70
|
Show all of the outdated gems in the current bundle
|
|
59
71
|
.TP
|
|
@@ -78,9 +90,18 @@ Display platform compatibility information
|
|
|
78
90
|
\fBbundle clean(1)\fR \fIbundle\-clean\.1\.html\fR
|
|
79
91
|
Clean up unused gems in your Bundler directory
|
|
80
92
|
.TP
|
|
93
|
+
\fBbundle pristine(1)\fR \fIbundle\-pristine\.1\.html\fR
|
|
94
|
+
Restores installed gems to their pristine condition
|
|
95
|
+
.TP
|
|
81
96
|
\fBbundle doctor(1)\fR \fIbundle\-doctor\.1\.html\fR
|
|
82
97
|
Display warnings about common problems
|
|
83
98
|
.TP
|
|
99
|
+
\fBbundle env(1)\fR \fIbundle\-env\.1\.html\fR
|
|
100
|
+
Print information about the environment Bundler is running under
|
|
101
|
+
.TP
|
|
102
|
+
\fBbundle issue(1)\fR \fIbundle\-issue\.1\.html\fR
|
|
103
|
+
Get help reporting Bundler issues
|
|
104
|
+
.TP
|
|
84
105
|
\fBbundle remove(1)\fR \fIbundle\-remove\.1\.html\fR
|
|
85
106
|
Removes gems from the Gemfile
|
|
86
107
|
.TP
|
|
@@ -10,7 +10,7 @@ bundle(1) -- Ruby Dependency Management
|
|
|
10
10
|
Bundler manages an `application's dependencies` through its entire life
|
|
11
11
|
across many machines systematically and repeatably.
|
|
12
12
|
|
|
13
|
-
See [the
|
|
13
|
+
See [the RubyGems guides](https://guides.rubygems.org/) for information on getting
|
|
14
14
|
started, and Gemfile(5) for more information on the `Gemfile` format.
|
|
15
15
|
|
|
16
16
|
## OPTIONS
|
|
@@ -64,6 +64,18 @@ We divide `bundle` subcommands into primary commands and utilities:
|
|
|
64
64
|
* [`bundle show(1)`](bundle-show.1.html):
|
|
65
65
|
Show the source location of a particular gem in the bundle
|
|
66
66
|
|
|
67
|
+
* [`bundle info(1)`](bundle-info.1.html):
|
|
68
|
+
Show information for the given gem in your bundle
|
|
69
|
+
|
|
70
|
+
* [`bundle list(1)`](bundle-list.1.html):
|
|
71
|
+
List all the gems in the bundle
|
|
72
|
+
|
|
73
|
+
* [`bundle licenses(1)`](bundle-licenses.1.html):
|
|
74
|
+
Print the license of all gems in the bundle
|
|
75
|
+
|
|
76
|
+
* [`bundle fund(1)`](bundle-fund.1.html):
|
|
77
|
+
Lists information about gems seeking funding assistance
|
|
78
|
+
|
|
67
79
|
* [`bundle outdated(1)`](bundle-outdated.1.html):
|
|
68
80
|
Show all of the outdated gems in the current bundle
|
|
69
81
|
|
|
@@ -88,9 +100,18 @@ We divide `bundle` subcommands into primary commands and utilities:
|
|
|
88
100
|
* [`bundle clean(1)`](bundle-clean.1.html):
|
|
89
101
|
Clean up unused gems in your Bundler directory
|
|
90
102
|
|
|
103
|
+
* [`bundle pristine(1)`](bundle-pristine.1.html):
|
|
104
|
+
Restores installed gems to their pristine condition
|
|
105
|
+
|
|
91
106
|
* [`bundle doctor(1)`](bundle-doctor.1.html):
|
|
92
107
|
Display warnings about common problems
|
|
93
108
|
|
|
109
|
+
* [`bundle env(1)`](bundle-env.1.html):
|
|
110
|
+
Print information about the environment Bundler is running under
|
|
111
|
+
|
|
112
|
+
* [`bundle issue(1)`](bundle-issue.1.html):
|
|
113
|
+
Get help reporting Bundler issues
|
|
114
|
+
|
|
94
115
|
* [`bundle remove(1)`](bundle-remove.1.html):
|
|
95
116
|
Removes gems from the Gemfile
|
|
96
117
|
|
|
@@ -107,6 +107,8 @@ gem "nokogiri", ">= 1\.4\.2"
|
|
|
107
107
|
gem "RedCloth", ">= 4\.1\.0", "< 4\.2\.0"
|
|
108
108
|
.fi
|
|
109
109
|
.IP "" 0
|
|
110
|
+
.P
|
|
111
|
+
Most version specifiers, like \fB>= 1\.0\fR, are self\-explanatory\. The pessimistic specifier \fB~>\fR constrains both a lower and an upper bound: \fB~> 2\.0\.3\fR is identical to \fB>= 2\.0\.3\fR and \fB< 2\.1\fR, and \fB~> 2\.1\fR is identical to \fB>= 2\.1\fR and \fB< 3\.0\fR\. A pessimistic specifier with a prerelease component, like \fB~> 2\.2\.beta\fR, will match prerelease versions like \fB2\.2\.beta\.12\fR\. \fB~> 0\fR is identical to \fB>= 0\.0\fR and \fB< 1\.0\fR\.
|
|
110
112
|
.SS "REQUIRE AS"
|
|
111
113
|
Each \fIgem\fR \fBMAY\fR specify files that should be used when autorequiring via \fBBundler\.require\fR\. You may pass an array with multiple files or \fBtrue\fR if the file you want \fBrequired\fR has the same name as \fIgem\fR or \fBfalse\fR to prevent any file from being autorequired\.
|
|
112
114
|
.IP "" 4
|
|
@@ -164,7 +166,7 @@ bundle config set \-\-local without development test
|
|
|
164
166
|
.P
|
|
165
167
|
Also, calling \fBBundler\.setup\fR with no parameters, or calling \fBrequire "bundler/setup"\fR will setup all groups except for the ones you excluded via \fB\-\-without\fR (since they are not available)\.
|
|
166
168
|
.P
|
|
167
|
-
Note that on \fBbundle install\fR, bundler downloads and evaluates all gems, in order to create a single canonical list of all of the required gems and their dependencies\. This means that you cannot list different versions of the same gems in different groups\. For more details, see
|
|
169
|
+
Note that on \fBbundle install\fR, bundler downloads and evaluates all gems, in order to create a single canonical list of all of the required gems and their dependencies\. This means that you cannot list different versions of the same gems in different groups\. For more details, see Dependency management \fIhttps://guides\.rubygems\.org/dependency_management/\fR\.
|
|
168
170
|
.SS "PLATFORMS"
|
|
169
171
|
If a gem should only be used in a particular platform or set of platforms, you can specify them\. Platforms are essentially identical to groups, except that you do not need to use the \fB\-\-without\fR install\-time flag to exclude groups of gems for other platforms\.
|
|
170
172
|
.P
|
|
@@ -460,6 +462,15 @@ The \fBgemspec\fR method adds any runtime dependencies as gem requirements in th
|
|
|
460
462
|
The \fBgemspec\fR method supports optional \fB:path\fR, \fB:glob\fR, \fB:name\fR, and \fB:development_group\fR options, which control where bundler looks for the \fB\.gemspec\fR, the glob it uses to look for the gemspec (defaults to: \fB{,*,*/*}\.gemspec\fR), what named \fB\.gemspec\fR it uses (if more than one is present), and which group development dependencies are included in\.
|
|
461
463
|
.P
|
|
462
464
|
When a \fBgemspec\fR dependency encounters version conflicts during resolution, the local version under development will always be selected \-\- even if there are remote versions that better match other requirements for the \fBgemspec\fR gem\.
|
|
465
|
+
.SH "EVAL_GEMFILE"
|
|
466
|
+
A Gemfile \fBMAY\fR be split across multiple files\. The \fBeval_gemfile\fR method reads the contents of another file as if they appeared in the current Gemfile\. A relative path is resolved against the directory of the file containing the call\.
|
|
467
|
+
.IP "" 4
|
|
468
|
+
.nf
|
|
469
|
+
eval_gemfile "another\.gemfile"
|
|
470
|
+
.fi
|
|
471
|
+
.IP "" 0
|
|
472
|
+
.P
|
|
473
|
+
This can be useful to run tests against multiple combinations of dependencies, or to load per\-developer gems from an untracked gemfile\.
|
|
463
474
|
.SH "SOURCE PRIORITY"
|
|
464
475
|
When attempting to locate a gem to satisfy a gem requirement, bundler uses the following priority order:
|
|
465
476
|
.IP "1." 4
|