bundler 1.15.4 → 1.16.0.pre.1

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

Potentially problematic release.


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

Files changed (251) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +43 -0
  3. data/README.md +12 -7
  4. data/exe/bundle +1 -1
  5. data/exe/bundle_ruby +4 -3
  6. data/lib/bundler.rb +47 -37
  7. data/lib/bundler/build_metadata.rb +38 -0
  8. data/lib/bundler/capistrano.rb +5 -0
  9. data/lib/bundler/cli.rb +155 -67
  10. data/lib/bundler/cli/add.rb +0 -1
  11. data/lib/bundler/cli/binstubs.rb +9 -7
  12. data/lib/bundler/cli/cache.rb +5 -4
  13. data/lib/bundler/cli/check.rb +3 -5
  14. data/lib/bundler/cli/clean.rb +5 -6
  15. data/lib/bundler/cli/common.rb +11 -2
  16. data/lib/bundler/cli/config.rb +2 -1
  17. data/lib/bundler/cli/console.rb +2 -1
  18. data/lib/bundler/cli/doctor.rb +1 -0
  19. data/lib/bundler/cli/exec.rb +2 -1
  20. data/lib/bundler/cli/gem.rb +3 -2
  21. data/lib/bundler/cli/info.rb +0 -1
  22. data/lib/bundler/cli/init.rb +17 -6
  23. data/lib/bundler/cli/inject.rb +1 -0
  24. data/lib/bundler/cli/install.rb +61 -61
  25. data/lib/bundler/cli/issue.rb +1 -1
  26. data/lib/bundler/cli/list.rb +22 -0
  27. data/lib/bundler/cli/lock.rb +0 -1
  28. data/lib/bundler/cli/open.rb +2 -2
  29. data/lib/bundler/cli/outdated.rb +13 -8
  30. data/lib/bundler/cli/package.rb +9 -6
  31. data/lib/bundler/cli/platform.rb +1 -0
  32. data/lib/bundler/cli/plugin.rb +1 -0
  33. data/lib/bundler/cli/pristine.rb +9 -2
  34. data/lib/bundler/cli/show.rb +0 -1
  35. data/lib/bundler/cli/update.rb +31 -5
  36. data/lib/bundler/cli/viz.rb +1 -0
  37. data/lib/bundler/compact_index_client.rb +1 -0
  38. data/lib/bundler/compact_index_client/cache.rb +1 -0
  39. data/lib/bundler/compact_index_client/updater.rb +3 -2
  40. data/lib/bundler/compatibility_guard.rb +14 -0
  41. data/lib/bundler/constants.rb +1 -0
  42. data/lib/bundler/current_ruby.rb +5 -4
  43. data/lib/bundler/definition.rb +140 -95
  44. data/lib/bundler/dep_proxy.rb +2 -0
  45. data/lib/bundler/dependency.rb +6 -7
  46. data/lib/bundler/deployment.rb +1 -1
  47. data/lib/bundler/deprecate.rb +1 -0
  48. data/lib/bundler/dsl.rb +97 -62
  49. data/lib/bundler/endpoint_specification.rb +9 -0
  50. data/lib/bundler/env.rb +63 -27
  51. data/lib/bundler/environment_preserver.rb +26 -6
  52. data/lib/bundler/errors.rb +1 -0
  53. data/lib/bundler/feature_flag.rb +39 -4
  54. data/lib/bundler/fetcher.rb +15 -8
  55. data/lib/bundler/fetcher/base.rb +1 -0
  56. data/lib/bundler/fetcher/compact_index.rb +2 -11
  57. data/lib/bundler/fetcher/dependency.rb +1 -0
  58. data/lib/bundler/fetcher/downloader.rb +1 -0
  59. data/lib/bundler/fetcher/index.rb +1 -0
  60. data/lib/bundler/friendly_errors.rb +2 -1
  61. data/lib/bundler/gem_helper.rb +14 -9
  62. data/lib/bundler/gem_helpers.rb +1 -0
  63. data/lib/bundler/gem_remote_fetcher.rb +1 -0
  64. data/lib/bundler/gem_tasks.rb +1 -0
  65. data/lib/bundler/gem_version_promoter.rb +1 -0
  66. data/lib/bundler/gemdeps.rb +1 -0
  67. data/lib/bundler/graph.rb +1 -0
  68. data/lib/bundler/index.rb +15 -8
  69. data/lib/bundler/injector.rb +25 -22
  70. data/lib/bundler/inline.rb +5 -7
  71. data/lib/bundler/installer.rb +93 -45
  72. data/lib/bundler/installer/gem_installer.rb +2 -0
  73. data/lib/bundler/installer/parallel_installer.rb +73 -42
  74. data/lib/bundler/installer/standalone.rb +1 -0
  75. data/lib/bundler/lazy_specification.rb +2 -1
  76. data/lib/bundler/lockfile_generator.rb +95 -0
  77. data/lib/bundler/lockfile_parser.rb +10 -4
  78. data/lib/bundler/match_platform.rb +1 -0
  79. data/lib/bundler/mirror.rb +6 -3
  80. data/lib/bundler/plugin.rb +1 -0
  81. data/lib/bundler/plugin/api/source.rb +8 -0
  82. data/lib/bundler/plugin/installer.rb +7 -6
  83. data/lib/bundler/plugin/source_list.rb +7 -8
  84. data/lib/bundler/process_lock.rb +24 -0
  85. data/lib/bundler/psyched_yaml.rb +1 -0
  86. data/lib/bundler/remote_specification.rb +1 -0
  87. data/lib/bundler/resolver.rb +138 -191
  88. data/lib/bundler/resolver/spec_group.rb +111 -0
  89. data/lib/bundler/retry.rb +1 -0
  90. data/lib/bundler/ruby_dsl.rb +1 -0
  91. data/lib/bundler/ruby_version.rb +1 -0
  92. data/lib/bundler/rubygems_ext.rb +5 -4
  93. data/lib/bundler/rubygems_gem_installer.rb +23 -0
  94. data/lib/bundler/rubygems_integration.rb +56 -27
  95. data/lib/bundler/runtime.rb +3 -5
  96. data/lib/bundler/settings.rb +177 -76
  97. data/lib/bundler/settings/validator.rb +79 -0
  98. data/lib/bundler/setup.rb +1 -0
  99. data/lib/bundler/shared_helpers.rb +86 -26
  100. data/lib/bundler/similarity_detector.rb +1 -0
  101. data/lib/bundler/source.rb +32 -0
  102. data/lib/bundler/source/gemspec.rb +1 -0
  103. data/lib/bundler/source/git.rb +21 -16
  104. data/lib/bundler/source/git/git_proxy.rb +14 -10
  105. data/lib/bundler/source/metadata.rb +63 -0
  106. data/lib/bundler/source/path.rb +8 -8
  107. data/lib/bundler/source/path/installer.rb +2 -0
  108. data/lib/bundler/source/rubygems.rb +131 -84
  109. data/lib/bundler/source/rubygems/remote.rb +3 -0
  110. data/lib/bundler/source_list.rb +75 -15
  111. data/lib/bundler/spec_set.rb +2 -1
  112. data/lib/bundler/ssl_certs/certificate_manager.rb +2 -1
  113. data/lib/bundler/stub_specification.rb +1 -0
  114. data/lib/bundler/templates/Executable +4 -0
  115. data/lib/bundler/templates/Executable.bundler +105 -0
  116. data/lib/bundler/templates/Gemfile +1 -0
  117. data/lib/bundler/templates/gems.rb +8 -0
  118. data/lib/bundler/templates/newgem/README.md.tt +1 -1
  119. data/lib/bundler/templates/newgem/gitignore.tt +0 -1
  120. data/lib/bundler/templates/newgem/newgem.gemspec.tt +4 -1
  121. data/lib/bundler/templates/newgem/rspec.tt +1 -0
  122. data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -2
  123. data/lib/bundler/ui.rb +1 -0
  124. data/lib/bundler/ui/rg_proxy.rb +1 -0
  125. data/lib/bundler/ui/shell.rb +15 -4
  126. data/lib/bundler/ui/silent.rb +1 -0
  127. data/lib/bundler/uri_credentials_filter.rb +1 -0
  128. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1638 -0
  129. data/lib/bundler/vendor/molinillo/lib/molinillo.rb +2 -0
  130. data/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
  131. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +7 -0
  132. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +1 -0
  133. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +3 -2
  134. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +1 -0
  135. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +1 -0
  136. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -0
  137. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -0
  138. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -0
  139. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +1 -0
  140. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -0
  141. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -0
  142. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +3 -2
  143. data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +69 -6
  144. data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +2 -1
  145. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +1 -0
  146. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +3 -1
  147. data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +487 -148
  148. data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +1 -0
  149. data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +8 -4
  150. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +1 -1
  151. data/lib/bundler/vendored_fileutils.rb +9 -0
  152. data/lib/bundler/vendored_molinillo.rb +1 -0
  153. data/lib/bundler/vendored_persistent.rb +34 -0
  154. data/lib/bundler/vendored_thor.rb +1 -0
  155. data/lib/bundler/version.rb +6 -2
  156. data/lib/bundler/version_ranges.rb +1 -0
  157. data/lib/bundler/vlad.rb +5 -0
  158. data/lib/bundler/worker.rb +1 -0
  159. data/lib/bundler/yaml_serializer.rb +3 -3
  160. data/man/bundle-add.1 +43 -0
  161. data/man/bundle-add.1.txt +40 -0
  162. data/man/bundle-binstubs.1 +40 -0
  163. data/man/bundle-binstubs.1.txt +48 -0
  164. data/man/bundle-binstubs.ronn +14 -0
  165. data/man/bundle-check.1 +31 -0
  166. data/man/bundle-check.1.txt +32 -0
  167. data/man/bundle-clean.1 +24 -0
  168. data/man/bundle-clean.1.txt +26 -0
  169. data/man/bundle-config.1 +455 -0
  170. data/man/bundle-config.1.txt +491 -0
  171. data/man/bundle-config.ronn +133 -79
  172. data/man/bundle-exec.1 +165 -0
  173. data/man/bundle-exec.1.txt +178 -0
  174. data/man/bundle-exec.ronn +7 -0
  175. data/man/bundle-gem.1 +80 -0
  176. data/man/bundle-gem.1.txt +91 -0
  177. data/man/bundle-gem.ronn +2 -1
  178. data/man/bundle-info.1 +20 -0
  179. data/man/bundle-info.1.txt +21 -0
  180. data/man/bundle-init.1 +20 -0
  181. data/man/bundle-init.1.txt +24 -0
  182. data/man/bundle-inject.1 +33 -0
  183. data/man/bundle-inject.1.txt +32 -0
  184. data/man/bundle-install.1 +305 -0
  185. data/man/bundle-install.1.txt +385 -0
  186. data/man/bundle-install.ronn +32 -32
  187. data/man/bundle-list.1 +20 -0
  188. data/man/bundle-list.1.txt +21 -0
  189. data/man/bundle-list.ronn +15 -0
  190. data/man/bundle-lock.1 +84 -0
  191. data/man/bundle-lock.1.txt +93 -0
  192. data/man/bundle-open.1 +32 -0
  193. data/man/bundle-open.1.txt +29 -0
  194. data/man/bundle-outdated.1 +151 -0
  195. data/man/bundle-outdated.1.txt +127 -0
  196. data/man/bundle-outdated.ronn +1 -1
  197. data/man/bundle-package.1 +55 -0
  198. data/man/bundle-package.1.txt +79 -0
  199. data/man/bundle-package.ronn +5 -0
  200. data/man/bundle-platform.1 +61 -0
  201. data/man/bundle-platform.1.txt +57 -0
  202. data/man/bundle-pristine.1 +34 -0
  203. data/man/bundle-pristine.1.txt +44 -0
  204. data/man/bundle-pristine.ronn +24 -3
  205. data/man/bundle-show.1 +23 -0
  206. data/man/bundle-show.1.txt +25 -0
  207. data/man/bundle-update.1 +390 -0
  208. data/man/bundle-update.1.txt +386 -0
  209. data/man/bundle-update.ronn +2 -2
  210. data/man/bundle-viz.1 +39 -0
  211. data/man/bundle-viz.1.txt +38 -0
  212. data/man/bundle-viz.ronn +5 -5
  213. data/man/bundle.1 +132 -0
  214. data/man/bundle.1.txt +113 -0
  215. data/man/bundle.ronn +5 -2
  216. data/man/gemfile.5 +679 -0
  217. data/man/gemfile.5.ronn +31 -0
  218. data/man/gemfile.5.txt +636 -0
  219. data/man/index.txt +23 -0
  220. metadata +21 -36
  221. data/.codeclimate.yml +0 -25
  222. data/.gitignore +0 -18
  223. data/.rspec +0 -3
  224. data/.rubocop.yml +0 -131
  225. data/.rubocop_todo.yml +0 -418
  226. data/.travis.yml +0 -122
  227. data/CODE_OF_CONDUCT.md +0 -42
  228. data/CONTRIBUTING.md +0 -17
  229. data/Rakefile +0 -338
  230. data/bin/rake +0 -19
  231. data/bin/rspec +0 -15
  232. data/bin/rubocop +0 -17
  233. data/bin/with_rubygems +0 -39
  234. data/bundler.gemspec +0 -48
  235. data/doc/README.md +0 -30
  236. data/doc/TROUBLESHOOTING.md +0 -64
  237. data/doc/contributing/BUG_TRIAGE.md +0 -36
  238. data/doc/contributing/COMMUNITY.md +0 -13
  239. data/doc/contributing/GETTING_HELP.md +0 -11
  240. data/doc/contributing/HOW_YOU_CAN_HELP.md +0 -27
  241. data/doc/contributing/ISSUES.md +0 -51
  242. data/doc/contributing/README.md +0 -38
  243. data/doc/development/NEW_FEATURES.md +0 -10
  244. data/doc/development/PULL_REQUESTS.md +0 -40
  245. data/doc/development/README.md +0 -19
  246. data/doc/development/RELEASING.md +0 -9
  247. data/doc/development/SETUP.md +0 -27
  248. data/doc/documentation/README.md +0 -29
  249. data/doc/documentation/VISION.md +0 -26
  250. data/doc/documentation/WRITING.md +0 -54
  251. data/task/release.rake +0 -116
