bundler 2.0.2 → 2.1.0

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 (249) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +735 -574
  3. data/LICENSE.md +18 -19
  4. data/README.md +8 -7
  5. data/bundler.gemspec +5 -23
  6. data/exe/bundle +19 -3
  7. data/lib/bundler.rb +202 -87
  8. data/lib/bundler/build_metadata.rb +3 -3
  9. data/lib/bundler/capistrano.rb +5 -5
  10. data/lib/bundler/cli.rb +179 -143
  11. data/lib/bundler/cli/add.rb +28 -16
  12. data/lib/bundler/cli/cache.rb +25 -13
  13. data/lib/bundler/cli/common.rb +10 -11
  14. data/lib/bundler/cli/config.rb +161 -86
  15. data/lib/bundler/cli/console.rb +2 -2
  16. data/lib/bundler/cli/doctor.rb +4 -4
  17. data/lib/bundler/cli/exec.rb +15 -18
  18. data/lib/bundler/cli/gem.rb +5 -5
  19. data/lib/bundler/cli/info.rb +17 -5
  20. data/lib/bundler/cli/init.rb +1 -1
  21. data/lib/bundler/cli/install.rb +3 -3
  22. data/lib/bundler/cli/issue.rb +1 -1
  23. data/lib/bundler/cli/open.rb +10 -6
  24. data/lib/bundler/cli/outdated.rb +85 -81
  25. data/lib/bundler/cli/plugin.rb +9 -2
  26. data/lib/bundler/cli/pristine.rb +1 -1
  27. data/lib/bundler/cli/show.rb +1 -1
  28. data/lib/bundler/cli/update.rb +31 -11
  29. data/lib/bundler/compact_index_client.rb +25 -9
  30. data/lib/bundler/compact_index_client/updater.rb +2 -6
  31. data/lib/bundler/current_ruby.rb +8 -7
  32. data/lib/bundler/definition.rb +33 -26
  33. data/lib/bundler/dependency.rb +16 -4
  34. data/lib/bundler/deployment.rb +2 -2
  35. data/lib/bundler/dsl.rb +19 -43
  36. data/lib/bundler/env.rb +6 -5
  37. data/lib/bundler/environment_preserver.rb +0 -1
  38. data/lib/bundler/feature_flag.rb +1 -13
  39. data/lib/bundler/fetcher.rb +16 -13
  40. data/lib/bundler/fetcher/compact_index.rb +26 -12
  41. data/lib/bundler/fetcher/dependency.rb +1 -1
  42. data/lib/bundler/fetcher/downloader.rb +4 -1
  43. data/lib/bundler/fetcher/index.rb +5 -3
  44. data/lib/bundler/friendly_errors.rb +6 -7
  45. data/lib/bundler/gem_helper.rb +14 -14
  46. data/lib/bundler/gem_helpers.rb +2 -4
  47. data/lib/bundler/gem_tasks.rb +1 -1
  48. data/lib/bundler/gem_version_promoter.rb +3 -3
  49. data/lib/bundler/graph.rb +2 -2
  50. data/lib/bundler/injector.rb +3 -1
  51. data/lib/bundler/inline.rb +40 -30
  52. data/lib/bundler/installer.rb +7 -14
  53. data/lib/bundler/installer/gem_installer.rb +5 -1
  54. data/lib/bundler/installer/parallel_installer.rb +4 -4
  55. data/lib/bundler/installer/standalone.rb +1 -2
  56. data/lib/bundler/lazy_specification.rb +2 -3
  57. data/lib/bundler/lockfile_parser.rb +14 -21
  58. data/lib/bundler/match_platform.rb +1 -1
  59. data/lib/bundler/mirror.rb +3 -3
  60. data/lib/bundler/plugin.rb +29 -18
  61. data/lib/bundler/plugin/api.rb +1 -1
  62. data/lib/bundler/plugin/api/source.rb +4 -6
  63. data/lib/bundler/plugin/index.rb +10 -2
  64. data/lib/bundler/plugin/installer.rb +28 -15
  65. data/lib/bundler/psyched_yaml.rb +1 -1
  66. data/lib/bundler/remote_specification.rb +0 -2
  67. data/lib/bundler/resolver.rb +72 -24
  68. data/lib/bundler/resolver/spec_group.rb +3 -2
  69. data/lib/bundler/retry.rb +2 -2
  70. data/lib/bundler/ruby_version.rb +4 -19
  71. data/lib/bundler/rubygems_ext.rb +11 -66
  72. data/lib/bundler/rubygems_gem_installer.rb +1 -1
  73. data/lib/bundler/rubygems_integration.rb +133 -410
  74. data/lib/bundler/runtime.rb +2 -9
  75. data/lib/bundler/settings.rb +22 -52
  76. data/lib/bundler/setup.rb +7 -13
  77. data/lib/bundler/shared_helpers.rb +46 -74
  78. data/lib/bundler/similarity_detector.rb +2 -2
  79. data/lib/bundler/source.rb +5 -5
  80. data/lib/bundler/source/git.rb +24 -17
  81. data/lib/bundler/source/git/git_proxy.rb +38 -41
  82. data/lib/bundler/source/metadata.rb +7 -2
  83. data/lib/bundler/source/path.rb +13 -8
  84. data/lib/bundler/source/rubygems.rb +14 -8
  85. data/lib/bundler/source/rubygems/remote.rb +2 -3
  86. data/lib/bundler/source_list.rb +9 -12
  87. data/lib/bundler/spec_set.rb +1 -6
  88. data/lib/bundler/stub_specification.rb +18 -30
  89. data/lib/bundler/templates/Executable.bundler +22 -13
  90. data/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +3 -3
  91. data/lib/bundler/templates/newgem/Gemfile.tt +8 -0
  92. data/lib/bundler/templates/newgem/README.md.tt +4 -3
  93. data/lib/bundler/templates/newgem/newgem.gemspec.tt +2 -18
  94. data/lib/bundler/templates/newgem/test/test_helper.rb.tt +0 -4
  95. data/lib/bundler/templates/newgem/travis.yml.tt +0 -1
  96. data/lib/bundler/ui.rb +3 -3
  97. data/lib/bundler/ui/rg_proxy.rb +1 -1
  98. data/lib/bundler/ui/shell.rb +4 -8
  99. data/lib/bundler/uri_credentials_filter.rb +7 -3
  100. data/lib/bundler/vendor/connection_pool/lib/connection_pool.rb +161 -0
  101. data/lib/bundler/vendor/connection_pool/lib/connection_pool/monotonic_time.rb +66 -0
  102. data/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +176 -0
  103. data/lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb +3 -0
  104. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +134 -111
  105. data/lib/bundler/vendor/molinillo/lib/molinillo.rb +6 -6
  106. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +2 -2
  107. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +1 -1
  108. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -1
  109. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -1
  110. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -1
  111. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +6 -6
  112. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -1
  113. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -1
  114. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +30 -8
  115. data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +1 -1
  116. data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +4 -4
  117. data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +2 -2
  118. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +273 -304
  119. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb +40 -0
  120. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb +53 -0
  121. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +79 -0
  122. data/lib/bundler/vendor/thor/lib/thor.rb +19 -4
  123. data/lib/bundler/vendor/thor/lib/thor/actions.rb +17 -12
  124. data/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +1 -1
  125. data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +1 -1
  126. data/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +7 -17
  127. data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +5 -5
  128. data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +19 -8
  129. data/lib/bundler/vendor/thor/lib/thor/base.rb +51 -39
  130. data/lib/bundler/vendor/thor/lib/thor/command.rb +21 -14
  131. data/lib/bundler/vendor/thor/lib/thor/error.rb +14 -18
  132. data/lib/bundler/vendor/thor/lib/thor/group.rb +1 -1
  133. data/lib/bundler/vendor/thor/lib/thor/invocation.rb +1 -0
  134. data/lib/bundler/vendor/thor/lib/thor/line_editor.rb +2 -2
  135. data/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +1 -1
  136. data/lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb +6 -6
  137. data/lib/bundler/vendor/thor/lib/thor/nested_context.rb +29 -0
  138. data/lib/bundler/vendor/thor/lib/thor/parser.rb +4 -4
  139. data/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +2 -2
  140. data/lib/bundler/vendor/thor/lib/thor/parser/option.rb +20 -7
  141. data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +13 -3
  142. data/lib/bundler/vendor/thor/lib/thor/rake_compat.rb +1 -0
  143. data/lib/bundler/vendor/thor/lib/thor/runner.rb +13 -12
  144. data/lib/bundler/vendor/thor/lib/thor/shell.rb +3 -3
  145. data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +10 -1
  146. data/lib/bundler/vendor/thor/lib/thor/shell/color.rb +6 -2
  147. data/lib/bundler/vendor/thor/lib/thor/shell/html.rb +3 -3
  148. data/lib/bundler/vendor/thor/lib/thor/util.rb +18 -2
  149. data/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
  150. data/lib/bundler/vendor/uri/lib/uri.rb +104 -0
  151. data/lib/bundler/vendor/uri/lib/uri/common.rb +744 -0
  152. data/lib/bundler/vendor/uri/lib/uri/file.rb +94 -0
  153. data/lib/bundler/vendor/uri/lib/uri/ftp.rb +267 -0
  154. data/lib/bundler/vendor/uri/lib/uri/generic.rb +1568 -0
  155. data/lib/bundler/vendor/uri/lib/uri/http.rb +88 -0
  156. data/lib/bundler/vendor/uri/lib/uri/https.rb +23 -0
  157. data/lib/bundler/vendor/uri/lib/uri/ldap.rb +261 -0
  158. data/lib/bundler/vendor/uri/lib/uri/ldaps.rb +21 -0
  159. data/lib/bundler/vendor/uri/lib/uri/mailto.rb +294 -0
  160. data/lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +546 -0
  161. data/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +125 -0
  162. data/lib/bundler/vendor/uri/lib/uri/version.rb +6 -0
  163. data/lib/bundler/vendored_fileutils.rb +1 -6
  164. data/lib/bundler/vendored_molinillo.rb +1 -1
  165. data/lib/bundler/vendored_persistent.rb +7 -5
  166. data/lib/bundler/vendored_thor.rb +2 -2
  167. data/lib/bundler/vendored_uri.rb +4 -0
  168. data/lib/bundler/version.rb +1 -20
  169. data/lib/bundler/version_ranges.rb +51 -5
  170. data/lib/bundler/vlad.rb +3 -3
  171. data/lib/bundler/worker.rb +1 -3
  172. data/lib/bundler/yaml_serializer.rb +2 -3
  173. data/man/bundle-add.1 +10 -2
  174. data/man/bundle-add.1.txt +11 -5
  175. data/man/bundle-add.ronn +7 -1
  176. data/man/bundle-binstubs.1 +2 -2
  177. data/man/bundle-binstubs.1.txt +2 -2
  178. data/man/bundle-binstubs.ronn +1 -1
  179. data/man/bundle-cache.1 +55 -0
  180. data/man/bundle-cache.1.txt +78 -0
  181. data/man/{bundle-package.ronn → bundle-cache.ronn} +15 -15
  182. data/man/bundle-check.1 +1 -1
  183. data/man/bundle-check.1.txt +6 -6
  184. data/man/bundle-clean.1 +1 -1
  185. data/man/bundle-clean.1.txt +1 -1
  186. data/man/bundle-config.1 +35 -35
  187. data/man/bundle-config.1.txt +65 -66
  188. data/man/bundle-config.ronn +41 -39
  189. data/man/bundle-doctor.1 +1 -1
  190. data/man/bundle-doctor.1.txt +1 -1
  191. data/man/bundle-exec.1 +2 -2
  192. data/man/bundle-exec.1.txt +2 -2
  193. data/man/bundle-exec.ronn +1 -1
  194. data/man/bundle-gem.1 +1 -1
  195. data/man/bundle-gem.1.txt +3 -3
  196. data/man/bundle-info.1 +1 -1
  197. data/man/bundle-info.1.txt +1 -1
  198. data/man/bundle-init.1 +1 -1
  199. data/man/bundle-init.1.txt +1 -1
  200. data/man/bundle-inject.1 +1 -1
  201. data/man/bundle-inject.1.txt +1 -1
  202. data/man/bundle-install.1 +8 -5
  203. data/man/bundle-install.1.txt +56 -51
  204. data/man/bundle-install.ronn +9 -4
  205. data/man/bundle-list.1 +1 -1
  206. data/man/bundle-list.1.txt +1 -1
  207. data/man/bundle-lock.1 +1 -1
  208. data/man/bundle-lock.1.txt +16 -16
  209. data/man/bundle-open.1 +1 -1
  210. data/man/bundle-open.1.txt +1 -1
  211. data/man/bundle-outdated.1 +1 -1
  212. data/man/bundle-outdated.1.txt +1 -1
  213. data/man/bundle-platform.1 +1 -1
  214. data/man/bundle-platform.1.txt +1 -1
  215. data/man/bundle-pristine.1 +1 -1
  216. data/man/bundle-pristine.1.txt +1 -1
  217. data/man/bundle-remove.1 +1 -1
  218. data/man/bundle-remove.1.txt +1 -1
  219. data/man/bundle-show.1 +1 -1
  220. data/man/bundle-show.1.txt +1 -1
  221. data/man/bundle-update.1 +4 -4
  222. data/man/bundle-update.1.txt +64 -65
  223. data/man/bundle-update.ronn +3 -3
  224. data/man/bundle-viz.1 +1 -1
  225. data/man/bundle-viz.1.txt +1 -1
  226. data/man/bundle.1 +2 -2
  227. data/man/bundle.1.txt +7 -7
  228. data/man/bundle.ronn +1 -1
  229. data/man/gemfile.5 +12 -15
  230. data/man/gemfile.5.ronn +9 -13
  231. data/man/gemfile.5.txt +103 -107
  232. data/man/index.txt +1 -1
  233. metadata +30 -120
  234. data/exe/bundle_ruby +0 -60
  235. data/lib/bundler/cli/package.rb +0 -49
  236. data/lib/bundler/compatibility_guard.rb +0 -13
  237. data/lib/bundler/gem_remote_fetcher.rb +0 -43
  238. data/lib/bundler/ssl_certs/.document +0 -1
  239. data/lib/bundler/ssl_certs/certificate_manager.rb +0 -66
  240. data/lib/bundler/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem +0 -21
  241. data/lib/bundler/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem +0 -23
  242. data/lib/bundler/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem +0 -25
  243. data/lib/bundler/vendor/fileutils/lib/fileutils/version.rb +0 -5
  244. data/lib/bundler/vendor/net-http-persistent/lib/net/http/faster.rb +0 -27
  245. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/ssl_reuse.rb +0 -129
  246. data/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb +0 -12
  247. data/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +0 -129
  248. data/man/bundle-package.1 +0 -55
  249. data/man/bundle-package.1.txt +0 -79
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-BINSTUBS" "1" "June 2019" "" ""
4
+ .TH "BUNDLE\-BINSTUBS" "1" "December 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-binstubs\fR \- Install the binstubs of the listed gems
@@ -10,7 +10,7 @@
10
10
  \fBbundle binstubs\fR \fIGEM_NAME\fR [\-\-force] [\-\-path PATH] [\-\-standalone]
