bundler 1.16.6 → 1.17.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bundler might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -18
- data/README.md +1 -1
- data/bundler.gemspec +1 -1
- data/lib/bundler.rb +2 -2
- data/lib/bundler/build_metadata.rb +2 -2
- data/lib/bundler/cli.rb +32 -18
- data/lib/bundler/cli/add.rb +15 -5
- data/lib/bundler/cli/doctor.rb +47 -1
- data/lib/bundler/cli/install.rb +8 -5
- data/lib/bundler/cli/list.rb +41 -5
- data/lib/bundler/cli/outdated.rb +7 -1
- data/lib/bundler/cli/pristine.rb +4 -0
- data/lib/bundler/definition.rb +28 -34
- data/lib/bundler/endpoint_specification.rb +1 -1
- data/lib/bundler/env.rb +6 -8
- data/lib/bundler/feature_flag.rb +5 -0
- data/lib/bundler/fetcher.rb +1 -1
- data/lib/bundler/gem_helper.rb +1 -1
- data/lib/bundler/gem_version_promoter.rb +4 -2
- data/lib/bundler/injector.rb +14 -3
- data/lib/bundler/installer.rb +29 -6
- data/lib/bundler/installer/gem_installer.rb +1 -1
- data/lib/bundler/installer/parallel_installer.rb +6 -1
- data/lib/bundler/mirror.rb +2 -2
- data/lib/bundler/plugin.rb +9 -2
- data/lib/bundler/plugin/events.rb +61 -0
- data/lib/bundler/plugin/index.rb +1 -1
- data/lib/bundler/resolver.rb +2 -2
- data/lib/bundler/resolver/spec_group.rb +4 -0
- data/lib/bundler/runtime.rb +9 -3
- data/lib/bundler/settings.rb +23 -2
- data/lib/bundler/settings/validator.rb +23 -0
- data/lib/bundler/source.rb +9 -9
- data/lib/bundler/source/metadata.rb +1 -1
- data/lib/bundler/templates/newgem/lib/newgem.rb.tt +1 -0
- data/lib/bundler/templates/newgem/newgem.gemspec.tt +0 -4
- data/lib/bundler/version.rb +1 -1
- data/man/bundle-add.1 +18 -3
- data/man/bundle-add.1.txt +17 -5
- data/man/bundle-add.ronn +13 -2
- data/man/bundle-binstubs.1 +1 -1
- data/man/bundle-binstubs.1.txt +1 -1
- data/man/bundle-check.1 +1 -1
- data/man/bundle-check.1.txt +1 -1
- data/man/bundle-clean.1 +1 -1
- data/man/bundle-clean.1.txt +1 -1
- data/man/bundle-config.1 +10 -1
- data/man/bundle-config.1.txt +22 -10
- data/man/bundle-config.ronn +7 -0
- data/man/bundle-doctor.1 +1 -1
- data/man/bundle-doctor.1.txt +1 -1
- data/man/bundle-exec.1 +1 -1
- data/man/bundle-exec.1.txt +1 -1
- data/man/bundle-gem.1 +1 -1
- data/man/bundle-gem.1.txt +1 -1
- data/man/bundle-info.1 +1 -1
- data/man/bundle-info.1.txt +1 -1
- data/man/bundle-init.1 +1 -1
- data/man/bundle-init.1.txt +1 -1
- data/man/bundle-inject.1 +1 -1
- data/man/bundle-inject.1.txt +1 -1
- data/man/bundle-install.1 +2 -5
- data/man/bundle-install.1.txt +7 -17
- data/man/bundle-install.ronn +2 -11
- data/man/bundle-list.1 +32 -2
- data/man/bundle-list.1.txt +24 -2
- data/man/bundle-list.ronn +19 -1
- data/man/bundle-lock.1 +1 -1
- data/man/bundle-lock.1.txt +1 -1
- data/man/bundle-open.1 +1 -1
- data/man/bundle-open.1.txt +1 -1
- data/man/bundle-outdated.1 +6 -2
- data/man/bundle-outdated.1.txt +10 -6
- data/man/bundle-outdated.ronn +4 -0
- data/man/bundle-package.1 +1 -1
- data/man/bundle-package.1.txt +1 -1
- data/man/bundle-platform.1 +1 -1
- data/man/bundle-platform.1.txt +1 -1
- data/man/bundle-pristine.1 +1 -1
- data/man/bundle-pristine.1.txt +1 -1
- data/man/bundle-show.1 +1 -1
- data/man/bundle-show.1.txt +1 -1
- data/man/bundle-update.1 +6 -10
- data/man/bundle-update.1.txt +14 -16
- data/man/bundle-update.ronn +6 -10
- data/man/bundle-viz.1 +1 -1
- data/man/bundle-viz.1.txt +1 -1
- data/man/bundle.1 +1 -1
- data/man/bundle.1.txt +1 -1
- data/man/gemfile.5 +1 -1
- data/man/gemfile.5.txt +1 -1
- metadata +3 -3
data/lib/bundler/settings.rb
CHANGED
@@ -14,6 +14,7 @@ module Bundler
|
|
14
14
|
allow_offline_install
|
15
15
|
auto_clean_without_path
|
16
16
|
auto_install
|
17
|
+
auto_config_jobs
|
17
18
|
cache_all
|
18
19
|
cache_all_platforms
|
19
20
|
cache_command_is_package
|
@@ -25,6 +26,7 @@ module Bundler
|
|
25
26
|
disable_exec_load
|
26
27
|
disable_local_branch_check
|
27
28
|
disable_multisource
|
29
|
+
disable_platform_warnings
|
28
30
|
disable_shared_gems
|
29
31
|
disable_version_check
|
30
32
|
error_on_stderr
|
@@ -33,6 +35,7 @@ module Bundler
|
|
33
35
|
frozen
|
34
36
|
gem.coc
|
35
37
|
gem.mit
|
38
|
+
global_path_appends_ruby_scope
|
36
39
|
global_gem_cache
|
37
40
|
ignore_messages
|
38
41
|
init_gems_rb
|
@@ -42,6 +45,7 @@ module Bundler
|
|
42
45
|
no_install
|
43
46
|
no_prune
|
44
47
|
only_update_to_newer_versions
|
48
|
+
path_relative_to_cwd
|
45
49
|
path.system
|
46
50
|
plugins
|
47
51
|
prefer_gems_rb
|
@@ -53,9 +57,12 @@ module Bundler
|
|
53
57
|
suppress_install_using_messages
|
54
58
|
unlock_source_unlocks_spec
|
55
59
|
update_requires_all_flag
|
60
|
+
use_gem_version_promoter_for_major_updates
|
61
|
+
viz_command
|
56
62
|
].freeze
|
57
63
|
|
58
64
|
NUMBER_KEYS = %w[
|
65
|
+
jobs
|
59
66
|
redirect
|
60
67
|
retry
|
61
68
|
ssl_verify_mode
|
@@ -213,13 +220,13 @@ module Bundler
|
|
213
220
|
locations
|
214
221
|
end
|
215
222
|
|
216
|
-
# for legacy reasons, the ruby scope isnt appended when the setting comes from ENV or the global config,
|
223
|
+
# for legacy reasons, in Bundler 1, the ruby scope isnt appended when the setting comes from ENV or the global config,
|
217
224
|
# nor do we respect :disable_shared_gems
|
218
225
|
def path
|
219
226
|
key = key_for(:path)
|
220
227
|
path = ENV[key] || @global_config[key]
|
221
228
|
if path && !@temporary.key?(key) && !@local_config.key?(key)
|
222
|
-
return Path.new(path,
|
229
|
+
return Path.new(path, Bundler.feature_flag.global_path_appends_ruby_scope?, false, false)
|
223
230
|
end
|
224
231
|
|
225
232
|
system_path = self["path.system"] || (self[:disable_shared_gems] == false)
|
@@ -246,6 +253,20 @@ module Bundler
|
|
246
253
|
path
|
247
254
|
end
|
248
255
|
|
256
|
+
def base_path_relative_to_pwd
|
257
|
+
base_path = Pathname.new(self.base_path)
|
258
|
+
expanded_base_path = base_path.expand_path(Bundler.root)
|
259
|
+
relative_path = expanded_base_path.relative_path_from(Pathname.pwd)
|
260
|
+
if relative_path.to_s.start_with?("..")
|
261
|
+
relative_path = base_path if base_path.absolute?
|
262
|
+
else
|
263
|
+
relative_path = Pathname.new(File.join(".", relative_path))
|
264
|
+
end
|
265
|
+
relative_path
|
266
|
+
rescue ArgumentError
|
267
|
+
expanded_base_path
|
268
|
+
end
|
269
|
+
|
249
270
|
def validate!
|
250
271
|
return unless explicit_path && system_path
|
251
272
|
path = Bundler.settings.pretty_values_for(:path)
|
@@ -74,6 +74,29 @@ module Bundler
|
|
74
74
|
fail!(key, value, "`#{other_key}` is current set to #{other_setting.inspect}", "the `#{conflicting.join("`, `")}` groups conflict")
|
75
75
|
end
|
76
76
|
end
|
77
|
+
|
78
|
+
rule %w[path], "relative paths are expanded relative to the current working directory" do |key, value, settings|
|
79
|
+
next if value.nil?
|
80
|
+
|
81
|
+
path = Pathname.new(value)
|
82
|
+
next if !path.relative? || !Bundler.feature_flag.path_relative_to_cwd?
|
83
|
+
|
84
|
+
path = path.expand_path
|
85
|
+
|
86
|
+
root = begin
|
87
|
+
Bundler.root
|
88
|
+
rescue GemfileNotFound
|
89
|
+
Pathname.pwd.expand_path
|
90
|
+
end
|
91
|
+
|
92
|
+
path = begin
|
93
|
+
path.relative_path_from(root)
|
94
|
+
rescue ArgumentError
|
95
|
+
path
|
96
|
+
end
|
97
|
+
|
98
|
+
set(settings, key, path.to_s)
|
99
|
+
end
|
77
100
|
end
|
78
101
|
end
|
79
102
|
end
|
data/lib/bundler/source.rb
CHANGED
@@ -54,6 +54,15 @@ module Bundler
|
|
54
54
|
instance_of?(Bundler::Source::Path)
|
55
55
|
end
|
56
56
|
|
57
|
+
def extension_cache_path(spec)
|
58
|
+
return unless Bundler.feature_flag.global_gem_cache?
|
59
|
+
return unless source_slug = extension_cache_slug(spec)
|
60
|
+
Bundler.user_cache.join(
|
61
|
+
"extensions", Gem::Platform.local.to_s, Bundler.ruby_scope,
|
62
|
+
source_slug, spec.full_name
|
63
|
+
)
|
64
|
+
end
|
65
|
+
|
57
66
|
private
|
58
67
|
|
59
68
|
def version_color(spec_version, locked_spec_version)
|
@@ -78,15 +87,6 @@ module Bundler
|
|
78
87
|
end
|
79
88
|
end
|
80
89
|
|
81
|
-
def extension_cache_path(spec)
|
82
|
-
return unless Bundler.feature_flag.global_gem_cache?
|
83
|
-
return unless source_slug = extension_cache_slug(spec)
|
84
|
-
Bundler.user_cache.join(
|
85
|
-
"extensions", Gem::Platform.local.to_s, Bundler.ruby_scope,
|
86
|
-
source_slug, spec.full_name
|
87
|
-
)
|
88
|
-
end
|
89
|
-
|
90
90
|
def extension_cache_slug(_)
|
91
91
|
nil
|
92
92
|
end
|
@@ -19,7 +19,7 @@ module Bundler
|
|
19
19
|
# can't point to the actual gemspec or else the require paths will be wrong
|
20
20
|
s.loaded_from = File.expand_path("..", __FILE__)
|
21
21
|
end
|
22
|
-
if loaded_spec = Bundler.rubygems.loaded_specs("bundler")
|
22
|
+
if loaded_spec = nil && Bundler.rubygems.loaded_specs("bundler")
|
23
23
|
idx << loaded_spec # this has to come after the fake gemspec, to override it
|
24
24
|
elsif local_spec = Bundler.rubygems.find_name("bundler").find {|s| s.version.to_s == VERSION }
|
25
25
|
idx << local_spec
|
@@ -6,6 +6,7 @@ require "<%= config[:namespaced_path] %>/<%= config[:underscored_name] %>"
|
|
6
6
|
<%- config[:constant_array].each_with_index do |c, i| -%>
|
7
7
|
<%= " " * i %>module <%= c %>
|
8
8
|
<%- end -%>
|
9
|
+
<%= " " * config[:constant_array].size %>class Error < StandardError; end
|
9
10
|
<%= " " * config[:constant_array].size %># Your code goes here...
|
10
11
|
<%- (config[:constant_array].size-1).downto(0) do |i| -%>
|
11
12
|
<%= " " * i %>end
|
@@ -23,10 +23,6 @@ Gem::Specification.new do |spec|
|
|
23
23
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
24
24
|
if spec.respond_to?(:metadata)
|
25
25
|
spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
26
|
-
|
27
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
28
|
-
spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
|
29
|
-
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
30
26
|
else
|
31
27
|
raise "RubyGems 2.0 or newer is required to protect against " \
|
32
28
|
"public gem pushes."
|
data/lib/bundler/version.rb
CHANGED
@@ -7,7 +7,7 @@ module Bundler
|
|
7
7
|
# We're doing this because we might write tests that deal
|
8
8
|
# with other versions of bundler and we are unsure how to
|
9
9
|
# handle this better.
|
10
|
-
VERSION = "1.
|
10
|
+
VERSION = "1.17.0.pre.1" unless defined?(::Bundler::VERSION)
|
11
11
|
|
12
12
|
def self.overwrite_loaded_gem_version
|
13
13
|
begin
|
data/man/bundle-add.1
CHANGED
@@ -1,16 +1,16 @@
|
|
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" "
|
4
|
+
.TH "BUNDLE\-ADD" "1" "September 2018" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-add\fR \- Add gem to the Gemfile and run bundle install
|
8
8
|
.
|
9
9
|
.SH "SYNOPSIS"
|
10
|
-
\fBbundle add\fR \fIGEM_NAME\fR [\-\-group=GROUP] [\-\-version=VERSION] [\-\-source=SOURCE]
|
10
|
+
\fBbundle add\fR \fIGEM_NAME\fR [\-\-group=GROUP] [\-\-version=VERSION] [\-\-source=SOURCE] [\-\-skip\-install] [\-\-strict] [\-\-optimistic]
|
11
11
|
.
|
12
12
|
.SH "DESCRIPTION"
|
13
|
-
Adds the named gem to the Gemfile and run \fBbundle install\fR\.
|
13
|
+
Adds the named gem to the Gemfile and run \fBbundle install\fR\. \fBbundle install\fR can be avoided by using the flag \fB\-\-skip\-install\fR\.
|
14
14
|
.
|
15
15
|
.P
|
16
16
|
Example:
|
@@ -25,6 +25,9 @@ bundle add rails \-\-version "< 3\.0, > 1\.1"
|
|
25
25
|
bundle add rails \-\-version "~> 5\.0\.0" \-\-source "https://gems\.example\.com" \-\-group "development"
|
26
26
|
.
|
27
27
|
.P
|
28
|
+
bundle add rails \-\-skip\-install
|
29
|
+
.
|
30
|
+
.P
|
28
31
|
bundle add rails \-\-group "development, test"
|
29
32
|
.
|
30
33
|
.SH "OPTIONS"
|
@@ -40,4 +43,16 @@ Specify the group(s) for the added gem\. Multiple groups should be separated by
|
|
40
43
|
.TP
|
41
44
|
\fB\-\-source\fR, , \fB\-s\fR
|
42
45
|
Specify the source for the added gem\.
|
46
|
+
.
|
47
|
+
.TP
|
48
|
+
\fB\-\-skip\-install\fR
|
49
|
+
Adds the gem to the Gemfile but does not install it\.
|
50
|
+
.
|
51
|
+
.TP
|
52
|
+
\fB\-\-optimistic\fR
|
53
|
+
Adds optimistic declaration of version
|
54
|
+
.
|
55
|
+
.TP
|
56
|
+
\fB\-\-strict\fR
|
57
|
+
Adds strict declaration of version
|
43
58
|
|
data/man/bundle-add.1.txt
CHANGED
@@ -7,10 +7,11 @@ NAME
|
|
7
7
|
|
8
8
|
SYNOPSIS
|
9
9
|
bundle add GEM_NAME [--group=GROUP] [--version=VERSION]
|
10
|
-
[--source=SOURCE]
|
10
|
+
[--source=SOURCE] [--skip-install] [--strict] [--optimistic]
|
11
11
|
|
12
12
|
DESCRIPTION
|
13
|
-
Adds the named gem to
|
13
|
+
Adds the named gem to the Gemfile and run bundle install. bundle
|
14
|
+
install can be avoided by using the flag --skip-install.
|
14
15
|
|
15
16
|
Example:
|
16
17
|
|
@@ -18,9 +19,11 @@ DESCRIPTION
|
|
18
19
|
|
19
20
|
bundle add rails --version "< 3.0, > 1.1"
|
20
21
|
|
21
|
-
bundle
|
22
|
+
bundle add rails --version "~> 5.0.0" --source "https://gems.exam-
|
22
23
|
ple.com" --group "development"
|
23
24
|
|
25
|
+
bundle add rails --skip-install
|
26
|
+
|
24
27
|
bundle add rails --group "development, test"
|
25
28
|
|
26
29
|
OPTIONS
|
@@ -28,13 +31,22 @@ OPTIONS
|
|
28
31
|
Specify version requirements(s) for the added gem.
|
29
32
|
|
30
33
|
--group, -g
|
31
|
-
Specify
|
34
|
+
Specify the group(s) for the added gem. Multiple groups should
|
32
35
|
be separated by commas.
|
33
36
|
|
34
37
|
--source, , -s
|
35
38
|
Specify the source for the added gem.
|
36
39
|
|
40
|
+
--skip-install
|
41
|
+
Adds the gem to the Gemfile but does not install it.
|
42
|
+
|
43
|
+
--optimistic
|
44
|
+
Adds optimistic declaration of version
|
45
|
+
|
46
|
+
--strict
|
47
|
+
Adds strict declaration of version
|
48
|
+
|
37
49
|
|
38
50
|
|
39
51
|
|
40
|
-
|
52
|
+
September 2018 BUNDLE-ADD(1)
|
data/man/bundle-add.ronn
CHANGED
@@ -3,10 +3,10 @@ bundle-add(1) -- Add gem to the Gemfile and run bundle install
|
|
3
3
|
|
4
4
|
## SYNOPSIS
|
5
5
|
|
6
|
-
`bundle add` <GEM_NAME> [--group=GROUP] [--version=VERSION] [--source=SOURCE]
|
6
|
+
`bundle add` <GEM_NAME> [--group=GROUP] [--version=VERSION] [--source=SOURCE] [--skip-install] [--strict] [--optimistic]
|
7
7
|
|
8
8
|
## DESCRIPTION
|
9
|
-
Adds the named gem to the Gemfile and run `bundle install`.
|
9
|
+
Adds the named gem to the Gemfile and run `bundle install`. `bundle install` can be avoided by using the flag `--skip-install`.
|
10
10
|
|
11
11
|
Example:
|
12
12
|
|
@@ -16,6 +16,8 @@ bundle add rails --version "< 3.0, > 1.1"
|
|
16
16
|
|
17
17
|
bundle add rails --version "~> 5.0.0" --source "https://gems.example.com" --group "development"
|
18
18
|
|
19
|
+
bundle add rails --skip-install
|
20
|
+
|
19
21
|
bundle add rails --group "development, test"
|
20
22
|
|
21
23
|
## OPTIONS
|
@@ -27,3 +29,12 @@ bundle add rails --group "development, test"
|
|
27
29
|
|
28
30
|
* `--source`, , `-s`:
|
29
31
|
Specify the source for the added gem.
|
32
|
+
|
33
|
+
* `--skip-install`:
|
34
|
+
Adds the gem to the Gemfile but does not install it.
|
35
|
+
|
36
|
+
* `--optimistic`:
|
37
|
+
Adds optimistic declaration of version
|
38
|
+
|
39
|
+
* `--strict`:
|
40
|
+
Adds strict declaration of version
|
data/man/bundle-binstubs.1
CHANGED
@@ -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" "
|
4
|
+
.TH "BUNDLE\-BINSTUBS" "1" "September 2018" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-binstubs\fR \- Install the binstubs of the listed gems
|
data/man/bundle-binstubs.1.txt
CHANGED
data/man/bundle-check.1
CHANGED
@@ -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" "
|
4
|
+
.TH "BUNDLE\-CHECK" "1" "September 2018" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-check\fR \- Verifies if dependencies are satisfied by installed gems
|
data/man/bundle-check.1.txt
CHANGED
data/man/bundle-clean.1
CHANGED
@@ -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" "
|
4
|
+
.TH "BUNDLE\-CLEAN" "1" "September 2018" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-clean\fR \- Cleans up unused gems in your bundler directory
|
data/man/bundle-clean.1.txt
CHANGED
data/man/bundle-config.1
CHANGED
@@ -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\-CONFIG" "1" "
|
4
|
+
.TH "BUNDLE\-CONFIG" "1" "September 2018" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-config\fR \- Set bundler configuration options
|
@@ -178,6 +178,9 @@ The following is a list of all configuration keys and their purpose\. You can le
|
|
178
178
|
\fBdisable_multisource\fR (\fBBUNDLE_DISABLE_MULTISOURCE\fR): When set, Gemfiles containing multiple sources will produce errors instead of warnings\. Use \fBbundle config \-\-delete disable_multisource\fR to unset\.
|
179
179
|
.
|
180
180
|
.IP "\(bu" 4
|
181
|
+
\fBdisable_platform_warnings\fR (\fBBUNDLE_DISABLE_PLATFORM_WARNINGS\fR): Disable warnings during bundle install when a dependency is unused on the current platform\.
|
182
|
+
.
|
183
|
+
.IP "\(bu" 4
|
181
184
|
\fBdisable_shared_gems\fR (\fBBUNDLE_DISABLE_SHARED_GEMS\fR): Stop Bundler from accessing gems installed to RubyGems\' normal location\.
|
182
185
|
.
|
183
186
|
.IP "\(bu" 4
|
@@ -202,6 +205,9 @@ The following is a list of all configuration keys and their purpose\. You can le
|
|
202
205
|
\fBglobal_gem_cache\fR (\fBBUNDLE_GLOBAL_GEM_CACHE\fR): Whether Bundler should cache all gems globally, rather than locally to the installing Ruby installation\.
|
203
206
|
.
|
204
207
|
.IP "\(bu" 4
|
208
|
+
\fBglobal_path_appends_ruby_scope\fR (\fBBUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE\fR): Whether Bundler should append the Ruby scope (e\.g\. engine and ABI version) to a globally\-configured path\.
|
209
|
+
.
|
210
|
+
.IP "\(bu" 4
|
205
211
|
\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\.
|
206
212
|
.
|
207
213
|
.IP "\(bu" 4
|
@@ -232,6 +238,9 @@ The following is a list of all configuration keys and their purpose\. You can le
|
|
232
238
|
\fBpath\.system\fR (\fBBUNDLE_PATH__SYSTEM\fR): Whether Bundler will install gems into the default system path (\fBGem\.dir\fR)\.
|
233
239
|
.
|
234
240
|
.IP "\(bu" 4
|
241
|
+
\fBpath_relative_to_cwd\fR (\fBPATH_RELATIVE_TO_CWD\fR) Makes \fB\-\-path\fR relative to the CWD instead of the \fBGemfile\fR\.
|
242
|
+
.
|
243
|
+
.IP "\(bu" 4
|
235
244
|
\fBplugins\fR (\fBBUNDLE_PLUGINS\fR): Enable Bundler\'s experimental plugin system\.
|
236
245
|
.
|
237
246
|
.IP "\(bu" 4
|
data/man/bundle-config.1.txt
CHANGED
@@ -205,6 +205,10 @@ LIST OF AVAILABLE KEYS
|
|
205
205
|
files containing multiple sources will produce errors instead of
|
206
206
|
warnings. Use bundle config --delete disable_multisource to unset.
|
207
207
|
|
208
|
+
o disable_platform_warnings (BUNDLE_DISABLE_PLATFORM_WARNINGS): Dis-
|
209
|
+
able warnings during bundle install when a dependency is unused on
|
210
|
+
the current platform.
|
211
|
+
|
208
212
|
o disable_shared_gems (BUNDLE_DISABLE_SHARED_GEMS): Stop Bundler from
|
209
213
|
accessing gems installed to RubyGems' normal location.
|
210
214
|
|
@@ -238,41 +242,49 @@ LIST OF AVAILABLE KEYS
|
|
238
242
|
cache all gems globally, rather than locally to the installing Ruby
|
239
243
|
installation.
|
240
244
|
|
245
|
+
o global_path_appends_ruby_scope (BUN-
|
246
|
+
DLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE): Whether Bundler should append
|
247
|
+
the Ruby scope (e.g. engine and ABI version) to a globally-config-
|
248
|
+
ured path.
|
249
|
+
|
241
250
|
o ignore_messages (BUNDLE_IGNORE_MESSAGES): When set, no post install
|
242
251
|
messages will be printed. To silence a single gem, use dot notation
|
243
252
|
like ignore_messages.httparty true.
|
244
253
|
|
245
|
-
o init_gems_rb
|
254
|
+
o init_gems_rb (BUNDLE_INIT_GEMS_RB) Generate a gems.rb instead of a
|
246
255
|
Gemfile when running bundle init.
|
247
256
|
|
248
|
-
o jobs
|
257
|
+
o jobs (BUNDLE_JOBS): The number of gems Bundler can install in par-
|
249
258
|
allel. Defaults to 1.
|
250
259
|
|
251
260
|
o list_command (BUNDLE_LIST_COMMAND) Enable new list command feature
|
252
261
|
|
253
|
-
o major_deprecations
|
262
|
+
o major_deprecations (BUNDLE_MAJOR_DEPRECATIONS): Whether Bundler
|
254
263
|
should print deprecation warnings for behavior that will be changed
|
255
264
|
in the next major version.
|
256
265
|
|
257
|
-
o no_install
|
266
|
+
o no_install (BUNDLE_NO_INSTALL): Whether bundle package should skip
|
258
267
|
installing gems.
|
259
268
|
|
260
|
-
o no_prune
|
269
|
+
o no_prune (BUNDLE_NO_PRUNE): Whether Bundler should leave outdated
|
261
270
|
gems unpruned when caching.
|
262
271
|
|
263
272
|
o only_update_to_newer_versions (BUNDLE_ONLY_UPDATE_TO_NEWER_VER-
|
264
273
|
SIONS): During bundle update, only resolve to newer versions of the
|
265
274
|
gems in the lockfile.
|
266
275
|
|
267
|
-
o path
|
276
|
+
o path (BUNDLE_PATH): The location on disk where all gems in your
|
268
277
|
bundle will be located regardless of $GEM_HOME or $GEM_PATH values.
|
269
|
-
Bundle
|
270
|
-
install.
|
278
|
+
Bundle gems not found in this location will be installed by bundle
|
279
|
+
install. Defaults to Gem.dir. When --deployment is used, defaults
|
271
280
|
to vendor/bundle.
|
272
281
|
|
273
|
-
o path.system
|
282
|
+
o path.system (BUNDLE_PATH__SYSTEM): Whether Bundler will install
|
274
283
|
gems into the default system path (Gem.dir).
|
275
284
|
|
285
|
+
o path_relative_to_cwd (PATH_RELATIVE_TO_CWD) Makes --path relative
|
286
|
+
to the CWD instead of the Gemfile.
|
287
|
+
|
276
288
|
o plugins (BUNDLE_PLUGINS): Enable Bundler's experimental plugin sys-
|
277
289
|
tem.
|
278
290
|
|
@@ -498,4 +510,4 @@ CREDENTIALS FOR GEM SOURCES
|
|
498
510
|
|
499
511
|
|
500
512
|
|
501
|
-
|
513
|
+
September 2018 BUNDLE-CONFIG(1)
|