bundler 1.15.4 → 1.16.0.pre.1

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

Potentially problematic release.


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

Files changed (251) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +43 -0
  3. data/README.md +12 -7
  4. data/exe/bundle +1 -1
  5. data/exe/bundle_ruby +4 -3
  6. data/lib/bundler.rb +47 -37
  7. data/lib/bundler/build_metadata.rb +38 -0
  8. data/lib/bundler/capistrano.rb +5 -0
  9. data/lib/bundler/cli.rb +155 -67
  10. data/lib/bundler/cli/add.rb +0 -1
  11. data/lib/bundler/cli/binstubs.rb +9 -7
  12. data/lib/bundler/cli/cache.rb +5 -4
  13. data/lib/bundler/cli/check.rb +3 -5
  14. data/lib/bundler/cli/clean.rb +5 -6
  15. data/lib/bundler/cli/common.rb +11 -2
  16. data/lib/bundler/cli/config.rb +2 -1
  17. data/lib/bundler/cli/console.rb +2 -1
  18. data/lib/bundler/cli/doctor.rb +1 -0
  19. data/lib/bundler/cli/exec.rb +2 -1
  20. data/lib/bundler/cli/gem.rb +3 -2
  21. data/lib/bundler/cli/info.rb +0 -1
  22. data/lib/bundler/cli/init.rb +17 -6
  23. data/lib/bundler/cli/inject.rb +1 -0
  24. data/lib/bundler/cli/install.rb +61 -61
  25. data/lib/bundler/cli/issue.rb +1 -1
  26. data/lib/bundler/cli/list.rb +22 -0
  27. data/lib/bundler/cli/lock.rb +0 -1
  28. data/lib/bundler/cli/open.rb +2 -2
  29. data/lib/bundler/cli/outdated.rb +13 -8
  30. data/lib/bundler/cli/package.rb +9 -6
  31. data/lib/bundler/cli/platform.rb +1 -0
  32. data/lib/bundler/cli/plugin.rb +1 -0
  33. data/lib/bundler/cli/pristine.rb +9 -2
  34. data/lib/bundler/cli/show.rb +0 -1
  35. data/lib/bundler/cli/update.rb +31 -5
  36. data/lib/bundler/cli/viz.rb +1 -0
  37. data/lib/bundler/compact_index_client.rb +1 -0
  38. data/lib/bundler/compact_index_client/cache.rb +1 -0
  39. data/lib/bundler/compact_index_client/updater.rb +3 -2
  40. data/lib/bundler/compatibility_guard.rb +14 -0
  41. data/lib/bundler/constants.rb +1 -0
  42. data/lib/bundler/current_ruby.rb +5 -4
  43. data/lib/bundler/definition.rb +140 -95
  44. data/lib/bundler/dep_proxy.rb +2 -0
  45. data/lib/bundler/dependency.rb +6 -7
  46. data/lib/bundler/deployment.rb +1 -1
  47. data/lib/bundler/deprecate.rb +1 -0
  48. data/lib/bundler/dsl.rb +97 -62
  49. data/lib/bundler/endpoint_specification.rb +9 -0
  50. data/lib/bundler/env.rb +63 -27
  51. data/lib/bundler/environment_preserver.rb +26 -6
  52. data/lib/bundler/errors.rb +1 -0
  53. data/lib/bundler/feature_flag.rb +39 -4
  54. data/lib/bundler/fetcher.rb +15 -8
  55. data/lib/bundler/fetcher/base.rb +1 -0
  56. data/lib/bundler/fetcher/compact_index.rb +2 -11
  57. data/lib/bundler/fetcher/dependency.rb +1 -0
  58. data/lib/bundler/fetcher/downloader.rb +1 -0
  59. data/lib/bundler/fetcher/index.rb +1 -0
  60. data/lib/bundler/friendly_errors.rb +2 -1
  61. data/lib/bundler/gem_helper.rb +14 -9
  62. data/lib/bundler/gem_helpers.rb +1 -0
  63. data/lib/bundler/gem_remote_fetcher.rb +1 -0
  64. data/lib/bundler/gem_tasks.rb +1 -0
  65. data/lib/bundler/gem_version_promoter.rb +1 -0
  66. data/lib/bundler/gemdeps.rb +1 -0
  67. data/lib/bundler/graph.rb +1 -0
  68. data/lib/bundler/index.rb +15 -8
  69. data/lib/bundler/injector.rb +25 -22
  70. data/lib/bundler/inline.rb +5 -7
  71. data/lib/bundler/installer.rb +93 -45
  72. data/lib/bundler/installer/gem_installer.rb +2 -0
  73. data/lib/bundler/installer/parallel_installer.rb +73 -42
  74. data/lib/bundler/installer/standalone.rb +1 -0
  75. data/lib/bundler/lazy_specification.rb +2 -1
  76. data/lib/bundler/lockfile_generator.rb +95 -0
  77. data/lib/bundler/lockfile_parser.rb +10 -4
  78. data/lib/bundler/match_platform.rb +1 -0
  79. data/lib/bundler/mirror.rb +6 -3
  80. data/lib/bundler/plugin.rb +1 -0
  81. data/lib/bundler/plugin/api/source.rb +8 -0
  82. data/lib/bundler/plugin/installer.rb +7 -6
  83. data/lib/bundler/plugin/source_list.rb +7 -8
  84. data/lib/bundler/process_lock.rb +24 -0
  85. data/lib/bundler/psyched_yaml.rb +1 -0
  86. data/lib/bundler/remote_specification.rb +1 -0
  87. data/lib/bundler/resolver.rb +138 -191
  88. data/lib/bundler/resolver/spec_group.rb +111 -0
  89. data/lib/bundler/retry.rb +1 -0
  90. data/lib/bundler/ruby_dsl.rb +1 -0
  91. data/lib/bundler/ruby_version.rb +1 -0
  92. data/lib/bundler/rubygems_ext.rb +5 -4
  93. data/lib/bundler/rubygems_gem_installer.rb +23 -0
  94. data/lib/bundler/rubygems_integration.rb +56 -27
  95. data/lib/bundler/runtime.rb +3 -5
  96. data/lib/bundler/settings.rb +177 -76
  97. data/lib/bundler/settings/validator.rb +79 -0
  98. data/lib/bundler/setup.rb +1 -0
  99. data/lib/bundler/shared_helpers.rb +86 -26
  100. data/lib/bundler/similarity_detector.rb +1 -0
  101. data/lib/bundler/source.rb +32 -0
  102. data/lib/bundler/source/gemspec.rb +1 -0
  103. data/lib/bundler/source/git.rb +21 -16
  104. data/lib/bundler/source/git/git_proxy.rb +14 -10
  105. data/lib/bundler/source/metadata.rb +63 -0
  106. data/lib/bundler/source/path.rb +8 -8
  107. data/lib/bundler/source/path/installer.rb +2 -0
  108. data/lib/bundler/source/rubygems.rb +131 -84
  109. data/lib/bundler/source/rubygems/remote.rb +3 -0
  110. data/lib/bundler/source_list.rb +75 -15
  111. data/lib/bundler/spec_set.rb +2 -1
  112. data/lib/bundler/ssl_certs/certificate_manager.rb +2 -1
  113. data/lib/bundler/stub_specification.rb +1 -0
  114. data/lib/bundler/templates/Executable +4 -0
  115. data/lib/bundler/templates/Executable.bundler +105 -0
  116. data/lib/bundler/templates/Gemfile +1 -0
  117. data/lib/bundler/templates/gems.rb +8 -0
  118. data/lib/bundler/templates/newgem/README.md.tt +1 -1
  119. data/lib/bundler/templates/newgem/gitignore.tt +0 -1
  120. data/lib/bundler/templates/newgem/newgem.gemspec.tt +4 -1
  121. data/lib/bundler/templates/newgem/rspec.tt +1 -0
  122. data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -2
  123. data/lib/bundler/ui.rb +1 -0
  124. data/lib/bundler/ui/rg_proxy.rb +1 -0
  125. data/lib/bundler/ui/shell.rb +15 -4
  126. data/lib/bundler/ui/silent.rb +1 -0
  127. data/lib/bundler/uri_credentials_filter.rb +1 -0
  128. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1638 -0
  129. data/lib/bundler/vendor/molinillo/lib/molinillo.rb +2 -0
  130. data/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
  131. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +7 -0
  132. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +1 -0
  133. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +3 -2
  134. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +1 -0
  135. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +1 -0
  136. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -0
  137. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -0
  138. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -0
  139. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +1 -0
  140. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -0
  141. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -0
  142. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +3 -2
  143. data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +69 -6
  144. data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +2 -1
  145. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +1 -0
  146. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +3 -1
  147. data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +487 -148
  148. data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +1 -0
  149. data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +8 -4
  150. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +1 -1
  151. data/lib/bundler/vendored_fileutils.rb +9 -0
  152. data/lib/bundler/vendored_molinillo.rb +1 -0
  153. data/lib/bundler/vendored_persistent.rb +34 -0
  154. data/lib/bundler/vendored_thor.rb +1 -0
  155. data/lib/bundler/version.rb +6 -2
  156. data/lib/bundler/version_ranges.rb +1 -0
  157. data/lib/bundler/vlad.rb +5 -0
  158. data/lib/bundler/worker.rb +1 -0
  159. data/lib/bundler/yaml_serializer.rb +3 -3
  160. data/man/bundle-add.1 +43 -0
  161. data/man/bundle-add.1.txt +40 -0
  162. data/man/bundle-binstubs.1 +40 -0
  163. data/man/bundle-binstubs.1.txt +48 -0
  164. data/man/bundle-binstubs.ronn +14 -0
  165. data/man/bundle-check.1 +31 -0
  166. data/man/bundle-check.1.txt +32 -0
  167. data/man/bundle-clean.1 +24 -0
  168. data/man/bundle-clean.1.txt +26 -0
  169. data/man/bundle-config.1 +455 -0
  170. data/man/bundle-config.1.txt +491 -0
  171. data/man/bundle-config.ronn +133 -79
  172. data/man/bundle-exec.1 +165 -0
  173. data/man/bundle-exec.1.txt +178 -0
  174. data/man/bundle-exec.ronn +7 -0
  175. data/man/bundle-gem.1 +80 -0
  176. data/man/bundle-gem.1.txt +91 -0
  177. data/man/bundle-gem.ronn +2 -1
  178. data/man/bundle-info.1 +20 -0
  179. data/man/bundle-info.1.txt +21 -0
  180. data/man/bundle-init.1 +20 -0
  181. data/man/bundle-init.1.txt +24 -0
  182. data/man/bundle-inject.1 +33 -0
  183. data/man/bundle-inject.1.txt +32 -0
  184. data/man/bundle-install.1 +305 -0
  185. data/man/bundle-install.1.txt +385 -0
  186. data/man/bundle-install.ronn +32 -32
  187. data/man/bundle-list.1 +20 -0
  188. data/man/bundle-list.1.txt +21 -0
  189. data/man/bundle-list.ronn +15 -0
  190. data/man/bundle-lock.1 +84 -0
  191. data/man/bundle-lock.1.txt +93 -0
  192. data/man/bundle-open.1 +32 -0
  193. data/man/bundle-open.1.txt +29 -0
  194. data/man/bundle-outdated.1 +151 -0
  195. data/man/bundle-outdated.1.txt +127 -0
  196. data/man/bundle-outdated.ronn +1 -1
  197. data/man/bundle-package.1 +55 -0
  198. data/man/bundle-package.1.txt +79 -0
  199. data/man/bundle-package.ronn +5 -0
  200. data/man/bundle-platform.1 +61 -0
  201. data/man/bundle-platform.1.txt +57 -0
  202. data/man/bundle-pristine.1 +34 -0
  203. data/man/bundle-pristine.1.txt +44 -0
  204. data/man/bundle-pristine.ronn +24 -3
  205. data/man/bundle-show.1 +23 -0
  206. data/man/bundle-show.1.txt +25 -0
  207. data/man/bundle-update.1 +390 -0
  208. data/man/bundle-update.1.txt +386 -0
  209. data/man/bundle-update.ronn +2 -2
  210. data/man/bundle-viz.1 +39 -0
  211. data/man/bundle-viz.1.txt +38 -0
  212. data/man/bundle-viz.ronn +5 -5
  213. data/man/bundle.1 +132 -0
  214. data/man/bundle.1.txt +113 -0
  215. data/man/bundle.ronn +5 -2
  216. data/man/gemfile.5 +679 -0
  217. data/man/gemfile.5.ronn +31 -0
  218. data/man/gemfile.5.txt +636 -0
  219. data/man/index.txt +23 -0
  220. metadata +21 -36
  221. data/.codeclimate.yml +0 -25
  222. data/.gitignore +0 -18
  223. data/.rspec +0 -3
  224. data/.rubocop.yml +0 -131
  225. data/.rubocop_todo.yml +0 -418
  226. data/.travis.yml +0 -122
  227. data/CODE_OF_CONDUCT.md +0 -42
  228. data/CONTRIBUTING.md +0 -17
  229. data/Rakefile +0 -338
  230. data/bin/rake +0 -19
  231. data/bin/rspec +0 -15
  232. data/bin/rubocop +0 -17
  233. data/bin/with_rubygems +0 -39
  234. data/bundler.gemspec +0 -48
  235. data/doc/README.md +0 -30
  236. data/doc/TROUBLESHOOTING.md +0 -64
  237. data/doc/contributing/BUG_TRIAGE.md +0 -36
  238. data/doc/contributing/COMMUNITY.md +0 -13
  239. data/doc/contributing/GETTING_HELP.md +0 -11
  240. data/doc/contributing/HOW_YOU_CAN_HELP.md +0 -27
  241. data/doc/contributing/ISSUES.md +0 -51
  242. data/doc/contributing/README.md +0 -38
  243. data/doc/development/NEW_FEATURES.md +0 -10
  244. data/doc/development/PULL_REQUESTS.md +0 -40
  245. data/doc/development/README.md +0 -19
  246. data/doc/development/RELEASING.md +0 -9
  247. data/doc/development/SETUP.md +0 -27
  248. data/doc/documentation/README.md +0 -29
  249. data/doc/documentation/VISION.md +0 -26
  250. data/doc/documentation/WRITING.md +0 -54
  251. data/task/release.rake +0 -116