@@ -7,7 +7,28 @@ bundle-pristine(1) -- Restores installed gems to their pristine condition
7
7
 
8
8
  ## DESCRIPTION
9
9
 
10
- `pristine` restores the installed gems in the bundle to their pristine condition using the local gem
11
- cache from RubyGems. For git gems - a forced checkout will be performed.
10
+ `pristine` restores the installed gems in the bundle to their pristine condition
11
+ using the local gem cache from RubyGems. For git gems, a forced checkout will be performed.
12
12
 
13
- Note the Bundler gem cannot be restored to its original state with `pristine`.
13
+ For further explanation, `bundle pristine` ignores unpacked files on disk. In other
14
+ words, this command utilizes the local `.gem` cache or the gem's git repository
15
+ as if one were installing from scratch.
16
+
17
+ Note: the Bundler gem cannot be restored to its original state with `pristine`.
18
+ One also cannot use `bundle pristine` on gems with a 'path' option in the Gemfile,
19
+ because bundler has no original copy it can restore from.
20
+
21
+ When is it practical to use `bundle pristine`?
22
+
23
+ It comes in handy when a developer is debugging a gem. `bundle pristine` is a
24
+ great way to get rid of experimental changes to a gem that one may not want.
25
+
26
+ Why use `bundle pristine` over `gem pristine --all`?
27
+
28
+ Both commands are very similar.
29
+ For context: `bundle pristine`, without arguments, cleans all gems from the lockfile.
30
+ Meanwhile, `gem pristine --all` cleans all installed gems for that Ruby version.
31
+
32
+ If a developer forgets which gems in their project they might
33
+ have been debugging, the Rubygems `gem pristine [GEMNAME]` command may be inconvenient.
34
+ One can avoid waiting for `gem pristine --all`, and instead run `bundle pristine`.
@@ -0,0 +1,23 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "BUNDLE\-SHOW" "1" "June 2017" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBbundle\-show\fR \- Shows all the gems in your bundle, or the path to a gem
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBbundle show\fR [GEM] [\-\-paths]
11
+ .
12
+ .SH "DESCRIPTION"
13
+ Without the [GEM] option, \fBshow\fR will print a list of the names and versions of all gems that are required by your \fBGemfile(5)\fR\.
14
+ .
15
+ .P
16
+ Calling show with [GEM] will list the exact location of that gem on your machine\.
17
+ .
18
+ .SH "OPTIONS"
19
+ .
20
+ .TP
21
+ \fB\-\-paths\fR
22
+ List the paths of all gems that are required by your \fBGemfile(5)\fR\.
23
+
@@ -0,0 +1,25 @@
1
+ BUNDLE-SHOW(1) BUNDLE-SHOW(1)
2
+
3
+
4
+
5
+ 1mNAME0m
6
+ 1mbundle-show 22m- Shows all the gems in your bundle, or the path to a gem
7
+
8
+ 1mSYNOPSIS0m
9
+ 1mbundle show 22m[GEM] [--paths]
10
+
11
+ 1mDESCRIPTION0m
12
+ Without the [GEM] option, 1mshow 22mwill print a list of the names and ver-
13
+ sions of all gems that are required by your 1mGemfile(5)22m.
14
+
15
+ Calling show with [GEM] will list the exact location of that gem on
16
+ your machine.
17
+
18
+ 1mOPTIONS0m
19
+ 1m--paths0m
20
+ List the paths of all gems that are required by your 1mGemfile(5)22m.
21
+
22
+
23
+
24
+
25
+ June 2017 BUNDLE-SHOW(1)
@@ -0,0 +1,390 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "BUNDLE\-UPDATE" "1" "August 2017" "" ""
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 [\-\-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 none are specified), ignoring the previously installed gems specified in the \fBGemfile\.lock\fR\. In general, you should use [bundle install(1)][bundle\-install] 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\-\-group=<name>\fR, \fB\-g=[<name>]\fR
22
+ 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\.
23
+ .
24
+ .TP
25
+ \fB\-\-source=<name>\fR
26
+ 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
27
+ .
28
+ .TP
29
+ \fB\-\-local\fR
30
+ Do not attempt to fetch gems remotely and use the gem cache instead\.
31
+ .
32
+ .TP
33
+ \fB\-\-ruby\fR
34
+ Update the locked version of Ruby to the current version of Ruby\.
35
+ .
36
+ .TP
37
+ \fB\-\-bundler\fR
38
+ Update the locked version of bundler to the invoked bundler version\.
39
+ .
40
+ .TP
41
+ \fB\-\-full\-index\fR
42
+ Fall back to using the single\-file index of all gems\.
43
+ .
44
+ .TP
45
+ \fB\-\-jobs=[<number>]\fR, \fB\-j[<number>]\fR
46
+ Specify the number of jobs to run in parallel\. The default is \fB1\fR\.
47
+ .
48
+ .TP
49
+ \fB\-\-retry=[<number>]\fR
50
+ Retry failed network or git requests for \fInumber\fR times\.
51
+ .
52
+ .TP
53
+ \fB\-\-quiet\fR
54
+ Only output warnings and errors\.
55
+ .
56
+ .TP
57
+ \fB\-\-force\fR
58
+ Force downloading every gem\.
59
+ .
60
+ .TP
61
+ \fB\-\-patch\fR
62
+ Prefer updating only to next patch version\.
63
+ .
64
+ .TP
65
+ \fB\-\-minor\fR
66
+ Prefer updating only to next minor version\.
67
+ .
68
+ .TP
69
+ \fB\-\-major\fR
70
+ Prefer updating to next major version (default)\.
71
+ .
72
+ .TP
73
+ \fB\-\-strict\fR
74
+ Do not allow any gem to be updated past latest \fB\-\-patch\fR | \fB\-\-minor\fR | \fB\-\-major\fR\.
75
+ .
76
+ .TP
77
+ \fB\-\-conservative\fR
78
+ Use bundle install conservative update behavior and do not allow shared dependencies to be updated\.
79
+ .
80
+ .SH "UPDATING ALL GEMS"
81
+ If you run \fBbundle update\fR with no parameters, bundler will ignore any previously installed gems and resolve all dependencies again based on the latest versions of all gems available in the sources\.
82
+ .
83
+ .P
84
+ Consider the following Gemfile(5):
85
+ .
86
+ .IP "" 4
87
+ .
88
+ .nf
89
+
90
+ source "https://rubygems\.org"
91
+
92
+ gem "rails", "3\.0\.0\.rc"
93
+ gem "nokogiri"
94
+ .
95
+ .fi
96
+ .
97
+ .IP "" 0
98
+ .
99
+ .P
100
+ When you run [bundle install(1)][bundle\-install] the first time, bundler will resolve all of the dependencies, all the way down, and install what you need:
101
+ .
102
+ .IP "" 4
103
+ .
104
+ .nf
105
+
106
+ Fetching gem metadata from https://rubygems\.org/\.\.\.\.\.\.\.\.\.
107
+ Resolving dependencies\.\.\.
108
+ Installing builder 2\.1\.2
109
+ Installing abstract 1\.0\.0
110
+ Installing rack 1\.2\.8
111
+ Using bundler 1\.7\.6
112
+ Installing rake 10\.4\.0
113
+ Installing polyglot 0\.3\.5
114
+ Installing mime\-types 1\.25\.1
115
+ Installing i18n 0\.4\.2
116
+ Installing mini_portile 0\.6\.1
117
+ Installing tzinfo 0\.3\.42
118
+ Installing rack\-mount 0\.6\.14
119
+ Installing rack\-test 0\.5\.7
120
+ Installing treetop 1\.4\.15
121
+ Installing thor 0\.14\.6
122
+ Installing activesupport 3\.0\.0\.rc
123
+ Installing erubis 2\.6\.6
124
+ Installing activemodel 3\.0\.0\.rc
125
+ Installing arel 0\.4\.0
126
+ Installing mail 2\.2\.20
127
+ Installing activeresource 3\.0\.0\.rc
128
+ Installing actionpack 3\.0\.0\.rc
129
+ Installing activerecord 3\.0\.0\.rc
130
+ Installing actionmailer 3\.0\.0\.rc
131
+ Installing railties 3\.0\.0\.rc
132
+ Installing rails 3\.0\.0\.rc
133
+ Installing nokogiri 1\.6\.5
134
+
135
+ Bundle complete! 2 Gemfile dependencies, 26 gems total\.
136
+ Use `bundle show [gemname]` to see where a bundled gem is installed\.
137
+ .
138
+ .fi
139
+ .
140
+ .IP "" 0
141
+ .
142
+ .P
143
+ 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)][bundle\-install], bundler skips the dependency resolution and installs the same gems as it installed last time\.
144
+ .
145
+ .P
146
+ After checking in the \fBGemfile\.lock\fR into version control and cloning it on another machine, running [bundle install(1)][bundle\-install] 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\.
147
+ .
148
+ .P
149
+ 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)\.
150
+ .
151
+ .P
152
+ To do this, run \fBbundle update\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\fR\.
153
+ .
154
+ .SH "UPDATING A LIST OF GEMS"
155
+ 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\.
156
+ .
157
+ .P
158
+ 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\.
159
+ .
160
+ .P
161
+ Bundler will update \fBnokogiri\fR and any of its dependencies, but leave alone Rails and its dependencies\.
162
+ .
163
+ .SH "OVERLAPPING DEPENDENCIES"
164
+ 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\.
165
+ .
166
+ .IP "" 4
167
+ .
168
+ .nf
169
+
170
+ source "https://rubygems\.org"
171
+
172
+ gem "thin"
173
+ gem "rack\-perftools\-profiler"
174
+ .
175
+ .fi
176
+ .
177
+ .IP "" 0
178
+ .
179
+ .P
180
+ 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:
181
+ .
182
+ .IP "" 4
183
+ .
184
+ .nf
185
+
186
+ Fetching source index for https://rubygems\.org/
187
+ Installing daemons (1\.1\.0)
188
+ Installing eventmachine (0\.12\.10) with native extensions
189
+ Installing open4 (1\.0\.1)
190
+ Installing perftools\.rb (0\.4\.7) with native extensions
191
+ Installing rack (1\.2\.1)
192
+ Installing rack\-perftools_profiler (0\.0\.2)
193
+ Installing thin (1\.2\.7) with native extensions
194
+ Using bundler (1\.0\.0\.rc\.3)
195
+ .
196
+ .fi
197
+ .
198
+ .IP "" 0
199
+ .
200
+ .P
201
+ 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\.
202
+ .
203
+ .P
204
+ 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\.
205
+ .
206
+ .P
207
+ To prevent updating shared dependencies, prior to version 1\.14 the only option was the \fBCONSERVATIVE UPDATING\fR behavior in [bundle install(1)][bundle\-install]:
208
+ .
209
+ .P
210
+ In this scenario, updating the \fBthin\fR version manually in the Gemfile(5), and then running [bundle install(1)][bundle\-install] 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)][bundle\-install]\.
211
+ .
212
+ .P
213
+ Starting with 1\.14, specifying the \fB\-\-conservative\fR option will also prevent shared dependencies from being updated\.
214
+ .
215
+ .SH "PATCH LEVEL OPTIONS"
216
+ 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\.
217
+ .
218
+ .TP
219
+ \fB\-\-patch\fR
220
+ Prefer updating only to next patch version\.
221
+ .
222
+ .TP
223
+ \fB\-\-minor\fR
224
+ Prefer updating only to next minor version\.
225
+ .
226
+ .TP
227
+ \fB\-\-major\fR
228
+ Prefer updating to next major version (default)\.
229
+ .
230
+ .TP
231
+ \fB\-\-strict\fR
232
+ Do not allow any gem to be updated past latest \fB\-\-patch\fR | \fB\-\-minor\fR | \fB\-\-major\fR\.
233
+ .
234
+ .P
235
+ 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\.
236
+ .
237
+ .P
238
+ 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\.
239
+ .
240
+ .P
241
+ 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"\.
242
+ .
243
+ .P
244
+ 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"\.
245
+ .
246
+ .P
247
+ 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"\.
248
+ .
249
+ .P
250
+ 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\.
251
+ .
252
+ .P
253
+ 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"\.
254
+ .
255
+ .P
256
+ 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\.
257
+ .
258
+ .SH "PATCH LEVEL EXAMPLES"
259
+ Given the following gem specifications:
260
+ .
261
+ .IP "" 4
262
+ .
263
+ .nf
264
+
265
+ foo 1\.4\.3, requires: ~> bar 2\.0
266
+ foo 1\.4\.4, requires: ~> bar 2\.0
267
+ foo 1\.4\.5, requires: ~> bar 2\.1
268
+ foo 1\.5\.0, requires: ~> bar 2\.1
269
+ foo 1\.5\.1, requires: ~> bar 3\.0
270
+ bar with versions 2\.0\.3, 2\.0\.4, 2\.1\.0, 2\.1\.1, 3\.0\.0
271
+ .
272
+ .fi
273
+ .
274
+ .IP "" 0
275
+ .
276
+ .P
277
+ Gemfile:
278
+ .
279
+ .IP "" 4
280
+ .
281
+ .nf
282
+
283
+ gem \'foo\'
284
+ .
285
+ .fi
286
+ .
287
+ .IP "" 0
288
+ .
289
+ .P
290
+ Gemfile\.lock:
291
+ .
292
+ .IP "" 4
293
+ .
294
+ .nf
295
+
296
+ foo (1\.4\.3)
297
+ bar (~> 2\.0)
298
+ bar (2\.0\.3)
299
+ .
300
+ .fi
301
+ .
302
+ .IP "" 0
303
+ .
304
+ .P
305
+ Cases:
306
+ .
307
+ .IP "" 4
308
+ .
309
+ .nf
310
+
311
+ # Command Line Result
312
+ \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
313
+ 1 bundle update \-\-patch \'foo 1\.4\.5\', \'bar 2\.1\.1\'
314
+ 2 bundle update \-\-patch foo \'foo 1\.4\.5\', \'bar 2\.1\.1\'
315
+ 3 bundle update \-\-minor \'foo 1\.5\.1\', \'bar 3\.0\.0\'
316
+ 4 bundle update \-\-minor \-\-strict \'foo 1\.5\.0\', \'bar 2\.1\.1\'
317
+ 5 bundle update \-\-patch \-\-strict \'foo 1\.4\.4\', \'bar 2\.0\.4\'
318
+ .
319
+ .fi
320
+ .
321
+ .IP "" 0
322
+ .
323
+ .P
324
+ In case 1, bar is upgraded to 2\.1\.1, a minor version increase, because the dependency from foo 1\.4\.5 required it\.
325
+ .
326
+ .P
327
+ 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\.
328
+ .
329
+ .P
330
+ 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\.
331
+ .
332
+ .P
333
+ 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\.
334
+ .
335
+ .P
336
+ 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\.
337
+ .
338
+ .SH "RECOMMENDED WORKFLOW"
339
+ In general, when working with an application managed with bundler, you should use the following workflow:
340
+ .
341
+ .IP "\(bu" 4
342
+ After you create your Gemfile(5) for the first time, run
343
+ .
344
+ .IP
345
+ $ bundle install
346
+ .
347
+ .IP "\(bu" 4
348
+ Check the resulting \fBGemfile\.lock\fR into version control
349
+ .
350
+ .IP
351
+ $ git add Gemfile\.lock
352
+ .
353
+ .IP "\(bu" 4
354
+ When checking out this repository on another development machine, run
355
+ .
356
+ .IP
357
+ $ bundle install
358
+ .
359
+ .IP "\(bu" 4
360
+ When checking out this repository on a deployment machine, run
361
+ .
362
+ .IP
363
+ $ bundle install \-\-deployment
364
+ .
365
+ .IP "\(bu" 4
366
+ After changing the Gemfile(5) to reflect a new or update dependency, run
367
+ .
368
+ .IP
369
+ $ bundle install
370
+ .
371
+ .IP "\(bu" 4
372
+ Make sure to check the updated \fBGemfile\.lock\fR into version control
373
+ .
374
+ .IP
375
+ $ git add Gemfile\.lock
376
+ .
377
+ .IP "\(bu" 4
378
+ If [bundle install(1)][bundle\-install] reports a conflict, manually update the specific gems that you changed in the Gemfile(5)
379
+ .
380
+ .IP
381
+ $ bundle update rails thin
382
+ .
383
+ .IP "\(bu" 4
384
+ If you want to update all the gems to the latest possible versions that still match the gems listed in the Gemfile(5), run
385
+ .
386
+ .IP
387
+ $ bundle update
388
+ .
389
+ .IP "" 0
390
+