11
11
  .
12
12
  .SH "DESCRIPTION"
13
- Binstubs are scripts that wrap around executables\. Bundler creates a small Ruby file (a binstub) that loads Bundler, runs the command, and puts it into \fBbin/\fR\. Binstubs are a shortcut\-or alternative\- to always using \fBbundle exec\fR\. This gives you a file that can by run directly, and one that will always run the correct gem version used by the application\.
13
+ Binstubs are scripts that wrap around executables\. Bundler creates a small Ruby file (a binstub) that loads Bundler, runs the command, and puts it into \fBbin/\fR\. Binstubs are a shortcut\-or alternative\- to always using \fBbundle exec\fR\. This gives you a file that can be run directly, and one that will always run the correct gem version used by the application\.
14
14
  .
15
15
  .P
16
16
  For example, if you run \fBbundle binstubs rspec\-core\fR, Bundler will create the file \fBbin/rspec\fR\. That file will contain enough code to load Bundler, tell it to load the bundled gems, and then run rspec\.
@@ -12,7 +12,7 @@ DESCRIPTION
12
12
  Binstubs are scripts that wrap around executables. Bundler creates a
13
13
  small Ruby file (a binstub) that loads Bundler, runs the command, and
14
14
  puts it into bin/. Binstubs are a shortcut-or alternative- to always
