bundler 1.15.4 → 1.16.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bundler might be problematic. Click here for more details.

Files changed (251) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +43 -0
  3. data/README.md +12 -7
  4. data/exe/bundle +1 -1
  5. data/exe/bundle_ruby +4 -3
  6. data/lib/bundler.rb +47 -37
  7. data/lib/bundler/build_metadata.rb +38 -0
  8. data/lib/bundler/capistrano.rb +5 -0
  9. data/lib/bundler/cli.rb +155 -67
  10. data/lib/bundler/cli/add.rb +0 -1
  11. data/lib/bundler/cli/binstubs.rb +9 -7
  12. data/lib/bundler/cli/cache.rb +5 -4
  13. data/lib/bundler/cli/check.rb +3 -5
  14. data/lib/bundler/cli/clean.rb +5 -6
  15. data/lib/bundler/cli/common.rb +11 -2
  16. data/lib/bundler/cli/config.rb +2 -1
  17. data/lib/bundler/cli/console.rb +2 -1
  18. data/lib/bundler/cli/doctor.rb +1 -0
  19. data/lib/bundler/cli/exec.rb +2 -1
  20. data/lib/bundler/cli/gem.rb +3 -2
  21. data/lib/bundler/cli/info.rb +0 -1
  22. data/lib/bundler/cli/init.rb +17 -6
  23. data/lib/bundler/cli/inject.rb +1 -0
  24. data/lib/bundler/cli/install.rb +61 -61
  25. data/lib/bundler/cli/issue.rb +1 -1
  26. data/lib/bundler/cli/list.rb +22 -0
  27. data/lib/bundler/cli/lock.rb +0 -1
  28. data/lib/bundler/cli/open.rb +2 -2
  29. data/lib/bundler/cli/outdated.rb +13 -8
  30. data/lib/bundler/cli/package.rb +9 -6
  31. data/lib/bundler/cli/platform.rb +1 -0
  32. data/lib/bundler/cli/plugin.rb +1 -0
  33. data/lib/bundler/cli/pristine.rb +9 -2
  34. data/lib/bundler/cli/show.rb +0 -1
  35. data/lib/bundler/cli/update.rb +31 -5
  36. data/lib/bundler/cli/viz.rb +1 -0
  37. data/lib/bundler/compact_index_client.rb +1 -0
  38. data/lib/bundler/compact_index_client/cache.rb +1 -0
  39. data/lib/bundler/compact_index_client/updater.rb +3 -2
  40. data/lib/bundler/compatibility_guard.rb +14 -0
  41. data/lib/bundler/constants.rb +1 -0
  42. data/lib/bundler/current_ruby.rb +5 -4
  43. data/lib/bundler/definition.rb +140 -95
  44. data/lib/bundler/dep_proxy.rb +2 -0
  45. data/lib/bundler/dependency.rb +6 -7
  46. data/lib/bundler/deployment.rb +1 -1
  47. data/lib/bundler/deprecate.rb +1 -0
  48. data/lib/bundler/dsl.rb +97 -62
  49. data/lib/bundler/endpoint_specification.rb +9 -0
  50. data/lib/bundler/env.rb +63 -27
  51. data/lib/bundler/environment_preserver.rb +26 -6
  52. data/lib/bundler/errors.rb +1 -0
  53. data/lib/bundler/feature_flag.rb +39 -4
  54. data/lib/bundler/fetcher.rb +15 -8
  55. data/lib/bundler/fetcher/base.rb +1 -0
  56. data/lib/bundler/fetcher/compact_index.rb +2 -11
  57. data/lib/bundler/fetcher/dependency.rb +1 -0
  58. data/lib/bundler/fetcher/downloader.rb +1 -0
  59. data/lib/bundler/fetcher/index.rb +1 -0
  60. data/lib/bundler/friendly_errors.rb +2 -1
  61. data/lib/bundler/gem_helper.rb +14 -9
  62. data/lib/bundler/gem_helpers.rb +1 -0
  63. data/lib/bundler/gem_remote_fetcher.rb +1 -0
  64. data/lib/bundler/gem_tasks.rb +1 -0
  65. data/lib/bundler/gem_version_promoter.rb +1 -0
  66. data/lib/bundler/gemdeps.rb +1 -0
  67. data/lib/bundler/graph.rb +1 -0
  68. data/lib/bundler/index.rb +15 -8
  69. data/lib/bundler/injector.rb +25 -22
  70. data/lib/bundler/inline.rb +5 -7
  71. data/lib/bundler/installer.rb +93 -45
  72. data/lib/bundler/installer/gem_installer.rb +2 -0
  73. data/lib/bundler/installer/parallel_installer.rb +73 -42
  74. data/lib/bundler/installer/standalone.rb +1 -0
  75. data/lib/bundler/lazy_specification.rb +2 -1
  76. data/lib/bundler/lockfile_generator.rb +95 -0
  77. data/lib/bundler/lockfile_parser.rb +10 -4
  78. data/lib/bundler/match_platform.rb +1 -0
  79. data/lib/bundler/mirror.rb +6 -3
  80. data/lib/bundler/plugin.rb +1 -0
  81. data/lib/bundler/plugin/api/source.rb +8 -0
  82. data/lib/bundler/plugin/installer.rb +7 -6
  83. data/lib/bundler/plugin/source_list.rb +7 -8
  84. data/lib/bundler/process_lock.rb +24 -0
  85. data/lib/bundler/psyched_yaml.rb +1 -0
  86. data/lib/bundler/remote_specification.rb +1 -0
  87. data/lib/bundler/resolver.rb +138 -191
  88. data/lib/bundler/resolver/spec_group.rb +111 -0
  89. data/lib/bundler/retry.rb +1 -0
  90. data/lib/bundler/ruby_dsl.rb +1 -0
  91. data/lib/bundler/ruby_version.rb +1 -0
  92. data/lib/bundler/rubygems_ext.rb +5 -4
  93. data/lib/bundler/rubygems_gem_installer.rb +23 -0
  94. data/lib/bundler/rubygems_integration.rb +56 -27
  95. data/lib/bundler/runtime.rb +3 -5
  96. data/lib/bundler/settings.rb +177 -76
  97. data/lib/bundler/settings/validator.rb +79 -0
  98. data/lib/bundler/setup.rb +1 -0
  99. data/lib/bundler/shared_helpers.rb +86 -26
  100. data/lib/bundler/similarity_detector.rb +1 -0
  101. data/lib/bundler/source.rb +32 -0
  102. data/lib/bundler/source/gemspec.rb +1 -0
  103. data/lib/bundler/source/git.rb +21 -16
  104. data/lib/bundler/source/git/git_proxy.rb +14 -10
  105. data/lib/bundler/source/metadata.rb +63 -0
  106. data/lib/bundler/source/path.rb +8 -8
  107. data/lib/bundler/source/path/installer.rb +2 -0
  108. data/lib/bundler/source/rubygems.rb +131 -84
  109. data/lib/bundler/source/rubygems/remote.rb +3 -0
  110. data/lib/bundler/source_list.rb +75 -15
  111. data/lib/bundler/spec_set.rb +2 -1
  112. data/lib/bundler/ssl_certs/certificate_manager.rb +2 -1
  113. data/lib/bundler/stub_specification.rb +1 -0
  114. data/lib/bundler/templates/Executable +4 -0
  115. data/lib/bundler/templates/Executable.bundler +105 -0
  116. data/lib/bundler/templates/Gemfile +1 -0
  117. data/lib/bundler/templates/gems.rb +8 -0
  118. data/lib/bundler/templates/newgem/README.md.tt +1 -1
  119. data/lib/bundler/templates/newgem/gitignore.tt +0 -1
  120. data/lib/bundler/templates/newgem/newgem.gemspec.tt +4 -1
  121. data/lib/bundler/templates/newgem/rspec.tt +1 -0
  122. data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -2
  123. data/lib/bundler/ui.rb +1 -0
  124. data/lib/bundler/ui/rg_proxy.rb +1 -0
  125. data/lib/bundler/ui/shell.rb +15 -4
  126. data/lib/bundler/ui/silent.rb +1 -0
  127. data/lib/bundler/uri_credentials_filter.rb +1 -0
  128. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1638 -0
  129. data/lib/bundler/vendor/molinillo/lib/molinillo.rb +2 -0
  130. data/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
  131. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +7 -0
  132. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +1 -0
  133. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +3 -2
  134. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +1 -0
  135. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +1 -0
  136. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -0
  137. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -0
  138. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -0
  139. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +1 -0
  140. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -0
  141. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -0
  142. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +3 -2
  143. data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +69 -6
  144. data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +2 -1
  145. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +1 -0
  146. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +3 -1
  147. data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +487 -148
  148. data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +1 -0
  149. data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +8 -4
  150. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +1 -1
  151. data/lib/bundler/vendored_fileutils.rb +9 -0
  152. data/lib/bundler/vendored_molinillo.rb +1 -0
  153. data/lib/bundler/vendored_persistent.rb +34 -0
  154. data/lib/bundler/vendored_thor.rb +1 -0
  155. data/lib/bundler/version.rb +6 -2
  156. data/lib/bundler/version_ranges.rb +1 -0
  157. data/lib/bundler/vlad.rb +5 -0
  158. data/lib/bundler/worker.rb +1 -0
  159. data/lib/bundler/yaml_serializer.rb +3 -3
  160. data/man/bundle-add.1 +43 -0
  161. data/man/bundle-add.1.txt +40 -0
  162. data/man/bundle-binstubs.1 +40 -0
  163. data/man/bundle-binstubs.1.txt +48 -0
  164. data/man/bundle-binstubs.ronn +14 -0
  165. data/man/bundle-check.1 +31 -0
  166. data/man/bundle-check.1.txt +32 -0
  167. data/man/bundle-clean.1 +24 -0
  168. data/man/bundle-clean.1.txt +26 -0
  169. data/man/bundle-config.1 +455 -0
  170. data/man/bundle-config.1.txt +491 -0
  171. data/man/bundle-config.ronn +133 -79
  172. data/man/bundle-exec.1 +165 -0
  173. data/man/bundle-exec.1.txt +178 -0
  174. data/man/bundle-exec.ronn +7 -0
  175. data/man/bundle-gem.1 +80 -0
  176. data/man/bundle-gem.1.txt +91 -0
  177. data/man/bundle-gem.ronn +2 -1
  178. data/man/bundle-info.1 +20 -0
  179. data/man/bundle-info.1.txt +21 -0
  180. data/man/bundle-init.1 +20 -0
  181. data/man/bundle-init.1.txt +24 -0
  182. data/man/bundle-inject.1 +33 -0
  183. data/man/bundle-inject.1.txt +32 -0
  184. data/man/bundle-install.1 +305 -0
  185. data/man/bundle-install.1.txt +385 -0
  186. data/man/bundle-install.ronn +32 -32
  187. data/man/bundle-list.1 +20 -0
  188. data/man/bundle-list.1.txt +21 -0
  189. data/man/bundle-list.ronn +15 -0
  190. data/man/bundle-lock.1 +84 -0
  191. data/man/bundle-lock.1.txt +93 -0
  192. data/man/bundle-open.1 +32 -0
  193. data/man/bundle-open.1.txt +29 -0
  194. data/man/bundle-outdated.1 +151 -0
  195. data/man/bundle-outdated.1.txt +127 -0
  196. data/man/bundle-outdated.ronn +1 -1
  197. data/man/bundle-package.1 +55 -0
  198. data/man/bundle-package.1.txt +79 -0
  199. data/man/bundle-package.ronn +5 -0
  200. data/man/bundle-platform.1 +61 -0
  201. data/man/bundle-platform.1.txt +57 -0
  202. data/man/bundle-pristine.1 +34 -0
  203. data/man/bundle-pristine.1.txt +44 -0
  204. data/man/bundle-pristine.ronn +24 -3
  205. data/man/bundle-show.1 +23 -0
  206. data/man/bundle-show.1.txt +25 -0
  207. data/man/bundle-update.1 +390 -0
  208. data/man/bundle-update.1.txt +386 -0
  209. data/man/bundle-update.ronn +2 -2
  210. data/man/bundle-viz.1 +39 -0
  211. data/man/bundle-viz.1.txt +38 -0
  212. data/man/bundle-viz.ronn +5 -5
  213. data/man/bundle.1 +132 -0
  214. data/man/bundle.1.txt +113 -0
  215. data/man/bundle.ronn +5 -2
  216. data/man/gemfile.5 +679 -0
  217. data/man/gemfile.5.ronn +31 -0
  218. data/man/gemfile.5.txt +636 -0
  219. data/man/index.txt +23 -0
  220. metadata +21 -36
  221. data/.codeclimate.yml +0 -25
  222. data/.gitignore +0 -18
  223. data/.rspec +0 -3
  224. data/.rubocop.yml +0 -131
  225. data/.rubocop_todo.yml +0 -418
  226. data/.travis.yml +0 -122
  227. data/CODE_OF_CONDUCT.md +0 -42
  228. data/CONTRIBUTING.md +0 -17
  229. data/Rakefile +0 -338
  230. data/bin/rake +0 -19
  231. data/bin/rspec +0 -15
  232. data/bin/rubocop +0 -17
  233. data/bin/with_rubygems +0 -39
  234. data/bundler.gemspec +0 -48
  235. data/doc/README.md +0 -30
  236. data/doc/TROUBLESHOOTING.md +0 -64
  237. data/doc/contributing/BUG_TRIAGE.md +0 -36
  238. data/doc/contributing/COMMUNITY.md +0 -13
  239. data/doc/contributing/GETTING_HELP.md +0 -11
  240. data/doc/contributing/HOW_YOU_CAN_HELP.md +0 -27
  241. data/doc/contributing/ISSUES.md +0 -51
  242. data/doc/contributing/README.md +0 -38
  243. data/doc/development/NEW_FEATURES.md +0 -10
  244. data/doc/development/PULL_REQUESTS.md +0 -40
  245. data/doc/development/README.md +0 -19
  246. data/doc/development/RELEASING.md +0 -9
  247. data/doc/development/SETUP.md +0 -27
  248. data/doc/documentation/README.md +0 -29
  249. data/doc/documentation/VISION.md +0 -26
  250. data/doc/documentation/WRITING.md +0 -54
  251. data/task/release.rake +0 -116
