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.

Files changed (132) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +832 -738
  3. data/README.md +6 -8
  4. data/bundler.gemspec +3 -3
  5. data/exe/bundle +3 -0
  6. data/lib/bundler.rb +15 -4
  7. data/lib/bundler/build_metadata.rb +2 -2
  8. data/lib/bundler/cli.rb +32 -11
  9. data/lib/bundler/cli/console.rb +1 -1
  10. data/lib/bundler/cli/exec.rb +3 -12
  11. data/lib/bundler/cli/gem.rb +83 -10
  12. data/lib/bundler/cli/info.rb +13 -3
  13. data/lib/bundler/cli/init.rb +1 -1
  14. data/lib/bundler/cli/install.rb +8 -16
  15. data/lib/bundler/cli/issue.rb +2 -2
  16. data/lib/bundler/cli/list.rb +11 -9
  17. data/lib/bundler/cli/outdated.rb +88 -65
  18. data/lib/bundler/cli/plugin.rb +10 -0
  19. data/lib/bundler/cli/pristine.rb +5 -0
  20. data/lib/bundler/definition.rb +32 -32
  21. data/lib/bundler/dependency.rb +0 -9
  22. data/lib/bundler/dsl.rb +1 -5
  23. data/lib/bundler/environment_preserver.rb +26 -2
  24. data/lib/bundler/errors.rb +1 -0
  25. data/lib/bundler/feature_flag.rb +0 -2
  26. data/lib/bundler/fetcher.rb +1 -0
  27. data/lib/bundler/friendly_errors.rb +4 -10
  28. data/lib/bundler/gem_helper.rb +18 -12
  29. data/lib/bundler/gem_version_promoter.rb +1 -1
  30. data/lib/bundler/injector.rb +14 -3
  31. data/lib/bundler/inline.rb +2 -2
  32. data/lib/bundler/installer.rb +29 -28
  33. data/lib/bundler/installer/gem_installer.rb +2 -2
  34. data/lib/bundler/installer/parallel_installer.rb +9 -9
  35. data/lib/bundler/lazy_specification.rb +16 -3
  36. data/lib/bundler/plugin.rb +26 -0
  37. data/lib/bundler/plugin/index.rb +9 -0
  38. data/lib/bundler/psyched_yaml.rb +0 -15
  39. data/lib/bundler/remote_specification.rb +4 -1
  40. data/lib/bundler/resolver.rb +31 -8
  41. data/lib/bundler/resolver/spec_group.rb +26 -5
  42. data/lib/bundler/rubygems_ext.rb +7 -8
  43. data/lib/bundler/rubygems_gem_installer.rb +1 -7
  44. data/lib/bundler/rubygems_integration.rb +13 -48
  45. data/lib/bundler/runtime.rb +2 -12
  46. data/lib/bundler/settings.rb +0 -3
  47. data/lib/bundler/setup.rb +5 -0
  48. data/lib/bundler/shared_helpers.rb +1 -1
  49. data/lib/bundler/source/git.rb +4 -4
  50. data/lib/bundler/source/git/git_proxy.rb +53 -58
  51. data/lib/bundler/source/path.rb +5 -1
  52. data/lib/bundler/source/path/installer.rb +7 -9
  53. data/lib/bundler/source/rubygems.rb +11 -14
  54. data/lib/bundler/stub_specification.rb +16 -4
  55. data/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +57 -47
  56. data/lib/bundler/templates/newgem/Gemfile.tt +9 -1
  57. data/lib/bundler/templates/newgem/Rakefile.tt +19 -5
  58. data/lib/bundler/templates/newgem/bin/console.tt +2 -0
  59. data/lib/bundler/templates/newgem/circleci/config.yml.tt +13 -0
  60. data/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt +2 -0
  61. data/lib/bundler/templates/newgem/github/workflows/main.yml.tt +18 -0
  62. data/lib/bundler/templates/newgem/gitlab-ci.yml.tt +9 -0
  63. data/lib/bundler/templates/newgem/lib/newgem.rb.tt +2 -0
  64. data/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +2 -0
  65. data/lib/bundler/templates/newgem/newgem.gemspec.tt +6 -4
  66. data/lib/bundler/templates/newgem/rubocop.yml.tt +10 -0
  67. data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +2 -0
  68. data/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +2 -0
  69. data/lib/bundler/templates/newgem/test/{newgem_test.rb.tt → minitest/newgem_test.rb.tt} +2 -0
  70. data/lib/bundler/templates/newgem/test/{test_helper.rb.tt → minitest/test_helper.rb.tt} +2 -0
  71. data/lib/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt +15 -0
  72. data/lib/bundler/templates/newgem/test/test-unit/test_helper.rb.tt +6 -0
  73. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +72 -208
  74. data/lib/bundler/vendor/thor/lib/thor.rb +0 -7
  75. data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +2 -1
  76. data/lib/bundler/vendor/thor/lib/thor/base.rb +9 -0
  77. data/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
  78. data/lib/bundler/version.rb +1 -1
  79. data/man/bundle-add.1 +1 -1
  80. data/man/bundle-add.1.txt +15 -15
  81. data/man/bundle-binstubs.1 +1 -1
  82. data/man/bundle-binstubs.1.txt +10 -10
  83. data/man/bundle-cache.1 +1 -1
  84. data/man/bundle-cache.1.txt +15 -15
  85. data/man/bundle-check.1 +1 -1
  86. data/man/bundle-check.1.txt +8 -8
  87. data/man/bundle-clean.1 +1 -1
  88. data/man/bundle-clean.1.txt +6 -6
  89. data/man/bundle-config.1 +3 -9
  90. data/man/bundle-config.1.txt +271 -272
  91. data/man/bundle-config.ronn +5 -9
  92. data/man/bundle-doctor.1 +1 -1
  93. data/man/bundle-doctor.1.txt +9 -9
  94. data/man/bundle-exec.1 +1 -1
  95. data/man/bundle-exec.1.txt +84 -81
  96. data/man/bundle-gem.1 +25 -3
  97. data/man/bundle-gem.1.txt +65 -39
  98. data/man/bundle-gem.ronn +30 -7
  99. data/man/bundle-info.1 +1 -1
  100. data/man/bundle-info.1.txt +2 -2
  101. data/man/bundle-init.1 +1 -1
  102. data/man/bundle-init.1.txt +9 -9
  103. data/man/bundle-inject.1 +1 -1
  104. data/man/bundle-inject.1.txt +4 -4
  105. data/man/bundle-install.1 +1 -1
  106. data/man/bundle-install.1.txt +169 -169
  107. data/man/bundle-list.1 +7 -7
  108. data/man/bundle-list.1.txt +12 -11
  109. data/man/bundle-list.ronn +6 -6
  110. data/man/bundle-lock.1 +1 -1
  111. data/man/bundle-lock.1.txt +28 -28
  112. data/man/bundle-open.1 +1 -1
  113. data/man/bundle-open.1.txt +3 -3
  114. data/man/bundle-outdated.1 +1 -1
  115. data/man/bundle-outdated.1.txt +34 -34
  116. data/man/bundle-platform.1 +1 -1
  117. data/man/bundle-platform.1.txt +16 -16
  118. data/man/bundle-pristine.1 +1 -1
  119. data/man/bundle-pristine.1.txt +8 -8
  120. data/man/bundle-remove.1 +1 -1
  121. data/man/bundle-remove.1.txt +9 -9
  122. data/man/bundle-show.1 +1 -1
  123. data/man/bundle-show.1.txt +8 -8
  124. data/man/bundle-update.1 +1 -1
  125. data/man/bundle-update.1.txt +149 -148
  126. data/man/bundle-viz.1 +1 -1
  127. data/man/bundle-viz.1.txt +11 -11
  128. data/man/bundle.1 +1 -1
  129. data/man/bundle.1.txt +31 -31
  130. data/man/gemfile.5 +1 -1
  131. data/man/gemfile.5.txt +218 -216
  132. metadata +14 -8