15
- using bundle exec. This gives you a file that can by run directly, and
15
+ using bundle exec. This gives you a file that can be run directly, and
16
16
  one that will always run the correct gem version used by the applica-
17
17
  tion.
18
18
 
@@ -45,4 +45,4 @@ BUNDLE INSTALL --BINSTUBS
45
45
 
46
46
 
47
47
 
48
- June 2019 BUNDLE-BINSTUBS(1)
48
+ December 2019 BUNDLE-BINSTUBS(1)
@@ -10,7 +10,7 @@ bundle-binstubs(1) -- Install the binstubs of the listed gems
10
10
  Binstubs are scripts that wrap around executables. Bundler creates a
11
11
  small Ruby file (a binstub) that loads Bundler, runs the command,
12
12
  and puts it into `bin/`. Binstubs are a shortcut-or alternative-
13
- to always using `bundle exec`. This gives you a file that can by run
13
+ to always using `bundle exec`. This gives you a file that can be run
14
14
  directly, and one that will always run the correct gem version
15
15
  used by the application.
16
16
 
@@ -0,0 +1,55 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "BUNDLE\-CACHE" "1" "December 2019" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBbundle\-cache\fR \- Package your needed \fB\.gem\fR files into your application
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBbundle cache\fR
11
+ .
12
+ .SH "DESCRIPTION"
13
+ Copy all of the \fB\.gem\fR files needed to run the application into the \fBvendor/cache\fR directory\. In the future, when running [bundle install(1)][bundle\-install], use the gems in the cache in preference to the ones on \fBrubygems\.org\fR\.
14
+ .
15
+ .SH "GIT AND PATH GEMS"
16
+ The \fBbundle cache\fR command can also package \fB:git\fR and \fB:path\fR dependencies besides \.gem files\. This needs to be explicitly enabled via the \fB\-\-all\fR option\. Once used, the \fB\-\-all\fR option will be remembered\.
17
+ .
18
+ .SH "SUPPORT FOR MULTIPLE PLATFORMS"
19
+ When using gems that have different packages for different platforms, Bundler supports caching of gems for other platforms where the Gemfile has been resolved (i\.e\. present in the lockfile) in \fBvendor/cache\fR\. This needs to be enabled via the \fB\-\-all\-platforms\fR option\. This setting will be remembered in your local bundler configuration\.
20
+ .
21
+ .SH "REMOTE FETCHING"
22
+ By default, if you run \fBbundle install(1)\fR](bundle\-install\.1\.html) after running bundle cache(1) \fIbundle\-cache\.1\.html\fR, bundler will still connect to \fBrubygems\.org\fR to check whether a platform\-specific gem exists for any of the gems in \fBvendor/cache\fR\.
23
+ .
24
+ .P
25
+ For instance, consider this Gemfile(5):
26
+ .
27
+ .IP "" 4
28
+ .
29
+ .nf
30
+
31
+ source "https://rubygems\.org"
32
+
33
+ gem "nokogiri"
34
+ .
35
+ .fi
36
+ .
37
+ .IP "" 0
38
+ .
39
+ .P
40
+ If you run \fBbundle cache\fR under C Ruby, bundler will retrieve the version of \fBnokogiri\fR for the \fB"ruby"\fR platform\. If you deploy to JRuby and run \fBbundle install\fR, bundler is forced to check to see whether a \fB"java"\fR platformed \fBnokogiri\fR exists\.
41
+ .
42
+ .P
43
+ Even though the \fBnokogiri\fR gem for the Ruby platform is \fItechnically\fR acceptable on JRuby, it has a C extension that does not run on JRuby\. As a result, bundler will, by default, still connect to \fBrubygems\.org\fR to check whether it has a version of one of your gems more specific to your platform\.
44
+ .
45
+ .P
46
+ This problem is also not limited to the \fB"java"\fR platform\. A similar (common) problem can happen when developing on Windows and deploying to Linux, or even when developing on OSX and deploying to Linux\.
47
+ .
48
+ .P
49
+ If you know for sure that the gems packaged in \fBvendor/cache\fR are appropriate for the platform you are on, you can run \fBbundle install \-\-local\fR to skip checking for more appropriate gems, and use the ones in \fBvendor/cache\fR\.
50
+ .
51
+ .P
52
+ One way to be sure that you have the right platformed versions of all your gems is to run \fBbundle cache\fR on an identical machine and check in the gems\. For instance, you can run \fBbundle cache\fR on an identical staging box during your staging process, and check in the \fBvendor/cache\fR before deploying to production\.
53
+ .
54
+ .P
55
+ By default, bundle cache(1) \fIbundle\-cache\.1\.html\fR fetches and also installs the gems to the default location\. To package the dependencies to \fBvendor/cache\fR without installing them to the local install location, you can run \fBbundle cache \-\-no\-install\fR\.
@@ -0,0 +1,78 @@
1
+ BUNDLE-CACHE(1) BUNDLE-CACHE(1)
2
+
3
+
4
+
5
+ NAME
6
+ bundle-cache - Package your needed .gem files into your application
7
+
8
+ SYNOPSIS
9
+ bundle cache
10
+
11
+ DESCRIPTION
12
+ Copy all of the .gem files needed to run the application into the ven-
13
+ dor/cache directory. In the future, when running [bundle
14
+ install(1)][bundle-install], use the gems in the cache in preference to
15
+ the ones on rubygems.org.
16
+
17
+ GIT AND PATH GEMS
18
+ The bundle cache command can also package :git and :path dependencies
19
+ besides .gem files. This needs to be explicitly enabled via the --all
20
+ option. Once used, the --all option will be remembered.
21
+
22
+ SUPPORT FOR MULTIPLE PLATFORMS
23
+ When using gems that have different packages for different platforms,
24
+ Bundler supports caching of gems for other platforms where the Gemfile
25
+ has been resolved (i.e. present in the lockfile) in vendor/cache. This
26
+ needs to be enabled via the --all-platforms option. This setting will
27
+ be remembered in your local bundler configuration.
28
+
29
+ REMOTE FETCHING
30
+ By default, if you run bundle install(1)](bundle-install.1.html) after
31
+ running bundle cache(1) bundle-cache.1.html, bundler will still connect
32
+ to rubygems.org to check whether a platform-specific gem exists for any
33
+ of the gems in vendor/cache.
34
+
35
+ For instance, consider this Gemfile(5):
36
+
37
+
38
+
39
+ source "https://rubygems.org"
40
+
41
+ gem "nokogiri"
42
+
43
+
44
+
45
+ If you run bundle cache under C Ruby, bundler will retrieve the version
46
+ of nokogiri for the "ruby" platform. If you deploy to JRuby and run
47
+ bundle install, bundler is forced to check to see whether a "java"
48
+ platformed nokogiri exists.
49
+
50
+ Even though the nokogiri gem for the Ruby platform is technically
51
+ acceptable on JRuby, it has a C extension that does not run on JRuby.
52
+ As a result, bundler will, by default, still connect to rubygems.org to
53
+ check whether it has a version of one of your gems more specific to
54
+ your platform.
55
+
56
+ This problem is also not limited to the "java" platform. A similar
57
+ (common) problem can happen when developing on Windows and deploying to
58
+ Linux, or even when developing on OSX and deploying to Linux.
59
+
60
+ If you know for sure that the gems packaged in vendor/cache are appro-
61
+ priate for the platform you are on, you can run bundle install --local
62
+ to skip checking for more appropriate gems, and use the ones in ven-
63
+ dor/cache.
64
+
65
+ One way to be sure that you have the right platformed versions of all
66
+ your gems is to run bundle cache on an identical machine and check in
67
+ the gems. For instance, you can run bundle cache on an identical stag-
68
+ ing box during your staging process, and check in the vendor/cache
69
+ before deploying to production.
70
+
71
+ By default, bundle cache(1) bundle-cache.1.html fetches and also
72
+ installs the gems to the default location. To package the dependencies
73
+ to vendor/cache without installing them to the local install location,
74
+ you can run bundle cache --no-install.
75
+
76
+
77
+
78
+ December 2019 BUNDLE-CACHE(1)
@@ -1,9 +1,9 @@
1
- bundle-package(1) -- Package your needed `.gem` files into your application
1
+ bundle-cache(1) -- Package your needed `.gem` files into your application
2
2
  ===========================================================================
