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
@@ -18,13 +18,13 @@ The associated gems must also be installed via `bundle install(1)`.
18
18
 
19
19
  ## OPTIONS
20
20
 
21
- * `--file`:
21
+ * `--file`, `-f`:
22
22
  The name to use for the generated file. See `--format` option
23
- * `--format`:
23
+ * `--format`, `-F`:
24
24
  This is output format option. Supported format is png, jpg, svg, dot ...
25
- * `--requirements`:
25
+ * `--requirements`, `-R`:
26
26
  Set to show the version of each required dependency.
27
- * `--version`:
27
+ * `--version`, `-v`:
28
28
  Set to show each gem version.
29
- * `--without`:
29
+ * `--without`, `-W`:
30
30
  Exclude gems that are part of the specified named group.
@@ -0,0 +1,132 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "BUNDLE" "1" "August 2017" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBbundle\fR \- Ruby Dependency Management
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBbundle\fR COMMAND [\-\-no\-color] [\-\-verbose] [ARGS]
11
+ .
12
+ .SH "DESCRIPTION"
13
+ Bundler manages an \fBapplication\'s dependencies\fR through its entire life across many machines systematically and repeatably\.
14
+ .
15
+ .P
16
+ See the bundler website \fIhttp://bundler\.io\fR for information on getting started, and Gemfile(5) for more information on the \fBGemfile\fR format\.
17
+ .
18
+ .SH "OPTIONS"
19
+ .
20
+ .TP
21
+ \fB\-\-no\-color\fR
22
+ Print all output without color
23
+ .
24
+ .TP
25
+ \fB\-\-retry\fR, \fB\-r\fR
26
+ Specify the number of times you wish to attempt network commands
27
+ .
28
+ .TP
29
+ \fB\-\-verbose\fR, \fB\-V\fR
30
+ Print out additional logging information
31
+ .
32
+ .SH "BUNDLE COMMANDS"
33
+ We divide \fBbundle\fR subcommands into primary commands and utilities\.
34
+ .
35
+ .SH "PRIMARY COMMANDS"
36
+ .
37
+ .TP
38
+ [\fBbundle install(1)\fR][bundle\-install]
39
+ Install the gems specified by the \fBGemfile\fR or \fBGemfile\.lock\fR
40
+ .
41
+ .TP
42
+ [\fBbundle update(1)\fR][bundle\-update]
43
+ Update dependencies to their latest versions
44
+ .
45
+ .TP
46
+ [\fBbundle package(1)\fR][bundle\-package]
47
+ Package the \.gem files required by your application into the \fBvendor/cache\fR directory
48
+ .
49
+ .TP
50
+ [\fBbundle exec(1)\fR][bundle\-exec]
51
+ Execute a script in the context of the current bundle
52
+ .
53
+ .TP
54
+ [\fBbundle config(1)\fR][bundle\-config]
55
+ Specify and read configuration options for bundler
56
+ .
57
+ .TP
58
+ \fBbundle help(1)\fR
59
+ Display detailed help for each subcommand
60
+ .
61
+ .SH "UTILITIES"
62
+ .
63
+ .TP
64
+ \fBbundle add(1)\fR
65
+ Add the named gem to the Gemfile and run \fBbundle install\fR
66
+ .
67
+ .TP
68
+ \fBbundle binstubs(1)\fR
69
+ Generate binstubs for executables in a gem
70
+ .
71
+ .TP
72
+ \fBbundle check(1)\fR
73
+ Determine whether the requirements for your application are installed and available to bundler
74
+ .
75
+ .TP
76
+ \fBbundle show(1)\fR
77
+ Show the source location of a particular gem in the bundle
78
+ .
79
+ .TP
80
+ [\fBbundle outdated(1)\fR][bundle\-outdated]
81
+ Show all of the outdated gems in the current bundle
82
+ .
83
+ .TP
84
+ \fBbundle console(1)\fR
85
+ Start an IRB session in the context of the current bundle
86
+ .
87
+ .TP
88
+ \fBbundle open(1)\fR
89
+ Open an installed gem in the editor
90
+ .
91
+ .TP
92
+ [\fBbundle lock(1)\fR][bundle\-lock]
93
+ Generate a lockfile for your dependencies
94
+ .
95
+ .TP
96
+ \fBbundle viz(1)\fR
97
+ Generate a visual representation of your dependencies
98
+ .
99
+ .TP
100
+ \fBbundle init(1)\fR
101
+ Generate a simple \fBGemfile\fR, placed in the current directory
102
+ .
103
+ .TP
104
+ [\fBbundle gem(1)\fR][bundle\-gem]
105
+ Create a simple gem, suitable for development with bundler
106
+ .
107
+ .TP
108
+ [\fBbundle platform(1)\fR][bundle\-platform]
109
+ Display platform compatibility information
110
+ .
111
+ .TP
112
+ \fBbundle clean(1)\fR
113
+ Clean up unused gems in your bundler directory
114
+ .
115
+ .TP
116
+ \fBbundle doctor(1)\fR
117
+ Display warnings about common potential problems
118
+ .
119
+ .SH "PLUGINS"
120
+ When running a command that isn\'t listed in PRIMARY COMMANDS or UTILITIES, Bundler will try to find an executable on your path named \fBbundler\-<command>\fR and execute it, passing down any extra arguments to it\.
121
+ .
122
+ .SH "OBSOLETE"
123
+ These commands are obsolete and should no longer be used
124
+ .
125
+ .IP "\(bu" 4
126
+ \fBbundle cache(1)\fR
127
+ .
128
+ .IP "\(bu" 4
129
+ \fBbundle show(1)\fR
130
+ .
131
+ .IP "" 0
132
+
@@ -0,0 +1,113 @@
1
+ BUNDLE(1) BUNDLE(1)
2
+
3
+
4
+
5
+ 1mNAME0m
6
+ 1mbundle 22m- Ruby Dependency Management
7
+
8
+ 1mSYNOPSIS0m
9
+ 1mbundle 22mCOMMAND [--no-color] [--verbose] [ARGS]
10
+
11
+ 1mDESCRIPTION0m
12
+ Bundler manages an 1mapplication's dependencies 22mthrough its entire life
13
+ across many machines systematically and repeatably.
14
+
15
+ See the bundler website 4mhttp://bundler.io24m for information on getting
16
+ started, and Gemfile(5) for more information on the 1mGemfile 22mformat.
17
+
18
+ 1mOPTIONS0m
19
+ 1m--no-color0m
20
+ Print all output without color
21
+
22
+ 1m--retry22m, 1m-r0m
23
+ Specify the number of times you wish to attempt network commands
24
+
25
+ 1m--verbose22m, 1m-V0m
26
+ Print out additional logging information
27
+
28
+ 1mBUNDLE COMMANDS0m
29
+ We divide 1mbundle 22msubcommands into primary commands and utilities.
30
+
31
+ 1mPRIMARY COMMANDS0m
32
+ [1mbundle install(1)22m][bundle-install]
33
+ Install the gems specified by the 1mGemfile 22mor 1mGemfile.lock0m
34
+
35
+ [1mbundle update(1)22m][bundle-update]
36
+ Update dependencies to their latest versions
37
+
38
+ [1mbundle package(1)22m][bundle-package]
39
+ Package the .gem files required by your application into the
40
+ 1mvendor/cache 22mdirectory
41
+
42
+ [1mbundle exec(1)22m][bundle-exec]
43
+ Execute a script in the context of the current bundle
44
+
45
+ [1mbundle config(1)22m][bundle-config]
46
+ Specify and read configuration options for bundler
47
+
48
+ 1mbundle help(1)0m
49
+ Display detailed help for each subcommand
50
+
51
+ 1mUTILITIES0m
52
+ 1mbundle add(1)0m
53
+ Add the named gem to the Gemfile and run 1mbundle install0m
54
+
55
+ 1mbundle binstubs(1)0m
56
+ Generate binstubs for executables in a gem
57
+
58
+ 1mbundle check(1)0m
59
+ Determine whether the requirements for your application are
60
+ installed and available to bundler
61
+
62
+ 1mbundle show(1)0m
63
+ Show the source location of a particular gem in the bundle
64
+
65
+ [1mbundle outdated(1)22m][bundle-outdated]
66
+ Show all of the outdated gems in the current bundle
67
+
68
+ 1mbundle console(1)0m
69
+ Start an IRB session in the context of the current bundle
70
+
71
+ 1mbundle open(1)0m
72
+ Open an installed gem in the editor
73
+
74
+ [1mbundle lock(1)22m][bundle-lock]
75
+ Generate a lockfile for your dependencies
76
+
77
+ 1mbundle viz(1)0m
78
+ Generate a visual representation of your dependencies
79
+
80
+ 1mbundle init(1)0m
81
+ Generate a simple 1mGemfile22m, placed in the current directory
82
+
83
+ [1mbundle gem(1)22m][bundle-gem]
84
+ Create a simple gem, suitable for development with bundler
85
+
86
+ [1mbundle platform(1)22m][bundle-platform]
87
+ Display platform compatibility information
88
+
89
+ 1mbundle clean(1)0m
90
+ Clean up unused gems in your bundler directory
91
+
92
+ 1mbundle doctor(1)0m
93
+ Display warnings about common potential problems
94
+
95
+ 1mPLUGINS0m
96
+ When running a command that isn't listed in PRIMARY COMMANDS or UTILI-
97
+ TIES, Bundler will try to find an executable on your path named
98
+ 1mbundler-<command> 22mand execute it, passing down any extra arguments to
99
+ it.
100
+
101
+ 1mOBSOLETE0m
102
+ These commands are obsolete and should no longer be used
103
+
104
+ o 1mbundle cache(1)0m
105
+
106
+ o 1mbundle show(1)0m
107
+
108
+
109
+
110
+
111
+
112
+
113
+ August 2017 BUNDLE(1)
@@ -18,7 +18,10 @@ started, and Gemfile(5) for more information on the `Gemfile` format.
18
18
  * `--no-color`:
