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,394 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "BUNDLE\-UPDATE" "1" "June 2019" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBbundle\-update\fR \- Update your gems to the latest available versions
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBbundle update\fR \fI*gems\fR [\-\-all] [\-\-group=NAME] [\-\-source=NAME] [\-\-local] [\-\-ruby] [\-\-bundler[=VERSION]] [\-\-full\-index] [\-\-jobs=JOBS] [\-\-quiet] [\-\-force] [\-\-patch|\-\-minor|\-\-major] [\-\-strict] [\-\-conservative]
11
+ .
12
+ .SH "DESCRIPTION"
13
+ Update the gems specified (all gems, if \fB\-\-all\fR flag is used), ignoring the previously installed gems specified in the \fBGemfile\.lock\fR\. In general, you should use bundle install(1) \fIbundle\-install\.1\.html\fR to install the same exact gems and versions across machines\.
14
+ .
15
+ .P
16
+ You would use \fBbundle update\fR to explicitly update the version of a gem\.
17
+ .
18
+ .SH "OPTIONS"
19
+ .
20
+ .TP
21
+ \fB\-\-all\fR
22
+ Update all gems specified in Gemfile\.
23
+ .
24
+ .TP
25
+ \fB\-\-group=<name>\fR, \fB\-g=[<name>]\fR
26
+ Only update the gems in the specified group\. For instance, you can update all gems in the development group with \fBbundle update \-\-group development\fR\. You can also call \fBbundle update rails \-\-group test\fR to update the rails gem and all gems in the test group, for example\.
27
+ .
28
+ .TP
29
+ \fB\-\-source=<name>\fR
30
+ The name of a \fB:git\fR or \fB:path\fR source used in the Gemfile(5)\. For instance, with a \fB:git\fR source of \fBhttp://github\.com/rails/rails\.git\fR, you would call \fBbundle update \-\-source rails\fR
31
+ .
32
+ .TP
33
+ \fB\-\-local\fR
34
+ Do not attempt to fetch gems remotely and use the gem cache instead\.
35
+ .
36
+ .TP
37
+ \fB\-\-ruby\fR
38
+ Update the locked version of Ruby to the current version of Ruby\.
39
+ .
40
+ .TP
41
+ \fB\-\-bundler\fR
42
+ Update the locked version of bundler to the invoked bundler version\.
43
+ .
44
+ .TP
45
+ \fB\-\-full\-index\fR
46
+ Fall back to using the single\-file index of all gems\.
47
+ .
48
+ .TP
49
+ \fB\-\-jobs=[<number>]\fR, \fB\-j[<number>]\fR
50
+ Specify the number of jobs to run in parallel\. The default is \fB1\fR\.
51
+ .
52
+ .TP
53
+ \fB\-\-retry=[<number>]\fR
54
+ Retry failed network or git requests for \fInumber\fR times\.
55
+ .
56
+ .TP
57
+ \fB\-\-quiet\fR
58
+ Only output warnings and errors\.
59
+ .
60
+ .TP
61
+ \fB\-\-force\fR
62
+ Force downloading every gem\. \fB\-\-redownload\fR is an alias of this option\.
63
+ .
64
+ .TP
65
+ \fB\-\-patch\fR
66
+ Prefer updating only to next patch version\.
67
+ .
68
+ .TP
69
+ \fB\-\-minor\fR
70
+ Prefer updating only to next minor version\.
71
+ .
72
+ .TP
73
+ \fB\-\-major\fR
74
+ Prefer updating to next major version (default)\.
75
+ .
76
+ .TP
77
+ \fB\-\-strict\fR
78
+ Do not allow any gem to be updated past latest \fB\-\-patch\fR | \fB\-\-minor\fR | \fB\-\-major\fR\.
79
+ .
80
+ .TP
81
+ \fB\-\-conservative\fR
82
+ Use bundle install conservative update behavior and do not allow shared dependencies to be updated\.
83
+ .
84
+ .SH "UPDATING ALL GEMS"
85
+ If you run \fBbundle update \-\-all\fR, bundler will ignore any previously installed gems and resolve all dependencies again based on the latest versions of all gems available in the sources\.
86
+ .
87
+ .P
88
+ Consider the following Gemfile(5):
89
+ .
90
+ .IP "" 4
91
+ .
92
+ .nf
93
+
94
+ source "https://rubygems\.org"
95
+
96
+ gem "rails", "3\.0\.0\.rc"
97
+ gem "nokogiri"
98
+ .
99
+ .fi
100
+ .
101
+ .IP "" 0
102
+ .
103
+ .P
104
+ When you run bundle install(1) \fIbundle\-install\.1\.html\fR the first time, bundler will resolve all of the dependencies, all the way down, and install what you need:
105
+ .
106
+ .IP "" 4
107
+ .
108
+ .nf
109
+
110
+ Fetching gem metadata from https://rubygems\.org/\.\.\.\.\.\.\.\.\.
111
+ Resolving dependencies\.\.\.
112
+ Installing builder 2\.1\.2
113
+ Installing abstract 1\.0\.0
114
+ Installing rack 1\.2\.8
115
+ Using bundler 1\.7\.6
116
+ Installing rake 10\.4\.0
117
+ Installing polyglot 0\.3\.5
118
+ Installing mime\-types 1\.25\.1
119
+ Installing i18n 0\.4\.2
120
+ Installing mini_portile 0\.6\.1
121
+ Installing tzinfo 0\.3\.42
122
+ Installing rack\-mount 0\.6\.14
123
+ Installing rack\-test 0\.5\.7
124
+ Installing treetop 1\.4\.15
125
+ Installing thor 0\.14\.6
126
+ Installing activesupport 3\.0\.0\.rc
127
+ Installing erubis 2\.6\.6
128
+ Installing activemodel 3\.0\.0\.rc
129
+ Installing arel 0\.4\.0
130
+ Installing mail 2\.2\.20
131
+ Installing activeresource 3\.0\.0\.rc
132
+ Installing actionpack 3\.0\.0\.rc
133
+ Installing activerecord 3\.0\.0\.rc
134
+ Installing actionmailer 3\.0\.0\.rc
135
+ Installing railties 3\.0\.0\.rc
136
+ Installing rails 3\.0\.0\.rc
137
+ Installing nokogiri 1\.6\.5
138
+
139
+ Bundle complete! 2 Gemfile dependencies, 26 gems total\.
140
+ Use `bundle show [gemname]` to see where a bundled gem is installed\.
141
+ .
142
+ .fi
143
+ .
144
+ .IP "" 0
145
+ .
146
+ .P
147
+ As you can see, even though you have two gems in the Gemfile(5), your application needs 26 different gems in order to run\. Bundler remembers the exact versions it installed in \fBGemfile\.lock\fR\. The next time you run bundle install(1) \fIbundle\-install\.1\.html\fR, bundler skips the dependency resolution and installs the same gems as it installed last time\.
148
+ .
149
+ .P
150
+ After checking in the \fBGemfile\.lock\fR into version control and cloning it on another machine, running bundle install(1) \fIbundle\-install\.1\.html\fR will \fIstill\fR install the gems that you installed last time\. You don\'t need to worry that a new release of \fBerubis\fR or \fBmail\fR changes the gems you use\.
151
+ .
152
+ .P
153
+ However, from time to time, you might want to update the gems you are using to the newest versions that still match the gems in your Gemfile(5)\.
154
+ .
155
+ .P
156
+ To do this, run \fBbundle update \-\-all\fR, which will ignore the \fBGemfile\.lock\fR, and resolve all the dependencies again\. Keep in mind that this process can result in a significantly different set of the 25 gems, based on the requirements of new gems that the gem authors released since the last time you ran \fBbundle update \-\-all\fR\.
157
+ .
158
+ .SH "UPDATING A LIST OF GEMS"
159
+ Sometimes, you want to update a single gem in the Gemfile(5), and leave the rest of the gems that you specified locked to the versions in the \fBGemfile\.lock\fR\.
160
+ .
161
+ .P
162
+ For instance, in the scenario above, imagine that \fBnokogiri\fR releases version \fB1\.4\.4\fR, and you want to update it \fIwithout\fR updating Rails and all of its dependencies\. To do this, run \fBbundle update nokogiri\fR\.
163
+ .
164
+ .P
165
+ Bundler will update \fBnokogiri\fR and any of its dependencies, but leave alone Rails and its dependencies\.
166
+ .
167
+ .SH "OVERLAPPING DEPENDENCIES"
168
+ Sometimes, multiple gems declared in your Gemfile(5) are satisfied by the same second\-level dependency\. For instance, consider the case of \fBthin\fR and \fBrack\-perftools\-profiler\fR\.
169
+ .
170
+ .IP "" 4
171
+ .
172
+ .nf
173
+
174
+ source "https://rubygems\.org"
175
+
176
+ gem "thin"
177
+ gem "rack\-perftools\-profiler"
178
+ .
179
+ .fi
180
+ .
181
+ .IP "" 0
182
+ .
183
+ .P
184
+ The \fBthin\fR gem depends on \fBrack >= 1\.0\fR, while \fBrack\-perftools\-profiler\fR depends on \fBrack ~> 1\.0\fR\. If you run bundle install, you get:
185
+ .
186
+ .IP "" 4
187
+ .
188
+ .nf
189
+
190
+ Fetching source index for https://rubygems\.org/
191
+ Installing daemons (1\.1\.0)
192
+ Installing eventmachine (0\.12\.10) with native extensions
193
+ Installing open4 (1\.0\.1)
194
+ Installing perftools\.rb (0\.4\.7) with native extensions
195
+ Installing rack (1\.2\.1)
196
+ Installing rack\-perftools_profiler (0\.0\.2)
197
+ Installing thin (1\.2\.7) with native extensions
198
+ Using bundler (1\.0\.0\.rc\.3)
199
+ .
200
+ .fi
201
+ .
202
+ .IP "" 0
203
+ .
204
+ .P
205
+ In this case, the two gems have their own set of dependencies, but they share \fBrack\fR in common\. If you run \fBbundle update thin\fR, bundler will update \fBdaemons\fR, \fBeventmachine\fR and \fBrack\fR, which are dependencies of \fBthin\fR, but not \fBopen4\fR or \fBperftools\.rb\fR, which are dependencies of \fBrack\-perftools_profiler\fR\. Note that \fBbundle update thin\fR will update \fBrack\fR even though it\'s \fIalso\fR a dependency of \fBrack\-perftools_profiler\fR\.
206
+ .
207
+ .P
208
+ In short, by default, when you update a gem using \fBbundle update\fR, bundler will update all dependencies of that gem, including those that are also dependencies of another gem\.
209
+ .
210
+ .P
211
+ To prevent updating shared dependencies, prior to version 1\.14 the only option was the \fBCONSERVATIVE UPDATING\fR behavior in bundle install(1) \fIbundle\-install\.1\.html\fR:
212
+ .
213
+ .P
214
+ In this scenario, updating the \fBthin\fR version manually in the Gemfile(5), and then running bundle install(1) \fIbundle\-install\.1\.html\fR will only update \fBdaemons\fR and \fBeventmachine\fR, but not \fBrack\fR\. For more information, see the \fBCONSERVATIVE UPDATING\fR section of bundle install(1) \fIbundle\-install\.1\.html\fR\.
215
+ .
216
+ .P
217
+ Starting with 1\.14, specifying the \fB\-\-conservative\fR option will also prevent shared dependencies from being updated\.
218
+ .
219
+ .SH "PATCH LEVEL OPTIONS"
220
+ Version 1\.14 introduced 4 patch\-level options that will influence how gem versions are resolved\. One of the following options can be used: \fB\-\-patch\fR, \fB\-\-minor\fR or \fB\-\-major\fR\. \fB\-\-strict\fR can be added to further influence resolution\.
221
+ .
222
+ .TP
223
+ \fB\-\-patch\fR
224
+ Prefer updating only to next patch version\.
225
+ .
226
+ .TP
227
+ \fB\-\-minor\fR
228
+ Prefer updating only to next minor version\.
229
+ .
230
+ .TP
231
+ \fB\-\-major\fR
232
+ Prefer updating to next major version (default)\.
233
+ .
234
+ .TP
235
+ \fB\-\-strict\fR
236
+ Do not allow any gem to be updated past latest \fB\-\-patch\fR | \fB\-\-minor\fR | \fB\-\-major\fR\.
237
+ .
238
+ .P
239
+ When Bundler is resolving what versions to use to satisfy declared requirements in the Gemfile or in parent gems, it looks up all available versions, filters out any versions that don\'t satisfy the requirement, and then, by default, sorts them from newest to oldest, considering them in that order\.
240
+ .
241
+ .P
242
+ Providing one of the patch level options (e\.g\. \fB\-\-patch\fR) changes the sort order of the satisfying versions, causing Bundler to consider the latest \fB\-\-patch\fR or \fB\-\-minor\fR version available before other versions\. Note that versions outside the stated patch level could still be resolved to if necessary to find a suitable dependency graph\.
243
+ .
244
+ .P
245
+ For example, if gem \'foo\' is locked at 1\.0\.2, with no gem requirement defined in the Gemfile, and versions 1\.0\.3, 1\.0\.4, 1\.1\.0, 1\.1\.1, 2\.0\.0 all exist, the default order of preference by default (\fB\-\-major\fR) will be "2\.0\.0, 1\.1\.1, 1\.1\.0, 1\.0\.4, 1\.0\.3, 1\.0\.2"\.
246
+ .
247
+ .P
248
+ If the \fB\-\-patch\fR option is used, the order of preference will change to "1\.0\.4, 1\.0\.3, 1\.0\.2, 1\.1\.1, 1\.1\.0, 2\.0\.0"\.
249
+ .
250
+ .P
251
+ If the \fB\-\-minor\fR option is used, the order of preference will change to "1\.1\.1, 1\.1\.0, 1\.0\.4, 1\.0\.3, 1\.0\.2, 2\.0\.0"\.
252
+ .
253
+ .P
254
+ Combining the \fB\-\-strict\fR option with any of the patch level options will remove any versions beyond the scope of the patch level option, to ensure that no gem is updated that far\.
255
+ .
256
+ .P
257
+ To continue the previous example, if both \fB\-\-patch\fR and \fB\-\-strict\fR options are used, the available versions for resolution would be "1\.0\.4, 1\.0\.3, 1\.0\.2"\. If \fB\-\-minor\fR and \fB\-\-strict\fR are used, it would be "1\.1\.1, 1\.1\.0, 1\.0\.4, 1\.0\.3, 1\.0\.2"\.
258
+ .
259
+ .P
260
+ Gem requirements as defined in the Gemfile will still be the first determining factor for what versions are available\. If the gem requirement for \fBfoo\fR in the Gemfile is \'~> 1\.0\', that will accomplish the same thing as providing the \fB\-\-minor\fR and \fB\-\-strict\fR options\.
261
+ .
262
+ .SH "PATCH LEVEL EXAMPLES"
263
+ Given the following gem specifications:
264
+ .
265
+ .IP "" 4
266
+ .
267
+ .nf
268
+
269
+ foo 1\.4\.3, requires: ~> bar 2\.0
270
+ foo 1\.4\.4, requires: ~> bar 2\.0
271
+ foo 1\.4\.5, requires: ~> bar 2\.1
272
+ foo 1\.5\.0, requires: ~> bar 2\.1
273
+ foo 1\.5\.1, requires: ~> bar 3\.0
274
+ bar with versions 2\.0\.3, 2\.0\.4, 2\.1\.0, 2\.1\.1, 3\.0\.0
275
+ .
276
+ .fi
277
+ .
278
+ .IP "" 0
279
+ .
280
+ .P
281
+ Gemfile:
282
+ .
283
+ .IP "" 4
284
+ .
285
+ .nf
286
+
287
+ gem \'foo\'
288
+ .
289
+ .fi
290
+ .
291
+ .IP "" 0
292
+ .
293
+ .P
294
+ Gemfile\.lock:
295
+ .
296
+ .IP "" 4
297
+ .
298
+ .nf
299
+
300
+ foo (1\.4\.3)
301
+ bar (~> 2\.0)
302
+ bar (2\.0\.3)
303
+ .
304
+ .fi
305
+ .
306
+ .IP "" 0
307
+ .
308
+ .P
309
+ Cases:
310
+ .
311
+ .IP "" 4
312
+ .
313
+ .nf
314
+
315
+ # Command Line Result
316
+ \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
317
+ 1 bundle update \-\-patch \'foo 1\.4\.5\', \'bar 2\.1\.1\'
318
+ 2 bundle update \-\-patch foo \'foo 1\.4\.5\', \'bar 2\.1\.1\'
319
+ 3 bundle update \-\-minor \'foo 1\.5\.1\', \'bar 3\.0\.0\'
320
+ 4 bundle update \-\-minor \-\-strict \'foo 1\.5\.0\', \'bar 2\.1\.1\'
321
+ 5 bundle update \-\-patch \-\-strict \'foo 1\.4\.4\', \'bar 2\.0\.4\'
322
+ .
323
+ .fi
324
+ .
325
+ .IP "" 0
326
+ .
327
+ .P
328
+ In case 1, bar is upgraded to 2\.1\.1, a minor version increase, because the dependency from foo 1\.4\.5 required it\.
329
+ .
330
+ .P
331
+ In case 2, only foo is requested to be unlocked, but bar is also allowed to move because it\'s not a declared dependency in the Gemfile\.
332
+ .
333
+ .P
334
+ In case 3, bar goes up a whole major release, because a minor increase is preferred now for foo, and when it goes to 1\.5\.1, it requires 3\.0\.0 of bar\.
335
+ .
336
+ .P
337
+ In case 4, foo is preferred up to a minor version, but 1\.5\.1 won\'t work because the \-\-strict flag removes bar 3\.0\.0 from consideration since it\'s a major increment\.
338
+ .
339
+ .P
340
+ In case 5, both foo and bar have any minor or major increments removed from consideration because of the \-\-strict flag, so the most they can move is up to 1\.4\.4 and 2\.0\.4\.
341
+ .
342
+ .SH "RECOMMENDED WORKFLOW"
343
+ In general, when working with an application managed with bundler, you should use the following workflow:
344
+ .
345
+ .IP "\(bu" 4
346
+ After you create your Gemfile(5) for the first time, run
347
+ .
348
+ .IP
349
+ $ bundle install
350
+ .
351
+ .IP "\(bu" 4
352
+ Check the resulting \fBGemfile\.lock\fR into version control
353
+ .
354
+ .IP
355
+ $ git add Gemfile\.lock
356
+ .
357
+ .IP "\(bu" 4
358
+ When checking out this repository on another development machine, run
359
+ .
360
+ .IP
361
+ $ bundle install
362
+ .
363
+ .IP "\(bu" 4
364
+ When checking out this repository on a deployment machine, run
365
+ .
366
+ .IP
367
+ $ bundle install \-\-deployment
368
+ .
369
+ .IP "\(bu" 4
370
+ After changing the Gemfile(5) to reflect a new or update dependency, run
371
+ .
372
+ .IP
373
+ $ bundle install
374
+ .
375
+ .IP "\(bu" 4
376
+ Make sure to check the updated \fBGemfile\.lock\fR into version control
377
+ .
378
+ .IP
379
+ $ git add Gemfile\.lock
380
+ .
381
+ .IP "\(bu" 4
382
+ If bundle install(1) \fIbundle\-install\.1\.html\fR reports a conflict, manually update the specific gems that you changed in the Gemfile(5)
383
+ .
384
+ .IP
385
+ $ bundle update rails thin
386
+ .
387
+ .IP "\(bu" 4
388
+ If you want to update all the gems to the latest possible versions that still match the gems listed in the Gemfile(5), run
389
+ .
390
+ .IP
391
+ $ bundle update \-\-all
392
+ .
393
+ .IP "" 0
394
+
@@ -0,0 +1,391 @@
1
+ BUNDLE-UPDATE(1) BUNDLE-UPDATE(1)
2
+
3
+
4
+
5
+ NAME
6
+ bundle-update - Update your gems to the latest available versions
7
+
8
+ SYNOPSIS
9
+ bundle update *gems [--all] [--group=NAME] [--source=NAME] [--local]
10
+ [--ruby] [--bundler[=VERSION]] [--full-index] [--jobs=JOBS] [--quiet]
11
+ [--force] [--patch|--minor|--major] [--strict] [--conservative]
12
+
13
+ DESCRIPTION
14
+ Update the gems specified (all gems, if --all flag is used), ignoring
15
+ the previously installed gems specified in the Gemfile.lock. In gen-
16
+ eral, you should use bundle install(1) bundle-install.1.html to install
17
+ the same exact gems and versions across machines.
18
+
19
+ You would use bundle update to explicitly update the version of a gem.
20
+
21
+ OPTIONS
22
+ --all Update all gems specified in Gemfile.
23
+
24
+ --group=<name>, -g=[<name>]
25
+ Only update the gems in the specified group. For instance, you
26
+ can update all gems in the development group with bundle update
27
+ --group development. You can also call bundle update rails
28
+ --group test to update the rails gem and all gems in the test
29
+ group, for example.
30
+
31
+ --source=<name>
32
+ The name of a :git or :path source used in the Gemfile(5). For
33
+ instance, with a :git source of
34
+ http://github.com/rails/rails.git, you would call bundle update
35
+ --source rails
36
+
37
+ --local
38
+ Do not attempt to fetch gems remotely and use the gem cache
39
+ instead.
40
+
41
+ --ruby Update the locked version of Ruby to the current version of
42
+ Ruby.
43
+
44
+ --bundler
45
+ Update the locked version of bundler to the invoked bundler ver-
46
+ sion.
47
+
48
+ --full-index
49
+ Fall back to using the single-file index of all gems.
50
+
51
+ --jobs=[<number>], -j[<number>]
52
+ Specify the number of jobs to run in parallel. The default is 1.
53
+
54
+ --retry=[<number>]
55
+ Retry failed network or git requests for number times.
56
+
57
+ --quiet
58
+ Only output warnings and errors.
59
+
60
+ --force
61
+ Force downloading every gem. --redownload is an alias of this
62
+ option.
63
+
64
+ --patch
65
+ Prefer updating only to next patch version.
66
+
67
+ --minor
68
+ Prefer updating only to next minor version.
69
+
70
+ --major
71
+ Prefer updating to next major version (default).
72
+
73
+ --strict
74
+ Do not allow any gem to be updated past latest --patch | --minor
75
+ | --major.
76
+
77
+ --conservative
78
+ Use bundle install conservative update behavior and do not allow
79
+ shared dependencies to be updated.
80
+
81
+ UPDATING ALL GEMS
82
+ If you run bundle update --all, bundler will ignore any previously
83
+ installed gems and resolve all dependencies again based on the latest
84
+ versions of all gems available in the sources.
85
+
86
+ Consider the following Gemfile(5):
87
+
88
+
89
+
90
+ source "https://rubygems.org"
91
+
92
+ gem "rails", "3.0.0.rc"
93
+ gem "nokogiri"
94
+
95
+
96
+
97
+ When you run bundle install(1) bundle-install.1.html the first time,
98
+ bundler will resolve all of the dependencies, all the way down, and
99
+ install what you need:
100
+
101
+
102
+
103
+ Fetching gem metadata from https://rubygems.org/.........
104
+ Resolving dependencies...
105
+ Installing builder 2.1.2
106
+ Installing abstract 1.0.0
107
+ Installing rack 1.2.8
108
+ Using bundler 1.7.6
109
+ Installing rake 10.4.0
110
+ Installing polyglot 0.3.5
111
+ Installing mime-types 1.25.1
112
+ Installing i18n 0.4.2
113
+ Installing mini_portile 0.6.1
114
+ Installing tzinfo 0.3.42
115
+ Installing rack-mount 0.6.14
116
+ Installing rack-test 0.5.7
117
+ Installing treetop 1.4.15
118
+ Installing thor 0.14.6
119
+ Installing activesupport 3.0.0.rc
120
+ Installing erubis 2.6.6
121
+ Installing activemodel 3.0.0.rc
122
+ Installing arel 0.4.0
123
+ Installing mail 2.2.20
124
+ Installing activeresource 3.0.0.rc
125
+ Installing actionpack 3.0.0.rc
126
+ Installing activerecord 3.0.0.rc
127
+ Installing actionmailer 3.0.0.rc
128
+ Installing railties 3.0.0.rc
129
+ Installing rails 3.0.0.rc
130
+ Installing nokogiri 1.6.5
131
+
132
+ Bundle complete! 2 Gemfile dependencies, 26 gems total.
133
+ Use `bundle show [gemname]` to see where a bundled gem is installed.
134
+
135
+
136
+
137
+ As you can see, even though you have two gems in the Gemfile(5), your
138
+ application needs 26 different gems in order to run. Bundler remembers
139
+ the exact versions it installed in Gemfile.lock. The next time you run
140
+ bundle install(1) bundle-install.1.html, bundler skips the dependency
141
+ resolution and installs the same gems as it installed last time.
142
+
143
+ After checking in the Gemfile.lock into version control and cloning it
144
+ on another machine, running bundle install(1) bundle-install.1.html
145
+ will still install the gems that you installed last time. You don't
146
+ need to worry that a new release of erubis or mail changes the gems you
147
+ use.
148
+
149
+ However, from time to time, you might want to update the gems you are
150
+ using to the newest versions that still match the gems in your Gem-
151
+ file(5).
152
+
153
+ To do this, run bundle update --all, which will ignore the Gem-
154
+ file.lock, and resolve all the dependencies again. Keep in mind that
155
+ this process can result in a significantly different set of the 25
156
+ gems, based on the requirements of new gems that the gem authors
157
+ released since the last time you ran bundle update --all.
158
+
159
+ UPDATING A LIST OF GEMS
160
+ Sometimes, you want to update a single gem in the Gemfile(5), and leave
161
+ the rest of the gems that you specified locked to the versions in the
162
+ Gemfile.lock.
163
+
164
+ For instance, in the scenario above, imagine that nokogiri releases
165
+ version 1.4.4, and you want to update it without updating Rails and all
166
+ of its dependencies. To do this, run bundle update nokogiri.
167
+
168
+ Bundler will update nokogiri and any of its dependencies, but leave
169
+ alone Rails and its dependencies.
170
+
171
+ OVERLAPPING DEPENDENCIES
172
+ Sometimes, multiple gems declared in your Gemfile(5) are satisfied by
173
+ the same second-level dependency. For instance, consider the case of
174
+ thin and rack-perftools-profiler.
175
+
176
+
177
+
178
+ source "https://rubygems.org"
179
+
180
+ gem "thin"
181
+ gem "rack-perftools-profiler"
182
+
183
+
184
+
185
+ The thin gem depends on rack >= 1.0, while rack-perftools-profiler
186
+ depends on rack ~> 1.0. If you run bundle install, you get:
187
+
188
+
189
+
190
+ Fetching source index for https://rubygems.org/
191
+ Installing daemons (1.1.0)
192
+ Installing eventmachine (0.12.10) with native extensions
193
+ Installing open4 (1.0.1)
194
+ Installing perftools.rb (0.4.7) with native extensions
195
+ Installing rack (1.2.1)
196
+ Installing rack-perftools_profiler (0.0.2)
197
+ Installing thin (1.2.7) with native extensions
198
+ Using bundler (1.0.0.rc.3)
199
+
200
+
201
+
202
+ In this case, the two gems have their own set of dependencies, but they
203
+ share rack in common. If you run bundle update thin, bundler will
204
+ update daemons, eventmachine and rack, which are dependencies of thin,
205
+ but not open4 or perftools.rb, which are dependencies of
206
+ rack-perftools_profiler. Note that bundle update thin will update rack
207
+ even though it's also a dependency of rack-perftools_profiler.
208
+
209
+ In short, by default, when you update a gem using bundle update,
210
+ bundler will update all dependencies of that gem, including those that
211
+ are also dependencies of another gem.
212
+
213
+ To prevent updating shared dependencies, prior to version 1.14 the only
214
+ option was the CONSERVATIVE UPDATING behavior in bundle install(1) bun-
215
+ dle-install.1.html:
216
+
217
+ In this scenario, updating the thin version manually in the Gemfile(5),
218
+ and then running bundle install(1) bundle-install.1.html will only
219
+ update daemons and eventmachine, but not rack. For more information,
220
+ see the CONSERVATIVE UPDATING section of bundle install(1) bun-
221
+ dle-install.1.html.
222
+
223
+ Starting with 1.14, specifying the --conservative option will also pre-
224
+ vent shared dependencies from being updated.
225
+
226
+ PATCH LEVEL OPTIONS
227
+ Version 1.14 introduced 4 patch-level options that will influence how
228
+ gem versions are resolved. One of the following options can be used:
229
+ --patch, --minor or --major. --strict can be added to further influence
230
+ resolution.
231
+
232
+ --patch
233
+ Prefer updating only to next patch version.
234
+
235
+ --minor
236
+ Prefer updating only to next minor version.
237
+
238
+ --major
239
+ Prefer updating to next major version (default).
240
+
241
+ --strict
242
+ Do not allow any gem to be updated past latest --patch | --minor
243
+ | --major.
244
+
245
+ When Bundler is resolving what versions to use to satisfy declared
246
+ requirements in the Gemfile or in parent gems, it looks up all avail-
247
+ able versions, filters out any versions that don't satisfy the require-
248
+ ment, and then, by default, sorts them from newest to oldest, consider-
249
+ ing them in that order.
250
+
251
+ Providing one of the patch level options (e.g. --patch) changes the
252
+ sort order of the satisfying versions, causing Bundler to consider the
253
+ latest --patch or --minor version available before other versions. Note
254
+ that versions outside the stated patch level could still be resolved to
255
+ if necessary to find a suitable dependency graph.
256
+
257
+ For example, if gem 'foo' is locked at 1.0.2, with no gem requirement
258
+ defined in the Gemfile, and versions 1.0.3, 1.0.4, 1.1.0, 1.1.1, 2.0.0
259
+ all exist, the default order of preference by default (--major) will be
260
+ "2.0.0, 1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2".
261
+
262
+ If the --patch option is used, the order of preference will change to
263
+ "1.0.4, 1.0.3, 1.0.2, 1.1.1, 1.1.0, 2.0.0".
264
+
265
+ If the --minor option is used, the order of preference will change to
266
+ "1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2, 2.0.0".
267
+
268
+ Combining the --strict option with any of the patch level options will
269
+ remove any versions beyond the scope of the patch level option, to
270
+ ensure that no gem is updated that far.
271
+
272
+ To continue the previous example, if both --patch and --strict options
273
+ are used, the available versions for resolution would be "1.0.4, 1.0.3,
274
+ 1.0.2". If --minor and --strict are used, it would be "1.1.1, 1.1.0,
275
+ 1.0.4, 1.0.3, 1.0.2".
276
+
277
+ Gem requirements as defined in the Gemfile will still be the first
278
+ determining factor for what versions are available. If the gem require-
279
+ ment for foo in the Gemfile is '~> 1.0', that will accomplish the same
280
+ thing as providing the --minor and --strict options.
281
+
282
+ PATCH LEVEL EXAMPLES
283
+ Given the following gem specifications:
284
+
285
+
286
+
287
+ foo 1.4.3, requires: ~> bar 2.0
288
+ foo 1.4.4, requires: ~> bar 2.0
289
+ foo 1.4.5, requires: ~> bar 2.1
290
+ foo 1.5.0, requires: ~> bar 2.1
291
+ foo 1.5.1, requires: ~> bar 3.0
292
+ bar with versions 2.0.3, 2.0.4, 2.1.0, 2.1.1, 3.0.0
293
+
294
+
295
+
296
+ Gemfile:
297
+
298
+
299
+
300
+ gem 'foo'
301
+
302
+
303
+
304
+ Gemfile.lock:
305
+
306
+
307
+
308
+ foo (1.4.3)
309
+ bar (~> 2.0)
310
+ bar (2.0.3)
311
+
312
+
313
+
314
+ Cases:
315
+
316
+
317
+
318
+ # Command Line Result
319
+ ------------------------------------------------------------
320
+ 1 bundle update --patch 'foo 1.4.5', 'bar 2.1.1'
321
+ 2 bundle update --patch foo 'foo 1.4.5', 'bar 2.1.1'
322
+ 3 bundle update --minor 'foo 1.5.1', 'bar 3.0.0'
323
+ 4 bundle update --minor --strict 'foo 1.5.0', 'bar 2.1.1'
324
+ 5 bundle update --patch --strict 'foo 1.4.4', 'bar 2.0.4'
325
+
326
+
327
+
328
+ In case 1, bar is upgraded to 2.1.1, a minor version increase, because
329
+ the dependency from foo 1.4.5 required it.
330
+
331
+ In case 2, only foo is requested to be unlocked, but bar is also
332
+ allowed to move because it's not a declared dependency in the Gemfile.
333
+
334
+ In case 3, bar goes up a whole major release, because a minor increase
335
+ is preferred now for foo, and when it goes to 1.5.1, it requires 3.0.0
336
+ of bar.
337
+
338
+ In case 4, foo is preferred up to a minor version, but 1.5.1 won't work
339
+ because the --strict flag removes bar 3.0.0 from consideration since
340
+ it's a major increment.
341
+
342
+ In case 5, both foo and bar have any minor or major increments removed
343
+ from consideration because of the --strict flag, so the most they can
344
+ move is up to 1.4.4 and 2.0.4.
345
+
346
+ RECOMMENDED WORKFLOW
347
+ In general, when working with an application managed with bundler, you
348
+ should use the following workflow:
349
+
350
+ o After you create your Gemfile(5) for the first time, run
351
+
352
+ $ bundle install
353
+
354
+ o Check the resulting Gemfile.lock into version control
355
+
356
+ $ git add Gemfile.lock
357
+
358
+ o When checking out this repository on another development machine,
359
+ run
360
+
361
+ $ bundle install
362
+
363
+ o When checking out this repository on a deployment machine, run
364
+
365
+ $ bundle install --deployment
366
+
367
+ o After changing the Gemfile(5) to reflect a new or update depen-
368
+ dency, run
369
+
370
+ $ bundle install
371
+
372
+ o Make sure to check the updated Gemfile.lock into version control
373
+
374
+ $ git add Gemfile.lock
375
+
376
+ o If bundle install(1) bundle-install.1.html reports a conflict, man-
377
+ ually update the specific gems that you changed in the Gemfile(5)
378
+
379
+ $ bundle update rails thin
380
+
381
+ o If you want to update all the gems to the latest possible versions
382
+ that still match the gems listed in the Gemfile(5), run
383
+
384
+ $ bundle update --all
385
+
386
+
387
+
388
+
389
+
390
+
391
+ June 2019 BUNDLE-UPDATE(1)