3
3
 
4
4
  ## SYNOPSIS
5
5
 
6
- `bundle package`
6
+ `bundle cache`
7
7
 
8
8
  ## DESCRIPTION
9
9
 
@@ -13,22 +13,22 @@ use the gems in the cache in preference to the ones on `rubygems.org`.
13
13
 
14
14
  ## GIT AND PATH GEMS
15
15
 
16
- Since Bundler 1.2, the `bundle package` command can also package `:git` and
17
- `:path` dependencies besides .gem files. This needs to be explicitly enabled
18
- via the `--all` option. Once used, the `--all` option will be remembered.
16
+ The `bundle cache` command can also package `:git` and `:path` dependencies
17
+ besides .gem files. This needs to be explicitly enabled via the `--all` option.
18
+ Once used, the `--all` option will be remembered.
19
19
 
20
20
  ## SUPPORT FOR MULTIPLE PLATFORMS
21
21
 
22
22
  When using gems that have different packages for different platforms, Bundler
23
- 1.8 and newer support caching of gems for other platforms where the Gemfile
24
- has been resolved (i.e. present in the lockfile) in `vendor/cache`. This needs
25
- to be enabled via the `--all-platforms` option. This setting will be remembered
26
- in your local bundler configuration.
23
+ supports caching of gems for other platforms where the Gemfile has been resolved
24
+ (i.e. present in the lockfile) in `vendor/cache`. This needs to be enabled via
25
+ the `--all-platforms` option. This setting will be remembered in your local
26
+ bundler configuration.
27
27
 
