bundler 2.0.2

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 (303) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +3111 -0
  3. data/LICENSE.md +23 -0
  4. data/README.md +63 -0
  5. data/bundler.gemspec +65 -0
  6. data/exe/bundle +31 -0
  7. data/exe/bundle_ruby +60 -0
  8. data/exe/bundler +4 -0
  9. data/lib/bundler.rb +567 -0
  10. data/lib/bundler/build_metadata.rb +53 -0
  11. data/lib/bundler/capistrano.rb +22 -0
  12. data/lib/bundler/cli.rb +792 -0
  13. data/lib/bundler/cli/add.rb +35 -0
  14. data/lib/bundler/cli/binstubs.rb +49 -0
  15. data/lib/bundler/cli/cache.rb +36 -0
  16. data/lib/bundler/cli/check.rb +38 -0
  17. data/lib/bundler/cli/clean.rb +25 -0
  18. data/lib/bundler/cli/common.rb +102 -0
  19. data/lib/bundler/cli/config.rb +119 -0
  20. data/lib/bundler/cli/console.rb +43 -0
  21. data/lib/bundler/cli/doctor.rb +140 -0
  22. data/lib/bundler/cli/exec.rb +105 -0
  23. data/lib/bundler/cli/gem.rb +252 -0
  24. data/lib/bundler/cli/info.rb +50 -0
  25. data/lib/bundler/cli/init.rb +47 -0
  26. data/lib/bundler/cli/inject.rb +60 -0
  27. data/lib/bundler/cli/install.rb +218 -0
  28. data/lib/bundler/cli/issue.rb +40 -0
  29. data/lib/bundler/cli/list.rb +58 -0
  30. data/lib/bundler/cli/lock.rb +63 -0
  31. data/lib/bundler/cli/open.rb +26 -0
  32. data/lib/bundler/cli/outdated.rb +266 -0
  33. data/lib/bundler/cli/package.rb +49 -0
  34. data/lib/bundler/cli/platform.rb +46 -0
  35. data/lib/bundler/cli/plugin.rb +24 -0
  36. data/lib/bundler/cli/pristine.rb +47 -0
  37. data/lib/bundler/cli/remove.rb +18 -0
  38. data/lib/bundler/cli/show.rb +75 -0
  39. data/lib/bundler/cli/update.rb +91 -0
  40. data/lib/bundler/cli/viz.rb +31 -0
  41. data/lib/bundler/compact_index_client.rb +109 -0
  42. data/lib/bundler/compact_index_client/cache.rb +118 -0
  43. data/lib/bundler/compact_index_client/updater.rb +116 -0
  44. data/lib/bundler/compatibility_guard.rb +13 -0
  45. data/lib/bundler/constants.rb +7 -0
  46. data/lib/bundler/current_ruby.rb +94 -0
  47. data/lib/bundler/definition.rb +995 -0
  48. data/lib/bundler/dep_proxy.rb +48 -0
  49. data/lib/bundler/dependency.rb +139 -0
  50. data/lib/bundler/deployment.rb +69 -0
  51. data/lib/bundler/deprecate.rb +44 -0
  52. data/lib/bundler/dsl.rb +615 -0
  53. data/lib/bundler/endpoint_specification.rb +141 -0
  54. data/lib/bundler/env.rb +149 -0
  55. data/lib/bundler/environment_preserver.rb +59 -0
  56. data/lib/bundler/errors.rb +158 -0
  57. data/lib/bundler/feature_flag.rb +75 -0
  58. data/lib/bundler/fetcher.rb +312 -0
  59. data/lib/bundler/fetcher/base.rb +52 -0
  60. data/lib/bundler/fetcher/compact_index.rb +126 -0
  61. data/lib/bundler/fetcher/dependency.rb +82 -0
  62. data/lib/bundler/fetcher/downloader.rb +84 -0
  63. data/lib/bundler/fetcher/index.rb +52 -0
  64. data/lib/bundler/friendly_errors.rb +131 -0
  65. data/lib/bundler/gem_helper.rb +217 -0
  66. data/lib/bundler/gem_helpers.rb +101 -0
  67. data/lib/bundler/gem_remote_fetcher.rb +43 -0
  68. data/lib/bundler/gem_tasks.rb +7 -0
  69. data/lib/bundler/gem_version_promoter.rb +190 -0
  70. data/lib/bundler/gemdeps.rb +29 -0
  71. data/lib/bundler/graph.rb +152 -0
  72. data/lib/bundler/index.rb +213 -0
  73. data/lib/bundler/injector.rb +253 -0
  74. data/lib/bundler/inline.rb +74 -0
  75. data/lib/bundler/installer.rb +318 -0
  76. data/lib/bundler/installer/gem_installer.rb +85 -0
  77. data/lib/bundler/installer/parallel_installer.rb +229 -0
  78. data/lib/bundler/installer/standalone.rb +53 -0
  79. data/lib/bundler/lazy_specification.rb +123 -0
  80. data/lib/bundler/lockfile_generator.rb +95 -0
  81. data/lib/bundler/lockfile_parser.rb +256 -0
  82. data/lib/bundler/match_platform.rb +24 -0
  83. data/lib/bundler/mirror.rb +223 -0
  84. data/lib/bundler/plugin.rb +294 -0
  85. data/lib/bundler/plugin/api.rb +81 -0
  86. data/lib/bundler/plugin/api/source.rb +306 -0
  87. data/lib/bundler/plugin/dsl.rb +53 -0
  88. data/lib/bundler/plugin/events.rb +61 -0
  89. data/lib/bundler/plugin/index.rb +165 -0
  90. data/lib/bundler/plugin/installer.rb +96 -0
  91. data/lib/bundler/plugin/installer/git.rb +38 -0
  92. data/lib/bundler/plugin/installer/rubygems.rb +27 -0
  93. data/lib/bundler/plugin/source_list.rb +27 -0
  94. data/lib/bundler/process_lock.rb +24 -0
  95. data/lib/bundler/psyched_yaml.rb +37 -0
  96. data/lib/bundler/remote_specification.rb +114 -0
  97. data/lib/bundler/resolver.rb +373 -0
  98. data/lib/bundler/resolver/spec_group.rb +106 -0
  99. data/lib/bundler/retry.rb +66 -0
  100. data/lib/bundler/ruby_dsl.rb +18 -0
  101. data/lib/bundler/ruby_version.rb +152 -0
  102. data/lib/bundler/rubygems_ext.rb +209 -0
  103. data/lib/bundler/rubygems_gem_installer.rb +99 -0
  104. data/lib/bundler/rubygems_integration.rb +915 -0
  105. data/lib/bundler/runtime.rb +322 -0
  106. data/lib/bundler/settings.rb +464 -0
  107. data/lib/bundler/settings/validator.rb +102 -0
  108. data/lib/bundler/setup.rb +28 -0
  109. data/lib/bundler/shared_helpers.rb +386 -0
  110. data/lib/bundler/similarity_detector.rb +63 -0
  111. data/lib/bundler/source.rb +94 -0
  112. data/lib/bundler/source/gemspec.rb +18 -0
  113. data/lib/bundler/source/git.rb +329 -0
  114. data/lib/bundler/source/git/git_proxy.rb +262 -0
  115. data/lib/bundler/source/metadata.rb +62 -0
  116. data/lib/bundler/source/path.rb +249 -0
  117. data/lib/bundler/source/path/installer.rb +74 -0
  118. data/lib/bundler/source/rubygems.rb +539 -0
  119. data/lib/bundler/source/rubygems/remote.rb +69 -0
  120. data/lib/bundler/source_list.rb +186 -0
  121. data/lib/bundler/spec_set.rb +208 -0
  122. data/lib/bundler/ssl_certs/.document +1 -0
  123. data/lib/bundler/ssl_certs/certificate_manager.rb +66 -0
  124. data/lib/bundler/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem +21 -0
  125. data/lib/bundler/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem +23 -0
  126. data/lib/bundler/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem +25 -0
  127. data/lib/bundler/stub_specification.rb +108 -0
  128. data/lib/bundler/templates/.document +1 -0
  129. data/lib/bundler/templates/Executable +29 -0
  130. data/lib/bundler/templates/Executable.bundler +105 -0
  131. data/lib/bundler/templates/Executable.standalone +14 -0
  132. data/lib/bundler/templates/Gemfile +7 -0
  133. data/lib/bundler/templates/gems.rb +8 -0
  134. data/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +74 -0
  135. data/lib/bundler/templates/newgem/Gemfile.tt +4 -0
  136. data/lib/bundler/templates/newgem/LICENSE.txt.tt +21 -0
  137. data/lib/bundler/templates/newgem/README.md.tt +47 -0
  138. data/lib/bundler/templates/newgem/Rakefile.tt +29 -0
  139. data/lib/bundler/templates/newgem/bin/console.tt +14 -0
  140. data/lib/bundler/templates/newgem/bin/setup.tt +8 -0
  141. data/lib/bundler/templates/newgem/exe/newgem.tt +3 -0
  142. data/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt +3 -0
  143. data/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +9 -0
  144. data/lib/bundler/templates/newgem/ext/newgem/newgem.h.tt +6 -0
  145. data/lib/bundler/templates/newgem/gitignore.tt +20 -0
  146. data/lib/bundler/templates/newgem/lib/newgem.rb.tt +13 -0
  147. data/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +7 -0
  148. data/lib/bundler/templates/newgem/newgem.gemspec.tt +50 -0
  149. data/lib/bundler/templates/newgem/rspec.tt +3 -0
  150. data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +9 -0
  151. data/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +14 -0
  152. data/lib/bundler/templates/newgem/test/newgem_test.rb.tt +11 -0
  153. data/lib/bundler/templates/newgem/test/test_helper.rb.tt +8 -0
  154. data/lib/bundler/templates/newgem/travis.yml.tt +7 -0
  155. data/lib/bundler/ui.rb +9 -0
  156. data/lib/bundler/ui/rg_proxy.rb +19 -0
  157. data/lib/bundler/ui/shell.rb +146 -0
  158. data/lib/bundler/ui/silent.rb +69 -0
  159. data/lib/bundler/uri_credentials_filter.rb +37 -0
  160. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1741 -0
  161. data/lib/bundler/vendor/fileutils/lib/fileutils/version.rb +5 -0
  162. data/lib/bundler/vendor/molinillo/lib/molinillo.rb +12 -0
  163. data/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
  164. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +57 -0
  165. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +81 -0
  166. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +223 -0
  167. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +36 -0
  168. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +66 -0
  169. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +62 -0
  170. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +63 -0
  171. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +61 -0
  172. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +126 -0
  173. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +46 -0
  174. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +36 -0
  175. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +136 -0
  176. data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +143 -0
  177. data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +6 -0
  178. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +101 -0
  179. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +67 -0
  180. data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +837 -0
  181. data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +46 -0
  182. data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +58 -0
  183. data/lib/bundler/vendor/net-http-persistent/lib/net/http/faster.rb +27 -0
  184. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +1233 -0
  185. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/ssl_reuse.rb +129 -0
  186. data/lib/bundler/vendor/thor/lib/thor.rb +509 -0
  187. data/lib/bundler/vendor/thor/lib/thor/actions.rb +331 -0
  188. data/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +104 -0
  189. data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +60 -0
  190. data/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +118 -0
  191. data/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +143 -0
  192. data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +373 -0
  193. data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +109 -0
  194. data/lib/bundler/vendor/thor/lib/thor/base.rb +678 -0
  195. data/lib/bundler/vendor/thor/lib/thor/command.rb +135 -0
  196. data/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +97 -0
  197. data/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb +12 -0
  198. data/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +129 -0
  199. data/lib/bundler/vendor/thor/lib/thor/error.rb +114 -0
  200. data/lib/bundler/vendor/thor/lib/thor/group.rb +281 -0
  201. data/lib/bundler/vendor/thor/lib/thor/invocation.rb +177 -0
  202. data/lib/bundler/vendor/thor/lib/thor/line_editor.rb +17 -0
  203. data/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +37 -0
  204. data/lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb +88 -0
  205. data/lib/bundler/vendor/thor/lib/thor/parser.rb +4 -0
  206. data/lib/bundler/vendor/thor/lib/thor/parser/argument.rb +70 -0
  207. data/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +175 -0
  208. data/lib/bundler/vendor/thor/lib/thor/parser/option.rb +146 -0
  209. data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +226 -0
  210. data/lib/bundler/vendor/thor/lib/thor/rake_compat.rb +71 -0
  211. data/lib/bundler/vendor/thor/lib/thor/runner.rb +324 -0
  212. data/lib/bundler/vendor/thor/lib/thor/shell.rb +81 -0
  213. data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +482 -0
  214. data/lib/bundler/vendor/thor/lib/thor/shell/color.rb +149 -0
  215. data/lib/bundler/vendor/thor/lib/thor/shell/html.rb +126 -0
  216. data/lib/bundler/vendor/thor/lib/thor/util.rb +268 -0
  217. data/lib/bundler/vendor/thor/lib/thor/version.rb +3 -0
  218. data/lib/bundler/vendored_fileutils.rb +9 -0
  219. data/lib/bundler/vendored_molinillo.rb +4 -0
  220. data/lib/bundler/vendored_persistent.rb +52 -0
  221. data/lib/bundler/vendored_thor.rb +8 -0
  222. data/lib/bundler/version.rb +28 -0
  223. data/lib/bundler/version_ranges.rb +76 -0
  224. data/lib/bundler/vlad.rb +17 -0
  225. data/lib/bundler/worker.rb +106 -0
  226. data/lib/bundler/yaml_serializer.rb +90 -0
  227. data/man/bundle-add.1 +58 -0
  228. data/man/bundle-add.1.txt +52 -0
  229. data/man/bundle-add.ronn +40 -0
  230. data/man/bundle-binstubs.1 +40 -0
  231. data/man/bundle-binstubs.1.txt +48 -0
  232. data/man/bundle-binstubs.ronn +43 -0
  233. data/man/bundle-check.1 +31 -0
  234. data/man/bundle-check.1.txt +33 -0
  235. data/man/bundle-check.ronn +26 -0
  236. data/man/bundle-clean.1 +24 -0
  237. data/man/bundle-clean.1.txt +26 -0
  238. data/man/bundle-clean.ronn +18 -0
  239. data/man/bundle-config.1 +497 -0
  240. data/man/bundle-config.1.txt +529 -0
  241. data/man/bundle-config.ronn +397 -0
  242. data/man/bundle-doctor.1 +44 -0
  243. data/man/bundle-doctor.1.txt +44 -0
  244. data/man/bundle-doctor.ronn +33 -0
  245. data/man/bundle-exec.1 +165 -0
  246. data/man/bundle-exec.1.txt +178 -0
  247. data/man/bundle-exec.ronn +152 -0
  248. data/man/bundle-gem.1 +80 -0
  249. data/man/bundle-gem.1.txt +91 -0
  250. data/man/bundle-gem.ronn +78 -0
  251. data/man/bundle-info.1 +20 -0
  252. data/man/bundle-info.1.txt +21 -0
  253. data/man/bundle-info.ronn +17 -0
  254. data/man/bundle-init.1 +25 -0
  255. data/man/bundle-init.1.txt +34 -0
  256. data/man/bundle-init.ronn +29 -0
  257. data/man/bundle-inject.1 +33 -0
  258. data/man/bundle-inject.1.txt +32 -0
  259. data/man/bundle-inject.ronn +22 -0
  260. data/man/bundle-install.1 +308 -0
  261. data/man/bundle-install.1.txt +396 -0
  262. data/man/bundle-install.ronn +378 -0
  263. data/man/bundle-list.1 +50 -0
  264. data/man/bundle-list.1.txt +43 -0
  265. data/man/bundle-list.ronn +33 -0
  266. data/man/bundle-lock.1 +84 -0
  267. data/man/bundle-lock.1.txt +93 -0
  268. data/man/bundle-lock.ronn +94 -0
  269. data/man/bundle-open.1 +32 -0
  270. data/man/bundle-open.1.txt +29 -0
  271. data/man/bundle-open.ronn +19 -0
  272. data/man/bundle-outdated.1 +155 -0
  273. data/man/bundle-outdated.1.txt +131 -0
  274. data/man/bundle-outdated.ronn +111 -0
  275. data/man/bundle-package.1 +55 -0
  276. data/man/bundle-package.1.txt +79 -0
  277. data/man/bundle-package.ronn +72 -0
  278. data/man/bundle-platform.1 +61 -0
  279. data/man/bundle-platform.1.txt +57 -0
  280. data/man/bundle-platform.ronn +42 -0
  281. data/man/bundle-pristine.1 +34 -0
  282. data/man/bundle-pristine.1.txt +44 -0
  283. data/man/bundle-pristine.ronn +34 -0
  284. data/man/bundle-remove.1 +31 -0
  285. data/man/bundle-remove.1.txt +34 -0
  286. data/man/bundle-remove.ronn +23 -0
  287. data/man/bundle-show.1 +23 -0
  288. data/man/bundle-show.1.txt +27 -0
  289. data/man/bundle-show.ronn +21 -0
  290. data/man/bundle-update.1 +394 -0
  291. data/man/bundle-update.1.txt +391 -0
  292. data/man/bundle-update.ronn +350 -0
  293. data/man/bundle-viz.1 +39 -0
  294. data/man/bundle-viz.1.txt +39 -0
  295. data/man/bundle-viz.ronn +30 -0
  296. data/man/bundle.1 +136 -0
  297. data/man/bundle.1.txt +116 -0
  298. data/man/bundle.ronn +111 -0
  299. data/man/gemfile.5 +689 -0
  300. data/man/gemfile.5.ronn +521 -0
  301. data/man/gemfile.5.txt +653 -0
  302. data/man/index.txt +25 -0
  303. metadata +463 -0