@@ -0,0 +1,491 @@
1
+ BUNDLE-CONFIG(1) BUNDLE-CONFIG(1)
2
+
3
+
4
+
5
+ 1mNAME0m
6
+ 1mbundle-config 22m- Set bundler configuration options
7
+
8
+ 1mSYNOPSIS0m
9
+ 1mbundle config 22m[4mname24m [4mvalue24m]]
10
+
11
+ 1mDESCRIPTION0m
12
+ This command allows you to interact with bundler's configuration sys-
13
+ tem. Bundler retrieves its configuration from the local application
14
+ (1mapp/.bundle/config22m), environment variables, and the user's home direc-
15
+ tory (1m~/.bundle/config22m), in that order of priority.
16
+
17
+ Executing 1mbundle config 22mwith no parameters will print a list of all
18
+ bundler configuration for the current bundle, and where that configura-
19
+ tion was set.
20
+
21
+ Executing 1mbundle config <name> 22mwill print the value of that configura-
22
+ tion setting, and where it was set.
23
+
24
+ Executing 1mbundle config <name> <value> 22mwill set that configuration to
25
+ the value specified for all bundles executed as the current user. The
26
+ configuration will be stored in 1m~/.bundle/config22m. If 4mname24m already is
27
+ set, 4mname24m will be overridden and user will be warned.
28
+
29
+ Executing 1mbundle config --global <name> <value> 22mworks the same as
30
+ above.
31
+
32
+ Executing 1mbundle config --local <name> <value> 22mwill set that configura-
33
+ tion to the local application. The configuration will be stored in
34
+ 1mapp/.bundle/config22m.
35
+
36
+ Executing 1mbundle config --delete <name> 22mwill delete the configuration
37
+ in both local and global sources. Not compatible with --global or
38
+ --local flag.
39
+
40
+ Executing bundle with the 1mBUNDLE_IGNORE_CONFIG 22menvironment variable set
41
+ will cause it to ignore all configuration.
42
+
43
+ Executing 1mbundle config disable_multisource true 22mupgrades the warning
44
+ about the Gemfile containing multiple primary sources to an error. Exe-
45
+ cuting 1mbundle config --delete disable_multisource 22mdowngrades this error
46
+ to a warning.
47
+
48
+ 1mREMEMBERING OPTIONS0m
49
+ Flags passed to 1mbundle install 22mor the Bundler runtime, such as 1m--path0m
50
+ 1mfoo 22mor 1m--without production22m, are not remembered between commands. If
51
+ these options must be remembered,they must be set using 1mbundle config0m
52
+ (e.g., 1mbundle config path foo22m).
53
+
54
+ The options that can be configured are:
55
+
56
+ 1mbin 22mCreates a directory (defaults to 1m~/bin22m) and place any executa-
57
+ bles from the gem there. These executables run in Bundler's con-
58
+ text. If used, you might add this directory to your environ-
59
+ ment's 1mPATH 22mvariable. For instance, if the 1mrails 22mgem comes with
60
+ a 1mrails 22mexecutable, this flag will create a 1mbin/rails 22mexecutable
61
+ that ensures that all referred dependencies will be resolved
62
+ using the bundled gems.
63
+
64
+ 1mdeployment0m
65
+ In deployment mode, Bundler will 'roll-out' the bundle for 1mpro-0m
66
+ 1mduction 22muse. Please check carefully if you want to have this
67
+ option enabled in 1mdevelopment 22mor 1mtest 22menvironments.
68
+
69
+ 1mpath 22mThe location to install the specified gems to. This defaults to
70
+ Rubygems' setting. Bundler shares this location with Rubygems,
71
+ 1mgem install ... 22mwill have gem installed there, too. Therefore,
72
+ gems installed without a 1m--path ... 22msetting will show up by
73
+ calling 1mgem list22m. Accordingly, gems installed to other locations
74
+ will not get listed.
75
+
76
+ 1mwithout0m
77
+ A space-separated list of groups referencing gems to skip during
78
+ installation.
79
+
80
+ 1mwith 22mA space-separated list of groups referencing gems to include
81
+ during installation.
82
+
83
+ 1mBUILD OPTIONS0m
84
+ You can use 1mbundle config 22mto give bundler the flags to pass to the gem
85
+ installer every time bundler tries to install a particular gem.
86
+
87
+ A very common example, the 1mmysql 22mgem, requires Snow Leopard users to
88
+ pass configuration flags to 1mgem install 22mto specify where to find the
89
+ 1mmysql_config 22mexecutable.
90
+
91
+
92
+
93
+ gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
94
+
95
+
96
+
97
+ Since the specific location of that executable can change from machine
98
+ to machine, you can specify these flags on a per-machine basis.
99
+
100
+
101
+
102
+ bundle config build.mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
103
+
104
+
105
+
106
+ After running this command, every time bundler needs to install the
107
+ 1mmysql 22mgem, it will pass along the flags you specified.
108
+
109
+ 1mCONFIGURATION KEYS0m
110
+ Configuration keys in bundler have two forms: the canonical form and
111
+ the environment variable form.
112
+
113
+ For instance, passing the 1m--without 22mflag to [bundle install(1)][bun-
114
+ dle-install] prevents Bundler from installing certain groups specified
115
+ in the Gemfile(5). Bundler persists this value in 1mapp/.bundle/config 22mso
116
+ that calls to 1mBundler.setup 22mdo not try to find gems from the 1mGemfile0m
117
+ that you didn't install. Additionally, subsequent calls to [bundle
118
+ install(1)][bundle-install] remember this setting and skip those
119
+ groups.
120
+
121
+ The canonical form of this configuration is 1m"without"22m. To convert the
122
+ canonical form to the environment variable form, capitalize it, and
123
+ prepend 1mBUNDLE_22m. The environment variable form of 1m"without" 22mis 1mBUN-0m
124
+ 1mDLE_WITHOUT22m.
125
+
126
+ Any periods in the configuration keys must be replaced with two under-
127
+ scores when setting it via environment variables. The configuration key
128
+ 1mlocal.rack 22mbecomes the environment variable 1mBUNDLE_LOCAL__RACK22m.
129
+
130
+ 1mLIST OF AVAILABLE KEYS0m
131
+ The following is a list of all configuration keys and their purpose.
132
+ You can learn more about their operation in [bundle install(1)][bun-
133
+ dle-install].
134
+
135
+ o 1mallow_bundler_dependency_conflicts 22m(1mBUNDLE_ALLOW_BUNDLER_DEPEN-0m
136
+ 1mDENCY_CONFLICTS22m): Allow resolving to specifications that have
137
+ dependencies on 1mbundler 22mthat are incompatible with the running
138
+ Bundler version.
139
+
140
+ o 1mallow_deployment_source_credential_changes 22m(1mBUNDLE_ALLOW_DEPLOY-0m
141
+ 1mMENT_SOURCE_CREDENTIAL_CHANGES22m): When in deployment mode, allow
142
+ changing the credentials to a gem's source. Ex:
143
+ 1mhttps://some.host.com/gems/path/ 22m-> 1mhttps://user_name:pass-0m
144
+ 1mword@some.host.com/gems/path0m
145
+
146
+ o 1mallow_offline_install 22m(1mBUNDLE_ALLOW_OFFLINE_INSTALL22m): Allow Bundler
147
+ to use cached data when installing without network access.
148
+
149
+ o 1mauto_clean_without_path 22m(1mBUNDLE_AUTO_CLEAN_WITHOUT_PATH22m): Automati-
150
+ cally run 1mbundle clean 22mafter installing when an explicit 1mpath 22mhas
151
+ not been set and Bundler is not installing into the system gems.
152
+
153
+ o 1mauto_install 22m(1mBUNDLE_AUTO_INSTALL22m): Automatically run 1mbundle0m
154
+ 1minstall 22mwhen gems are missing.
155
+
156
+ o 1mbin 22m(1mBUNDLE_BIN22m): Install executables from gems in the bundle to
157
+ the specified directory. Defaults to 1mfalse22m.
158
+
159
+ o 1mcache_all 22m(1mBUNDLE_CACHE_ALL22m): Cache all gems, including path and
160
+ git gems.
161
+
162
+ o 1mcache_all_platforms 22m(1mBUNDLE_CACHE_ALL_PLATFORMS22m): Cache gems for
163
+ all platforms.
164
+
165
+ o 1mcache_path 22m(1mBUNDLE_CACHE_PATH22m): The directory that bundler will
166
+ place cached gems in when running 1mbundle package22m, and that bundler
167
+ will look in when installing gems. Defaults to 1mvendor/bundle22m.
168
+
169
+ o 1mclean 22m(1mBUNDLE_CLEAN22m): Whether Bundler should run 1mbundle clean 22mauto-
170
+ matically after 1mbundle install22m.
171
+
172
+ o 1mconsole 22m(1mBUNDLE_CONSOLE22m): The console that 1mbundle console 22mstarts.
173
+ Defaults to 1mirb22m.
174
+
175
+ o 1mdefault_install_uses_path 22m(1mBUNDLE_DEFAULT_INSTALL_USES_PATH22m):
176
+ Whether a 1mbundle install 22mwithout an explicit 1m--path 22margument
177
+ defaults to installing gems in 1m.bundle22m.
178
+
179
+ o 1mdeployment 22m(1mBUNDLE_DEPLOYMENT22m): Disallow changes to the 1mGemfile22m.
180
+ When the 1mGemfile 22mis changed and the lockfile has not been updated,
181
+ running Bundler commands will be blocked.
182
+
183
+ o 1mdisable_checksum_validation 22m(1mBUNDLE_DISABLE_CHECKSUM_VALIDATION22m):
184
+ Allow installing gems even if they do not match the checksum pro-
185
+ vided by RubyGems.
186
+
187
+ o 1mdisable_exec_load 22m(1mBUNDLE_DISABLE_EXEC_LOAD22m): Stop Bundler from
188
+ using 1mload 22mto launch an executable in-process in 1mbundle exec22m.
189
+
190
+ o 1mdisable_local_branch_check 22m(1mBUNDLE_DISABLE_LOCAL_BRANCH_CHECK22m):
191
+ Allow Bundler to use a local git override without a branch speci-
192
+ fied in the Gemfile.
193
+
194
+ o 1mdisable_multisource 22m(1mBUNDLE_DISABLE_MULTISOURCE22m): When set, Gem-
195
+ files containing multiple sources will produce errors instead of
196
+ warnings. Use 1mbundle config --delete disable_multisource 22mto unset.
197
+
198
+ o 1mdisable_shared_gems 22m(1mBUNDLE_DISABLE_SHARED_GEMS22m): Stop Bundler from
199
+ accessing gems installed to RubyGems' normal location.
200
+
201
+ o 1mdisable_version_check 22m(1mBUNDLE_DISABLE_VERSION_CHECK22m): Stop Bundler
202
+ from checking if a newer Bundler version is available on
203
+ rubygems.org.
204
+
205
+ o 1merror_on_stderr 22m(1mBUNDLE_ERROR_ON_STDERR22m): Print Bundler errors to
206
+ stderr.
207
+
208
+ o 1mforce_ruby_platform 22m(1mBUNDLE_FORCE_RUBY_PLATFORM22m): Ignore the cur-
209
+ rent machine's platform and install only 1mruby 22mplatform gems. As a
210
+ result, gems with native extensions will be compiled from source.
211
+
212
+ o 1mfrozen 22m(1mBUNDLE_FROZEN22m): Disallow changes to the 1mGemfile22m. When the
213
+ 1mGemfile 22mis changed and the lockfile has not been updated, running
214
+ Bundler commands will be blocked. Defaults to 1mtrue 22mwhen 1m--deploy-0m
215
+ 1mment 22mis used.
216
+
217
+ o 1mgem.push_key 22m(1mBUNDLE_GEM__PUSH_KEY22m): Sets the 1m--key 22mparameter for
218
+ 1mgem push 22mwhen using the 1mrake release 22mcommand with a private gem-
219
+ stash server.
220
+
221
+ o 1mgemfile 22m(1mBUNDLE_GEMFILE22m): The name of the file that bundler should
222
+ use as the 1mGemfile22m. This location of this file also sets the root
223
+ of the project, which is used to resolve relative paths in the 1mGem-0m
224
+ 1mfile22m, among other things. By default, bundler will search up from
225
+ the current working directory until it finds a 1mGemfile22m.
226
+
227
+ o 1mglobal_gem_cache 22m(1mBUNDLE_GLOBAL_GEM_CACHE22m): Whether Bundler should
228
+ cache all gems globally, rather than locally to the installing Ruby
229
+ installation.
230
+
231
+ o 1mignore_messages 22m(1mBUNDLE_IGNORE_MESSAGES22m): When set, no post install
232
+ messages will be printed. To silence a single gem, use dot notation
233
+ like 1mignore_messages.httparty true22m.
234
+
235
+ o 1minit_gems_rb 22m(1mBUNDLE_INIT_GEMS_RB22m) Generate a 1mgems.rb 22minstead of a
236
+ 1mGemfile 22mwhen running 1mbundle init22m.
237
+
238
+ o 1mjobs 22m(1mBUNDLE_JOBS22m): The number of gems Bundler can install in par-
239
+ allel. Defaults to 1.
240
+
241
+ o 1mlist_command 22m(1mBUNDLE_LIST_COMMAND22m) Enable new list command feature
242
+
243
+ o 1mmajor_deprecations 22m(1mBUNDLE_MAJOR_DEPRECATIONS22m): Whether Bundler
244
+ should print deprecation warnings for behavior that will be changed
245
+ in the next major version.
246
+
247
+ o 1mno_install 22m(1mBUNDLE_NO_INSTALL22m): Whether 1mbundle package 22mshould skip
248
+ installing gems.
249
+
250
+ o 1mno_prune 22m(1mBUNDLE_NO_PRUNE22m): Whether Bundler should leave outdated
251
+ gems unpruned when caching.
252
+
253
+ o 1monly_update_to_newer_versions 22m(1mBUNDLE_ONLY_UPDATE_TO_NEWER_VER-0m
254
+ 1mSIONS22m): During 1mbundle update22m, only resolve to newer versions of the
255
+ gems in the lockfile.
256
+
257
+ o 1mpath 22m(1mBUNDLE_PATH22m): The location on disk where all gems in your
258
+ bundle will be located regardless of 1m$GEM_HOME 22mor 1m$GEM_PATH 22mvalues.
259
+ Bundle gems not found in this location will be installed by 1mbundle0m
260
+ 1minstall22m. Defaults to 1mGem.dir22m. When --deployment is used, defaults
261
+ to vendor/bundle.
262
+
263
+ o 1mpath.system 22m(1mBUNDLE_PATH__SYSTEM22m): Whether Bundler will install
264
+ gems into the default system path (1mGem.dir22m).
265
+
266
+ o 1mplugins 22m(1mBUNDLE_PLUGINS22m): Enable Bundler's experimental plugin sys-
267
+ tem.
268
+
269
+ o 1mprefer_gems_rb 22m(1mBUNDLE_PREFER_GEMS_RB22m) Prefer 1mgems.rb 22mto 1mGemfile0m
270
+ when Bundler is searching for a Gemfile.
271
+
272
+ o 1mprint_only_version_number 22m(1mBUNDLE_PRINT_ONLY_VERSION_NUMBER22m) Print
273
+ only version number from 1mbundler --version22m.
274
+
275
+ o 1mredirect 22m(1mBUNDLE_REDIRECT22m): The number of redirects allowed for
276
+ network requests. Defaults to 1m522m.
277
+
278
+ o 1mretry 22m(1mBUNDLE_RETRY22m): The number of times to retry failed network
279
+ requests. Defaults to 1m322m.
280
+
281
+ o 1msetup_makes_kernel_gem_public 22m(1mBUNDLE_SETUP_MAKES_KERNEL_GEM_PUB-0m
282
+ 1mLIC22m): Have 1mBundler.setup 22mmake the 1mKernel#gem 22mmethod public, even
283
+ though RubyGems declares it as private.
284
+
285
+ o 1mshebang 22m(1mBUNDLE_SHEBANG22m): The program name that should be invoked
286
+ for generated binstubs. Defaults to the ruby install name used to
287
+ generate the binstub.
288
+
289
+ o 1msilence_root_warning 22m(1mBUNDLE_SILENCE_ROOT_WARNING22m): Silence the
290
+ warning Bundler prints when installing gems as root.
291
+
292
+ o 1mskip_default_git_sources 22m(1mBUNDLE_SKIP_DEFAULT_GIT_SOURCES22m): Whether
293
+ Bundler should skip adding default git source shortcuts to the Gem-
294
+ file DSL.
295
+
296
+ o 1mspecific_platform 22m(1mBUNDLE_SPECIFIC_PLATFORM22m): Allow bundler to
297
+ resolve for the specific running platform and store it in the lock-
298
+ file, instead of only using a generic platform. A specific platform
299
+ is the exact platform triple reported by 1mGem::Platform.local22m, such
300
+ as 1mx86_64-darwin-16 22mor 1muniversal-java-1.822m. On the other hand,
301
+ generic platforms are those such as 1mruby22m, 1mmswin22m, or 1mjava22m. In this
302
+ example, 1mx86_64-darwin-16 22mwould map to 1mruby 22mand 1muniversal-java-1.80m
303
+ to 1mjava22m.
304
+
305
+ o 1mssl_ca_cert 22m(1mBUNDLE_SSL_CA_CERT22m): Path to a designated CA certifi-
306
+ cate file or folder containing multiple certificates for trusted
307
+ CAs in PEM format.
308
+
309
+ o 1mssl_client_cert 22m(1mBUNDLE_SSL_CLIENT_CERT22m): Path to a designated file
310
+ containing a X.509 client certificate and key in PEM format.
311
+
312
+ o 1mssl_verify_mode 22m(1mBUNDLE_SSL_VERIFY_MODE22m): The SSL verification mode
313
+ Bundler uses when making HTTPS requests. Defaults to verify peer.
314
+
315
+ o 1msuppress_install_using_messages 22m(1mBUNDLE_SUPPRESS_INSTALL_USING_MES-0m
316
+ 1mSAGES22m): Avoid printing 1mUsing ... 22mmessages during installation when
317
+ the version of a gem has not changed.
318
+
319
+ o 1msystem_bindir 22m(1mBUNDLE_SYSTEM_BINDIR22m): The location where RubyGems
320
+ installs binstubs. Defaults to 1mGem.bindir22m.
321
+
322
+ o 1mtimeout 22m(1mBUNDLE_TIMEOUT22m): The seconds allowed before timing out for
323
+ network requests. Defaults to 1m1022m.
324
+
325
+ o 1munlock_source_unlocks_spec 22m(1mBUNDLE_UNLOCK_SOURCE_UNLOCKS_SPEC22m):
326
+ Whether running 1mbundle update --source NAME 22munlocks a gem with the
327
+ given name. Defaults to 1mtrue22m.
328
+
329
+ o 1mupdate_requires_all_flag 22m(1mBUNDLE_UPDATE_REQUIRES_ALL_FLAG22m) Require
330
+ passing 1m--all 22mto 1mbundle update 22mwhen everything should be updated,
331
+ and disallow passing no options to 1mbundle update22m.
332
+
333
+ o 1muser_agent 22m(1mBUNDLE_USER_AGENT22m): The custom user agent fragment
334
+ Bundler includes in API requests.
335
+
336
+ o 1mwith 22m(1mBUNDLE_WITH22m): A 1m:22m-separated list of groups whose gems bundler
337
+ should install.
338
+
339
+ o 1mwithout 22m(1mBUNDLE_WITHOUT22m): A 1m:22m-separated list of groups whose gems
340
+ bundler should not install.
341
+
342
+
343
+
344
+ In general, you should set these settings per-application by using the
345
+ applicable flag to the [bundle install(1)][bundle-install] or [bundle
346
+ package(1)][bundle-package] command.
347
+
348
+ You can set them globally either via environment variables or 1mbundle0m
349
+ 1mconfig22m, whichever is preferable for your setup. If you use both, envi-
350
+ ronment variables will take preference over global settings.
351
+
352
+ 1mLOCAL GIT REPOS0m
353
+ Bundler also allows you to work against a git repository locally
354
+ instead of using the remote version. This can be achieved by setting up
355
+ a local override:
356
+
357
+
358
+
359
+ bundle config local.GEM_NAME /path/to/local/git/repository
360
+
361
+
362
+
363
+ For example, in order to use a local Rack repository, a developer could
364
+ call:
365
+
366
+
367
+
368
+ bundle config local.rack ~/Work/git/rack
369
+
370
+
371
+
372
+ Now instead of checking out the remote git repository, the local over-
373
+ ride will be used. Similar to a path source, every time the local git
374
+ repository change, changes will be automatically picked up by Bundler.
375
+ This means a commit in the local git repo will update the revision in
376
+ the 1mGemfile.lock 22mto the local git repo revision. This requires the same
377
+ attention as git submodules. Before pushing to the remote, you need to
378
+ ensure the local override was pushed, otherwise you may point to a com-
379
+ mit that only exists in your local machine. You'll also need to CGI
380
+ escape your usernames and passwords as well.
381
+
382
+ Bundler does many checks to ensure a developer won't work with invalid
383
+ references. Particularly, we force a developer to specify a branch in
384
+ the 1mGemfile 22min order to use this feature. If the branch specified in
385
+ the 1mGemfile 22mand the current branch in the local git repository do not
386
+ match, Bundler will abort. This ensures that a developer is always
387
+ working against the correct branches, and prevents accidental locking
388
+ to a different branch.
389
+
390
+ Finally, Bundler also ensures that the current revision in the 1mGem-0m
391
+ 1mfile.lock 22mexists in the local git repository. By doing this, Bundler
392
+ forces you to fetch the latest changes in the remotes.
393
+
394
+ 1mMIRRORS OF GEM SOURCES0m
395
+ Bundler supports overriding gem sources with mirrors. This allows you
396
+ to configure rubygems.org as the gem source in your Gemfile while still
397
+ using your mirror to fetch gems.
398
+
399
+
400
+
401
+ bundle config mirror.SOURCE_URL MIRROR_URL
402
+
403
+
404
+
405
+ For example, to use a mirror of rubygems.org hosted at rubygems-mir-
406
+ ror.org:
407
+
408
+
409
+
410
+ bundle config mirror.http://rubygems.org http://rubygems-mirror.org
411
+
412
+
413
+
414
+ Each mirror also provides a fallback timeout setting. If the mirror
415
+ does not respond within the fallback timeout, Bundler will try to use
416
+ the original server instead of the mirror.
417
+
418
+
419
+
420
+ bundle config mirror.SOURCE_URL.fallback_timeout TIMEOUT
421
+
422
+
423
+
424
+ For example, to fall back to rubygems.org after 3 seconds:
425
+
426
+
427
+
428
+ bundle config mirror.https://rubygems.org.fallback_timeout 3
429
+
430
+
431
+
432
+ The default fallback timeout is 0.1 seconds, but the setting can cur-
433
+ rently only accept whole seconds (for example, 1, 15, or 30).
434
+
435
+ 1mCREDENTIALS FOR GEM SOURCES0m
436
+ Bundler allows you to configure credentials for any gem source, which
437
+ allows you to avoid putting secrets into your Gemfile.
438
+
439
+
440
+
441
+ bundle config SOURCE_HOSTNAME USERNAME:PASSWORD
442
+
443
+
444
+
445
+ For example, to save the credentials of user 1mclaudette 22mfor the gem
446
+ source at 1mgems.longerous.com22m, you would run:
447
+
448
+
449
+
450
+ bundle config gems.longerous.com claudette:s00pers3krit
451
+
452
+
453
+
454
+ Or you can set the credentials as an environment variable like this:
455
+
456
+
457
+
458
+ export BUNDLE_GEMS__LONGEROUS__COM="claudette:s00pers3krit"
459
+
460
+
461
+
462
+ For gems with a git source with HTTP(S) URL you can specify credentials
463
+ like so:
464
+
465
+
466
+
467
+ bundle config https://github.com/bundler/bundler.git username:password
468
+
469
+
470
+
471
+ Or you can set the credentials as an environment variable like so:
472
+
473
+
474
+
475
+ export BUNDLE_GITHUB__COM=username:password
476
+
477
+
478
+
479
+ This is especially useful for private repositories on hosts such as
480
+ Github, where you can use personal OAuth tokens:
481
+
482
+
483
+
484
+ export BUNDLE_GITHUB__COM=abcd0123generatedtoken:x-oauth-basic
485
+
486
+
487
+
488
+
489
+
490
+
491
+ August 2017 BUNDLE-CONFIG(1)