28
28
  ## REMOTE FETCHING
29
29
 
30
30
  By default, if you run `bundle install(1)`](bundle-install.1.html) after running
31
- [bundle package(1)](bundle-package.1.html), bundler will still connect to `rubygems.org`
31
+ [bundle cache(1)](bundle-cache.1.html), bundler will still connect to `rubygems.org`
32
32
  to check whether a platform-specific gem exists for any of the gems
33
33
  in `vendor/cache`.
34
34
 
@@ -38,7 +38,7 @@ For instance, consider this Gemfile(5):
38
38
 
39
39
  gem "nokogiri"
40
40
 
41
- If you run `bundle package` under C Ruby, bundler will retrieve
41
+ If you run `bundle cache` under C Ruby, bundler will retrieve
42
42
  the version of `nokogiri` for the `"ruby"` platform. If you deploy
43
43
  to JRuby and run `bundle install`, bundler is forced to check to
44
44
  see whether a `"java"` platformed `nokogiri` exists.
@@ -60,13 +60,13 @@ are appropriate for the platform you are on, you can run
60
60
  gems, and use the ones in `vendor/cache`.
61
61
 
62
62
  One way to be sure that you have the right platformed versions
63
- of all your gems is to run `bundle package` on an identical
63
+ of all your gems is to run `bundle cache` on an identical
64
64
  machine and check in the gems. For instance, you can run
65
- `bundle package` on an identical staging box during your
65
+ `bundle cache` on an identical staging box during your
66
66
  staging process, and check in the `vendor/cache` before