@@ -0,0 +1,397 @@
1
+ bundle-config(1) -- Set bundler configuration options
2
+ =====================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `bundle config` [<name> [<value>]]
7
+
8
+ ## DESCRIPTION
9
+
10
+ This command allows you to interact with Bundler's configuration system.
11
+
12
+ Bundler loads configuration settings in this order:
13
+
14
+ 1. Local config (`app/.bundle/config`)
15
+ 2. Environmental variables (`ENV`)
16
+ 3. Global config (`~/.bundle/config`)
17
+ 4. Bundler default config
18
+
19
+ Executing `bundle config` with no parameters will print a list of all
20
+ bundler configuration for the current bundle, and where that configuration
21
+ was set.
22
+
23
+ Executing `bundle config <name>` will print the value of that configuration
24
+ setting, and where it was set.
25
+
26
+ Executing `bundle config <name> <value>` will set that configuration to the
27
+ value specified for all bundles executed as the current user. The configuration
28
+ will be stored in `~/.bundle/config`. If <name> already is set, <name> will be
29
+ overridden and user will be warned.
30
+
31
+ Executing `bundle config --global <name> <value>` works the same as above.
32
+
33
+ Executing `bundle config --local <name> <value>` will set that configuration to
34
+ the local application. The configuration will be stored in `app/.bundle/config`.
35
+
36
+ Executing `bundle config --delete <name>` will delete the configuration in both
37
+ local and global sources. Not compatible with --global or --local flag.
38
+
39
+ Executing bundle with the `BUNDLE_IGNORE_CONFIG` environment variable set will
40
+ cause it to ignore all configuration.
41
+
42
+ Executing `bundle config disable_multisource true` upgrades the warning about
43
+ the Gemfile containing multiple primary sources to an error. Executing `bundle
44
+ config --delete disable_multisource` downgrades this error to a warning.
45
+
46
+ ## REMEMBERING OPTIONS
47
+
48
+ Flags passed to `bundle install` or the Bundler runtime,
49
+ such as `--path foo` or `--without production`, are not remembered between commands.
50
+ If these options must be remembered,they must be set using `bundle config`
51
+ (e.g., `bundle config path foo`).
52
+
53
+ The options that can be configured are:
54
+
55
+ * `bin`:
56
+ Creates a directory (defaults to `~/bin`) and place any executables from the
57
+ gem there. These executables run in Bundler's context. If used, you might add
58
+ this directory to your environment's `PATH` variable. For instance, if the
59
+ `rails` gem comes with a `rails` executable, this flag will create a
60
+ `bin/rails` executable that ensures that all referred dependencies will be
61
+ resolved using the bundled gems.
62
+
63
+ * `deployment`:
64
+ In deployment mode, Bundler will 'roll-out' the bundle for
65
+ `production` use. Please check carefully if you want to have this option
66
+ enabled in `development` or `test` environments.
67
+
68
+ * `path`:
69
+ The location to install the specified gems to. This defaults to Rubygems'
70
+ setting. Bundler shares this location with Rubygems, `gem install ...` will
71
+ have gem installed there, too. Therefore, gems installed without a
72
+ `--path ...` setting will show up by calling `gem list`. Accordingly, gems
73
+ installed to other locations will not get listed.
74
+
75
+ * `without`:
76
+ A space-separated list of groups referencing gems to skip during installation.
77
+
78
+ * `with`:
79
+ A space-separated list of groups referencing gems to include during installation.
80
+
81
+ ## BUILD OPTIONS
82
+
83
+ You can use `bundle config` to give Bundler the flags to pass to the gem
84
+ installer every time bundler tries to install a particular gem.
85
+
86
+ A very common example, the `mysql` gem, requires Snow Leopard users to
87
+ pass configuration flags to `gem install` to specify where to find the
88
+ `mysql_config` executable.
89
+
90
+ gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
91
+
92
+ Since the specific location of that executable can change from machine
93
+ to machine, you can specify these flags on a per-machine basis.
94
+
95
+ bundle config build.mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
96
+
97
+ After running this command, every time bundler needs to install the
98
+ `mysql` gem, it will pass along the flags you specified.
99
+
100
+ ## CONFIGURATION KEYS
101
+
102
+ Configuration keys in bundler have two forms: the canonical form and the
103
+ environment variable form.
104
+
105
+ For instance, passing the `--without` flag to [bundle install(1)](bundle-install.1.html)
106
+ prevents Bundler from installing certain groups specified in the Gemfile(5). Bundler
107
+ persists this value in `app/.bundle/config` so that calls to `Bundler.setup`
108
+ do not try to find gems from the `Gemfile` that you didn't install. Additionally,
109
+ subsequent calls to [bundle install(1)](bundle-install.1.html) remember this setting
110
+ and skip those groups.
111
+
112
+ The canonical form of this configuration is `"without"`. To convert the canonical
113
+ form to the environment variable form, capitalize it, and prepend `BUNDLE_`. The
114
+ environment variable form of `"without"` is `BUNDLE_WITHOUT`.
115
+
116
+ Any periods in the configuration keys must be replaced with two underscores when
117
+ setting it via environment variables. The configuration key `local.rack` becomes
118
+ the environment variable `BUNDLE_LOCAL__RACK`.
119
+
120
+ ## LIST OF AVAILABLE KEYS
121
+
122
+ The following is a list of all configuration keys and their purpose. You can
123
+ learn more about their operation in [bundle install(1)](bundle-install.1.html).
124
+
125
+ * `allow_bundler_dependency_conflicts` (`BUNDLE_ALLOW_BUNDLER_DEPENDENCY_CONFLICTS`):
126
+ Allow resolving to specifications that have dependencies on `bundler` that
127
+ are incompatible with the running Bundler version.
128
+ * `allow_deployment_source_credential_changes` (`BUNDLE_ALLOW_DEPLOYMENT_SOURCE_CREDENTIAL_CHANGES`):
129
+ When in deployment mode, allow changing the credentials to a gem's source.
130
+ Ex: `https://some.host.com/gems/path/` -> `https://user_name:password@some.host.com/gems/path`
131
+ * `allow_offline_install` (`BUNDLE_ALLOW_OFFLINE_INSTALL`):
132
+ Allow Bundler to use cached data when installing without network access.
133
+ * `auto_clean_without_path` (`BUNDLE_AUTO_CLEAN_WITHOUT_PATH`):
134
+ Automatically run `bundle clean` after installing when an explicit `path`
135
+ has not been set and Bundler is not installing into the system gems.
136
+ * `auto_install` (`BUNDLE_AUTO_INSTALL`):
137
+ Automatically run `bundle install` when gems are missing.
138
+ * `bin` (`BUNDLE_BIN`):
139
+ Install executables from gems in the bundle to the specified directory.
140
+ Defaults to `false`.
141
+ * `cache_all` (`BUNDLE_CACHE_ALL`):
142
+ Cache all gems, including path and git gems.
143
+ * `cache_all_platforms` (`BUNDLE_CACHE_ALL_PLATFORMS`):
144
+ Cache gems for all platforms.
145
+ * `cache_path` (`BUNDLE_CACHE_PATH`):
146
+ The directory that bundler will place cached gems in when running
147
+ <code>bundle package</code>, and that bundler will look in when installing gems.
148
+ Defaults to `vendor/bundle`.
149
+ * `clean` (`BUNDLE_CLEAN`):
150
+ Whether Bundler should run `bundle clean` automatically after
151
+ `bundle install`.
152
+ * `console` (`BUNDLE_CONSOLE`):
153
+ The console that `bundle console` starts. Defaults to `irb`.
154
+ * `default_install_uses_path` (`BUNDLE_DEFAULT_INSTALL_USES_PATH`):
155
+ Whether a `bundle install` without an explicit `--path` argument defaults
156
+ to installing gems in `.bundle`.
157
+ * `deployment` (`BUNDLE_DEPLOYMENT`):
158
+ Disallow changes to the `Gemfile`. When the `Gemfile` is changed and the
159
+ lockfile has not been updated, running Bundler commands will be blocked.
160
+ * `disable_checksum_validation` (`BUNDLE_DISABLE_CHECKSUM_VALIDATION`):
161
+ Allow installing gems even if they do not match the checksum provided by
162
+ RubyGems.
163
+ * `disable_exec_load` (`BUNDLE_DISABLE_EXEC_LOAD`):
164
+ Stop Bundler from using `load` to launch an executable in-process in
165
+ `bundle exec`.
166
+ * `disable_local_branch_check` (`BUNDLE_DISABLE_LOCAL_BRANCH_CHECK`):
167
+ Allow Bundler to use a local git override without a branch specified in the
168
+ Gemfile.
169
+ * `disable_multisource` (`BUNDLE_DISABLE_MULTISOURCE`):
170
+ When set, Gemfiles containing multiple sources will produce errors
171
+ instead of warnings.
172
+ Use `bundle config --delete disable_multisource` to unset.
173
+ * `disable_platform_warnings` (`BUNDLE_DISABLE_PLATFORM_WARNINGS`):
174
+ Disable warnings during bundle install when a dependency is unused on the current platform.
175
+ * `disable_shared_gems` (`BUNDLE_DISABLE_SHARED_GEMS`):
176
+ Stop Bundler from accessing gems installed to RubyGems' normal location.
177
+ * `disable_version_check` (`BUNDLE_DISABLE_VERSION_CHECK`):
178
+ Stop Bundler from checking if a newer Bundler version is available on
179
+ rubygems.org.
180
+ * `error_on_stderr` (`BUNDLE_ERROR_ON_STDERR`):
181
+ Print Bundler errors to stderr.
182
+ * `force_ruby_platform` (`BUNDLE_FORCE_RUBY_PLATFORM`):
183
+ Ignore the current machine's platform and install only `ruby` platform gems.
184
+ As a result, gems with native extensions will be compiled from source.
185
+ * `frozen` (`BUNDLE_FROZEN`):
186
+ Disallow changes to the `Gemfile`. When the `Gemfile` is changed and the
187
+ lockfile has not been updated, running Bundler commands will be blocked.
188
+ Defaults to `true` when `--deployment` is used.
189
+ * `gem.push_key` (`BUNDLE_GEM__PUSH_KEY`):
190
+ Sets the `--key` parameter for `gem push` when using the `rake release`
191
+ command with a private gemstash server.
192
+ * `gemfile` (`BUNDLE_GEMFILE`):
193
+ The name of the file that bundler should use as the `Gemfile`. This location
194
+ of this file also sets the root of the project, which is used to resolve
195
+ relative paths in the `Gemfile`, among other things. By default, bundler
196
+ will search up from the current working directory until it finds a
197
+ `Gemfile`.
198
+ * `global_gem_cache` (`BUNDLE_GLOBAL_GEM_CACHE`):
199
+ Whether Bundler should cache all gems globally, rather than locally to the
200
+ installing Ruby installation.
201
+ * `global_path_appends_ruby_scope` (`BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE`):
202
+ Whether Bundler should append the Ruby scope (e.g. engine and ABI version)
203
+ to a globally-configured path.
204
+ * `ignore_messages` (`BUNDLE_IGNORE_MESSAGES`): When set, no post install
205
+ messages will be printed. To silence a single gem, use dot notation like
206
+ `ignore_messages.httparty true`.
207
+ * `init_gems_rb` (`BUNDLE_INIT_GEMS_RB`)
208
+ Generate a `gems.rb` instead of a `Gemfile` when running `bundle init`.
209
+ * `jobs` (`BUNDLE_JOBS`):
210
+ The number of gems Bundler can install in parallel. Defaults to 1.
211
+ * `list_command` (`BUNDLE_LIST_COMMAND`)
212
+ Enable new list command feature
213
+ * `major_deprecations` (`BUNDLE_MAJOR_DEPRECATIONS`):
214
+ Whether Bundler should print deprecation warnings for behavior that will
215
+ be changed in the next major version.
216
+ * `no_install` (`BUNDLE_NO_INSTALL`):
217
+ Whether `bundle package` should skip installing gems.
218
+ * `no_prune` (`BUNDLE_NO_PRUNE`):
219
+ Whether Bundler should leave outdated gems unpruned when caching.
220
+ * `only_update_to_newer_versions` (`BUNDLE_ONLY_UPDATE_TO_NEWER_VERSIONS`):
221
+ During `bundle update`, only resolve to newer versions of the gems in the
222
+ lockfile.
223
+ * `path` (`BUNDLE_PATH`):
224
+ The location on disk where all gems in your bundle will be located regardless
225
+ of `$GEM_HOME` or `$GEM_PATH` values. Bundle gems not found in this location
226
+ will be installed by `bundle install`. Defaults to `Gem.dir`. When --deployment
227
+ is used, defaults to vendor/bundle.
228
+ * `path.system` (`BUNDLE_PATH__SYSTEM`):
229
+ Whether Bundler will install gems into the default system path (`Gem.dir`).
230
+ * `path_relative_to_cwd` (`BUNDLE_PATH_RELATIVE_TO_CWD`)
231
+ Makes `--path` relative to the CWD instead of the `Gemfile`.
232
+ * `plugins` (`BUNDLE_PLUGINS`):
233
+ Enable Bundler's experimental plugin system.
234
+ * `prefer_gems_rb` (`BUNDLE_PREFER_GEMS_RB`)
235
+ Prefer `gems.rb` to `Gemfile` when Bundler is searching for a Gemfile.
236
+ * `print_only_version_number` (`BUNDLE_PRINT_ONLY_VERSION_NUMBER`)
237
+ Print only version number from `bundler --version`.
238
+ * `redirect` (`BUNDLE_REDIRECT`):
239
+ The number of redirects allowed for network requests. Defaults to `5`.
240
+ * `retry` (`BUNDLE_RETRY`):
241
+ The number of times to retry failed network requests. Defaults to `3`.
242
+ * `setup_makes_kernel_gem_public` (`BUNDLE_SETUP_MAKES_KERNEL_GEM_PUBLIC`):
243
+ Have `Bundler.setup` make the `Kernel#gem` method public, even though
244
+ RubyGems declares it as private.
245
+ * `shebang` (`BUNDLE_SHEBANG`):
246
+ The program name that should be invoked for generated binstubs. Defaults to
247
+ the ruby install name used to generate the binstub.
248
+ * `silence_root_warning` (`BUNDLE_SILENCE_ROOT_WARNING`):
249
+ Silence the warning Bundler prints when installing gems as root.
250
+ * `skip_default_git_sources` (`BUNDLE_SKIP_DEFAULT_GIT_SOURCES`):
251
+ Whether Bundler should skip adding default git source shortcuts to the
252
+ Gemfile DSL.
253
+ * `specific_platform` (`BUNDLE_SPECIFIC_PLATFORM`):
254
+ Allow bundler to resolve for the specific running platform and store it in
255
+ the lockfile, instead of only using a generic platform.
256
+ A specific platform is the exact platform triple reported by
257
+ `Gem::Platform.local`, such as `x86_64-darwin-16` or `universal-java-1.8`.
258
+ On the other hand, generic platforms are those such as `ruby`, `mswin`, or
259
+ `java`. In this example, `x86_64-darwin-16` would map to `ruby` and
260
+ `universal-java-1.8` to `java`.
261
+ * `ssl_ca_cert` (`BUNDLE_SSL_CA_CERT`):
262
+ Path to a designated CA certificate file or folder containing multiple
263
+ certificates for trusted CAs in PEM format.
264
+ * `ssl_client_cert` (`BUNDLE_SSL_CLIENT_CERT`):
265
+ Path to a designated file containing a X.509 client certificate
266
+ and key in PEM format.
267
+ * `ssl_verify_mode` (`BUNDLE_SSL_VERIFY_MODE`):
268
+ The SSL verification mode Bundler uses when making HTTPS requests.
269
+ Defaults to verify peer.
270
+ * `suppress_install_using_messages` (`BUNDLE_SUPPRESS_INSTALL_USING_MESSAGES`):
271
+ Avoid printing `Using ...` messages during installation when the version of
272
+ a gem has not changed.
273
+ * `system_bindir` (`BUNDLE_SYSTEM_BINDIR`):
274
+ The location where RubyGems installs binstubs. Defaults to `Gem.bindir`.
275
+ * `timeout` (`BUNDLE_TIMEOUT`):
276
+ The seconds allowed before timing out for network requests. Defaults to `10`.
277
+ * `unlock_source_unlocks_spec` (`BUNDLE_UNLOCK_SOURCE_UNLOCKS_SPEC`):
278
+ Whether running `bundle update --source NAME` unlocks a gem with the given
279
+ name. Defaults to `true`.
280
+ * `update_requires_all_flag` (`BUNDLE_UPDATE_REQUIRES_ALL_FLAG`)
281
+ Require passing `--all` to `bundle update` when everything should be updated,
282
+ and disallow passing no options to `bundle update`.
283
+ * `user_agent` (`BUNDLE_USER_AGENT`):
284
+ The custom user agent fragment Bundler includes in API requests.
285
+ * `with` (`BUNDLE_WITH`):
286
+ A `:`-separated list of groups whose gems bundler should install.
287
+ * `without` (`BUNDLE_WITHOUT`):
288
+ A `:`-separated list of groups whose gems bundler should not install.
289
+
290
+ In general, you should set these settings per-application by using the applicable
291
+ flag to the [bundle install(1)](bundle-install.1.html) or [bundle package(1)](bundle-package.1.html) command.
292
+
293
+ You can set them globally either via environment variables or `bundle config`,
294
+ whichever is preferable for your setup. If you use both, environment variables
295
+ will take preference over global settings.
296
+
297
+ ## LOCAL GIT REPOS
298
+
299
+ Bundler also allows you to work against a git repository locally
300
+ instead of using the remote version. This can be achieved by setting
301
+ up a local override:
302
+
303
+ bundle config local.GEM_NAME /path/to/local/git/repository
304
+
305
+ For example, in order to use a local Rack repository, a developer could call:
306
+
307
+ bundle config local.rack ~/Work/git/rack
308
+
309
+ Now instead of checking out the remote git repository, the local
310
+ override will be used. Similar to a path source, every time the local
311
+ git repository change, changes will be automatically picked up by
312
+ Bundler. This means a commit in the local git repo will update the
313
+ revision in the `Gemfile.lock` to the local git repo revision. This
314
+ requires the same attention as git submodules. Before pushing to
315
+ the remote, you need to ensure the local override was pushed, otherwise
316
+ you may point to a commit that only exists in your local machine.
317
+ You'll also need to CGI escape your usernames and passwords as well.
318
+
319
+ Bundler does many checks to ensure a developer won't work with
320
+ invalid references. Particularly, we force a developer to specify
321
+ a branch in the `Gemfile` in order to use this feature. If the branch
322
+ specified in the `Gemfile` and the current branch in the local git
323
+ repository do not match, Bundler will abort. This ensures that
324
+ a developer is always working against the correct branches, and prevents
325
+ accidental locking to a different branch.
326
+
327
+ Finally, Bundler also ensures that the current revision in the
328
+ `Gemfile.lock` exists in the local git repository. By doing this, Bundler
329
+ forces you to fetch the latest changes in the remotes.
330
+
331
+ ## MIRRORS OF GEM SOURCES
332
+
333
+ Bundler supports overriding gem sources with mirrors. This allows you to
334
+ configure rubygems.org as the gem source in your Gemfile while still using your
335
+ mirror to fetch gems.
336
+
337
+ bundle config mirror.SOURCE_URL MIRROR_URL
338
+
339
+ For example, to use a mirror of rubygems.org hosted at rubygems-mirror.org:
340
+
341
+ bundle config mirror.http://rubygems.org http://rubygems-mirror.org
342
+
343
+ Each mirror also provides a fallback timeout setting. If the mirror does not
344
+ respond within the fallback timeout, Bundler will try to use the original
345
+ server instead of the mirror.
346
+
347
+ bundle config mirror.SOURCE_URL.fallback_timeout TIMEOUT
348
+
349
+ For example, to fall back to rubygems.org after 3 seconds:
350
+
351
+ bundle config mirror.https://rubygems.org.fallback_timeout 3
352
+
353
+ The default fallback timeout is 0.1 seconds, but the setting can currently
354
+ only accept whole seconds (for example, 1, 15, or 30).
355
+
356
+ ## CREDENTIALS FOR GEM SOURCES
357
+
358
+ Bundler allows you to configure credentials for any gem source, which allows
359
+ you to avoid putting secrets into your Gemfile.
360
+
361
+ bundle config SOURCE_HOSTNAME USERNAME:PASSWORD
362
+
363
+ For example, to save the credentials of user `claudette` for the gem source at
364
+ `gems.longerous.com`, you would run:
365
+
366
+ bundle config gems.longerous.com claudette:s00pers3krit
367
+
368
+ Or you can set the credentials as an environment variable like this:
369
+
370
+ export BUNDLE_GEMS__LONGEROUS__COM="claudette:s00pers3krit"
371
+
372
+ For gems with a git source with HTTP(S) URL you can specify credentials like so:
373
+
374
+ bundle config https://github.com/bundler/bundler.git username:password
375
+
376
+ Or you can set the credentials as an environment variable like so:
377
+
378
+ export BUNDLE_GITHUB__COM=username:password
379
+
380
+ This is especially useful for private repositories on hosts such as Github,
381
+ where you can use personal OAuth tokens:
382
+
383
+ export BUNDLE_GITHUB__COM=abcd0123generatedtoken:x-oauth-basic
384
+
385
+
386
+ ## CONFIGURE BUNDLER DIRECTORIES
387
+
388
+ Bundler's home, config, cache and plugin directories are able to be configured
389
+ through environment variables. The default location for Bundler's home directory is
390
+ `~/.bundle`, which all directories inherit from by default. The following
391
+ outlines the available environment variables and their default values
392
+
393
+ BUNDLE_USER_HOME : $HOME/.bundle
394
+ BUNDLE_USER_CACHE : $BUNDLE_USER_HOME/cache
395
+ BUNDLE_USER_CONFIG : $BUNDLE_USER_HOME/config
396
+ BUNDLE_USER_PLUGIN : $BUNDLE_USER_HOME/plugin
397
+
@@ -0,0 +1,44 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "BUNDLE\-DOCTOR" "1" "June 2019" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBbundle\-doctor\fR \- Checks the bundle for common problems
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBbundle doctor\fR [\-\-quiet] [\-\-gemfile=GEMFILE]
11
+ .
12
+ .SH "DESCRIPTION"
13
+ Checks your Gemfile and gem environment for common problems\. If issues are detected, Bundler prints them and exits status 1\. Otherwise, Bundler prints a success message and exits status 0\.
14
+ .
15
+ .P
16
+ Examples of common problems caught by bundle\-doctor include:
17
+ .
18
+ .IP "\(bu" 4
19
+ Invalid Bundler settings
20
+ .
21
+ .IP "\(bu" 4
22
+ Mismatched Ruby versions
23
+ .
24
+ .IP "\(bu" 4
25
+ Mismatched platforms
26
+ .
27
+ .IP "\(bu" 4
28
+ Uninstalled gems
29
+ .
30
+ .IP "\(bu" 4
31
+ Missing dependencies
32
+ .
33
+ .IP "" 0
34
+ .
35
+ .SH "OPTIONS"
36
+ .
37
+ .TP
38
+ \fB\-\-quiet\fR
39
+ Only output warnings and errors\.
40
+ .
41
+ .TP
42
+ \fB\-\-gemfile=<gemfile>\fR
43
+ The location of the Gemfile(5) which Bundler should use\. This defaults to a Gemfile(5) in the current working directory\. In general, Bundler will assume that the location of the Gemfile(5) is also the project\'s root and will try to find \fBGemfile\.lock\fR and \fBvendor/cache\fR relative to this location\.
44
+
@@ -0,0 +1,44 @@
1
+ BUNDLE-DOCTOR(1) BUNDLE-DOCTOR(1)
2
+
3
+
4
+
5
+ NAME
6
+ bundle-doctor - Checks the bundle for common problems
7
+
8
+ SYNOPSIS
9
+ bundle doctor [--quiet] [--gemfile=GEMFILE]
10
+
11
+ DESCRIPTION
12
+ Checks your Gemfile and gem environment for common problems. If issues
13
+ are detected, Bundler prints them and exits status 1. Otherwise,
14
+ Bundler prints a success message and exits status 0.
15
+
16
+ Examples of common problems caught by bundle-doctor include:
17
+
18
+ o Invalid Bundler settings
19
+
20
+ o Mismatched Ruby versions
21
+
22
+ o Mismatched platforms
23
+
24
+ o Uninstalled gems
25
+
26
+ o Missing dependencies
27
+
28
+
29
+
30
+ OPTIONS
31
+ --quiet
32
+ Only output warnings and errors.
33
+
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.
40
+
41
+
42
+
43
+
44
+ June 2019 BUNDLE-DOCTOR(1)