@@ -0,0 +1,386 @@
1
+ BUNDLE-UPDATE(1) BUNDLE-UPDATE(1)
2
+
3
+
4
+
5
+ 1mNAME0m
6
+ 1mbundle-update 22m- Update your gems to the latest available versions
7
+
8
+ 1mSYNOPSIS0m
9
+ 1mbundle update 4m22m*gems24m [--group=NAME] [--source=NAME] [--local] [--ruby]
10
+ [--bundler[=VERSION]] [--full-index] [--jobs=JOBS] [--quiet] [--force]
11
+ [--patch|--minor|--major] [--strict] [--conservative]
12
+
13
+ 1mDESCRIPTION0m
14
+ Update the gems specified (all gems, if none are specified), ignoring
15
+ the previously installed gems specified in the 1mGemfile.lock22m. In gen-
16
+ eral, you should use [bundle install(1)][bundle-install] to install the
17
+ same exact gems and versions across machines.
18
+
19
+ You would use 1mbundle update 22mto explicitly update the version of a gem.
20
+
21
+ 1mOPTIONS0m
22
+ 1m--group=<name>22m, 1m-g=[<name>]0m
23
+ Only update the gems in the specified group. For instance, you
24
+ can update all gems in the development group with 1mbundle update0m
25
+ 1m--group development22m. You can also call 1mbundle update rails0m
26
+ 1m--group test 22mto update the rails gem and all gems in the test
27
+ group, for example.
28
+
29
+ 1m--source=<name>0m
30
+ The name of a 1m:git 22mor 1m:path 22msource used in the Gemfile(5). For
31
+ instance, with a 1m:git 22msource of
32
+ 1mhttp://github.com/rails/rails.git22m, you would call 1mbundle update0m
33
+ 1m--source rails0m
34
+
35
+ 1m--local0m
36
+ Do not attempt to fetch gems remotely and use the gem cache
37
+ instead.
38
+
39
+ 1m--ruby 22mUpdate the locked version of Ruby to the current version of
40
+ Ruby.
41
+
42
+ 1m--bundler0m
43
+ Update the locked version of bundler to the invoked bundler ver-
44
+ sion.
45
+
46
+ 1m--full-index0m
47
+ Fall back to using the single-file index of all gems.
48
+
49
+ 1m--jobs=[<number>]22m, 1m-j[<number>]0m
50
+ Specify the number of jobs to run in parallel. The default is 1m122m.
51
+
52
+ 1m--retry=[<number>]0m
53
+ Retry failed network or git requests for 4mnumber24m times.
54
+
55
+ 1m--quiet0m
56
+ Only output warnings and errors.
57
+
58
+ 1m--force0m
59
+ Force downloading every gem.
60
+
61
+ 1m--patch0m
62
+ Prefer updating only to next patch version.
63
+
64
+ 1m--minor0m
65
+ Prefer updating only to next minor version.
66
+
67
+ 1m--major0m
68
+ Prefer updating to next major version (default).
69
+
70
+ 1m--strict0m
71
+ Do not allow any gem to be updated past latest 1m--patch 22m| 1m--minor0m
72
+ | 1m--major22m.
73
+
74
+ 1m--conservative0m
75
+ Use bundle install conservative update behavior and do not allow
76
+ shared dependencies to be updated.
77
+
78
+ 1mUPDATING ALL GEMS0m
79
+ If you run 1mbundle update 22mwith no parameters, bundler will ignore any
80
+ previously installed gems and resolve all dependencies again based on
81
+ the latest versions of all gems available in the sources.
82
+
83
+ Consider the following Gemfile(5):
84
+
85
+
86
+
87
+ source "https://rubygems.org"
88
+
89
+ gem "rails", "3.0.0.rc"
90
+ gem "nokogiri"
91
+
92
+
93
+
94
+ When you run [bundle install(1)][bundle-install] the first time,
95
+ bundler will resolve all of the dependencies, all the way down, and
96
+ install what you need:
97
+
98
+
99
+
100
+ Fetching gem metadata from https://rubygems.org/.........
101
+ Resolving dependencies...
102
+ Installing builder 2.1.2
103
+ Installing abstract 1.0.0
104
+ Installing rack 1.2.8
105
+ Using bundler 1.7.6
106
+ Installing rake 10.4.0
107
+ Installing polyglot 0.3.5
108
+ Installing mime-types 1.25.1
109
+ Installing i18n 0.4.2
110
+ Installing mini_portile 0.6.1
111
+ Installing tzinfo 0.3.42
112
+ Installing rack-mount 0.6.14
113
+ Installing rack-test 0.5.7
114
+ Installing treetop 1.4.15
115
+ Installing thor 0.14.6
116
+ Installing activesupport 3.0.0.rc
117
+ Installing erubis 2.6.6
118
+ Installing activemodel 3.0.0.rc
119
+ Installing arel 0.4.0
120
+ Installing mail 2.2.20
121
+ Installing activeresource 3.0.0.rc
122
+ Installing actionpack 3.0.0.rc
123
+ Installing activerecord 3.0.0.rc
124
+ Installing actionmailer 3.0.0.rc
125
+ Installing railties 3.0.0.rc
126
+ Installing rails 3.0.0.rc
127
+ Installing nokogiri 1.6.5
128
+
129
+ Bundle complete! 2 Gemfile dependencies, 26 gems total.
130
+ Use `bundle show [gemname]` to see where a bundled gem is installed.
131
+
132
+
133
+
134
+ As you can see, even though you have two gems in the Gemfile(5), your
135
+ application needs 26 different gems in order to run. Bundler remembers
136
+ the exact versions it installed in 1mGemfile.lock22m. The next time you run
137
+ [bundle install(1)][bundle-install], bundler skips the dependency reso-
138
+ lution and installs the same gems as it installed last time.
139
+
140
+ After checking in the 1mGemfile.lock 22minto version control and cloning it
141
+ on another machine, running [bundle install(1)][bundle-install] will
142
+ 4mstill24m install the gems that you installed last time. You don't need to
143
+ worry that a new release of 1merubis 22mor 1mmail 22mchanges the gems you use.
144
+
145
+ However, from time to time, you might want to update the gems you are
146
+ using to the newest versions that still match the gems in your Gem-
147
+ file(5).
148
+
149
+ To do this, run 1mbundle update22m, which will ignore the 1mGemfile.lock22m, and
150
+ resolve all the dependencies again. Keep in mind that this process can
151
+ result in a significantly different set of the 25 gems, based on the
152
+ requirements of new gems that the gem authors released since the last
153
+ time you ran 1mbundle update22m.
154
+
155
+ 1mUPDATING A LIST OF GEMS0m
156
+ Sometimes, you want to update a single gem in the Gemfile(5), and leave
157
+ the rest of the gems that you specified locked to the versions in the
158
+ 1mGemfile.lock22m.
159
+
160
+ For instance, in the scenario above, imagine that 1mnokogiri 22mreleases
161
+ version 1m1.4.422m, and you want to update it 4mwithout24m updating Rails and all
162
+ of its dependencies. To do this, run 1mbundle update nokogiri22m.
163
+
164
+ Bundler will update 1mnokogiri 22mand any of its dependencies, but leave
165
+ alone Rails and its dependencies.
166
+
167
+ 1mOVERLAPPING DEPENDENCIES0m
168
+ Sometimes, multiple gems declared in your Gemfile(5) are satisfied by
169
+ the same second-level dependency. For instance, consider the case of
170
+ 1mthin 22mand 1mrack-perftools-profiler22m.
171
+
172
+
173
+
174
+ source "https://rubygems.org"
175
+
176
+ gem "thin"
177
+ gem "rack-perftools-profiler"
178
+
179
+
180
+
181
+ The 1mthin 22mgem depends on 1mrack >= 1.022m, while 1mrack-perftools-profiler0m
182
+ depends on 1mrack ~> 1.022m. If you run bundle install, you get:
183
+
184
+
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
+
197
+
198
+ In this case, the two gems have their own set of dependencies, but they
199
+ share 1mrack 22min common. If you run 1mbundle update thin22m, bundler will
200
+ update 1mdaemons22m, 1meventmachine 22mand 1mrack22m, which are dependencies of 1mthin22m,
201
+ but not 1mopen4 22mor 1mperftools.rb22m, which are dependencies of
202
+ 1mrack-perftools_profiler22m. Note that 1mbundle update thin 22mwill update 1mrack0m
203
+ even though it's 4malso24m a dependency of 1mrack-perftools_profiler22m.
204
+
205
+ In short, by default, when you update a gem using 1mbundle update22m,
206
+ bundler will update all dependencies of that gem, including those that
207
+ are also dependencies of another gem.
208
+
209
+ To prevent updating shared dependencies, prior to version 1.14 the only
210
+ option was the 1mCONSERVATIVE UPDATING 22mbehavior in [bundle
211
+ install(1)][bundle-install]:
212
+
213
+ In this scenario, updating the 1mthin 22mversion manually in the Gemfile(5),
214
+ and then running [bundle install(1)][bundle-install] will only update
215
+ 1mdaemons 22mand 1meventmachine22m, but not 1mrack22m. For more information, see the
216
+ 1mCONSERVATIVE UPDATING 22msection of [bundle install(1)][bundle-install].
217
+
218
+ Starting with 1.14, specifying the 1m--conservative 22moption will also pre-
219
+ vent shared dependencies from being updated.
220
+
221
+ 1mPATCH LEVEL OPTIONS0m
222
+ Version 1.14 introduced 4 patch-level options that will influence how
223
+ gem versions are resolved. One of the following options can be used:
224
+ 1m--patch22m, 1m--minor 22mor 1m--major22m. 1m--strict 22mcan be added to further influence
225
+ resolution.
226
+
227
+ 1m--patch0m
228
+ Prefer updating only to next patch version.
229
+
230
+ 1m--minor0m
231
+ Prefer updating only to next minor version.
232
+
233
+ 1m--major0m
234
+ Prefer updating to next major version (default).
235
+
236
+ 1m--strict0m
237
+ Do not allow any gem to be updated past latest 1m--patch 22m| 1m--minor0m
238
+ | 1m--major22m.
239
+
240
+ When Bundler is resolving what versions to use to satisfy declared
241
+ requirements in the Gemfile or in parent gems, it looks up all avail-
242
+ able versions, filters out any versions that don't satisfy the require-
243
+ ment, and then, by default, sorts them from newest to oldest, consider-
244
+ ing them in that order.
245
+
246
+ Providing one of the patch level options (e.g. 1m--patch22m) changes the
247
+ sort order of the satisfying versions, causing Bundler to consider the
248
+ latest 1m--patch 22mor 1m--minor 22mversion available before other versions. Note
249
+ that versions outside the stated patch level could still be resolved to
250
+ if necessary to find a suitable dependency graph.
251
+
252
+ For example, if gem 'foo' is locked at 1.0.2, with no gem requirement
253
+ defined in the Gemfile, and versions 1.0.3, 1.0.4, 1.1.0, 1.1.1, 2.0.0
254
+ all exist, the default order of preference by default (1m--major22m) will be
255
+ "2.0.0, 1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2".
256
+
257
+ If the 1m--patch 22moption is used, the order of preference will change to
258
+ "1.0.4, 1.0.3, 1.0.2, 1.1.1, 1.1.0, 2.0.0".
259
+
260
+ If the 1m--minor 22moption is used, the order of preference will change to
261
+ "1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2, 2.0.0".
262
+
263
+ Combining the 1m--strict 22moption with any of the patch level options will
264
+ remove any versions beyond the scope of the patch level option, to
265
+ ensure that no gem is updated that far.
266
+
267
+ To continue the previous example, if both 1m--patch 22mand 1m--strict 22moptions
268
+ are used, the available versions for resolution would be "1.0.4, 1.0.3,
269
+ 1.0.2". If 1m--minor 22mand 1m--strict 22mare used, it would be "1.1.1, 1.1.0,
270
+ 1.0.4, 1.0.3, 1.0.2".
271
+
272
+ Gem requirements as defined in the Gemfile will still be the first
273
+ determining factor for what versions are available. If the gem require-
274
+ ment for 1mfoo 22min the Gemfile is '~> 1.0', that will accomplish the same
275
+ thing as providing the 1m--minor 22mand 1m--strict 22moptions.
276
+
277
+ 1mPATCH LEVEL EXAMPLES0m
278
+ Given the following gem specifications:
279
+
280
+
281
+
282
+ foo 1.4.3, requires: ~> bar 2.0
283
+ foo 1.4.4, requires: ~> bar 2.0
284
+ foo 1.4.5, requires: ~> bar 2.1
285
+ foo 1.5.0, requires: ~> bar 2.1
286
+ foo 1.5.1, requires: ~> bar 3.0
287
+ bar with versions 2.0.3, 2.0.4, 2.1.0, 2.1.1, 3.0.0
288
+
289
+
290
+
291
+ Gemfile:
292
+
293
+
294
+
295
+ gem 'foo'
296
+
297
+
298
+
299
+ Gemfile.lock:
300
+
301
+
302
+
303
+ foo (1.4.3)
304
+ bar (~> 2.0)
305
+ bar (2.0.3)
306
+
307
+
308
+
309
+ Cases:
310
+
311
+
312
+
313
+ # Command Line Result
314
+ ------------------------------------------------------------
315
+ 1 bundle update --patch 'foo 1.4.5', 'bar 2.1.1'
316
+ 2 bundle update --patch foo 'foo 1.4.5', 'bar 2.1.1'
317
+ 3 bundle update --minor 'foo 1.5.1', 'bar 3.0.0'
318
+ 4 bundle update --minor --strict 'foo 1.5.0', 'bar 2.1.1'
319
+ 5 bundle update --patch --strict 'foo 1.4.4', 'bar 2.0.4'
320
+
321
+
322
+
323
+ In case 1, bar is upgraded to 2.1.1, a minor version increase, because
324
+ the dependency from foo 1.4.5 required it.
325
+
326
+ In case 2, only foo is requested to be unlocked, but bar is also
327
+ allowed to move because it's not a declared dependency in the Gemfile.
328
+
329
+ In case 3, bar goes up a whole major release, because a minor increase
330
+ is preferred now for foo, and when it goes to 1.5.1, it requires 3.0.0
331
+ of bar.
332
+
333
+ In case 4, foo is preferred up to a minor version, but 1.5.1 won't work
334
+ because the --strict flag removes bar 3.0.0 from consideration since
335
+ it's a major increment.
336
+
337
+ In case 5, both foo and bar have any minor or major increments removed
338
+ from consideration because of the --strict flag, so the most they can
339
+ move is up to 1.4.4 and 2.0.4.
340
+
341
+ 1mRECOMMENDED WORKFLOW0m
342
+ In general, when working with an application managed with bundler, you
343
+ should use the following workflow:
344
+
345
+ o After you create your Gemfile(5) for the first time, run
346
+
347
+ $ bundle install
348
+
349
+ o Check the resulting 1mGemfile.lock 22minto version control
350
+
351
+ $ git add Gemfile.lock
352
+
353
+ o When checking out this repository on another development machine,
354
+ run
355
+
356
+ $ bundle install
357
+
358
+ o When checking out this repository on a deployment machine, run
359
+
360
+ $ bundle install --deployment
361
+
362
+ o After changing the Gemfile(5) to reflect a new or update depen-
363
+ dency, run
364
+
365
+ $ bundle install
366
+
367
+ o Make sure to check the updated 1mGemfile.lock 22minto version control
368
+
369
+ $ git add Gemfile.lock
370
+
371
+ o If [bundle install(1)][bundle-install] reports a conflict, manually
372
+ update the specific gems that you changed in the Gemfile(5)
373
+
374
+ $ bundle update rails thin
375
+
376
+ o If you want to update all the gems to the latest possible versions
377
+ that still match the gems listed in the Gemfile(5), run
378
+
379
+ $ bundle update
380
+
381
+
382
+
383
+
384
+
385
+
386
+ August 2017 BUNDLE-UPDATE(1)
@@ -28,7 +28,7 @@ gem.
28
28
 