67
67
  deploying to production.
68
68
 
69
- By default, [bundle package(1)](bundle-package.1.html) fetches and also
69
+ By default, [bundle cache(1)](bundle-cache.1.html) fetches and also
70
70
  installs the gems to the default location. To package the
71
71
  dependencies to `vendor/cache` without installing them to the
72
- local install location, you can run `bundle package --no-install`.
72
+ local install location, you can run `bundle cache --no-install`.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-CHECK" "1" "June 2019" "" ""
4
+ .TH "BUNDLE\-CHECK" "1" "December 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-check\fR \- Verifies if dependencies are satisfied by installed gems
@@ -9,8 +9,8 @@ SYNOPSIS
9
9
  bundle check [--dry-run] [--gemfile=FILE] [--path=PATH]
10
10
 
11
11
  DESCRIPTION
12
- check searches the local machine for each of the gems requested in the
13
- Gemfile. If all gems are found, Bundler prints a success message and
12
+ check searches the local machine for each of the gems requested in the
13
+ Gemfile. If all gems are found, Bundler prints a success message and
14
14
  exits with a status of 0.
15
15
 
16
16
  If not, the first missing gem is listed and Bundler exits status 1.
@@ -20,14 +20,14 @@ OPTIONS
20
20
  Locks the [Gemfile(5)][Gemfile(5)] before running the command.
21
21
 
22
22
  --gemfile
