bundler 2.1.0 → 2.2.0.rc.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 +832 -738
- data/README.md +6 -8
- data/bundler.gemspec +3 -3
- data/exe/bundle +3 -0
- data/lib/bundler.rb +15 -4
- data/lib/bundler/build_metadata.rb +2 -2
- data/lib/bundler/cli.rb +32 -11
- data/lib/bundler/cli/console.rb +1 -1
- data/lib/bundler/cli/exec.rb +3 -12
- data/lib/bundler/cli/gem.rb +83 -10
- data/lib/bundler/cli/info.rb +13 -3
- data/lib/bundler/cli/init.rb +1 -1
- data/lib/bundler/cli/install.rb +8 -16
- data/lib/bundler/cli/issue.rb +2 -2
- data/lib/bundler/cli/list.rb +11 -9
- data/lib/bundler/cli/outdated.rb +88 -65
- data/lib/bundler/cli/plugin.rb +10 -0
- data/lib/bundler/cli/pristine.rb +5 -0
- data/lib/bundler/definition.rb +32 -32
- data/lib/bundler/dependency.rb +0 -9
- data/lib/bundler/dsl.rb +1 -5
- data/lib/bundler/environment_preserver.rb +26 -2
- data/lib/bundler/errors.rb +1 -0
- data/lib/bundler/feature_flag.rb +0 -2
- data/lib/bundler/fetcher.rb +1 -0
- data/lib/bundler/friendly_errors.rb +4 -10
- data/lib/bundler/gem_helper.rb +18 -12
- data/lib/bundler/gem_version_promoter.rb +1 -1
- data/lib/bundler/injector.rb +14 -3
- data/lib/bundler/inline.rb +2 -2
- data/lib/bundler/installer.rb +29 -28
- data/lib/bundler/installer/gem_installer.rb +2 -2
- data/lib/bundler/installer/parallel_installer.rb +9 -9
- data/lib/bundler/lazy_specification.rb +16 -3
- data/lib/bundler/plugin.rb +26 -0
- data/lib/bundler/plugin/index.rb +9 -0
- data/lib/bundler/psyched_yaml.rb +0 -15
- data/lib/bundler/remote_specification.rb +4 -1
- data/lib/bundler/resolver.rb +31 -8
- data/lib/bundler/resolver/spec_group.rb +26 -5
- data/lib/bundler/rubygems_ext.rb +7 -8
- data/lib/bundler/rubygems_gem_installer.rb +1 -7
- data/lib/bundler/rubygems_integration.rb +13 -48
- data/lib/bundler/runtime.rb +2 -12
- data/lib/bundler/settings.rb +0 -3
- data/lib/bundler/setup.rb +5 -0
- data/lib/bundler/shared_helpers.rb +1 -1
- data/lib/bundler/source/git.rb +4 -4
- data/lib/bundler/source/git/git_proxy.rb +53 -58
- data/lib/bundler/source/path.rb +5 -1
- data/lib/bundler/source/path/installer.rb +7 -9
- data/lib/bundler/source/rubygems.rb +11 -14
- data/lib/bundler/stub_specification.rb +16 -4
- data/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +57 -47
- data/lib/bundler/templates/newgem/Gemfile.tt +9 -1
- data/lib/bundler/templates/newgem/Rakefile.tt +19 -5
- data/lib/bundler/templates/newgem/bin/console.tt +2 -0
- data/lib/bundler/templates/newgem/circleci/config.yml.tt +13 -0
- data/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt +2 -0
- data/lib/bundler/templates/newgem/github/workflows/main.yml.tt +18 -0
- data/lib/bundler/templates/newgem/gitlab-ci.yml.tt +9 -0
- data/lib/bundler/templates/newgem/lib/newgem.rb.tt +2 -0
- data/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +2 -0
- data/lib/bundler/templates/newgem/newgem.gemspec.tt +6 -4
- data/lib/bundler/templates/newgem/rubocop.yml.tt +10 -0
- data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +2 -0
- data/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +2 -0
- data/lib/bundler/templates/newgem/test/{newgem_test.rb.tt → minitest/newgem_test.rb.tt} +2 -0
- data/lib/bundler/templates/newgem/test/{test_helper.rb.tt → minitest/test_helper.rb.tt} +2 -0
- data/lib/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt +15 -0
- data/lib/bundler/templates/newgem/test/test-unit/test_helper.rb.tt +6 -0
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +72 -208
- data/lib/bundler/vendor/thor/lib/thor.rb +0 -7
- data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +2 -1
- data/lib/bundler/vendor/thor/lib/thor/base.rb +9 -0
- data/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
- data/lib/bundler/version.rb +1 -1
- data/man/bundle-add.1 +1 -1
- data/man/bundle-add.1.txt +15 -15
- data/man/bundle-binstubs.1 +1 -1
- data/man/bundle-binstubs.1.txt +10 -10
- data/man/bundle-cache.1 +1 -1
- data/man/bundle-cache.1.txt +15 -15
- data/man/bundle-check.1 +1 -1
- data/man/bundle-check.1.txt +8 -8
- data/man/bundle-clean.1 +1 -1
- data/man/bundle-clean.1.txt +6 -6
- data/man/bundle-config.1 +3 -9
- data/man/bundle-config.1.txt +271 -272
- data/man/bundle-config.ronn +5 -9
- data/man/bundle-doctor.1 +1 -1
- data/man/bundle-doctor.1.txt +9 -9
- data/man/bundle-exec.1 +1 -1
- data/man/bundle-exec.1.txt +84 -81
- data/man/bundle-gem.1 +25 -3
- data/man/bundle-gem.1.txt +65 -39
- data/man/bundle-gem.ronn +30 -7
- data/man/bundle-info.1 +1 -1
- data/man/bundle-info.1.txt +2 -2
- data/man/bundle-init.1 +1 -1
- data/man/bundle-init.1.txt +9 -9
- data/man/bundle-inject.1 +1 -1
- data/man/bundle-inject.1.txt +4 -4
- data/man/bundle-install.1 +1 -1
- data/man/bundle-install.1.txt +169 -169
- data/man/bundle-list.1 +7 -7
- data/man/bundle-list.1.txt +12 -11
- data/man/bundle-list.ronn +6 -6
- data/man/bundle-lock.1 +1 -1
- data/man/bundle-lock.1.txt +28 -28
- data/man/bundle-open.1 +1 -1
- data/man/bundle-open.1.txt +3 -3
- data/man/bundle-outdated.1 +1 -1
- data/man/bundle-outdated.1.txt +34 -34
- data/man/bundle-platform.1 +1 -1
- data/man/bundle-platform.1.txt +16 -16
- data/man/bundle-pristine.1 +1 -1
- data/man/bundle-pristine.1.txt +8 -8
- data/man/bundle-remove.1 +1 -1
- data/man/bundle-remove.1.txt +9 -9
- data/man/bundle-show.1 +1 -1
- data/man/bundle-show.1.txt +8 -8
- data/man/bundle-update.1 +1 -1
- data/man/bundle-update.1.txt +149 -148
- data/man/bundle-viz.1 +1 -1
- data/man/bundle-viz.1.txt +11 -11
- data/man/bundle.1 +1 -1
- data/man/bundle.1.txt +31 -31
- data/man/gemfile.5 +1 -1
- data/man/gemfile.5.txt +218 -216
- metadata +14 -8
data/man/bundle-config.ronn
CHANGED
@@ -11,7 +11,7 @@ This command allows you to interact with Bundler's configuration system.
|
|
11
11
|
|
12
12
|
Bundler loads configuration settings in this order:
|
13
13
|
|
14
|
-
1. Local config (
|
14
|
+
1. Local config (`<project_root>/.bundle/config` or `$BUNDLE_APP_CONFIG/config`)
|
15
15
|
2. Environmental variables (`ENV`)
|
16
16
|
3. Global config (`~/.bundle/config`)
|
17
17
|
4. Bundler default config
|
@@ -30,8 +30,10 @@ overridden and user will be warned.
|
|
30
30
|
|
31
31
|
Executing `bundle config set --global <name> <value>` works the same as above.
|
32
32
|
|
33
|
-
Executing `bundle config set --local <name> <value>` will set that configuration
|
34
|
-
the local application. The configuration will be stored in
|
33
|
+
Executing `bundle config set --local <name> <value>` will set that configuration
|
34
|
+
in the directory for the local application. The configuration will be stored in
|
35
|
+
`<project_root>/.bundle/config`. If `BUNDLE_APP_CONFIG` is set, the configuration
|
36
|
+
will be stored in `$BUNDLE_APP_CONFIG/config`.
|
35
37
|
|
36
38
|
Executing `bundle config unset <name>` will delete the configuration in both
|
37
39
|
local and global sources.
|
@@ -179,8 +181,6 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
|
|
179
181
|
When set, Gemfiles containing multiple sources will produce errors
|
180
182
|
instead of warnings.
|
181
183
|
Use `bundle config unset disable_multisource` to unset.
|
182
|
-
* `disable_platform_warnings` (`BUNDLE_DISABLE_PLATFORM_WARNINGS`):
|
183
|
-
Disable warnings during bundle install when a dependency is unused on the current platform.
|
184
184
|
* `disable_shared_gems` (`BUNDLE_DISABLE_SHARED_GEMS`):
|
185
185
|
Stop Bundler from accessing gems installed to RubyGems' normal location.
|
186
186
|
* `disable_version_check` (`BUNDLE_DISABLE_VERSION_CHECK`):
|
@@ -249,9 +249,6 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
|
|
249
249
|
be changed in the next major version.
|
250
250
|
* `silence_root_warning` (`BUNDLE_SILENCE_ROOT_WARNING`):
|
251
251
|
Silence the warning Bundler prints when installing gems as root.
|
252
|
-
* `skip_default_git_sources` (`BUNDLE_SKIP_DEFAULT_GIT_SOURCES`):
|
253
|
-
Whether Bundler should skip adding default git source shortcuts to the
|
254
|
-
Gemfile DSL.
|
255
252
|
* `specific_platform` (`BUNDLE_SPECIFIC_PLATFORM`):
|
256
253
|
Allow bundler to resolve for the specific running platform and store it in
|
257
254
|
the lockfile, instead of only using a generic platform.
|
@@ -396,4 +393,3 @@ outlines the available environment variables and their default values
|
|
396
393
|
BUNDLE_USER_CACHE : $BUNDLE_USER_HOME/cache
|
397
394
|
BUNDLE_USER_CONFIG : $BUNDLE_USER_HOME/config
|
398
395
|
BUNDLE_USER_PLUGIN : $BUNDLE_USER_HOME/plugin
|
399
|
-
|
data/man/bundle-doctor.1
CHANGED
data/man/bundle-doctor.1.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
BUNDLE-DOCTOR(1)
|
1
|
+
BUNDLE-DOCTOR(1) BUNDLE-DOCTOR(1)
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -10,7 +10,7 @@ SYNOPSIS
|
|
10
10
|
|
11
11
|
DESCRIPTION
|
12
12
|
Checks your Gemfile and gem environment for common problems. If issues
|
13
|
-
are detected, Bundler prints them and exits
|
13
|
+
are detected, Bundler prints them and exits status 1. Otherwise,
|
14
14
|
Bundler prints a success message and exits status 0.
|
15
15
|
|
16
16
|
Examples of common problems caught by bundle-doctor include:
|
@@ -29,16 +29,16 @@ DESCRIPTION
|
|
29
29
|
|
30
30
|
OPTIONS
|
31
31
|
--quiet
|
32
|
-
|
32
|
+
Only output warnings and errors.
|
33
33
|
|
34
34
|
--gemfile=<gemfile>
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
The location of the Gemfile(5) which Bundler should use. This
|
36
|
+
defaults to a Gemfile(5) in the current working directory. In
|
37
|
+
general, Bundler will assume that the location of the Gemfile(5)
|
38
|
+
is also the project's root and will try to find Gemfile.lock and
|
39
|
+
vendor/cache relative to this location.
|
40
40
|
|
41
41
|
|
42
42
|
|
43
43
|
|
44
|
-
|
44
|
+
July 2020 BUNDLE-DOCTOR(1)
|
data/man/bundle-exec.1
CHANGED
data/man/bundle-exec.1.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
BUNDLE-EXEC(1)
|
1
|
+
BUNDLE-EXEC(1) BUNDLE-EXEC(1)
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -9,47 +9,48 @@ SYNOPSIS
|
|
9
9
|
bundle exec [--keep-file-descriptors] command
|
10
10
|
|
11
11
|
DESCRIPTION
|
12
|
-
This command executes
|
12
|
+
This command executes the command, making all gems specified in the
|
13
13
|
[Gemfile(5)][Gemfile(5)] available to require in Ruby programs.
|
14
14
|
|
15
|
-
Essentially, if you would normally have run
|
16
|
-
spec/my_spec.rb, and you want
|
17
|
-
|
18
|
-
|
15
|
+
Essentially, if you would normally have run something like rspec
|
16
|
+
spec/my_spec.rb, and you want to use the gems specified in the
|
17
|
+
[Gemfile(5)][Gemfile(5)] and installed via bundle install(1)
|
18
|
+
bundle-install.1.html, you should run bundle exec rspec
|
19
|
+
spec/my_spec.rb.
|
19
20
|
|
20
|
-
Note
|
21
|
+
Note that bundle exec does not require that an executable is available
|
21
22
|
on your shell's $PATH.
|
22
23
|
|
23
24
|
OPTIONS
|
24
25
|
--keep-file-descriptors
|
25
|
-
|
26
|
-
|
27
|
-
|
26
|
+
Exec in Ruby 2.0 began discarding non-standard file descriptors.
|
27
|
+
When this flag is passed, exec will revert to the 1.9 behaviour
|
28
|
+
of passing all file descriptors to the new process.
|
28
29
|
|
29
30
|
BUNDLE INSTALL --BINSTUBS
|
30
|
-
If
|
31
|
-
|
32
|
-
(which
|
31
|
+
If you use the --binstubs flag in bundle install(1)
|
32
|
+
bundle-install.1.html, Bundler will automatically create a directory
|
33
|
+
(which defaults to app_root/bin) containing all of the executables
|
33
34
|
available from gems in the bundle.
|
34
35
|
|
35
|
-
After
|
36
|
-
|
36
|
+
After using --binstubs, bin/rspec spec/my_spec.rb is identical to
|
37
|
+
bundle exec rspec spec/my_spec.rb.
|
37
38
|
|
38
39
|
ENVIRONMENT MODIFICATIONS
|
39
|
-
bundle
|
40
|
+
bundle exec makes a number of changes to the shell environment, then
|
40
41
|
executes the command you specify in full.
|
41
42
|
|
42
|
-
o make
|
43
|
-
|
43
|
+
o make sure that it's still possible to shell out to bundle from
|
44
|
+
inside a command invoked by bundle exec (using $BUNDLE_BIN_PATH)
|
44
45
|
|
45
|
-
o put
|
46
|
-
|
46
|
+
o put the directory containing executables (like rails, rspec,
|
47
|
+
rackup) for your bundle on $PATH
|
47
48
|
|
48
|
-
o make
|
49
|
-
|
49
|
+
o make sure that if bundler is invoked in the subshell, it uses the
|
50
|
+
same Gemfile (by setting BUNDLE_GEMFILE)
|
50
51
|
|
51
|
-
o add
|
52
|
-
|
52
|
+
o add -rbundler/setup to $RUBYOPT, which makes sure that Ruby
|
53
|
+
programs invoked in the subshell can see the gems in the bundle
|
53
54
|
|
54
55
|
|
55
56
|
|
@@ -57,122 +58,124 @@ ENVIRONMENT MODIFICATIONS
|
|
57
58
|
|
58
59
|
o disallow loading additional gems not in the bundle
|
59
60
|
|
60
|
-
o modify
|
61
|
-
|
61
|
+
o modify the gem method to be a no-op if a gem matching the
|
62
|
+
requirements is in the bundle, and to raise a Gem::LoadError if
|
63
|
+
it's not
|
62
64
|
|
63
|
-
o Define Gem.refresh to be a no-op, since the source index is
|
64
|
-
|
65
|
-
|
65
|
+
o Define Gem.refresh to be a no-op, since the source index is always
|
66
|
+
frozen when using bundler, and to prevent gems from the system
|
67
|
+
leaking into the environment
|
66
68
|
|
67
|
-
o Override Gem.bin_path to use the gems in the bundle, making
|
68
|
-
|
69
|
+
o Override Gem.bin_path to use the gems in the bundle, making system
|
70
|
+
executables work
|
69
71
|
|
70
72
|
o Add all gems in the bundle into Gem.loaded_specs
|
71
73
|
|
72
74
|
|
73
75
|
|
74
|
-
Finally,
|
75
|
-
|
76
|
-
|
77
|
-
and that information isn't stored in
|
78
|
-
lockfile
|
79
|
-
exec updates the lockfile beforehand.
|
76
|
+
Finally, bundle exec also implicitly modifies Gemfile.lock if the
|
77
|
+
lockfile and the Gemfile do not match. Bundler needs the Gemfile to
|
78
|
+
determine things such as a gem's groups, autorequire, and platforms,
|
79
|
+
etc., and that information isn't stored in the lockfile. The Gemfile
|
80
|
+
and lockfile must be synced in order to bundle exec successfully, so
|
81
|
+
bundle exec updates the lockfile beforehand.
|
80
82
|
|
81
83
|
Loading
|
82
|
-
By default, when attempting to bundle
|
83
|
-
|
84
|
-
For the vast majority of
|
85
|
-
rare few cases, this
|
86
|
-
dependence
|
87
|
-
|
84
|
+
By default, when attempting to bundle exec to a file with a ruby
|
85
|
+
shebang, Bundler will Kernel.load that file instead of using
|
86
|
+
Kernel.exec. For the vast majority of cases, this is a performance
|
87
|
+
improvement. In a rare few cases, this could cause some subtle
|
88
|
+
side-effects (such as dependence on the exact contents of $0 or
|
89
|
+
__FILE__) and the optimization can be disabled by enabling the
|
90
|
+
disable_exec_load setting.
|
88
91
|
|
89
92
|
Shelling out
|
90
|
-
Any
|
91
|
-
will
|
92
|
-
shell
|
93
|
-
use
|
94
|
-
inside
|
95
|
-
was
|
93
|
+
Any Ruby code that opens a subshell (like system, backticks, or %x{})
|
94
|
+
will automatically use the current Bundler environment. If you need to
|
95
|
+
shell out to a Ruby command that is not part of your current bundle,
|
96
|
+
use the with_clean_env method with a block. Any subshells created
|
97
|
+
inside the block will be given the environment present before Bundler
|
98
|
+
was activated. For example, Homebrew commands run Ruby, but don't work
|
96
99
|
inside a bundle:
|
97
100
|
|
98
101
|
|
99
102
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
+
Bundler.with_clean_env do
|
104
|
+
`brew install wget`
|
105
|
+
end
|
103
106
|
|
104
107
|
|
105
108
|
|
106
|
-
Using
|
107
|
-
different
|
108
|
-
the
|
109
|
+
Using with_clean_env is also necessary if you are shelling out to a
|
110
|
+
different bundle. Any Bundler commands run in a subshell will inherit
|
111
|
+
the current Gemfile, so commands that need to run in the context of a
|
109
112
|
different bundle also need to use with_clean_env.
|
110
113
|
|
111
114
|
|
112
115
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
116
|
+
Bundler.with_clean_env do
|
117
|
+
Dir.chdir "/other/bundler/project" do
|
118
|
+
`bundle exec ./script`
|
119
|
+
end
|
120
|
+
end
|
118
121
|
|
119
122
|
|
120
123
|
|
121
|
-
Bundler
|
124
|
+
Bundler provides convenience helpers that wrap system and exec, and
|
122
125
|
they can be used like this:
|
123
126
|
|
124
127
|
|
125
128
|
|
126
|
-
|
127
|
-
|
129
|
+
Bundler.clean_system('brew install wget')
|
130
|
+
Bundler.clean_exec('brew install wget')
|
128
131
|
|
129
132
|
|
130
133
|
|
131
134
|
RUBYGEMS PLUGINS
|
132
|
-
At
|
133
|
-
rubygems_plugin.rb
|
135
|
+
At present, the Rubygems plugin system requires all files named
|
136
|
+
rubygems_plugin.rb on the load path of any installed gem when any Ruby
|
134
137
|
code requires rubygems.rb. This includes executables installed into the
|
135
138
|
system, like rails, rackup, and rspec.
|
136
139
|
|
137
|
-
Since
|
140
|
+
Since Rubygems plugins can contain arbitrary Ruby code, they commonly
|
138
141
|
end up activating themselves or their dependencies.
|
139
142
|
|
140
|
-
For
|
141
|
-
that
|
142
|
-
|
143
|
-
json_pure <latest>.
|
143
|
+
For instance, the gemcutter 0.5 gem depended on json_pure. If you had
|
144
|
+
that version of gemcutter installed (even if you also had a newer
|
145
|
+
version without this problem), Rubygems would activate gemcutter 0.5
|
146
|
+
and json_pure <latest>.
|
144
147
|
|
145
148
|
If your Gemfile(5) also contained json_pure (or a gem with a dependency
|
146
|
-
on
|
147
|
-
the
|
148
|
-
|
149
|
+
on json_pure), the latest version on your system might conflict with
|
150
|
+
the version in your Gemfile(5), or the snapshot version in your
|
151
|
+
Gemfile.lock.
|
149
152
|
|
150
153
|
If this happens, bundler will say:
|
151
154
|
|
152
155
|
|
153
156
|
|
154
|
-
|
155
|
-
|
157
|
+
You have already activated json_pure 1.4.6 but your Gemfile
|
158
|
+
requires json_pure 1.4.3. Consider using bundle exec.
|
156
159
|
|
157
160
|
|
158
161
|
|
159
|
-
In
|
160
|
-
gem
|
161
|
-
plugins
|
162
|
+
In this situation, you almost certainly want to remove the underlying
|
163
|
+
gem with the problematic gem plugin. In general, the authors of these
|
164
|
+
plugins (in this case, the gemcutter gem) have released newer versions
|
162
165
|
that are more careful in their plugins.
|
163
166
|
|
164
167
|
You can find a list of all the gems containing gem plugins by running
|
165
168
|
|
166
169
|
|
167
170
|
|
168
|
-
|
171
|
+
ruby -rrubygems -e "puts Gem.find_files('rubygems_plugin.rb')"
|
169
172
|
|
170
173
|
|
171
174
|
|
172
175
|
At the very least, you should remove all but the newest version of each
|
173
|
-
gem
|
176
|
+
gem plugin, and also remove all gem plugins that you aren't using (gem
|
174
177
|
uninstall gem_name).
|
175
178
|
|
176
179
|
|
177
180
|
|
178
|
-
|
181
|
+
July 2020 BUNDLE-EXEC(1)
|
data/man/bundle-gem.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\-GEM" "1" "
|
4
|
+
.TH "BUNDLE\-GEM" "1" "July 2020" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-gem\fR \- Generate a project skeleton for creating a rubygem
|
@@ -64,8 +64,30 @@ Add an MIT license to a \fBLICENSE\.txt\fR file in the root of the generated pro
|
|
64
64
|
Do not create a \fBLICENSE\.txt\fR (overrides \fB\-\-mit\fR specified in the global config)\.
|
65
65
|
.
|
66
66
|
.TP
|
67
|
-
\fB\-t\fR, \fB\-\-test=minitest\fR, \fB\-\-test=rspec\fR
|
68
|
-
Specify the test framework that Bundler should use when generating the project\. Acceptable values are \fBminitest\fR and \
|
67
|
+
\fB\-t\fR, \fB\-\-test=minitest\fR, \fB\-\-test=rspec\fR, \fB\-\-test=test\-unit\fR
|
68
|
+
Specify the test framework that Bundler should use when generating the project\. Acceptable values are \fBminitest\fR, \fBrspec\fR and \fBtest\-unit\fR\. The \fBGEM_NAME\.gemspec\fR will be configured and a skeleton test/spec directory will be created based on this option\. Given no option is specified:
|
69
|
+
.
|
70
|
+
.IP
|
71
|
+
When Bundler is configured to generate tests, this defaults to Bundler\'s global config setting \fBgem\.test\fR\.
|
72
|
+
.
|
73
|
+
.IP
|
74
|
+
When Bundler is configured to not generate tests, an interactive prompt will be displayed and the answer will be used for the current rubygem project\.
|
75
|
+
.
|
76
|
+
.IP
|
77
|
+
When Bundler is unconfigured, an interactive prompt will be displayed and the answer will be saved in Bundler\'s global config for future \fBbundle gem\fR use\.
|
78
|
+
.
|
79
|
+
.TP
|
80
|
+
\fB\-\-ci\fR, \fB\-\-ci=github\fR, \fB\-\-ci=travis\fR, \fB\-\-ci=gitlab\fR, \fB\-\-ci=circle\fR
|
81
|
+
Specify the continuous integration service that Bundler should use when generating the project\. Acceptable values are \fBgithub\fR, \fBtravis\fR, \fBgitlab\fR and \fBcircle\fR\. A configuration file will be generated in the project directory\. Given no option is specified:
|
82
|
+
.
|
83
|
+
.IP
|
84
|
+
When Bundler is configured to generate CI files, this defaults to Bundler\'s global config setting \fBgem\.ci\fR\.
|
85
|
+
.
|
86
|
+
.IP
|
87
|
+
When Bundler is configured to not generate CI files, an interactive prompt will be displayed and the answer will be used for the current rubygem project\.
|
88
|
+
.
|
89
|
+
.IP
|
90
|
+
When Bundler is unconfigured, an interactive prompt will be displayed and the answer will be saved in Bundler\'s global config for future \fBbundle gem\fR use\.
|
69
91
|
.
|
70
92
|
.TP
|
71
93
|
\fB\-e\fR, \fB\-\-edit[=EDITOR]\fR
|
data/man/bundle-gem.1.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
BUNDLE-GEM(1)
|
1
|
+
BUNDLE-GEM(1) BUNDLE-GEM(1)
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -16,8 +16,8 @@ DESCRIPTION
|
|
16
16
|
Run rake -T in the resulting project for a list of Rake tasks that can
|
17
17
|
be used to test and publish the gem to rubygems.org.
|
18
18
|
|
19
|
-
The generated project skeleton can be
|
20
|
-
explained below. Note
|
19
|
+
The generated project skeleton can be customized with OPTIONS, as
|
20
|
+
explained below. Note that these options can also be specified via
|
21
21
|
Bundler's global configuration file using the following names:
|
22
22
|
|
23
23
|
o gem.coc
|
@@ -30,55 +30,81 @@ DESCRIPTION
|
|
30
30
|
|
31
31
|
OPTIONS
|
32
32
|
--exe or -b or --bin
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
33
|
+
Specify that Bundler should create a binary executable (as
|
34
|
+
exe/GEM_NAME) in the generated rubygem project. This binary will
|
35
|
+
also be added to the GEM_NAME.gemspec manifest. This behavior is
|
36
|
+
disabled by default.
|
37
37
|
|
38
38
|
--no-exe
|
39
|
-
|
40
|
-
|
39
|
+
Do not create a binary (overrides --exe specified in the global
|
40
|
+
config).
|
41
41
|
|
42
|
-
--coc Add a CODE_OF_CONDUCT.md file to the root of
|
43
|
-
|
44
|
-
|
45
|
-
|
42
|
+
--coc Add a CODE_OF_CONDUCT.md file to the root of the generated
|
43
|
+
project. If this option is unspecified, an interactive prompt
|
44
|
+
will be displayed and the answer will be saved in Bundler's
|
45
|
+
global config for future bundle gem use.
|
46
46
|
|
47
47
|
--no-coc
|
48
|
-
|
49
|
-
|
48
|
+
Do not create a CODE_OF_CONDUCT.md (overrides --coc specified in
|
49
|
+
the global config).
|
50
50
|
|
51
51
|
--ext Add boilerplate for C extension code to the generated project.
|
52
|
-
|
52
|
+
This behavior is disabled by default.
|
53
53
|
|
54
54
|
--no-ext
|
55
|
-
|
56
|
-
|
55
|
+
Do not add C extension code (overrides --ext specified in the
|
56
|
+
global config).
|
57
57
|
|
58
|
-
--mit Add an MIT license to a LICENSE.txt file
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
58
|
+
--mit Add an MIT license to a LICENSE.txt file in the root of the
|
59
|
+
generated project. Your name from the global git config is used
|
60
|
+
for the copyright statement. If this option is unspecified, an
|
61
|
+
interactive prompt will be displayed and the answer will be
|
62
|
+
saved in Bundler's global config for future bundle gem use.
|
63
63
|
|
64
64
|
--no-mit
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
-t, --test=minitest, --test=rspec
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
65
|
+
Do not create a LICENSE.txt (overrides --mit specified in the
|
66
|
+
global config).
|
67
|
+
|
68
|
+
-t, --test=minitest, --test=rspec, --test=test-unit
|
69
|
+
Specify the test framework that Bundler should use when
|
70
|
+
generating the project. Acceptable values are minitest, rspec
|
71
|
+
and test-unit. The GEM_NAME.gemspec will be configured and a
|
72
|
+
skeleton test/spec directory will be created based on this
|
73
|
+
option. Given no option is specified:
|
74
|
+
|
75
|
+
When Bundler is configured to generate tests, this defaults to
|
76
|
+
Bundler's global config setting gem.test.
|
77
|
+
|
78
|
+
When Bundler is configured to not generate tests, an interactive
|
79
|
+
prompt will be displayed and the answer will be used for the
|
80
|
+
current rubygem project.
|
81
|
+
|
82
|
+
When Bundler is unconfigured, an interactive prompt will be
|
83
|
+
displayed and the answer will be saved in Bundler's global
|
84
|
+
config for future bundle gem use.
|
85
|
+
|
86
|
+
--ci, --ci=github, --ci=travis, --ci=gitlab, --ci=circle
|
87
|
+
Specify the continuous integration service that Bundler should
|
88
|
+
use when generating the project. Acceptable values are github,
|
89
|
+
travis, gitlab and circle. A configuration file will be
|
90
|
+
generated in the project directory. Given no option is
|
91
|
+
specified:
|
92
|
+
|
93
|
+
When Bundler is configured to generate CI files, this defaults
|
94
|
+
to Bundler's global config setting gem.ci.
|
95
|
+
|
96
|
+
When Bundler is configured to not generate CI files, an
|
97
|
+
interactive prompt will be displayed and the answer will be used
|
98
|
+
for the current rubygem project.
|
99
|
+
|
100
|
+
When Bundler is unconfigured, an interactive prompt will be
|
101
|
+
displayed and the answer will be saved in Bundler's global
|
102
|
+
config for future bundle gem use.
|
77
103
|
|
78
104
|
-e, --edit[=EDITOR]
|
79
|
-
|
80
|
-
|
81
|
-
|
105
|
+
Open the resulting GEM_NAME.gemspec in EDITOR, or the default
|
106
|
+
editor if not specified. The default is $BUNDLER_EDITOR,
|
107
|
+
$VISUAL, or $EDITOR.
|
82
108
|
|
83
109
|
SEE ALSO
|
84
110
|
o bundle config(1) bundle-config.1.html
|
@@ -88,4 +114,4 @@ SEE ALSO
|
|
88
114
|
|
89
115
|
|
90
116
|
|
91
|
-
|
117
|
+
July 2020 BUNDLE-GEM(1)
|