29
29
  ## OPTIONS
30
30
 
31
- * `--group=<name>`:
31
+ * `--group=<name>`, `-g=[<name>]`:
32
32
  Only update the gems in the specified group. For instance, you can update all gems
33
33
  in the development group with `bundle update --group development`. You can also
34
34
  call `bundle update rails --group test` to update the rails gem and all gems in
@@ -51,7 +51,7 @@ gem.
51
51
  * `--full-index`:
52
52
  Fall back to using the single-file index of all gems.
53
53
 
54
- * `--jobs=[<number>]`:
54
+ * `--jobs=[<number>]`, `-j[<number>]`:
55
55
  Specify the number of jobs to run in parallel. The default is `1`.
56
56
 
57
57
  * `--retry=[<number>]`:
@@ -0,0 +1,39 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "BUNDLE\-VIZ" "1" "August 2017" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBbundle\-viz\fR \- Generates a visual dependency graph for your Gemfile
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBbundle viz\fR [\-\-file=FILE] [\-\-format=FORMAT] [\-\-requirements] [\-\-version] [\-\-without=GROUP GROUP]
11
+ .
12
+ .SH "DESCRIPTION"
13
+ \fBviz\fR generates a PNG file of the current \fBGemfile(5)\fR as a dependency graph\. \fBviz\fR requires the ruby\-graphviz gem (and its dependencies)\.
14
+ .
15
+ .P
16
+ The associated gems must also be installed via \fBbundle install(1)\fR\.
17
+ .
18
+ .SH "OPTIONS"
19
+ .
20
+ .TP
21
+ \fB\-\-file\fR, \fB\-f\fR
22
+ The name to use for the generated file\. See \fB\-\-format\fR option
23
+ .
24
+ .TP
25
+ \fB\-\-format\fR, \fB\-F\fR
26
+ This is output format option\. Supported format is png, jpg, svg, dot \.\.\.
27
+ .
28
+ .TP
29
+ \fB\-\-requirements\fR, \fB\-R\fR
30
+ Set to show the version of each required dependency\.
31
+ .
32
+ .TP
33
+ \fB\-\-version\fR, \fB\-v\fR
34
+ Set to show each gem version\.
35
+ .
36
+ .TP
37
+ \fB\-\-without\fR, \fB\-W\fR
38
+ Exclude gems that are part of the specified named group\.
39
+
@@ -0,0 +1,38 @@
1
+ BUNDLE-VIZ(1) BUNDLE-VIZ(1)
2
+
3
+
4
+
5
+ 1mNAME0m
6
+ 1mbundle-viz 22m- Generates a visual dependency graph for your Gemfile
7
+
8
+ 1mSYNOPSIS0m
9
+ 1mbundle viz 22m[--file=FILE] [--format=FORMAT] [--requirements] [--version]
10
+ [--without=GROUP GROUP]
11
+
12
+ 1mDESCRIPTION0m
13
+ 1mviz 22mgenerates a PNG file of the current 1mGemfile(5) 22mas a dependency
14
+ graph. 1mviz 22mrequires the ruby-graphviz gem (and its dependencies).
15
+
16
+ The associated gems must also be installed via 1mbundle install(1)22m.
17
+
18
+ 1mOPTIONS0m
19
+ 1m--file22m, 1m-f0m
20
+ The name to use for the generated file. See 1m--format 22moption
21
+
22
+ 1m--format22m, 1m-F0m
23
+ This is output format option. Supported format is png, jpg, svg,
24
+ dot ...
25
+
26
+ 1m--requirements22m, 1m-R0m
27
+ Set to show the version of each required dependency.
28
+
29
+ 1m--version22m, 1m-v0m
30
+ Set to show each gem version.
31
+
32
+ 1m--without22m, 1m-W0m
33
+ Exclude gems that are part of the specified named group.
34
+
35
+
36
+
37
+
38
+ August 2017 BUNDLE-VIZ(1)