19
19
  Print all output without color
20
20
 
21
- * `--verbose`:
21
+ * `--retry`, `-r`:
22
+ Specify the number of times you wish to attempt network commands
23
+
24
+ * `--verbose`, `-V`:
22
25
  Print out additional logging information
23
26
 
24
27
  ## BUNDLE COMMANDS
@@ -102,4 +105,4 @@ and execute it, passing down any extra arguments to it.
102
105
  These commands are obsolete and should no longer be used
103
106
 
104
107
  * `bundle cache(1)`
105
- * `bundle list(1)`
108
+ * `bundle show(1)`
@@ -0,0 +1,679 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "GEMFILE" "5" "August 2017" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBGemfile\fR \- A format for describing gem dependencies for Ruby programs
8
+ .
9
+ .SH "SYNOPSIS"
10
+ A \fBGemfile\fR describes the gem dependencies required to execute associated Ruby code\.
11
+ .
12
+ .P
13
+ Place the \fBGemfile\fR in the root of the directory containing the associated code\. For instance, in a Rails application, place the \fBGemfile\fR in the same directory as the \fBRakefile\fR\.
14
+ .
15
+ .SH "SYNTAX"
16
+ A \fBGemfile\fR is evaluated as Ruby code, in a context which makes available a number of methods used to describe the gem requirements\.
17
+ .
18
+ .SH "GLOBAL SOURCES"
19
+ At the top of the \fBGemfile\fR, add a line for the \fBRubygems\fR source that contains the gems listed in the \fBGemfile\fR\.
20
+ .
21
+ .IP "" 4
22
+ .
23
+ .nf
24
+
25
+ source "https://rubygems\.org"
26
+ .
27
+ .fi
28
+ .
29
+ .IP "" 0
30
+ .
31
+ .P
32
+ It is possible, but not recommended as of Bundler 1\.7, to add multiple global \fBsource\fR lines\. Each of these \fBsource\fRs \fBMUST\fR be a valid Rubygems repository\.
33
+ .
34
+ .P
35
+ Sources are checked for gems following the heuristics described in \fISOURCE PRIORITY\fR\. If a gem is found in more than one global source, Bundler will print a warning after installing the gem indicating which source was used, and listing the other sources where the gem is available\. A specific source can be selected for gems that need to use a non\-standard repository, suppressing this warning, by using the \fI\fB:source\fR option\fR or a \fI\fBsource\fR block\fR\.
36
+ .
37
+ .SS "CREDENTIALS"
38
+ Some gem sources require a username and password\. Use [bundle config(1)][bundle\-config] to set the username and password for any of the sources that need it\. The command must be run once on each computer that will install the Gemfile, but this keeps the credentials from being stored in plain text in version control\.
39
+ .
40
+ .IP "" 4
41
+ .
42
+ .nf
43
+
44
+ bundle config gems\.example\.com user:password
45
+ .
46
+ .fi
47
+ .
48
+ .IP "" 0
49
+ .
50
+ .P
51
+ For some sources, like a company Gemfury account, it may be easier to include the credentials in the Gemfile as part of the source URL\.
52
+ .
53
+ .IP "" 4
54
+ .
55
+ .nf
56
+
57
+ source "https://user:password@gems\.example\.com"
58
+ .
59
+ .fi
60
+ .
61
+ .IP "" 0
62
+ .
63
+ .P
64
+ Credentials in the source URL will take precedence over credentials set using \fBconfig\fR\.
65
+ .
66
+ .SH "RUBY"
67
+ If your application requires a specific Ruby version or engine, specify your requirements using the \fBruby\fR method, with the following arguments\. All parameters are \fBOPTIONAL\fR unless otherwise specified\.
68
+ .
69
+ .SS "VERSION (required)"
70
+ The version of Ruby that your application requires\. If your application requires an alternate Ruby engine, such as JRuby or Rubinius, this should be the Ruby version that the engine is compatible with\.
71
+ .
72
+ .IP "" 4
73
+ .
74
+ .nf
75
+
76
+ ruby "1\.9\.3"
77
+ .
78
+ .fi
79
+ .
80
+ .IP "" 0
81
+ .
82
+ .SS "ENGINE"
83
+ Each application \fImay\fR specify a Ruby engine\. If an engine is specified, an engine version \fImust\fR also be specified\.
84
+ .
85
+ .P
86
+ What exactly is an Engine? \- A Ruby engine is an implementation of the Ruby language\.
87
+ .
88
+ .IP "\(bu" 4
89
+ For background: the reference or original implementation of the Ruby programming language is called Matz\'s Ruby Interpreter \fIhttps://en\.wikipedia\.org/wiki/Ruby_MRI\fR, or MRI for short\. This is named after Ruby creator Yukihiro Matsumoto, also known as Matz\. MRI is also known as CRuby, because it is written in C\. MRI is the most widely used Ruby engine\.
90
+ .
91
+ .IP "\(bu" 4
92
+ Other implementations \fIhttps://www\.ruby\-lang\.org/en/about/\fR of Ruby exist\. Some of the more well\-known implementations include Rubinius \fIhttps://rubinius\.com/\fR, and JRuby \fIhttp://jruby\.org/\fR\. Rubinius is an alternative implementation of Ruby written in Ruby\. JRuby is an implementation of Ruby on the JVM, short for Java Virtual Machine\.
93
+ .
94
+ .IP "" 0
95
+ .
96
+ .SS "ENGINE VERSION"
97
+ Each application \fImay\fR specify a Ruby engine version\. If an engine version is specified, an engine \fImust\fR also be specified\. If the engine is "ruby" the engine version specified \fImust\fR match the Ruby version\.
98
+ .
99
+ .IP "" 4
100
+ .
101
+ .nf
102
+
103
+ ruby "1\.8\.7", :engine => "jruby", :engine_version => "1\.6\.7"
104
+ .
105
+ .fi
106
+ .
107
+ .IP "" 0
108
+ .
109
+ .SS "PATCHLEVEL"
110
+ Each application \fImay\fR specify a Ruby patchlevel\.
111
+ .
112
+ .IP "" 4
113
+ .
114
+ .nf
115
+
116
+ ruby "2\.0\.0", :patchlevel => "247"
117
+ .
118
+ .fi
119
+ .
120
+ .IP "" 0
121
+ .
122
+ .SH "GEMS"
123
+ Specify gem requirements using the \fBgem\fR method, with the following arguments\. All parameters are \fBOPTIONAL\fR unless otherwise specified\.
124
+ .
125
+ .SS "NAME (required)"
126
+ For each gem requirement, list a single \fIgem\fR line\.
127
+ .
128
+ .IP "" 4
129
+ .
130
+ .nf
131
+
132
+ gem "nokogiri"
133
+ .
134
+ .fi
135
+ .
136
+ .IP "" 0
137
+ .
138
+ .SS "VERSION"
139
+ Each \fIgem\fR \fBMAY\fR have one or more version specifiers\.
140
+ .
141
+ .IP "" 4
142
+ .
143
+ .nf
144
+
145
+ gem "nokogiri", ">= 1\.4\.2"
146
+ gem "RedCloth", ">= 4\.1\.0", "< 4\.2\.0"
147
+ .
148
+ .fi
149
+ .
150
+ .IP "" 0
151
+ .
152
+ .SS "REQUIRE AS"
153
+ Each \fIgem\fR \fBMAY\fR specify files that should be used when autorequiring via \fBBundler\.require\fR\. You may pass an array with multiple files or \fBtrue\fR if file you want \fBrequired\fR has same name as \fIgem\fR or \fBfalse\fR to prevent any file from being autorequired\.
154
+ .
155
+ .IP "" 4
156
+ .
157
+ .nf
158
+
159
+ gem "redis", :require => ["redis/connection/hiredis", "redis"]
160
+ gem "webmock", :require => false
161
+ gem "debugger", :require => true
162
+ .
163
+ .fi
164
+ .
165
+ .IP "" 0
166
+ .
167
+ .P
168
+ The argument defaults to the name of the gem\. For example, these are identical:
169
+ .
170
+ .IP "" 4
171
+ .
172
+ .nf
173
+
174
+ gem "nokogiri"
175
+ gem "nokogiri", :require => "nokogiri"
176
+ gem "nokogiri", :require => true
177
+ .
178
+ .fi
179
+ .
180
+ .IP "" 0
181
+ .
182
+ .SS "GROUPS"
183
+ Each \fIgem\fR \fBMAY\fR specify membership in one or more groups\. Any \fIgem\fR that does not specify membership in any group is placed in the \fBdefault\fR group\.
184
+ .
185
+ .IP "" 4
186
+ .
187
+ .nf
188
+
189
+ gem "rspec", :group => :test
190
+ gem "wirble", :groups => [:development, :test]
191
+ .
192
+ .fi
193
+ .
194
+ .IP "" 0
195
+ .
196
+ .P
197
+ The Bundler runtime allows its two main methods, \fBBundler\.setup\fR and \fBBundler\.require\fR, to limit their impact to particular groups\.
198
+ .
199
+ .IP "" 4
200
+ .
201
+ .nf
202
+
203
+ # setup adds gems to Ruby\'s load path
204
+ Bundler\.setup # defaults to all groups
205
+ require "bundler/setup" # same as Bundler\.setup
206
+ Bundler\.setup(:default) # only set up the _default_ group
207
+ Bundler\.setup(:test) # only set up the _test_ group (but `not` _default_)
208
+ Bundler\.setup(:default, :test) # set up the _default_ and _test_ groups, but no others
209
+
210
+ # require requires all of the gems in the specified groups
211
+ Bundler\.require # defaults to the _default_ group
212
+ Bundler\.require(:default) # identical
213
+ Bundler\.require(:default, :test) # requires the _default_ and _test_ groups
214
+ Bundler\.require(:test) # requires the _test_ group
215
+ .
216
+ .fi
217
+ .
218
+ .IP "" 0
219
+ .
220
+ .P
221
+ The Bundler CLI allows you to specify a list of groups whose gems \fBbundle install\fR should not install with the \fB\-\-without\fR option\. To specify multiple groups to ignore, specify a list of groups separated by spaces\.
222
+ .
223
+ .IP "" 4
224
+ .
225
+ .nf
226
+
227
+ bundle install \-\-without test
228
+ bundle install \-\-without development test
229
+ .
230
+ .fi
231
+ .
232
+ .IP "" 0
233
+ .
234
+ .P
235
+ After running \fBbundle install \-\-without test\fR, bundler will remember that you excluded the test group in the last installation\. The next time you run \fBbundle install\fR, without any \fB\-\-without option\fR, bundler will recall it\.
236
+ .
237
+ .P
238
+ Also, calling \fBBundler\.setup\fR with no parameters, or calling \fBrequire "bundler/setup"\fR will setup all groups except for the ones you excluded via \fB\-\-without\fR (since they are not available)\.
239
+ .
240
+ .P
241
+ Note that on \fBbundle install\fR, bundler downloads and evaluates all gems, in order to create a single canonical list of all of the required gems and their dependencies\. This means that you cannot list different versions of the same gems in different groups\. For more details, see Understanding Bundler \fIhttp://bundler\.io/rationale\.html\fR\.
242
+ .
243
+ .SS "PLATFORMS"
244
+ If a gem should only be used in a particular platform or set of platforms, you can specify them\. Platforms are essentially identical to groups, except that you do not need to use the \fB\-\-without\fR install\-time flag to exclude groups of gems for other platforms\.
245
+ .
246
+ .P
247
+ There are a number of \fBGemfile\fR platforms:
248
+ .
249
+ .TP
250
+ \fBruby\fR
251
+ C Ruby (MRI) or Rubinius, but \fBNOT\fR Windows
252
+ .
253
+ .TP
254
+ \fBmri\fR
255
+ Same as \fIruby\fR, but not Rubinius
256
+ .
257
+ .TP
258
+ \fBmingw\fR
259
+ Windows 32 bit \'mingw32\' platform (aka RubyInstaller)
260
+ .
261
+ .TP
262
+ \fBx64_mingw\fR
263
+ Windows 64 bit \'mingw32\' platform (aka RubyInstaller x64)
264
+ .
265
+ .TP
266
+ \fBrbx\fR
267
+ Same as \fIruby\fR, but only Rubinius (not MRI)
268
+ .
269
+ .TP
270
+ \fBjruby\fR
271
+ JRuby
272
+ .
273
+ .TP
274
+ \fBmswin\fR
275
+ Windows
276
+ .
277
+ .P
278
+ You can restrict further by platform and version for all platforms \fIexcept\fR for \fBrbx\fR, \fBjruby\fR, and \fBmswin\fR\.
279
+ .
280
+ .P
281
+ To specify a version in addition to a platform, append the version number without the delimiter to the platform\. For example, to specify that a gem should only be used on platforms with Ruby 2\.3, use:
282
+ .
283
+ .IP "" 4
284
+ .
285
+ .nf
286
+
287
+ ruby_23
288
+ .
289
+ .fi
290
+ .
291
+ .IP "" 0
292
+ .
293
+ .P
294
+ The full list of platforms and supported versions includes:
295
+ .
296
+ .TP
297
+ \fBruby\fR
298
+ 1\.8, 1\.9, 2\.0, 2\.1, 2\.2, 2\.3, 2\.4, 2\.5
299
+ .
300
+ .TP
301
+ \fBmri\fR
302
+ 1\.8, 1\.9, 2\.0, 2\.1, 2\.2, 2\.3, 2\.4, 2\.5
303
+ .
304
+ .TP
305
+ \fBmingw\fR
306
+ 1\.8, 1\.9, 2\.0, 2\.1, 2\.2, 2\.3, 2\.4, 2\.5
307
+ .
308
+ .TP
309
+ \fBx64_mingw\fR
310
+ 2\.0, 2\.1, 2\.2, 2\.3, 2\.4, 2\.5
311
+ .
312
+ .P
313
+ As with groups, you can specify one or more platforms:
314
+ .
315
+ .IP "" 4
316
+ .
317
+ .nf
318
+
319
+ gem "weakling", :platforms => :jruby
320
+ gem "ruby\-debug", :platforms => :mri_18
321
+ gem "nokogiri", :platforms => [:mri_18, :jruby]
322
+ .
323
+ .fi
324
+ .
325
+ .IP "" 0
326
+ .
327
+ .P
328
+ All operations involving groups (\fBbundle install\fR, \fBBundler\.setup\fR, \fBBundler\.require\fR) behave exactly the same as if any groups not matching the current platform were explicitly excluded\.
329
+ .
330
+ .SS "SOURCE"
331
+ You can select an alternate Rubygems repository for a gem using the \':source\' option\.
332
+ .
333
+ .IP "" 4
334
+ .
335
+ .nf
336
+
337
+ gem "some_internal_gem", :source => "https://gems\.example\.com"
338
+ .
339
+ .fi
340
+ .
341
+ .IP "" 0
342
+ .
343
+ .P
344
+ This forces the gem to be loaded from this source and ignores any global sources declared at the top level of the file\. If the gem does not exist in this source, it will not be installed\.
345
+ .
346
+ .P
347
+ Bundler will search for child dependencies of this gem by first looking in the source selected for the parent, but if they are not found there, it will fall back on global sources using the ordering described in \fISOURCE PRIORITY\fR\.
348
+ .
349
+ .P
350
+ Selecting a specific source repository this way also suppresses the ambiguous gem warning described above in \fIGLOBAL SOURCES (#source)\fR\.
351
+ .
352
+ .SS "GIT"
353
+ If necessary, you can specify that a gem is located at a particular git repository using the \fB:git\fR parameter\. The repository can be accessed via several protocols:
354
+ .
355
+ .TP
356
+ \fBHTTP(S)\fR
357
+ gem "rails", :git => "https://github\.com/rails/rails\.git"
358
+ .
359
+ .TP
360
+ \fBSSH\fR
361
+ gem "rails", :git => "git@github\.com:rails/rails\.git"
362
+ .
363
+ .TP
364
+ \fBgit\fR
365
+ gem "rails", :git => "git://github\.com/rails/rails\.git"
366
+ .
367
+ .P
368
+ If using SSH, the user that you use to run \fBbundle install\fR \fBMUST\fR have the appropriate keys available in their \fB$HOME/\.ssh\fR\.
369
+ .
370
+ .P
371
+ \fBNOTE\fR: \fBhttp://\fR and \fBgit://\fR URLs should be avoided if at all possible\. These protocols are unauthenticated, so a man\-in\-the\-middle attacker can deliver malicious code and compromise your system\. HTTPS and SSH are strongly preferred\.
372
+ .
373
+ .P
374
+ The \fBgroup\fR, \fBplatforms\fR, and \fBrequire\fR options are available and behave exactly the same as they would for a normal gem\.
375
+ .
376
+ .P
377
+ A git repository \fBSHOULD\fR have at least one file, at the root of the directory containing the gem, with the extension \fB\.gemspec\fR\. This file \fBMUST\fR contain a valid gem specification, as expected by the \fBgem build\fR command\.
378
+ .
379
+ .P
380
+ If a git repository does not have a \fB\.gemspec\fR, bundler will attempt to create one, but it will not contain any dependencies, executables, or C extension compilation instructions\. As a result, it may fail to properly integrate into your application\.
381
+ .
382
+ .P
383
+ If a git repository does have a \fB\.gemspec\fR for the gem you attached it to, a version specifier, if provided, means that the git repository is only valid if the \fB\.gemspec\fR specifies a version matching the version specifier\. If not, bundler will print a warning\.
384
+ .
385
+ .IP "" 4
386
+ .
387
+ .nf
388
+
389
+ gem "rails", "2\.3\.8", :git => "https://github\.com/rails/rails\.git"
390
+ # bundle install will fail, because the \.gemspec in the rails
391
+ # repository\'s master branch specifies version 3\.0\.0
392
+ .
393
+ .fi
394
+ .
395
+ .IP "" 0
396
+ .
397
+ .P
398
+ If a git repository does \fBnot\fR have a \fB\.gemspec\fR for the gem you attached it to, a version specifier \fBMUST\fR be provided\. Bundler will use this version in the simple \fB\.gemspec\fR it creates\.
399
+ .
400
+ .P
401
+ Git repositories support a number of additional options\.
402
+ .
403
+ .TP
404
+ \fBbranch\fR, \fBtag\fR, and \fBref\fR
405
+ You \fBMUST\fR only specify at most one of these options\. The default is \fB:branch => "master"\fR
406
+ .
407
+ .TP
408
+ For example:
409
+ .
410
+ .IP
411
+ git "https://github\.com/rails/rails\.git", :branch => "5\-0\-stable" do
412
+ .
413
+ .IP
414
+ git "https://github\.com/rails/rails\.git", :tag => "v5\.0\.0" do
415
+ .
416
+ .IP
417
+ git "https://github\.com/rails/rails\.git", :ref => "4aded" do
418
+ .
419
+ .TP
420
+ \fBsubmodules\fR
421
+ For reference, a git submodule \fIhttps://git\-scm\.com/book/en/v2/Git\-Tools\-Submodules\fR lets you have another git repository within a subfolder of your repository\. Specify \fB:submodules => true\fR to cause bundler to expand any submodules included in the git repository
422
+ .
423
+ .P
424
+ If a git repository contains multiple \fB\.gemspecs\fR, each \fB\.gemspec\fR represents a gem located at the same place in the file system as the \fB\.gemspec\fR\.
425
+ .
426
+ .IP "" 4
427
+ .
428
+ .nf
429
+
430
+ |~rails [git root]
431
+ | |\-rails\.gemspec [rails gem located here]
432
+ |~actionpack
433
+ | |\-actionpack\.gemspec [actionpack gem located here]
434
+ |~activesupport
435
+ | |\-activesupport\.gemspec [activesupport gem located here]
436
+ |\.\.\.
437
+ .
438
+ .fi
439
+ .
440
+ .IP "" 0
441
+ .
442
+ .P
443
+ To install a gem located in a git repository, bundler changes to the directory containing the gemspec, runs \fBgem build name\.gemspec\fR and then installs the resulting gem\. The \fBgem build\fR command, which comes standard with Rubygems, evaluates the \fB\.gemspec\fR in the context of the directory in which it is located\.
444
+ .
445
+ .SS "GIT SOURCE"
446
+ A custom git source can be defined via the \fBgit_source\fR method\. Provide the source\'s name as an argument, and a block which receives a single argument and interpolates it into a string to return the full repo address:
447
+ .
448
+ .IP "" 4
449
+ .
450
+ .nf
451
+
452
+ git_source(:stash){ |repo_name| "https://stash\.corp\.acme\.pl/#{repo_name}\.git" }
453
+ gem \'rails\', :stash => \'forks/rails\'
454
+ .
455
+ .fi
456
+ .
457
+ .IP "" 0
458
+ .
459
+ .P
460
+ In addition, if you wish to choose a specific branch:
461
+ .
462
+ .IP "" 4
463
+ .
464
+ .nf
465
+
466
+ gem "rails", :stash => "forks/rails", :branch => "branch_name"
467
+ .
468
+ .fi
469
+ .
470
+ .IP "" 0
471
+ .
472
+ .SS "GITHUB"
473
+ \fBNOTE\fR: This shorthand should be avoided until Bundler 2\.0, since it currently expands to an insecure \fBgit://\fR URL\. This allows a man\-in\-the\-middle attacker to compromise your system\.
474
+ .
475
+ .P
476
+ If the git repository you want to use is hosted on GitHub and is public, you can use the :github shorthand to specify the github username and repository name (without the trailing "\.git"), separated by a slash\. If both the username and repository name are the same, you can omit one\.
477
+ .
478
+ .IP "" 4
479
+ .
480
+ .nf
481
+
482
+ gem "rails", :github => "rails/rails"
483
+ gem "rails", :github => "rails"
484
+ .
485
+ .fi
486
+ .
487
+ .IP "" 0
488
+ .
489
+ .P
490
+ Are both equivalent to
491
+ .
492
+ .IP "" 4
493
+ .
494
+ .nf
495
+
496
+ gem "rails", :git => "git://github\.com/rails/rails\.git"
497
+ .
498
+ .fi
499
+ .
500
+ .IP "" 0
501
+ .
502
+ .P
503
+ Since the \fBgithub\fR method is a specialization of \fBgit_source\fR, it accepts a \fB:branch\fR named argument\.
504
+ .
505
+ .SS "GIST"
506
+ If the git repository you want to use is hosted as a Github Gist and is public, you can use the :gist shorthand to specify the gist identifier (without the trailing "\.git")\.
507
+ .
508
+ .IP "" 4
509
+ .
510
+ .nf
511
+
512
+ gem "the_hatch", :gist => "4815162342"
513
+ .
514
+ .fi
515
+ .
516
+ .IP "" 0
517
+ .
518
+ .P
519
+ Is equivalent to:
520
+ .
521
+ .IP "" 4
522
+ .
523
+ .nf
524
+
525
+ gem "the_hatch", :git => "https://gist\.github\.com/4815162342\.git"
526
+ .
527
+ .fi
528
+ .
529
+ .IP "" 0
530
+ .
531
+ .P
532
+ Since the \fBgist\fR method is a specialization of \fBgit_source\fR, it accepts a \fB:branch\fR named argument\.
533
+ .
534
+ .SS "BITBUCKET"
535
+ If the git repository you want to use is hosted on Bitbucket and is public, you can use the :bitbucket shorthand to specify the bitbucket username and repository name (without the trailing "\.git"), separated by a slash\. If both the username and repository name are the same, you can omit one\.
536
+ .
537
+ .IP "" 4
538
+ .
539
+ .nf
540
+
541
+ gem "rails", :bitbucket => "rails/rails"
542
+ gem "rails", :bitbucket => "rails"
543
+ .
544
+ .fi
545
+ .
546
+ .IP "" 0
547
+ .
548
+ .P
549
+ Are both equivalent to
550
+ .
551
+ .IP "" 4
552
+ .
553
+ .nf
554
+
555
+ gem "rails", :git => "https://rails@bitbucket\.org/rails/rails\.git"
556
+ .
557
+ .fi
558
+ .
559
+ .IP "" 0
560
+ .
561
+ .P
562
+ Since the \fBbitbucket\fR method is a specialization of \fBgit_source\fR, it accepts a \fB:branch\fR named argument\.
563
+ .
564
+ .SS "PATH"
565
+ You can specify that a gem is located in a particular location on the file system\. Relative paths are resolved relative to the directory containing the \fBGemfile\fR\.
566
+ .
567
+ .P
568
+ Similar to the semantics of the \fB:git\fR option, the \fB:path\fR option requires that the directory in question either contains a \fB\.gemspec\fR for the gem, or that you specify an explicit version that bundler should use\.
569
+ .
570
+ .P
571
+ Unlike \fB:git\fR, bundler does not compile C extensions for gems specified as paths\.
572
+ .
573
+ .IP "" 4
574
+ .
575
+ .nf
576
+
577
+ gem "rails", :path => "vendor/rails"
578
+ .
579
+ .fi
580
+ .
581
+ .IP "" 0
582
+ .
583
+ .P
584
+ If you would like to use multiple local gems directly from the filesystem, you can set a global \fBpath\fR option to the path containing the gem\'s files\. This will automatically load gemspec files from subdirectories\.
585
+ .
586
+ .IP "" 4
587
+ .
588
+ .nf
589
+
590
+ path \'components\' do
591
+ gem \'admin_ui\'
592
+ gem \'public_ui\'
593
+ end
594
+ .
595
+ .fi
596
+ .
597
+ .IP "" 0
598
+ .
599
+ .SH "BLOCK FORM OF SOURCE, GIT, PATH, GROUP and PLATFORMS"
600
+ The \fB:source\fR, \fB:git\fR, \fB:path\fR, \fB:group\fR, and \fB:platforms\fR options may be applied to a group of gems by using block form\.
601
+ .
602
+ .IP "" 4
603
+ .
604
+ .nf
605
+
606
+ source "https://gems\.example\.com" do
607
+ gem "some_internal_gem"
608
+ gem "another_internal_gem"
609
+ end
610
+
611
+ git "https://github\.com/rails/rails\.git" do
612
+ gem "activesupport"
613
+ gem "actionpack"
614
+ end
615
+
616
+ platforms :ruby do
617
+ gem "ruby\-debug"
618
+ gem "sqlite3"
619
+ end
620
+
621
+ group :development, :optional => true do
622
+ gem "wirble"
623
+ gem "faker"
624
+ end
625
+ .
626
+ .fi
627
+ .
628
+ .IP "" 0
629
+ .
630
+ .P
631
+ In the case of the group block form the :optional option can be given to prevent a group from being installed unless listed in the \fB\-\-with\fR option given to the \fBbundle install\fR command\.
632
+ .
633
+ .P
634
+ In the case of the \fBgit\fR block form, the \fB:ref\fR, \fB:branch\fR, \fB:tag\fR, and \fB:submodules\fR options may be passed to the \fBgit\fR method, and all gems in the block will inherit those options\.
635
+ .
636
+ .SH "INSTALL_IF"
637
+ The \fBinstall_if\fR method allows gems to be installed based on a proc or lambda\. This is especially useful for optional gems that can only be used if certain software is installed or some other conditions are met\.
638
+ .
639
+ .IP "" 4
640
+ .
641
+ .nf
642
+
643
+ install_if \-> { RUBY_PLATFORM =~ /darwin/ } do
644
+ gem "pasteboard"
645
+ end
646
+ .
647
+ .fi
648
+ .
649
+ .IP "" 0
650
+ .
651
+ .SH "GEMSPEC"
652
+ The \.gemspec \fIhttp://guides\.rubygems\.org/specification\-reference/\fR file is where you provide metadata about your gem to Rubygems\. Some required Gemspec attributes include the name, description, and homepage of your gem\. This is also where you specify the dependencies your gem needs to run\.
653
+ .
654
+ .P
655
+ If you wish to use Bundler to help install dependencies for a gem while it is being developed, use the \fBgemspec\fR method to pull in the dependencies listed in the \fB\.gemspec\fR file\.
656
+ .
657
+ .P
658
+ The \fBgemspec\fR method adds any runtime dependencies as gem requirements in the default group\. It also adds development dependencies as gem requirements in the \fBdevelopment\fR group\. Finally, it adds a gem requirement on your project (\fB:path => \'\.\'\fR)\. In conjunction with \fBBundler\.setup\fR, this allows you to require project files in your test code as you would if the project were installed as a gem; you need not manipulate the load path manually or require project files via relative paths\.
659
+ .
660
+ .P
661
+ The \fBgemspec\fR method supports optional \fB:path\fR, \fB:glob\fR, \fB:name\fR, and \fB:development_group\fR options, which control where bundler looks for the \fB\.gemspec\fR, the glob it uses to look for the gemspec (defaults to: "{,\fI,\fR/*}\.gemspec"), what named \fB\.gemspec\fR it uses (if more than one is present), and which group development dependencies are included in\.
662
+ .
663
+ .P
664
+ When a \fBgemspec\fR dependency encounters version conflicts during resolution, the local version under development will always be selected \-\- even if there are remote versions that better match other requirements for the \fBgemspec\fR gem\.
665
+ .
666
+ .SH "SOURCE PRIORITY"
667
+ When attempting to locate a gem to satisfy a gem requirement, bundler uses the following priority order:
668
+ .
669
+ .IP "1." 4
670
+ The source explicitly attached to the gem (using \fB:source\fR, \fB:path\fR, or \fB:git\fR)
671
+ .
672
+ .IP "2." 4
673
+ For implicit gems (dependencies of explicit gems), any source, git, or path repository declared on the parent\. This results in bundler prioritizing the ActiveSupport gem from the Rails git repository over ones from \fBrubygems\.org\fR
674
+ .
675
+ .IP "3." 4
676
+ The sources specified via global \fBsource\fR lines, searching each source in your \fBGemfile\fR from last added to first added\.
677
+ .
678
+ .IP "" 0
679
+