@@ -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 (`app/.bundle/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 to
34
- the local application. The configuration will be stored in `app/.bundle/config`.
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
-
@@ -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" "December 2019" "" ""
4
+ .TH "BUNDLE\-DOCTOR" "1" "July 2020" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-doctor\fR \- Checks the bundle for common problems
@@ -1,4 +1,4 @@
1
- BUNDLE-DOCTOR(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 status 1. Otherwise,
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
- Only output warnings and errors.
32
+ Only output warnings and errors.
33
33
 
34
34
  --gemfile=<gemfile>
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.
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
- December 2019 BUNDLE-DOCTOR(1)
44
+ July 2020 BUNDLE-DOCTOR(1)
@@ -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" "December 2019" "" ""
4
+ .TH "BUNDLE\-EXEC" "1" "July 2020" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-exec\fR \- Execute a command in the context of the bundle
@@ -1,4 +1,4 @@
1
- BUNDLE-EXEC(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 the command, making all gems specified in the
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 something like rspec
16
- spec/my_spec.rb, and you want to use the gems specified in the [Gem-
17
- file(5)][Gemfile(5)] and installed via bundle install(1) bun-
18
- dle-install.1.html, you should run bundle exec rspec spec/my_spec.rb.
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 that bundle exec does not require that an executable is available
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
- Exec in Ruby 2.0 began discarding non-standard file descriptors.
26
- When this flag is passed, exec will revert to the 1.9 behaviour
27
- of passing all file descriptors to the new process.
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 you use the --binstubs flag in bundle install(1) bun-
31
- dle-install.1.html, Bundler will automatically create a directory
32
- (which defaults to app_root/bin) containing all of the executables
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 using --binstubs, bin/rspec spec/my_spec.rb is identical to bun-
36
- dle exec rspec spec/my_spec.rb.
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 exec makes a number of changes to the shell environment, then
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 sure that it's still possible to shell out to bundle from
43
- inside a command invoked by bundle exec (using $BUNDLE_BIN_PATH)
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 the directory containing executables (like rails, rspec,
46
- rackup) for your bundle on $PATH
46
+ o put the directory containing executables (like rails, rspec,
47
+ rackup) for your bundle on $PATH
47
48
 
48
- o make sure that if bundler is invoked in the subshell, it uses the
49
- same Gemfile (by setting BUNDLE_GEMFILE)
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 -rbundler/setup to $RUBYOPT, which makes sure that Ruby pro-
52
- grams invoked in the subshell can see the gems in the bundle
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 the gem method to be a no-op if a gem matching the require-
61
- ments is in the bundle, and to raise a Gem::LoadError if it's not
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 always
64
- frozen when using bundler, and to prevent gems from the system
65
- leaking into the environment
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 system
68
- executables work
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, bundle exec also implicitly modifies Gemfile.lock if the lock-
75
- file and the Gemfile do not match. Bundler needs the Gemfile to deter-
76
- mine things such as a gem's groups, autorequire, and platforms, etc.,
77
- and that information isn't stored in the lockfile. The Gemfile and
78
- lockfile must be synced in order to bundle exec successfully, so bundle
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 exec to a file with a ruby she-
83
- bang, Bundler will Kernel.load that file instead of using Kernel.exec.
84
- For the vast majority of cases, this is a performance improvement. In a
85
- rare few cases, this could cause some subtle side-effects (such as
86
- dependence on the exact contents of $0 or __FILE__) and the optimiza-
87
- tion can be disabled by enabling the disable_exec_load setting.
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 Ruby code that opens a subshell (like system, backticks, or %x{})
91
- will automatically use the current Bundler environment. If you need to
92
- shell out to a Ruby command that is not part of your current bundle,
93
- use the with_clean_env method with a block. Any subshells created
94
- inside the block will be given the environment present before Bundler
95
- was activated. For example, Homebrew commands run Ruby, but don't work
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
- Bundler.with_clean_env do
101
- `brew install wget`
102
- end
103
+ Bundler.with_clean_env do
104
+ `brew install wget`
105
+ end
103
106
 
104
107
 
105
108
 
106
- Using with_clean_env is also necessary if you are shelling out to a
107
- different bundle. Any Bundler commands run in a subshell will inherit
108
- the current Gemfile, so commands that need to run in the context of a
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
- Bundler.with_clean_env do
114
- Dir.chdir "/other/bundler/project" do
115
- `bundle exec ./script`
116
- end
117
- end
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 provides convenience helpers that wrap system and exec, and
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
- Bundler.clean_system('brew install wget')
127
- Bundler.clean_exec('brew install wget')
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 present, the Rubygems plugin system requires all files named
133
- rubygems_plugin.rb on the load path of any installed gem when any Ruby
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 Rubygems plugins can contain arbitrary Ruby code, they commonly
140
+ Since Rubygems plugins can contain arbitrary Ruby code, they commonly
138
141
  end up activating themselves or their dependencies.
139
142
 
140
- For instance, the gemcutter 0.5 gem depended on json_pure. If you had
141
- that version of gemcutter installed (even if you also had a newer ver-
142
- sion without this problem), Rubygems would activate gemcutter 0.5 and
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 json_pure), the latest version on your system might conflict with
147
- the version in your Gemfile(5), or the snapshot version in your Gem-
148
- file.lock.
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
- You have already activated json_pure 1.4.6 but your Gemfile
155
- requires json_pure 1.4.3. Consider using bundle exec.
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 this situation, you almost certainly want to remove the underlying
160
- gem with the problematic gem plugin. In general, the authors of these
161
- plugins (in this case, the gemcutter gem) have released newer versions
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
- ruby -rrubygems -e "puts Gem.find_files('rubygems_plugin.rb')"
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 plugin, and also remove all gem plugins that you aren't using (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
- December 2019 BUNDLE-EXEC(1)
181
+ July 2020 BUNDLE-EXEC(1)
@@ -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" "December 2019" "" ""
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 \fBrspec\fR\. The \fBGEM_NAME\.gemspec\fR will be configured and a skeleton test/spec directory will be created based on this option\. If this option is unspecified, an interactive prompt will be displayed and the answer will be saved in Bundler\'s global config for future \fBbundle gem\fR use\. If no option is specified, the default testing framework is RSpec\.
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
@@ -1,4 +1,4 @@
1
- BUNDLE-GEM(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 customized with OPTIONS, as
20
- explained below. Note that these options can also be specified via
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
- 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.
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
- Do not create a binary (overrides --exe specified in the global
40
- config).
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 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.
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
- Do not create a CODE_OF_CONDUCT.md (overrides --coc specified in
49
- the global config).
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
- This behavior is disabled by default.
52
+ This behavior is disabled by default.
53
53
 
54
54
  --no-ext
55
- Do not add C extension code (overrides --ext specified in the
56
- global config).
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 in the root of the gen-
59
- erated project. Your name from the global git config is used for
60
- 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.
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
- Do not create a LICENSE.txt (overrides --mit specified in the
66
- global config).
67
-
68
- -t, --test=minitest, --test=rspec
69
- Specify the test framework that Bundler should use when generat-
70
- ing the project. Acceptable values are minitest and rspec. The
71
- GEM_NAME.gemspec will be configured and a skeleton test/spec
72
- directory will be created based on this option. If this option
73
- is unspecified, an interactive prompt will be displayed and the
74
- answer will be saved in Bundler's global config for future bun-
75
- dle gem use. If no option is specified, the default testing
76
- framework is RSpec.
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
- Open the resulting GEM_NAME.gemspec in EDITOR, or the default
80
- editor if not specified. The default is $BUNDLER_EDITOR, $VIS-
81
- UAL, or $EDITOR.
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
- December 2019 BUNDLE-GEM(1)
117
+ July 2020 BUNDLE-GEM(1)