23
- Use the specified gemfile instead of the [Gemfile(5)][Gem-
23
+ Use the specified gemfile instead of the [Gemfile(5)][Gem-
24
24
  file(5)].
25
25
 
26
- --path Specify a different path than the system default ($BUNDLE_PATH
27
- or $GEM_HOME). Bundler will remember this value for future
26
+ --path Specify a different path than the system default ($BUNDLE_PATH
27
+ or $GEM_HOME). Bundler will remember this value for future
28
28
  installs on this machine.
29
29
 
30
30
 
31
31
 
32
32
 
33
- June 2019 BUNDLE-CHECK(1)
33
+ December 2019 BUNDLE-CHECK(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\-CLEAN" "1" "June 2019" "" ""
4
+ .TH "BUNDLE\-CLEAN" "1" "December 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-clean\fR \- Cleans up unused gems in your bundler directory
@@ -23,4 +23,4 @@ OPTIONS
23
23
 
24
24
 
25
25
 
26
- June 2019 BUNDLE-CLEAN(1)
26
+ December 2019 BUNDLE-CLEAN(1)
@@ -1,13 +1,13 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-CONFIG" "1" "June 2019" "" ""
4
+ .TH "BUNDLE\-CONFIG" "1" "December 2019" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-config\fR \- Set bundler configuration options
8
8
  .
9
9
  .SH "SYNOPSIS"
10
- \fBbundle config\fR [\fIname\fR [\fIvalue\fR]]
10
+ \fBbundle config\fR [list|get|set|unset] [\fIname\fR [\fIvalue\fR]]
11
11
  .
12
12
  .SH "DESCRIPTION"
13
13
  This command allows you to interact with Bundler\'s configuration system\.
@@ -30,31 +30,40 @@ Bundler default config
30
30
  .IP "" 0
31
31
  .
32
32
  .P
33
- Executing \fBbundle config\fR with no parameters will print a list of all bundler configuration for the current bundle, and where that configuration was set\.
33
+ Executing \fBbundle config list\fR with will print a list of all bundler configuration for the current bundle, and where that configuration was set\.
34
34
  .
35
35
  .P
36
- Executing \fBbundle config <name>\fR will print the value of that configuration setting, and where it was set\.
36
+ Executing \fBbundle config get <name>\fR will print the value of that configuration setting, and where it was set\.
37
37
  .
38
38
  .P
39
- Executing \fBbundle config <name> <value>\fR will set that configuration to the value specified for all bundles executed as the current user\. The configuration will be stored in \fB~/\.bundle/config\fR\. If \fIname\fR already is set, \fIname\fR will be overridden and user will be warned\.
39
+ Executing \fBbundle config set <name> <value>\fR will set that configuration to the value specified for all bundles executed as the current user\. The configuration will be stored in \fB~/\.bundle/config\fR\. If \fIname\fR already is set, \fIname\fR will be overridden and user will be warned\.
40
40
  .
41
41
  .P
42
- Executing \fBbundle config \-\-global <name> <value>\fR works the same as above\.
42
+ Executing \fBbundle config set \-\-global <name> <value>\fR works the same as above\.
43
43
  .
44
44
  .P
45
- Executing \fBbundle config \-\-local <name> <value>\fR will set that configuration to the local application\. The configuration will be stored in \fBapp/\.bundle/config\fR\.
45
+ Executing \fBbundle config set \-\-local <name> <value>\fR will set that configuration to the local application\. The configuration will be stored in \fBapp/\.bundle/config\fR\.
46
46
  .
47
47
  .P
48
- Executing \fBbundle config \-\-delete <name>\fR will delete the configuration in both local and global sources\. Not compatible with \-\-global or \-\-local flag\.
48
+ Executing \fBbundle config unset <name>\fR will delete the configuration in both local and global sources\.
49
+ .
50
+ .P
51
+ Executing \fBbundle config unset \-\-global <name>\fR will delete the configuration only from the user configuration\.
52
+ .
53
+ .P
54
+ Executing \fBbundle config unset \-\-local <name> <value>\fR will delete the configuration only from the local application\.
49
55
  .
50
56
  .P
51
57
  Executing bundle with the \fBBUNDLE_IGNORE_CONFIG\fR environment variable set will cause it to ignore all configuration\.
52
58
  .
53
59
  .P
54
- Executing \fBbundle config disable_multisource true\fR upgrades the warning about the Gemfile containing multiple primary sources to an error\. Executing \fBbundle config \-\-delete disable_multisource\fR downgrades this error to a warning\.
60
+ Executing \fBbundle config set disable_multisource true\fR upgrades the warning about the Gemfile containing multiple primary sources to an error\. Executing \fBbundle config unset disable_multisource\fR downgrades this error to a warning\.
55
61
  .
56
62
  .SH "REMEMBERING OPTIONS"
57
- Flags passed to \fBbundle install\fR or the Bundler runtime, such as \fB\-\-path foo\fR or \fB\-\-without production\fR, are not remembered between commands\. If these options must be remembered,they must be set using \fBbundle config\fR (e\.g\., \fBbundle config path foo\fR)\.
63
+ Flags passed to \fBbundle install\fR or the Bundler runtime, such as \fB\-\-path foo\fR or \fB\-\-without production\fR, are remembered between commands and saved to your local application\'s configuration (normally, \fB\./\.bundle/config\fR)\.
64
+ .
65
+ .P
66
+ However, this will be changed in bundler 3, so it\'s better not to rely on this behavior\. If these options must be remembered, it\'s better to set them using \fBbundle config\fR (e\.g\., \fBbundle config set path foo\fR)\.
58
67
  .
59
68
  .P
60
69
  The options that can be configured are:
@@ -102,7 +111,7 @@ Since the specific location of that executable can change from machine to machin
102
111
  .
103
112
  .nf
104
113
 
105
- bundle config build\.mysql \-\-with\-mysql\-config=/usr/local/mysql/bin/mysql_config
114
+ bundle config set build\.mysql \-\-with\-mysql\-config=/usr/local/mysql/bin/mysql_config
106
115
  .
107
116
  .fi
108
117
  .
@@ -151,7 +160,7 @@ The following is a list of all configuration keys and their purpose\. You can le
151
160
  \fBcache_all_platforms\fR (\fBBUNDLE_CACHE_ALL_PLATFORMS\fR): Cache gems for all platforms\.
152
161
  .
153
162
  .IP "\(bu" 4
154
- \fBcache_path\fR (\fBBUNDLE_CACHE_PATH\fR): The directory that bundler will place cached gems in when running \fBbundle package\fR, and that bundler will look in when installing gems\. Defaults to \fBvendor/bundle\fR\.
163
+ \fBcache_path\fR (\fBBUNDLE_CACHE_PATH\fR): The directory that bundler will place cached gems in when running \fBbundle package\fR, and that bundler will look in when installing gems\. Defaults to \fBvendor/cache\fR\.
155
164
  .
156
165
  .IP "\(bu" 4
157
166
  \fBclean\fR (\fBBUNDLE_CLEAN\fR): Whether Bundler should run \fBbundle clean\fR automatically after \fBbundle install\fR\.
@@ -175,7 +184,7 @@ The following is a list of all configuration keys and their purpose\. You can le
175
184
  \fBdisable_local_branch_check\fR (\fBBUNDLE_DISABLE_LOCAL_BRANCH_CHECK\fR): Allow Bundler to use a local git override without a branch specified in the Gemfile\.
176
185
  .
177
186
  .IP "\(bu" 4
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\.
187
+ \fBdisable_multisource\fR (\fBBUNDLE_DISABLE_MULTISOURCE\fR): When set, Gemfiles containing multiple sources will produce errors instead of warnings\. Use \fBbundle config unset disable_multisource\fR to unset\.
179
188
  .
180
189
  .IP "\(bu" 4
181
190
  \fBdisable_platform_warnings\fR (\fBBUNDLE_DISABLE_PLATFORM_WARNINGS\fR): Disable warnings during bundle install when a dependency is unused on the current platform\.
@@ -187,9 +196,6 @@ The following is a list of all configuration keys and their purpose\. You can le
187
196
  \fBdisable_version_check\fR (\fBBUNDLE_DISABLE_VERSION_CHECK\fR): Stop Bundler from checking if a newer Bundler version is available on rubygems\.org\.
188
197
  .
189
198
  .IP "\(bu" 4
190
- \fBerror_on_stderr\fR (\fBBUNDLE_ERROR_ON_STDERR\fR): Print Bundler errors to stderr\.
191
- .
192
- .IP "\(bu" 4
193
199
  \fBforce_ruby_platform\fR (\fBBUNDLE_FORCE_RUBY_PLATFORM\fR): Ignore the current machine\'s platform and install only \fBruby\fR platform gems\. As a result, gems with native extensions will be compiled from source\.
194
200
  .
195
201
  .IP "\(bu" 4
@@ -205,9 +211,6 @@ The following is a list of all configuration keys and their purpose\. You can le
205
211
  \fBglobal_gem_cache\fR (\fBBUNDLE_GLOBAL_GEM_CACHE\fR): Whether Bundler should cache all gems globally, rather than locally to the installing Ruby installation\.
206
212
  .
207
213
  .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
211
214
  \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\.
212
215
  .
213
216
  .IP "\(bu" 4
@@ -217,12 +220,6 @@ The following is a list of all configuration keys and their purpose\. You can le
217
220
  \fBjobs\fR (\fBBUNDLE_JOBS\fR): The number of gems Bundler can install in parallel\. Defaults to 1\.
218
221
  .
219
222
  .IP "\(bu" 4
220
- \fBlist_command\fR (\fBBUNDLE_LIST_COMMAND\fR) Enable new list command feature
221
- .
222
- .IP "\(bu" 4
223
- \fBmajor_deprecations\fR (\fBBUNDLE_MAJOR_DEPRECATIONS\fR): Whether Bundler should print deprecation warnings for behavior that will be changed in the next major version\.
224
- .
225
- .IP "\(bu" 4
226
223
  \fBno_install\fR (\fBBUNDLE_NO_INSTALL\fR): Whether \fBbundle package\fR should skip installing gems\.
227
224
  .
228
225
  .IP "\(bu" 4
@@ -244,7 +241,7 @@ The following is a list of all configuration keys and their purpose\. You can le
244
241
  \fBplugins\fR (\fBBUNDLE_PLUGINS\fR): Enable Bundler\'s experimental plugin system\.
245
242
  .
246
243
  .IP "\(bu" 4
247
- \fBprefer_gems_rb\fR (\fBBUNDLE_PREFER_GEMS_RB\fR) Prefer \fBgems\.rb\fR to \fBGemfile\fR when Bundler is searching for a Gemfile\.
244
+ \fBprefer_patch\fR (BUNDLE_PREFER_PATCH): Prefer updating only to next patch version during updates\. Makes \fBbundle update\fR calls equivalent to \fBbundler update \-\-patch\fR\.
248
245
  .
249
246
  .IP "\(bu" 4
250
247
  \fBprint_only_version_number\fR (\fBBUNDLE_PRINT_ONLY_VERSION_NUMBER\fR) Print only version number from \fBbundler \-\-version\fR\.
@@ -262,6 +259,9 @@ The following is a list of all configuration keys and their purpose\. You can le
262
259
  \fBshebang\fR (\fBBUNDLE_SHEBANG\fR): The program name that should be invoked for generated binstubs\. Defaults to the ruby install name used to generate the binstub\.
263
260
  .
264
261
  .IP "\(bu" 4
262
+ \fBsilence_deprecations\fR (\fBBUNDLE_SILENCE_DEPRECATIONS\fR): Whether Bundler should silence deprecation warnings for behavior that will be changed in the next major version\.
263
+ .
264
+ .IP "\(bu" 4
265
265
  \fBsilence_root_warning\fR (\fBBUNDLE_SILENCE_ROOT_WARNING\fR): Silence the warning Bundler prints when installing gems as root\.
266
266
  .
267
267
  .IP "\(bu" 4
@@ -318,7 +318,7 @@ Bundler also allows you to work against a git repository locally instead of usin
318
318
  .
319
319
  .nf
320
320
 
321
- bundle config local\.GEM_NAME /path/to/local/git/repository
321
+ bundle config set local\.GEM_NAME /path/to/local/git/repository
322
322
  .
323
323
  .fi
324
324
  .
@@ -331,7 +331,7 @@ For example, in order to use a local Rack repository, a developer could call:
331
331
  .
332
332
  .nf
333
333
 
334
- bundle config local\.rack ~/Work/git/rack
334
+ bundle config set local\.rack ~/Work/git/rack
335
335
  .
336
336
  .fi
337
337
  .
@@ -353,7 +353,7 @@ Bundler supports overriding gem sources with mirrors\. This allows you to config
353
353
  .
354
354
  .nf
355
355
 
356
- bundle config mirror\.SOURCE_URL MIRROR_URL
356
+ bundle config set mirror\.SOURCE_URL MIRROR_URL
357
357
  .
358
358
  .fi
359
359
  .
@@ -366,7 +366,7 @@ For example, to use a mirror of rubygems\.org hosted at rubygems\-mirror\.org:
366
366
  .
367
367
  .nf
368
368
 
369
- bundle config mirror\.http://rubygems\.org http://rubygems\-mirror\.org
369
+ bundle config set mirror\.http://rubygems\.org http://rubygems\-mirror\.org
370
370
  .
371
371
  .fi
372
372
  .
@@ -379,7 +379,7 @@ Each mirror also provides a fallback timeout setting\. If the mirror does not re
379
379
  .
380
380
  .nf
381
381
 
382
- bundle config mirror\.SOURCE_URL\.fallback_timeout TIMEOUT
382
+ bundle config set mirror\.SOURCE_URL\.fallback_timeout TIMEOUT
383
383
  .
384
384
  .fi
385
385
  .
@@ -392,7 +392,7 @@ For example, to fall back to rubygems\.org after 3 seconds:
392
392
  .
393
393
  .nf
394
394
 
395
- bundle config mirror\.https://rubygems\.org\.fallback_timeout 3
395
+ bundle config set mirror\.https://rubygems\.org\.fallback_timeout 3
396
396
  .
397
397
  .fi
398
398
  .
@@ -408,7 +408,7 @@ Bundler allows you to configure credentials for any gem source, which allows you
408
408
  .
409
409
  .nf
410
410
 
411
- bundle config SOURCE_HOSTNAME USERNAME:PASSWORD
411
+ bundle config set SOURCE_HOSTNAME USERNAME:PASSWORD
412
412
  .
413
413
  .fi
414
414
  .
@@ -421,7 +421,7 @@ For example, to save the credentials of user \fBclaudette\fR for the gem source
421
421
  .
422
422
  .nf
423
423
 
424
- bundle config gems\.longerous\.com claudette:s00pers3krit
424
+ bundle config set gems\.longerous\.com claudette:s00pers3krit
425
425
  .
426
426
  .fi
427
427
  .
@@ -447,7 +447,7 @@ For gems with a git source with HTTP(S) URL you can specify credentials like so:
447
447
  .
448
448
  .nf
449
449
 
450
- bundle config https://github\.com/bundler/bundler\.git username:password
450
+ bundle config set https://github\.com/bundler/bundler\.git username:password
451
451
  .
452
452
  .fi
453
453
  .