bundler 1.9.0 → 1.17.3

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 (328) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +1157 -6
  3. data/README.md +33 -6
  4. data/bundler.gemspec +51 -18
  5. data/exe/bundle +31 -0
  6. data/{bin → exe}/bundle_ruby +10 -6
  7. data/exe/bundler +4 -0
  8. data/lib/bundler.rb +326 -207
  9. data/lib/bundler/build_metadata.rb +53 -0
  10. data/lib/bundler/capistrano.rb +9 -3
  11. data/lib/bundler/cli.rb +522 -141
  12. data/lib/bundler/cli/add.rb +35 -0
  13. data/lib/bundler/cli/binstubs.rb +22 -11
  14. data/lib/bundler/cli/cache.rb +7 -6
  15. data/lib/bundler/cli/check.rb +11 -8
  16. data/lib/bundler/cli/clean.rb +7 -8
  17. data/lib/bundler/cli/common.rb +53 -7
  18. data/lib/bundler/cli/config.rb +84 -49
  19. data/lib/bundler/cli/console.rb +13 -8
  20. data/lib/bundler/cli/doctor.rb +140 -0
  21. data/lib/bundler/cli/exec.rb +77 -16
  22. data/lib/bundler/cli/gem.rb +120 -52
  23. data/lib/bundler/cli/info.rb +50 -0
  24. data/lib/bundler/cli/init.rb +21 -7
  25. data/lib/bundler/cli/inject.rb +37 -10
  26. data/lib/bundler/cli/install.rb +139 -78
  27. data/lib/bundler/cli/issue.rb +40 -0
  28. data/lib/bundler/cli/list.rb +58 -0
  29. data/lib/bundler/cli/lock.rb +63 -0
  30. data/lib/bundler/cli/open.rb +9 -6
  31. data/lib/bundler/cli/outdated.rb +221 -35
  32. data/lib/bundler/cli/package.rb +11 -7
  33. data/lib/bundler/cli/platform.rb +7 -4
  34. data/lib/bundler/cli/plugin.rb +24 -0
  35. data/lib/bundler/cli/pristine.rb +47 -0
  36. data/lib/bundler/cli/remove.rb +18 -0
  37. data/lib/bundler/cli/show.rb +11 -10
  38. data/lib/bundler/cli/update.rb +47 -29
  39. data/lib/bundler/cli/viz.rb +12 -8
  40. data/lib/bundler/compact_index_client.rb +109 -0
  41. data/lib/bundler/compact_index_client/cache.rb +118 -0
  42. data/lib/bundler/compact_index_client/updater.rb +116 -0
  43. data/lib/bundler/compatibility_guard.rb +14 -0
  44. data/lib/bundler/constants.rb +3 -1
  45. data/lib/bundler/current_ruby.rb +47 -137
  46. data/lib/bundler/definition.rb +599 -230
  47. data/lib/bundler/dep_proxy.rb +15 -10
  48. data/lib/bundler/dependency.rb +54 -25
  49. data/lib/bundler/deployment.rb +12 -2
  50. data/lib/bundler/deprecate.rb +33 -4
  51. data/lib/bundler/dsl.rb +383 -99
  52. data/lib/bundler/endpoint_specification.rb +72 -7
  53. data/lib/bundler/env.rb +121 -41
  54. data/lib/bundler/environment_preserver.rb +59 -0
  55. data/lib/bundler/errors.rb +158 -0
  56. data/lib/bundler/feature_flag.rb +74 -0
  57. data/lib/bundler/fetcher.rb +171 -280
  58. data/lib/bundler/fetcher/base.rb +52 -0
  59. data/lib/bundler/fetcher/compact_index.rb +126 -0
  60. data/lib/bundler/fetcher/dependency.rb +82 -0
  61. data/lib/bundler/fetcher/downloader.rb +84 -0
  62. data/lib/bundler/fetcher/index.rb +52 -0
  63. data/lib/bundler/friendly_errors.rb +113 -58
  64. data/lib/bundler/gem_helper.rb +73 -46
  65. data/lib/bundler/gem_helpers.rb +85 -9
  66. data/lib/bundler/gem_remote_fetcher.rb +43 -0
  67. data/lib/bundler/gem_tasks.rb +6 -1
  68. data/lib/bundler/gem_version_promoter.rb +190 -0
  69. data/lib/bundler/gemdeps.rb +29 -0
  70. data/lib/bundler/graph.rb +32 -49
  71. data/lib/bundler/index.rb +79 -67
  72. data/lib/bundler/injector.rb +219 -30
  73. data/lib/bundler/inline.rb +74 -0
  74. data/lib/bundler/installer.rb +191 -206
  75. data/lib/bundler/installer/gem_installer.rb +85 -0
  76. data/lib/bundler/installer/parallel_installer.rb +233 -0
  77. data/lib/bundler/installer/standalone.rb +53 -0
  78. data/lib/bundler/lazy_specification.rb +53 -13
  79. data/lib/bundler/lockfile_generator.rb +95 -0
  80. data/lib/bundler/lockfile_parser.rb +157 -62
  81. data/lib/bundler/match_platform.rb +15 -4
  82. data/lib/bundler/mirror.rb +223 -0
  83. data/lib/bundler/plugin.rb +292 -0
  84. data/lib/bundler/plugin/api.rb +81 -0
  85. data/lib/bundler/plugin/api/source.rb +306 -0
  86. data/lib/bundler/plugin/dsl.rb +53 -0
  87. data/lib/bundler/plugin/events.rb +61 -0
  88. data/lib/bundler/plugin/index.rb +162 -0
  89. data/lib/bundler/plugin/installer.rb +96 -0
  90. data/lib/bundler/plugin/installer/git.rb +38 -0
  91. data/lib/bundler/plugin/installer/rubygems.rb +27 -0
  92. data/lib/bundler/plugin/source_list.rb +27 -0
  93. data/lib/bundler/process_lock.rb +24 -0
  94. data/lib/bundler/psyched_yaml.rb +17 -6
  95. data/lib/bundler/remote_specification.rb +68 -11
  96. data/lib/bundler/resolver.rb +263 -229
  97. data/lib/bundler/resolver/spec_group.rb +106 -0
  98. data/lib/bundler/retry.rb +25 -19
  99. data/lib/bundler/ruby_dsl.rb +9 -2
  100. data/lib/bundler/ruby_version.rb +101 -66
  101. data/lib/bundler/rubygems_ext.rb +77 -37
  102. data/lib/bundler/rubygems_gem_installer.rb +106 -0
  103. data/lib/bundler/rubygems_integration.rb +450 -163
  104. data/lib/bundler/runtime.rb +133 -103
  105. data/lib/bundler/settings.rb +344 -83
  106. data/lib/bundler/settings/validator.rb +102 -0
  107. data/lib/bundler/setup.rb +7 -3
  108. data/lib/bundler/shared_helpers.rb +284 -54
  109. data/lib/bundler/similarity_detector.rb +21 -21
  110. data/lib/bundler/source.rb +68 -15
  111. data/lib/bundler/source/gemspec.rb +18 -0
  112. data/lib/bundler/source/git.rb +90 -55
  113. data/lib/bundler/source/git/git_proxy.rb +135 -35
  114. data/lib/bundler/source/metadata.rb +62 -0
  115. data/lib/bundler/source/path.rb +84 -61
  116. data/lib/bundler/source/path/installer.rb +53 -17
  117. data/lib/bundler/source/rubygems.rb +282 -122
  118. data/lib/bundler/source/rubygems/remote.rb +69 -0
  119. data/lib/bundler/source_list.rb +107 -22
  120. data/lib/bundler/spec_set.rb +83 -45
  121. data/lib/bundler/ssl_certs/certificate_manager.rb +8 -7
  122. data/lib/bundler/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem +21 -0
  123. data/lib/bundler/ssl_certs/{DigiCertHighAssuranceEVRootCA.pem → rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem} +0 -0
  124. data/lib/bundler/ssl_certs/{AddTrustExternalCARoot-2048.pem → rubygems.org/AddTrustExternalCARoot.pem} +0 -0
  125. data/lib/bundler/stub_specification.rb +108 -0
  126. data/lib/bundler/templates/.document +1 -0
  127. data/lib/bundler/templates/Executable +19 -6
  128. data/lib/bundler/templates/Executable.bundler +105 -0
  129. data/lib/bundler/templates/Executable.standalone +6 -4
  130. data/lib/bundler/templates/Gemfile +4 -1
  131. data/lib/bundler/templates/gems.rb +8 -0
  132. data/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +68 -7
  133. data/lib/bundler/templates/newgem/Gemfile.tt +4 -2
  134. data/lib/bundler/templates/newgem/LICENSE.txt.tt +1 -1
  135. data/lib/bundler/templates/newgem/README.md.tt +19 -11
  136. data/lib/bundler/templates/newgem/Rakefile.tt +10 -6
  137. data/lib/bundler/templates/newgem/bin/console.tt +1 -1
  138. data/lib/bundler/templates/newgem/bin/setup.tt +2 -1
  139. data/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +4 -4
  140. data/lib/bundler/templates/newgem/ext/newgem/newgem.h.tt +3 -3
  141. data/lib/bundler/templates/newgem/gitignore.tt +5 -1
  142. data/lib/bundler/templates/newgem/lib/newgem.rb.tt +7 -6
  143. data/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +4 -4
  144. data/lib/bundler/templates/newgem/newgem.gemspec.tt +31 -15
  145. data/lib/bundler/templates/newgem/rspec.tt +1 -0
  146. data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +3 -5
  147. data/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +14 -2
  148. data/lib/bundler/templates/newgem/test/{test_newgem.rb.tt → newgem_test.rb.tt} +2 -2
  149. data/lib/bundler/templates/newgem/test/test_helper.rb.tt +4 -0
  150. data/lib/bundler/templates/newgem/travis.yml.tt +7 -0
  151. data/lib/bundler/ui.rb +5 -3
  152. data/lib/bundler/ui/rg_proxy.rb +5 -7
  153. data/lib/bundler/ui/shell.rb +69 -18
  154. data/lib/bundler/ui/silent.rb +26 -1
  155. data/lib/bundler/uri_credentials_filter.rb +37 -0
  156. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1638 -0
  157. data/lib/bundler/vendor/molinillo/lib/molinillo.rb +12 -0
  158. data/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
  159. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +57 -0
  160. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +81 -0
  161. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +223 -0
  162. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +36 -0
  163. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +66 -0
  164. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +62 -0
  165. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +63 -0
  166. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +61 -0
  167. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +126 -0
  168. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +46 -0
  169. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +36 -0
  170. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +136 -0
  171. data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +143 -0
  172. data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +6 -0
  173. data/lib/bundler/vendor/{Molinillo-0.2.1 → molinillo}/lib/molinillo/modules/specification_provider.rb +11 -0
  174. data/lib/bundler/vendor/{Molinillo-0.2.1 → molinillo}/lib/molinillo/modules/ui.rb +6 -2
  175. data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +837 -0
  176. data/lib/bundler/vendor/{Molinillo-0.2.1 → molinillo}/lib/molinillo/resolver.rb +6 -3
  177. data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +58 -0
  178. data/lib/bundler/vendor/{net → net-http-persistent/lib/net}/http/faster.rb +1 -0
  179. data/lib/bundler/vendor/{net → net-http-persistent/lib/net}/http/persistent.rb +27 -24
  180. data/lib/bundler/vendor/{net → net-http-persistent/lib/net}/http/persistent/ssl_reuse.rb +2 -1
  181. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor.rb +47 -22
  182. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/actions.rb +31 -29
  183. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/actions/create_file.rb +3 -2
  184. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/actions/create_link.rb +3 -2
  185. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/actions/directory.rb +3 -3
  186. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/actions/empty_directory.rb +16 -8
  187. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/actions/file_manipulation.rb +66 -18
  188. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/actions/inject_into_file.rb +18 -16
  189. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/base.rb +67 -44
  190. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/command.rb +13 -11
  191. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/core_ext/hash_with_indifferent_access.rb +21 -1
  192. data/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb +12 -0
  193. data/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +129 -0
  194. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/error.rb +3 -3
  195. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/group.rb +14 -14
  196. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/invocation.rb +4 -5
  197. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/line_editor.rb +2 -2
  198. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/line_editor/basic.rb +2 -0
  199. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/line_editor/readline.rb +0 -0
  200. data/lib/bundler/vendor/thor/lib/thor/parser.rb +4 -0
  201. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/parser/argument.rb +4 -7
  202. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/parser/arguments.rb +16 -16
  203. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/parser/option.rb +42 -21
  204. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/parser/options.rb +13 -10
  205. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/rake_compat.rb +1 -1
  206. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/runner.rb +35 -33
  207. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/shell.rb +4 -4
  208. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/shell/basic.rb +49 -33
  209. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/shell/color.rb +2 -2
  210. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/shell/html.rb +5 -5
  211. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/util.rb +8 -7
  212. data/lib/bundler/vendor/{thor-0.19.1 → thor}/lib/thor/version.rb +1 -1
  213. data/lib/bundler/vendored_fileutils.rb +9 -0
  214. data/lib/bundler/vendored_molinillo.rb +4 -5
  215. data/lib/bundler/vendored_persistent.rb +45 -4
  216. data/lib/bundler/vendored_thor.rb +8 -5
  217. data/lib/bundler/version.rb +23 -1
  218. data/lib/bundler/version_ranges.rb +76 -0
  219. data/lib/bundler/vlad.rb +8 -2
  220. data/lib/bundler/worker.rb +39 -6
  221. data/lib/bundler/yaml_serializer.rb +90 -0
  222. data/man/bundle-add.1 +58 -0
  223. data/man/bundle-add.1.txt +52 -0
  224. data/man/bundle-add.ronn +40 -0
  225. data/man/bundle-binstubs.1 +40 -0
  226. data/man/bundle-binstubs.1.txt +48 -0
  227. data/man/bundle-binstubs.ronn +43 -0
  228. data/man/bundle-check.1 +31 -0
  229. data/man/bundle-check.1.txt +33 -0
  230. data/man/bundle-check.ronn +26 -0
  231. data/man/bundle-clean.1 +24 -0
  232. data/man/bundle-clean.1.txt +26 -0
  233. data/man/bundle-clean.ronn +18 -0
  234. data/man/bundle-config.1 +497 -0
  235. data/man/bundle-config.1.txt +529 -0
  236. data/man/bundle-config.ronn +256 -31
  237. data/man/bundle-doctor.1 +44 -0
  238. data/man/bundle-doctor.1.txt +44 -0
  239. data/man/bundle-doctor.ronn +33 -0
  240. data/man/bundle-exec.1 +165 -0
  241. data/man/bundle-exec.1.txt +178 -0
  242. data/man/bundle-exec.ronn +19 -3
  243. data/man/bundle-gem.1 +80 -0
  244. data/man/bundle-gem.1.txt +91 -0
  245. data/man/bundle-gem.ronn +78 -0
  246. data/man/bundle-info.1 +20 -0
  247. data/man/bundle-info.1.txt +21 -0
  248. data/man/bundle-info.ronn +17 -0
  249. data/man/bundle-init.1 +25 -0
  250. data/man/bundle-init.1.txt +34 -0
  251. data/man/bundle-init.ronn +29 -0
  252. data/man/bundle-inject.1 +33 -0
  253. data/man/bundle-inject.1.txt +32 -0
  254. data/man/bundle-inject.ronn +22 -0
  255. data/man/bundle-install.1 +308 -0
  256. data/man/bundle-install.1.txt +396 -0
  257. data/man/bundle-install.ronn +64 -67
  258. data/man/bundle-list.1 +50 -0
  259. data/man/bundle-list.1.txt +43 -0
  260. data/man/bundle-list.ronn +33 -0
  261. data/man/bundle-lock.1 +84 -0
  262. data/man/bundle-lock.1.txt +93 -0
  263. data/man/bundle-lock.ronn +94 -0
  264. data/man/bundle-open.1 +32 -0
  265. data/man/bundle-open.1.txt +29 -0
  266. data/man/bundle-open.ronn +19 -0
  267. data/man/bundle-outdated.1 +155 -0
  268. data/man/bundle-outdated.1.txt +131 -0
  269. data/man/bundle-outdated.ronn +111 -0
  270. data/man/bundle-package.1 +55 -0
  271. data/man/bundle-package.1.txt +79 -0
  272. data/man/bundle-package.ronn +14 -8
  273. data/man/bundle-platform.1 +61 -0
  274. data/man/bundle-platform.1.txt +57 -0
  275. data/man/bundle-platform.ronn +1 -1
  276. data/man/bundle-pristine.1 +34 -0
  277. data/man/bundle-pristine.1.txt +44 -0
  278. data/man/bundle-pristine.ronn +34 -0
  279. data/man/bundle-remove.1 +31 -0
  280. data/man/bundle-remove.1.txt +34 -0
  281. data/man/bundle-remove.ronn +23 -0
  282. data/man/bundle-show.1 +23 -0
  283. data/man/bundle-show.1.txt +27 -0
  284. data/man/bundle-show.ronn +21 -0
  285. data/man/bundle-update.1 +394 -0
  286. data/man/bundle-update.1.txt +391 -0
  287. data/man/bundle-update.ronn +180 -18
  288. data/man/bundle-viz.1 +39 -0
  289. data/man/bundle-viz.1.txt +39 -0
  290. data/man/bundle-viz.ronn +30 -0
  291. data/man/bundle.1 +136 -0
  292. data/man/bundle.1.txt +116 -0
  293. data/man/bundle.ronn +46 -33
  294. data/man/gemfile.5 +689 -0
  295. data/man/gemfile.5.ronn +127 -79
  296. data/man/gemfile.5.txt +653 -0
  297. data/man/index.txt +25 -7
  298. metadata +242 -95
  299. data/.gitignore +0 -16
  300. data/.rspec +0 -3
  301. data/.travis.yml +0 -110
  302. data/CODE_OF_CONDUCT.md +0 -40
  303. data/CONTRIBUTING.md +0 -32
  304. data/DEVELOPMENT.md +0 -119
  305. data/ISSUES.md +0 -96
  306. data/Rakefile +0 -302
  307. data/UPGRADING.md +0 -103
  308. data/bin/bundle +0 -21
  309. data/bin/bundler +0 -21
  310. data/lib/bundler/anonymizable_uri.rb +0 -32
  311. data/lib/bundler/environment.rb +0 -42
  312. data/lib/bundler/gem_installer.rb +0 -9
  313. data/lib/bundler/gem_path_manipulation.rb +0 -8
  314. data/lib/bundler/ssl_certs/AddTrustExternalCARoot.pem +0 -32
  315. data/lib/bundler/ssl_certs/Class3PublicPrimaryCertificationAuthority.pem +0 -14
  316. data/lib/bundler/ssl_certs/EntrustnetSecureServerCertificationAuthority.pem +0 -28
  317. data/lib/bundler/ssl_certs/GeoTrustGlobalCA.pem +0 -20
  318. data/lib/bundler/templates/newgem/.travis.yml.tt +0 -3
  319. data/lib/bundler/templates/newgem/test/minitest_helper.rb.tt +0 -4
  320. data/lib/bundler/vendor/Molinillo-0.2.1/lib/molinillo.rb +0 -5
  321. data/lib/bundler/vendor/Molinillo-0.2.1/lib/molinillo/dependency_graph.rb +0 -266
  322. data/lib/bundler/vendor/Molinillo-0.2.1/lib/molinillo/errors.rb +0 -69
  323. data/lib/bundler/vendor/Molinillo-0.2.1/lib/molinillo/gem_metadata.rb +0 -3
  324. data/lib/bundler/vendor/Molinillo-0.2.1/lib/molinillo/resolution.rb +0 -412
  325. data/lib/bundler/vendor/Molinillo-0.2.1/lib/molinillo/state.rb +0 -43
  326. data/lib/bundler/vendor/thor-0.19.1/lib/thor/core_ext/io_binary_read.rb +0 -10
  327. data/lib/bundler/vendor/thor-0.19.1/lib/thor/core_ext/ordered_hash.rb +0 -98
  328. data/lib/bundler/vendor/thor-0.19.1/lib/thor/parser.rb +0 -4
@@ -0,0 +1,91 @@
1
+ BUNDLE-GEM(1) BUNDLE-GEM(1)
2
+
3
+
4
+
5
+ NAME
6
+ bundle-gem - Generate a project skeleton for creating a rubygem
7
+
8
+ SYNOPSIS
9
+ bundle gem GEM_NAME OPTIONS
10
+
11
+ DESCRIPTION
12
+ Generates a directory named GEM_NAME with a Rakefile, GEM_NAME.gemspec,
13
+ and other supporting files and directories that can be used to develop
14
+ a rubygem with that name.
15
+
16
+ Run rake -T in the resulting project for a list of Rake tasks that can
17
+ be used to test and publish the gem to rubygems.org.
18
+
19
+ The generated project skeleton can be customized with OPTIONS, as
20
+ explained below. Note that these options can also be specified via
21
+ Bundler's global configuration file using the following names:
22
+
23
+ o gem.coc
24
+
25
+ o gem.mit
26
+
27
+ o gem.test
28
+
29
+
30
+
31
+ OPTIONS
32
+ --exe or -b or --bin
33
+ Specify that Bundler should create a binary executable (as
34
+ exe/GEM_NAME) in the generated rubygem project. This binary will
35
+ also be added to the GEM_NAME.gemspec manifest. This behavior is
36
+ disabled by default.
37
+
38
+ --no-exe
39
+ Do not create a binary (overrides --exe specified in the global
40
+ config).
41
+
42
+ --coc Add a CODE_OF_CONDUCT.md file to the root of the generated
43
+ project. If this option is unspecified, an interactive prompt
44
+ will be displayed and the answer will be saved in Bundler's
45
+ global config for future bundle gem use.
46
+
47
+ --no-coc
48
+ Do not create a CODE_OF_CONDUCT.md (overrides --coc specified in
49
+ the global config).
50
+
51
+ --ext Add boilerplate for C extension code to the generated project.
52
+ This behavior is disabled by default.
53
+
54
+ --no-ext
55
+ Do not add C extension code (overrides --ext specified in the
56
+ global config).
57
+
58
+ --mit Add an MIT license to a LICENSE.txt file in the root of the gen-
59
+ erated project. Your name from the global git config is used for
60
+ the copyright statement. If this option is unspecified, an
61
+ interactive prompt will be displayed and the answer will be
62
+ saved in Bundler's global config for future bundle gem use.
63
+
64
+ --no-mit
65
+ Do not create a LICENSE.txt (overrides --mit specified in the
66
+ global config).
67
+
68
+ -t, --test=minitest, --test=rspec
69
+ Specify the test framework that Bundler should use when generat-
70
+ ing the project. Acceptable values are minitest and rspec. The
71
+ GEM_NAME.gemspec will be configured and a skeleton test/spec
72
+ directory will be created based on this option. If this option
73
+ is unspecified, an interactive prompt will be displayed and the
74
+ answer will be saved in Bundler's global config for future bun-
75
+ dle gem use. If no option is specified, the default testing
76
+ framework is RSpec.
77
+
78
+ -e, --edit[=EDITOR]
79
+ Open the resulting GEM_NAME.gemspec in EDITOR, or the default
80
+ editor if not specified. The default is $BUNDLER_EDITOR,
81
+ $VISUAL, or $EDITOR.
82
+
83
+ SEE ALSO
84
+ o bundle config(1) bundle-config.1.html
85
+
86
+
87
+
88
+
89
+
90
+
91
+ November 2018 BUNDLE-GEM(1)
@@ -0,0 +1,78 @@
1
+ bundle-gem(1) -- Generate a project skeleton for creating a rubygem
2
+ ====================================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `bundle gem` <GEM_NAME> [OPTIONS]
7
+
8
+ ## DESCRIPTION
9
+
10
+ Generates a directory named `GEM_NAME` with a `Rakefile`, `GEM_NAME.gemspec`,
11
+ and other supporting files and directories that can be used to develop a
12
+ rubygem with that name.
13
+
14
+ Run `rake -T` in the resulting project for a list of Rake tasks that can be used
15
+ to test and publish the gem to rubygems.org.
16
+
17
+ The generated project skeleton can be customized with OPTIONS, as explained
18
+ below. Note that these options can also be specified via Bundler's global
19
+ configuration file using the following names:
20
+
21
+ * `gem.coc`
22
+ * `gem.mit`
23
+ * `gem.test`
24
+
25
+ ## OPTIONS
26
+
27
+ * `--exe` or `-b` or `--bin`:
28
+ Specify that Bundler should create a binary executable (as `exe/GEM_NAME`)
29
+ in the generated rubygem project. This binary will also be added to the
30
+ `GEM_NAME.gemspec` manifest. This behavior is disabled by default.
31
+
32
+ * `--no-exe`:
33
+ Do not create a binary (overrides `--exe` specified in the global config).
34
+
35
+ * `--coc`:
36
+ Add a `CODE_OF_CONDUCT.md` file to the root of the generated project. If
37
+ this option is unspecified, an interactive prompt will be displayed and the
38
+ answer will be saved in Bundler's global config for future `bundle gem` use.
39
+
40
+ * `--no-coc`:
41
+ Do not create a `CODE_OF_CONDUCT.md` (overrides `--coc` specified in the
42
+ global config).
43
+
44
+ * `--ext`:
45
+ Add boilerplate for C extension code to the generated project. This behavior
46
+ is disabled by default.
47
+
48
+ * `--no-ext`:
49
+ Do not add C extension code (overrides `--ext` specified in the global
50
+ config).
51
+
52
+ * `--mit`:
53
+ Add an MIT license to a `LICENSE.txt` file in the root of the generated
54
+ project. Your name from the global git config is used for the copyright
55
+ statement. If this option is unspecified, an interactive prompt will be
56
+ displayed and the answer will be saved in Bundler's global config for future
57
+ `bundle gem` use.
58
+
59
+ * `--no-mit`:
60
+ Do not create a `LICENSE.txt` (overrides `--mit` specified in the global
61
+ config).
62
+
63
+ * `-t`, `--test=minitest`, `--test=rspec`:
64
+ Specify the test framework that Bundler should use when generating the
65
+ project. Acceptable values are `minitest` and `rspec`. The `GEM_NAME.gemspec`
66
+ will be configured and a skeleton test/spec directory will be created based
67
+ on this option. If this option is unspecified, an interactive prompt will be
68
+ displayed and the answer will be saved in Bundler's global config for future
69
+ `bundle gem` use.
70
+ If no option is specified, the default testing framework is RSpec.
71
+
72
+ * `-e`, `--edit[=EDITOR]`:
73
+ Open the resulting GEM_NAME.gemspec in EDITOR, or the default editor if not
74
+ specified. The default is `$BUNDLER_EDITOR`, `$VISUAL`, or `$EDITOR`.
75
+
76
+ ## SEE ALSO
77
+
78
+ * [bundle config(1)](bundle-config.1.html)
@@ -0,0 +1,20 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "BUNDLE\-INFO" "1" "November 2018" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBbundle\-info\fR \- Show information for the given gem in your bundle
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBbundle info\fR [GEM] [\-\-path]
11
+ .
12
+ .SH "DESCRIPTION"
13
+ Print the basic information about the provided GEM such as homepage, version, path and summary\.
14
+ .
15
+ .SH "OPTIONS"
16
+ .
17
+ .TP
18
+ \fB\-\-path\fR
19
+ Print the path of the given gem
20
+
@@ -0,0 +1,21 @@
1
+ BUNDLE-INFO(1) BUNDLE-INFO(1)
2
+
3
+
4
+
5
+ NAME
6
+ bundle-info - Show information for the given gem in your bundle
7
+
8
+ SYNOPSIS
9
+ bundle info [GEM] [--path]
10
+
11
+ DESCRIPTION
12
+ Print the basic information about the provided GEM such as homepage,
13
+ version, path and summary.
14
+
15
+ OPTIONS
16
+ --path Print the path of the given gem
17
+
18
+
19
+
20
+
21
+ November 2018 BUNDLE-INFO(1)
@@ -0,0 +1,17 @@
1
+ bundle-info(1) -- Show information for the given gem in your bundle
2
+ =========================================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `bundle info` [GEM]
7
+ [--path]
8
+
9
+ ## DESCRIPTION
10
+
11
+ Print the basic information about the provided GEM such as homepage, version,
12
+ path and summary.
13
+
14
+ ## OPTIONS
15
+
16
+ * `--path`:
17
+ Print the path of the given gem
@@ -0,0 +1,25 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "BUNDLE\-INIT" "1" "November 2018" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBbundle\-init\fR \- Generates a Gemfile into the current working directory
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBbundle init\fR [\-\-gemspec=FILE]
11
+ .
12
+ .SH "DESCRIPTION"
13
+ Init generates a default [\fBGemfile(5)\fR][Gemfile(5)] in the current working directory\. When adding a [\fBGemfile(5)\fR][Gemfile(5)] to a gem with a gemspec, the \fB\-\-gemspec\fR option will automatically add each dependency listed in the gemspec file to the newly created [\fBGemfile(5)\fR][Gemfile(5)]\.
14
+ .
15
+ .SH "OPTIONS"
16
+ .
17
+ .TP
18
+ \fB\-\-gemspec\fR
19
+ Use the specified \.gemspec to create the [\fBGemfile(5)\fR][Gemfile(5)]
20
+ .
21
+ .SH "FILES"
22
+ Included in the default [\fBGemfile(5)\fR][Gemfile(5)] generated is the line \fB# frozen_string_literal: true\fR\. This is a magic comment supported for the first time in Ruby 2\.3\. The presence of this line results in all string literals in the file being implicitly frozen\.
23
+ .
24
+ .SH "SEE ALSO"
25
+ Gemfile(5) \fIhttp://bundler\.io/man/gemfile\.5\.html\fR
@@ -0,0 +1,34 @@
1
+ BUNDLE-INIT(1) BUNDLE-INIT(1)
2
+
3
+
4
+
5
+ NAME
6
+ bundle-init - Generates a Gemfile into the current working directory
7
+
8
+ SYNOPSIS
9
+ bundle init [--gemspec=FILE]
10
+
11
+ DESCRIPTION
12
+ Init generates a default [Gemfile(5)][Gemfile(5)] in the current work-
13
+ ing directory. When adding a [Gemfile(5)][Gemfile(5)] to a gem with a
14
+ gemspec, the --gemspec option will automatically add each dependency
15
+ listed in the gemspec file to the newly created [Gemfile(5)][Gem-
16
+ file(5)].
17
+
18
+ OPTIONS
19
+ --gemspec
20
+ Use the specified .gemspec to create the [Gemfile(5)][Gem-
21
+ file(5)]
22
+
23
+ FILES
24
+ Included in the default [Gemfile(5)][Gemfile(5)] generated is the line
25
+ # frozen_string_literal: true. This is a magic comment supported for
26
+ the first time in Ruby 2.3. The presence of this line results in all
27
+ string literals in the file being implicitly frozen.
28
+
29
+ SEE ALSO
30
+ Gemfile(5) http://bundler.io/man/gemfile.5.html
31
+
32
+
33
+
34
+ November 2018 BUNDLE-INIT(1)
@@ -0,0 +1,29 @@
1
+ bundle-init(1) -- Generates a Gemfile into the current working directory
2
+ ========================================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `bundle init` [--gemspec=FILE]
7
+
8
+ ## DESCRIPTION
9
+
10
+ Init generates a default [`Gemfile(5)`][Gemfile(5)] in the current working directory. When
11
+ adding a [`Gemfile(5)`][Gemfile(5)] to a gem with a gemspec, the `--gemspec` option will
12
+ automatically add each dependency listed in the gemspec file to the newly
13
+ created [`Gemfile(5)`][Gemfile(5)].
14
+
15
+ ## OPTIONS
16
+
17
+ * `--gemspec`:
18
+ Use the specified .gemspec to create the [`Gemfile(5)`][Gemfile(5)]
19
+
20
+ ## FILES
21
+
22
+ Included in the default [`Gemfile(5)`][Gemfile(5)]
23
+ generated is the line `# frozen_string_literal: true`. This is a magic comment
24
+ supported for the first time in Ruby 2.3. The presence of this line
25
+ results in all string literals in the file being implicitly frozen.
26
+
27
+ ## SEE ALSO
28
+
29
+ [Gemfile(5)](http://bundler.io/man/gemfile.5.html)
@@ -0,0 +1,33 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "BUNDLE\-INJECT" "1" "November 2018" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBbundle\-inject\fR \- Add named gem(s) with version requirements to Gemfile
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBbundle inject\fR [GEM] [VERSION]
11
+ .
12
+ .SH "DESCRIPTION"
13
+ Adds the named gem(s) with their version requirements to the resolved [\fBGemfile(5)\fR][Gemfile(5)]\.
14
+ .
15
+ .P
16
+ This command will add the gem to both your [\fBGemfile(5)\fR][Gemfile(5)] and Gemfile\.lock if it isn\'t listed yet\.
17
+ .
18
+ .P
19
+ Example:
20
+ .
21
+ .IP "" 4
22
+ .
23
+ .nf
24
+
25
+ bundle install
26
+ bundle inject \'rack\' \'> 0\'
27
+ .
28
+ .fi
29
+ .
30
+ .IP "" 0
31
+ .
32
+ .P
33
+ This will inject the \'rack\' gem with a version greater than 0 in your [\fBGemfile(5)\fR][Gemfile(5)] and Gemfile\.lock
@@ -0,0 +1,32 @@
1
+ BUNDLE-INJECT(1) BUNDLE-INJECT(1)
2
+
3
+
4
+
5
+ NAME
6
+ bundle-inject - Add named gem(s) with version requirements to Gemfile
7
+
8
+ SYNOPSIS
9
+ bundle inject [GEM] [VERSION]
10
+
11
+ DESCRIPTION
12
+ Adds the named gem(s) with their version requirements to the resolved
13
+ [Gemfile(5)][Gemfile(5)].
14
+
15
+ This command will add the gem to both your [Gemfile(5)][Gemfile(5)] and
16
+ Gemfile.lock if it isn't listed yet.
17
+
18
+ Example:
19
+
20
+
21
+
22
+ bundle install
23
+ bundle inject 'rack' '> 0'
24
+
25
+
26
+
27
+ This will inject the 'rack' gem with a version greater than 0 in your
28
+ [Gemfile(5)][Gemfile(5)] and Gemfile.lock
29
+
30
+
31
+
32
+ November 2018 BUNDLE-INJECT(1)
@@ -0,0 +1,22 @@
1
+ bundle-inject(1) -- Add named gem(s) with version requirements to Gemfile
2
+ =========================================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `bundle inject` [GEM] [VERSION]
7
+
8
+ ## DESCRIPTION
9
+
10
+ Adds the named gem(s) with their version requirements to the resolved
11
+ [`Gemfile(5)`][Gemfile(5)].
12
+
13
+ This command will add the gem to both your [`Gemfile(5)`][Gemfile(5)] and Gemfile.lock if it
14
+ isn't listed yet.
15
+
16
+ Example:
17
+
18
+ bundle install
19
+ bundle inject 'rack' '> 0'
20
+
21
+ This will inject the 'rack' gem with a version greater than 0 in your
22
+ [`Gemfile(5)`][Gemfile(5)] and Gemfile.lock
@@ -0,0 +1,308 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "BUNDLE\-INSTALL" "1" "December 2018" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBbundle\-install\fR \- Install the dependencies specified in your Gemfile
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBbundle install\fR [\-\-binstubs[=DIRECTORY]] [\-\-clean] [\-\-deployment] [\-\-force] [\-\-frozen] [\-\-full\-index] [\-\-gemfile=GEMFILE] [\-\-jobs=NUMBER] [\-\-local] [\-\-no\-cache] [\-\-no\-prune] [\-\-path PATH] [\-\-quiet] [\-\-retry=NUMBER] [\-\-shebang] [\-\-standalone[=GROUP[ GROUP\.\.\.]]] [\-\-system] [\-\-trust\-policy=POLICY] [\-\-with=GROUP[ GROUP\.\.\.]] [\-\-without=GROUP[ GROUP\.\.\.]]
11
+ .
12
+ .SH "DESCRIPTION"
13
+ Install the gems specified in your Gemfile(5)\. If this is the first time you run bundle install (and a \fBGemfile\.lock\fR does not exist), Bundler will fetch all remote sources, resolve dependencies and install all needed gems\.
14
+ .
15
+ .P
16
+ If a \fBGemfile\.lock\fR does exist, and you have not updated your Gemfile(5), Bundler will fetch all remote sources, but use the dependencies specified in the \fBGemfile\.lock\fR instead of resolving dependencies\.
17
+ .
18
+ .P
19
+ If a \fBGemfile\.lock\fR does exist, and you have updated your Gemfile(5), Bundler will use the dependencies in the \fBGemfile\.lock\fR for all gems that you did not update, but will re\-resolve the dependencies of gems that you did update\. You can find more information about this update process below under \fICONSERVATIVE UPDATING\fR\.
20
+ .
21
+ .SH "OPTIONS"
22
+ To apply any of \fB\-\-binstubs\fR, \fB\-\-deployment\fR, \fB\-\-path\fR, or \fB\-\-without\fR every time \fBbundle install\fR is run, use \fBbundle config\fR (see bundle\-config(1))\.
23
+ .
24
+ .TP
25
+ \fB\-\-binstubs[=<directory>]\fR
26
+ Creates a directory (defaults to \fB~/bin\fR) and place any executables from the gem there\. These executables run in Bundler\'s context\. If used, you might add this directory to your environment\'s \fBPATH\fR variable\. For instance, if the \fBrails\fR gem comes with a \fBrails\fR executable, this flag will create a \fBbin/rails\fR executable that ensures that all referred dependencies will be resolved using the bundled gems\.
27
+ .
28
+ .TP
29
+ \fB\-\-clean\fR
30
+ On finishing the installation Bundler is going to remove any gems not present in the current Gemfile(5)\. Don\'t worry, gems currently in use will not be removed\.
31
+ .
32
+ .TP
33
+ \fB\-\-deployment\fR
34
+ In \fIdeployment mode\fR, Bundler will \'roll\-out\' the bundle for production or CI use\. Please check carefully if you want to have this option enabled in your development environment\.
35
+ .
36
+ .TP
37
+ \fB\-\-force\fR
38
+ Force download every gem, even if the required versions are already available locally\. \fB\-\-redownload\fR is an alias of this option\.
39
+ .
40
+ .TP
41
+ \fB\-\-frozen\fR
42
+ Do not allow the Gemfile\.lock to be updated after this install\. Exits non\-zero if there are going to be changes to the Gemfile\.lock\.
43
+ .
44
+ .TP
45
+ \fB\-\-full\-index\fR
46
+ Bundler will not call Rubygems\' API endpoint (default) but download and cache a (currently big) index file of all gems\. Performance can be improved for large bundles that seldom change by enabling this option\.
47
+ .
48
+ .TP
49
+ \fB\-\-gemfile=<gemfile>\fR
50
+ 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\.
51
+ .
52
+ .TP
53
+ \fB\-\-jobs=[<number>]\fR, \fB\-j[<number>]\fR
54
+ The maximum number of parallel download and install jobs\. The default is \fB1\fR\.
55
+ .
56
+ .TP
57
+ \fB\-\-local\fR
58
+ Do not attempt to connect to \fBrubygems\.org\fR\. Instead, Bundler will use the gems already present in Rubygems\' cache or in \fBvendor/cache\fR\. Note that if a appropriate platform\-specific gem exists on \fBrubygems\.org\fR it will not be found\.
59
+ .
60
+ .TP
61
+ \fB\-\-no\-cache\fR
62
+ Do not update the cache in \fBvendor/cache\fR with the newly bundled gems\. This does not remove any gems in the cache but keeps the newly bundled gems from being cached during the install\.
63
+ .
64
+ .TP
65
+ \fB\-\-no\-prune\fR
66
+ Don\'t remove stale gems from the cache when the installation finishes\.
67
+ .
68
+ .TP
69
+ \fB\-\-path=<path>\fR
70
+ The location to install the specified gems to\. This defaults to Rubygems\' setting\. Bundler shares this location with Rubygems, \fBgem install \.\.\.\fR will have gem installed there, too\. Therefore, gems installed without a \fB\-\-path \.\.\.\fR setting will show up by calling \fBgem list\fR\. Accordingly, gems installed to other locations will not get listed\.
71
+ .
72
+ .TP
73
+ \fB\-\-quiet\fR
74
+ Do not print progress information to the standard output\. Instead, Bundler will exit using a status code (\fB$?\fR)\.
75
+ .
76
+ .TP
77
+ \fB\-\-retry=[<number>]\fR
78
+ Retry failed network or git requests for \fInumber\fR times\.
79
+ .
80
+ .TP
81
+ \fB\-\-shebang=<ruby\-executable>\fR
82
+ Uses the specified ruby executable (usually \fBruby\fR) to execute the scripts created with \fB\-\-binstubs\fR\. In addition, if you use \fB\-\-binstubs\fR together with \fB\-\-shebang jruby\fR these executables will be changed to execute \fBjruby\fR instead\.
83
+ .
84
+ .TP
85
+ \fB\-\-standalone[=<list>]\fR
86
+ Makes a bundle that can work without depending on Rubygems or Bundler at runtime\. A space separated list of groups to install has to be specified\. Bundler creates a directory named \fBbundle\fR and installs the bundle there\. It also generates a \fBbundle/bundler/setup\.rb\fR file to replace Bundler\'s own setup in the manner required\. Using this option implicitly sets \fBpath\fR, which is a [remembered option][REMEMBERED OPTIONS]\.
87
+ .
88
+ .TP
89
+ \fB\-\-system\fR
90
+ Installs the gems specified in the bundle to the system\'s Rubygems location\. This overrides any previous configuration of \fB\-\-path\fR\.
91
+ .
92
+ .TP
93
+ \fB\-\-trust\-policy=[<policy>]\fR
94
+ Apply the Rubygems security policy \fIpolicy\fR, where policy is one of \fBHighSecurity\fR, \fBMediumSecurity\fR, \fBLowSecurity\fR, \fBAlmostNoSecurity\fR, or \fBNoSecurity\fR\. For more details, please see the Rubygems signing documentation linked below in \fISEE ALSO\fR\.
95
+ .
96
+ .TP
97
+ \fB\-\-with=<list>\fR
98
+ A space\-separated list of groups referencing gems to install\. If an optional group is given it is installed\. If a group is given that is in the remembered list of groups given to \-\-without, it is removed from that list\.
99
+ .
100
+ .TP
101
+ \fB\-\-without=<list>\fR
102
+ A space\-separated list of groups referencing gems to skip during installation\. If a group is given that is in the remembered list of groups given to \-\-with, it is removed from that list\.
103
+ .
104
+ .SH "DEPLOYMENT MODE"
105
+ Bundler\'s defaults are optimized for development\. To switch to defaults optimized for deployment and for CI, use the \fB\-\-deployment\fR flag\. Do not activate deployment mode on development machines, as it will cause an error when the Gemfile(5) is modified\.
106
+ .
107
+ .IP "1." 4
108
+ A \fBGemfile\.lock\fR is required\.
109
+ .
110
+ .IP
111
+ To ensure that the same versions of the gems you developed with and tested with are also used in deployments, a \fBGemfile\.lock\fR is required\.
112
+ .
113
+ .IP
114
+ This is mainly to ensure that you remember to check your \fBGemfile\.lock\fR into version control\.
115
+ .
116
+ .IP "2." 4
117
+ The \fBGemfile\.lock\fR must be up to date
118
+ .
119
+ .IP
120
+ In development, you can modify your Gemfile(5) and re\-run \fBbundle install\fR to \fIconservatively update\fR your \fBGemfile\.lock\fR snapshot\.
121
+ .
122
+ .IP
123
+ In deployment, your \fBGemfile\.lock\fR should be up\-to\-date with changes made in your Gemfile(5)\.
124
+ .
125
+ .IP "3." 4
126
+ Gems are installed to \fBvendor/bundle\fR not your default system location
127
+ .
128
+ .IP
129
+ In development, it\'s convenient to share the gems used in your application with other applications and other scripts that run on the system\.
130
+ .
131
+ .IP
132
+ In deployment, isolation is a more important default\. In addition, the user deploying the application may not have permission to install gems to the system, or the web server may not have permission to read them\.
133
+ .
134
+ .IP
135
+ As a result, \fBbundle install \-\-deployment\fR installs gems to the \fBvendor/bundle\fR directory in the application\. This may be overridden using the \fB\-\-path\fR option\.
136
+ .
137
+ .IP "" 0
138
+ .
139
+ .SH "SUDO USAGE"
140
+ By default, Bundler installs gems to the same location as \fBgem install\fR\.
141
+ .
142
+ .P
143
+ In some cases, that location may not be writable by your Unix user\. In that case, Bundler will stage everything in a temporary directory, then ask you for your \fBsudo\fR password in order to copy the gems into their system location\.
144
+ .
145
+ .P
146
+ From your perspective, this is identical to installing the gems directly into the system\.
147
+ .
148
+ .P
149
+ You should never use \fBsudo bundle install\fR\. This is because several other steps in \fBbundle install\fR must be performed as the current user:
150
+ .
151
+ .IP "\(bu" 4
152
+ Updating your \fBGemfile\.lock\fR
153
+ .
154
+ .IP "\(bu" 4
155
+ Updating your \fBvendor/cache\fR, if necessary
156
+ .
157
+ .IP "\(bu" 4
158
+ Checking out private git repositories using your user\'s SSH keys
159
+ .
160
+ .IP "" 0
161
+ .
162
+ .P
163
+ Of these three, the first two could theoretically be performed by \fBchown\fRing the resulting files to \fB$SUDO_USER\fR\. The third, however, can only be performed by invoking the \fBgit\fR command as the current user\. Therefore, git gems are downloaded and installed into \fB~/\.bundle\fR rather than $GEM_HOME or $BUNDLE_PATH\.
164
+ .
165
+ .P
166
+ As a result, you should run \fBbundle install\fR as the current user, and Bundler will ask for your password if it is needed to put the gems into their final location\.
167
+ .
168
+ .SH "INSTALLING GROUPS"
169
+ By default, \fBbundle install\fR will install all gems in all groups in your Gemfile(5), except those declared for a different platform\.
170
+ .
171
+ .P
172
+ However, you can explicitly tell Bundler to skip installing certain groups with the \fB\-\-without\fR option\. This option takes a space\-separated list of groups\.
173
+ .
174
+ .P
175
+ While the \fB\-\-without\fR option will skip \fIinstalling\fR the gems in the specified groups, it will still \fIdownload\fR those gems and use them to resolve the dependencies of every gem in your Gemfile(5)\.
176
+ .
177
+ .P
178
+ This is so that installing a different set of groups on another machine (such as a production server) will not change the gems and versions that you have already developed and tested against\.
179
+ .
180
+ .P
181
+ \fBBundler offers a rock\-solid guarantee that the third\-party code you are running in development and testing is also the third\-party code you are running in production\. You can choose to exclude some of that code in different environments, but you will never be caught flat\-footed by different versions of third\-party code being used in different environments\.\fR
182
+ .
183
+ .P
184
+ For a simple illustration, consider the following Gemfile(5):
185
+ .
186
+ .IP "" 4
187
+ .
188
+ .nf
189
+
190
+ source \'https://rubygems\.org\'
191
+
192
+ gem \'sinatra\'
193
+
194
+ group :production do
195
+ gem \'rack\-perftools\-profiler\'
196
+ end
197
+ .
198
+ .fi
199
+ .
200
+ .IP "" 0
201
+ .
202
+ .P
203
+ In this case, \fBsinatra\fR depends on any version of Rack (\fB>= 1\.0\fR), while \fBrack\-perftools\-profiler\fR depends on 1\.x (\fB~> 1\.0\fR)\.
204
+ .
205
+ .P
206
+ When you run \fBbundle install \-\-without production\fR in development, we look at the dependencies of \fBrack\-perftools\-profiler\fR as well\. That way, you do not spend all your time developing against Rack 2\.0, using new APIs unavailable in Rack 1\.x, only to have Bundler switch to Rack 1\.2 when the \fBproduction\fR group \fIis\fR used\.
207
+ .
208
+ .P
209
+ This should not cause any problems in practice, because we do not attempt to \fBinstall\fR the gems in the excluded groups, and only evaluate as part of the dependency resolution process\.
210
+ .
211
+ .P
212
+ This also means that you cannot include different versions of the same gem in different groups, because doing so would result in different sets of dependencies used in development and production\. Because of the vagaries of the dependency resolution process, this usually affects more than the gems you list in your Gemfile(5), and can (surprisingly) radically change the gems you are using\.
213
+ .
214
+ .SH "THE GEMFILE\.LOCK"
215
+ When you run \fBbundle install\fR, Bundler will persist the full names and versions of all gems that you used (including dependencies of the gems specified in the Gemfile(5)) into a file called \fBGemfile\.lock\fR\.
216
+ .
217
+ .P
218
+ Bundler uses this file in all subsequent calls to \fBbundle install\fR, which guarantees that you always use the same exact code, even as your application moves across machines\.
219
+ .
220
+ .P
221
+ Because of the way dependency resolution works, even a seemingly small change (for instance, an update to a point\-release of a dependency of a gem in your Gemfile(5)) can result in radically different gems being needed to satisfy all dependencies\.
222
+ .
223
+ .P
224
+ As a result, you \fBSHOULD\fR check your \fBGemfile\.lock\fR into version control, in both applications and gems\. If you do not, every machine that checks out your repository (including your production server) will resolve all dependencies again, which will result in different versions of third\-party code being used if \fBany\fR of the gems in the Gemfile(5) or any of their dependencies have been updated\.
225
+ .
226
+ .P
227
+ When Bundler first shipped, the \fBGemfile\.lock\fR was included in the \fB\.gitignore\fR file included with generated gems\. Over time, however, it became clear that this practice forces the pain of broken dependencies onto new contributors, while leaving existing contributors potentially unaware of the problem\. Since \fBbundle install\fR is usually the first step towards a contribution, the pain of broken dependencies would discourage new contributors from contributing\. As a result, we have revised our guidance for gem authors to now recommend checking in the lock for gems\.
228
+ .
229
+ .SH "CONSERVATIVE UPDATING"
230
+ When you make a change to the Gemfile(5) and then run \fBbundle install\fR, Bundler will update only the gems that you modified\.
231
+ .
232
+ .P
233
+ In other words, if a gem that you \fBdid not modify\fR worked before you called \fBbundle install\fR, it will continue to use the exact same versions of all dependencies as it used before the update\.
234
+ .
235
+ .P
236
+ Let\'s take a look at an example\. Here\'s your original Gemfile(5):
237
+ .
238
+ .IP "" 4
239
+ .
240
+ .nf
241
+
242
+ source \'https://rubygems\.org\'
243
+
244
+ gem \'actionpack\', \'2\.3\.8\'
245
+ gem \'activemerchant\'
246
+ .
247
+ .fi
248
+ .
249
+ .IP "" 0
250
+ .
251
+ .P
252
+ In this case, both \fBactionpack\fR and \fBactivemerchant\fR depend on \fBactivesupport\fR\. The \fBactionpack\fR gem depends on \fBactivesupport 2\.3\.8\fR and \fBrack ~> 1\.1\.0\fR, while the \fBactivemerchant\fR gem depends on \fBactivesupport >= 2\.3\.2\fR, \fBbraintree >= 2\.0\.0\fR, and \fBbuilder >= 2\.0\.0\fR\.
253
+ .
254
+ .P
255
+ When the dependencies are first resolved, Bundler will select \fBactivesupport 2\.3\.8\fR, which satisfies the requirements of both gems in your Gemfile(5)\.
256
+ .
257
+ .P
258
+ Next, you modify your Gemfile(5) to:
259
+ .
260
+ .IP "" 4
261
+ .
262
+ .nf
263
+
264
+ source \'https://rubygems\.org\'
265
+
266
+ gem \'actionpack\', \'3\.0\.0\.rc\'
267
+ gem \'activemerchant\'
268
+ .
269
+ .fi
270
+ .
271
+ .IP "" 0
272
+ .
273
+ .P
274
+ The \fBactionpack 3\.0\.0\.rc\fR gem has a number of new dependencies, and updates the \fBactivesupport\fR dependency to \fB= 3\.0\.0\.rc\fR and the \fBrack\fR dependency to \fB~> 1\.2\.1\fR\.
275
+ .
276
+ .P
277
+ When you run \fBbundle install\fR, Bundler notices that you changed the \fBactionpack\fR gem, but not the \fBactivemerchant\fR gem\. It evaluates the gems currently being used to satisfy its requirements:
278
+ .
279
+ .TP
280
+ \fBactivesupport 2\.3\.8\fR
281
+ also used to satisfy a dependency in \fBactivemerchant\fR, which is not being updated
282
+ .
283
+ .TP
284
+ \fBrack ~> 1\.1\.0\fR
285
+ not currently being used to satisfy another dependency
286
+ .
287
+ .P
288
+ Because you did not explicitly ask to update \fBactivemerchant\fR, you would not expect it to suddenly stop working after updating \fBactionpack\fR\. However, satisfying the new \fBactivesupport 3\.0\.0\.rc\fR dependency of actionpack requires updating one of its dependencies\.
289
+ .
290
+ .P
291
+ Even though \fBactivemerchant\fR declares a very loose dependency that theoretically matches \fBactivesupport 3\.0\.0\.rc\fR, Bundler treats gems in your Gemfile(5) that have not changed as an atomic unit together with their dependencies\. In this case, the \fBactivemerchant\fR dependency is treated as \fBactivemerchant 1\.7\.1 + activesupport 2\.3\.8\fR, so \fBbundle install\fR will report that it cannot update \fBactionpack\fR\.
292
+ .
293
+ .P
294
+ To explicitly update \fBactionpack\fR, including its dependencies which other gems in the Gemfile(5) still depend on, run \fBbundle update actionpack\fR (see \fBbundle update(1)\fR)\.
295
+ .
296
+ .P
297
+ \fBSummary\fR: In general, after making a change to the Gemfile(5) , you should first try to run \fBbundle install\fR, which will guarantee that no other gem in the Gemfile(5) is impacted by the change\. If that does not work, run bundle update(1) \fIbundle\-update\.1\.html\fR\.
298
+ .
299
+ .SH "SEE ALSO"
300
+ .
301
+ .IP "\(bu" 4
302
+ Gem install docs \fIhttp://guides\.rubygems\.org/rubygems\-basics/#installing\-gems\fR
303
+ .
304
+ .IP "\(bu" 4
305
+ Rubygems signing docs \fIhttp://guides\.rubygems\.org/security/\fR
306
+ .
307
+ .IP "" 0
308
+