bundler-prehistoric 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (284) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +100 -0
  5. data/CHANGELOG.md +1640 -0
  6. data/CONTRIBUTING.md +32 -0
  7. data/DEVELOPMENT.md +117 -0
  8. data/Gemfile +3 -0
  9. data/ISSUES.md +96 -0
  10. data/LICENSE.md +23 -0
  11. data/README.md +46 -0
  12. data/Rakefile +256 -0
  13. data/UPGRADING.md +103 -0
  14. data/bin/bundle +21 -0
  15. data/bin/bundle_ruby +56 -0
  16. data/bin/bundler +21 -0
  17. data/bundler.gemspec +33 -0
  18. data/lib/bundler.rb +442 -0
  19. data/lib/bundler/backports/time.rb +7 -0
  20. data/lib/bundler/capistrano.rb +16 -0
  21. data/lib/bundler/cli.rb +395 -0
  22. data/lib/bundler/cli/binstubs.rb +38 -0
  23. data/lib/bundler/cli/cache.rb +34 -0
  24. data/lib/bundler/cli/check.rb +35 -0
  25. data/lib/bundler/cli/clean.rb +19 -0
  26. data/lib/bundler/cli/common.rb +54 -0
  27. data/lib/bundler/cli/config.rb +84 -0
  28. data/lib/bundler/cli/console.rb +39 -0
  29. data/lib/bundler/cli/exec.rb +37 -0
  30. data/lib/bundler/cli/gem.rb +101 -0
  31. data/lib/bundler/cli/init.rb +33 -0
  32. data/lib/bundler/cli/inject.rb +33 -0
  33. data/lib/bundler/cli/install.rb +133 -0
  34. data/lib/bundler/cli/open.rb +23 -0
  35. data/lib/bundler/cli/outdated.rb +80 -0
  36. data/lib/bundler/cli/package.rb +36 -0
  37. data/lib/bundler/cli/platform.rb +43 -0
  38. data/lib/bundler/cli/show.rb +48 -0
  39. data/lib/bundler/cli/update.rb +73 -0
  40. data/lib/bundler/cli/viz.rb +27 -0
  41. data/lib/bundler/constants.rb +5 -0
  42. data/lib/bundler/current_ruby.rb +155 -0
  43. data/lib/bundler/definition.rb +604 -0
  44. data/lib/bundler/dep_proxy.rb +43 -0
  45. data/lib/bundler/dependency.rb +106 -0
  46. data/lib/bundler/deployment.rb +59 -0
  47. data/lib/bundler/deprecate.rb +15 -0
  48. data/lib/bundler/dsl.rb +305 -0
  49. data/lib/bundler/endpoint_specification.rb +76 -0
  50. data/lib/bundler/env.rb +56 -0
  51. data/lib/bundler/environment.rb +42 -0
  52. data/lib/bundler/fetcher.rb +396 -0
  53. data/lib/bundler/friendly_errors.rb +42 -0
  54. data/lib/bundler/gem_helper.rb +169 -0
  55. data/lib/bundler/gem_helpers.rb +25 -0
  56. data/lib/bundler/gem_installer.rb +9 -0
  57. data/lib/bundler/gem_path_manipulation.rb +8 -0
  58. data/lib/bundler/gem_tasks.rb +2 -0
  59. data/lib/bundler/graph.rb +169 -0
  60. data/lib/bundler/index.rb +184 -0
  61. data/lib/bundler/injector.rb +64 -0
  62. data/lib/bundler/installer.rb +332 -0
  63. data/lib/bundler/lazy_specification.rb +83 -0
  64. data/lib/bundler/lockfile_parser.rb +146 -0
  65. data/lib/bundler/match_platform.rb +13 -0
  66. data/lib/bundler/parallel_workers.rb +18 -0
  67. data/lib/bundler/parallel_workers/thread_worker.rb +30 -0
  68. data/lib/bundler/parallel_workers/unix_worker.rb +101 -0
  69. data/lib/bundler/parallel_workers/worker.rb +69 -0
  70. data/lib/bundler/psyched_yaml.rb +26 -0
  71. data/lib/bundler/remote_specification.rb +57 -0
  72. data/lib/bundler/resolver.rb +534 -0
  73. data/lib/bundler/retry.rb +60 -0
  74. data/lib/bundler/ruby_dsl.rb +11 -0
  75. data/lib/bundler/ruby_version.rb +117 -0
  76. data/lib/bundler/rubygems_ext.rb +171 -0
  77. data/lib/bundler/rubygems_integration.rb +578 -0
  78. data/lib/bundler/runtime.rb +310 -0
  79. data/lib/bundler/settings.rb +176 -0
  80. data/lib/bundler/setup.rb +23 -0
  81. data/lib/bundler/shared_helpers.rb +110 -0
  82. data/lib/bundler/similarity_detector.rb +63 -0
  83. data/lib/bundler/source.rb +29 -0
  84. data/lib/bundler/source/git.rb +289 -0
  85. data/lib/bundler/source/git/git_proxy.rb +158 -0
  86. data/lib/bundler/source/path.rb +225 -0
  87. data/lib/bundler/source/path/installer.rb +38 -0
  88. data/lib/bundler/source/rubygems.rb +334 -0
  89. data/lib/bundler/source/svn.rb +260 -0
  90. data/lib/bundler/source/svn/svn_proxy.rb +110 -0
  91. data/lib/bundler/spec_set.rb +154 -0
  92. data/lib/bundler/ssl_certs/.document +1 -0
  93. data/lib/bundler/ssl_certs/Class3PublicPrimaryCertificationAuthority.pem +14 -0
  94. data/lib/bundler/ssl_certs/DigiCertHighAssuranceEVRootCA.pem +23 -0
  95. data/lib/bundler/ssl_certs/EntrustnetSecureServerCertificationAuthority.pem +28 -0
  96. data/lib/bundler/ssl_certs/GeoTrustGlobalCA.pem +20 -0
  97. data/lib/bundler/ssl_certs/certificate_manager.rb +41 -0
  98. data/lib/bundler/templates/Executable +16 -0
  99. data/lib/bundler/templates/Executable.standalone +12 -0
  100. data/lib/bundler/templates/Gemfile +4 -0
  101. data/lib/bundler/templates/newgem/.travis.yml.tt +3 -0
  102. data/lib/bundler/templates/newgem/Gemfile.tt +4 -0
  103. data/lib/bundler/templates/newgem/LICENSE.txt.tt +22 -0
  104. data/lib/bundler/templates/newgem/README.md.tt +31 -0
  105. data/lib/bundler/templates/newgem/Rakefile.tt +26 -0
  106. data/lib/bundler/templates/newgem/bin/newgem.tt +3 -0
  107. data/lib/bundler/templates/newgem/consolerc.tt +3 -0
  108. data/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt +3 -0
  109. data/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +9 -0
  110. data/lib/bundler/templates/newgem/ext/newgem/newgem.h.tt +6 -0
  111. data/lib/bundler/templates/newgem/gitignore.tt +16 -0
  112. data/lib/bundler/templates/newgem/lib/newgem.rb.tt +12 -0
  113. data/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +7 -0
  114. data/lib/bundler/templates/newgem/newgem.gemspec.tt +38 -0
  115. data/lib/bundler/templates/newgem/rspec.tt +2 -0
  116. data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +11 -0
  117. data/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +2 -0
  118. data/lib/bundler/templates/newgem/test/minitest_helper.rb.tt +4 -0
  119. data/lib/bundler/templates/newgem/test/test_newgem.rb.tt +11 -0
  120. data/lib/bundler/ui.rb +7 -0
  121. data/lib/bundler/ui/rg_proxy.rb +21 -0
  122. data/lib/bundler/ui/shell.rb +98 -0
  123. data/lib/bundler/ui/silent.rb +44 -0
  124. data/lib/bundler/vendor/.document +0 -0
  125. data/lib/bundler/vendor/net/http/faster.rb +26 -0
  126. data/lib/bundler/vendor/net/http/persistent.rb +1230 -0
  127. data/lib/bundler/vendor/net/http/persistent/ssl_reuse.rb +128 -0
  128. data/lib/bundler/vendor/thor.rb +480 -0
  129. data/lib/bundler/vendor/thor/actions.rb +319 -0
  130. data/lib/bundler/vendor/thor/actions/create_file.rb +103 -0
  131. data/lib/bundler/vendor/thor/actions/create_link.rb +59 -0
  132. data/lib/bundler/vendor/thor/actions/directory.rb +118 -0
  133. data/lib/bundler/vendor/thor/actions/empty_directory.rb +135 -0
  134. data/lib/bundler/vendor/thor/actions/file_manipulation.rb +316 -0
  135. data/lib/bundler/vendor/thor/actions/inject_into_file.rb +107 -0
  136. data/lib/bundler/vendor/thor/base.rb +656 -0
  137. data/lib/bundler/vendor/thor/command.rb +133 -0
  138. data/lib/bundler/vendor/thor/core_ext/hash_with_indifferent_access.rb +77 -0
  139. data/lib/bundler/vendor/thor/core_ext/io_binary_read.rb +10 -0
  140. data/lib/bundler/vendor/thor/core_ext/ordered_hash.rb +98 -0
  141. data/lib/bundler/vendor/thor/error.rb +32 -0
  142. data/lib/bundler/vendor/thor/group.rb +281 -0
  143. data/lib/bundler/vendor/thor/invocation.rb +173 -0
  144. data/lib/bundler/vendor/thor/line_editor.rb +17 -0
  145. data/lib/bundler/vendor/thor/line_editor/basic.rb +35 -0
  146. data/lib/bundler/vendor/thor/line_editor/readline.rb +88 -0
  147. data/lib/bundler/vendor/thor/parser.rb +4 -0
  148. data/lib/bundler/vendor/thor/parser/argument.rb +73 -0
  149. data/lib/bundler/vendor/thor/parser/arguments.rb +175 -0
  150. data/lib/bundler/vendor/thor/parser/option.rb +121 -0
  151. data/lib/bundler/vendor/thor/parser/options.rb +218 -0
  152. data/lib/bundler/vendor/thor/rake_compat.rb +71 -0
  153. data/lib/bundler/vendor/thor/runner.rb +322 -0
  154. data/lib/bundler/vendor/thor/shell.rb +81 -0
  155. data/lib/bundler/vendor/thor/shell/basic.rb +420 -0
  156. data/lib/bundler/vendor/thor/shell/color.rb +149 -0
  157. data/lib/bundler/vendor/thor/shell/html.rb +126 -0
  158. data/lib/bundler/vendor/thor/util.rb +267 -0
  159. data/lib/bundler/vendor/thor/version.rb +3 -0
  160. data/lib/bundler/vendored_persistent.rb +3 -0
  161. data/lib/bundler/vendored_thor.rb +8 -0
  162. data/lib/bundler/version.rb +6 -0
  163. data/lib/bundler/vlad.rb +11 -0
  164. data/man/bundle-config.ronn +155 -0
  165. data/man/bundle-exec.ronn +136 -0
  166. data/man/bundle-install.ronn +372 -0
  167. data/man/bundle-package.ronn +59 -0
  168. data/man/bundle-platform.ronn +42 -0
  169. data/man/bundle-update.ronn +179 -0
  170. data/man/bundle.ronn +92 -0
  171. data/man/gemfile.5.ronn +369 -0
  172. data/man/index.txt +7 -0
  173. data/spec/bundler/bundler_spec.rb +74 -0
  174. data/spec/bundler/cli_spec.rb +16 -0
  175. data/spec/bundler/definition_spec.rb +21 -0
  176. data/spec/bundler/dsl_spec.rb +108 -0
  177. data/spec/bundler/friendly_errors_spec.rb +13 -0
  178. data/spec/bundler/gem_helper_spec.rb +225 -0
  179. data/spec/bundler/psyched_yaml_spec.rb +8 -0
  180. data/spec/bundler/retry_spec.rb +59 -0
  181. data/spec/bundler/settings_spec.rb +13 -0
  182. data/spec/bundler/source_spec.rb +25 -0
  183. data/spec/cache/gems_spec.rb +316 -0
  184. data/spec/cache/git_spec.rb +188 -0
  185. data/spec/cache/path_spec.rb +121 -0
  186. data/spec/cache/platform_spec.rb +53 -0
  187. data/spec/cache/svn_spec.rb +82 -0
  188. data/spec/commands/binstubs_spec.rb +246 -0
  189. data/spec/commands/check_spec.rb +278 -0
  190. data/spec/commands/clean_spec.rb +652 -0
  191. data/spec/commands/config_spec.rb +227 -0
  192. data/spec/commands/console_spec.rb +102 -0
  193. data/spec/commands/exec_spec.rb +367 -0
  194. data/spec/commands/help_spec.rb +39 -0
  195. data/spec/commands/init_spec.rb +39 -0
  196. data/spec/commands/inject_spec.rb +78 -0
  197. data/spec/commands/licenses_spec.rb +31 -0
  198. data/spec/commands/newgem_spec.rb +451 -0
  199. data/spec/commands/open_spec.rb +80 -0
  200. data/spec/commands/outdated_spec.rb +168 -0
  201. data/spec/commands/package_spec.rb +128 -0
  202. data/spec/commands/show_spec.rb +152 -0
  203. data/spec/install/binstubs_spec.rb +24 -0
  204. data/spec/install/bundler_spec.rb +146 -0
  205. data/spec/install/deploy_spec.rb +237 -0
  206. data/spec/install/gemfile/gemspec_spec.rb +170 -0
  207. data/spec/install/gemfile/git_spec.rb +967 -0
  208. data/spec/install/gemfile/path_spec.rb +480 -0
  209. data/spec/install/gemfile/svn_spec.rb +582 -0
  210. data/spec/install/gemfile_spec.rb +44 -0
  211. data/spec/install/gems/c_ext_spec.rb +48 -0
  212. data/spec/install/gems/dependency_api_spec.rb +580 -0
  213. data/spec/install/gems/env_spec.rb +107 -0
  214. data/spec/install/gems/flex_spec.rb +314 -0
  215. data/spec/install/gems/groups_spec.rb +308 -0
  216. data/spec/install/gems/mirror_spec.rb +39 -0
  217. data/spec/install/gems/platform_spec.rb +221 -0
  218. data/spec/install/gems/post_install_spec.rb +121 -0
  219. data/spec/install/gems/resolving_spec.rb +124 -0
  220. data/spec/install/gems/simple_case_spec.rb +386 -0
  221. data/spec/install/gems/standalone_spec.rb +260 -0
  222. data/spec/install/gems/sudo_spec.rb +136 -0
  223. data/spec/install/gems/win32_spec.rb +26 -0
  224. data/spec/install/gemspecs_spec.rb +50 -0
  225. data/spec/install/path_spec.rb +150 -0
  226. data/spec/install/post_bundle_message_spec.rb +142 -0
  227. data/spec/install/prereleases_spec.rb +43 -0
  228. data/spec/install/security_policy_spec.rb +77 -0
  229. data/spec/install/upgrade_spec.rb +26 -0
  230. data/spec/lock/git_spec.rb +34 -0
  231. data/spec/lock/lockfile_spec.rb +912 -0
  232. data/spec/lock/svn_spec.rb +35 -0
  233. data/spec/other/bundle_ruby_spec.rb +142 -0
  234. data/spec/other/cli_dispatch_spec.rb +21 -0
  235. data/spec/other/ext_spec.rb +60 -0
  236. data/spec/other/platform_spec.rb +1285 -0
  237. data/spec/other/ssl_cert_spec.rb +10 -0
  238. data/spec/quality_spec.rb +88 -0
  239. data/spec/realworld/dependency_api_spec.rb +60 -0
  240. data/spec/realworld/edgecases_spec.rb +177 -0
  241. data/spec/realworld/parallel_spec.rb +69 -0
  242. data/spec/resolver/basic_spec.rb +66 -0
  243. data/spec/resolver/platform_spec.rb +88 -0
  244. data/spec/runtime/executable_spec.rb +149 -0
  245. data/spec/runtime/load_spec.rb +107 -0
  246. data/spec/runtime/platform_spec.rb +90 -0
  247. data/spec/runtime/require_spec.rb +332 -0
  248. data/spec/runtime/setup_spec.rb +856 -0
  249. data/spec/runtime/with_clean_env_spec.rb +91 -0
  250. data/spec/spec_helper.rb +114 -0
  251. data/spec/support/artifice/endopint_marshal_fail_basic_authentication.rb +13 -0
  252. data/spec/support/artifice/endpoint.rb +71 -0
  253. data/spec/support/artifice/endpoint_500.rb +37 -0
  254. data/spec/support/artifice/endpoint_api_missing.rb +16 -0
  255. data/spec/support/artifice/endpoint_basic_authentication.rb +13 -0
  256. data/spec/support/artifice/endpoint_creds_diff_host.rb +38 -0
  257. data/spec/support/artifice/endpoint_extra.rb +31 -0
  258. data/spec/support/artifice/endpoint_extra_missing.rb +15 -0
  259. data/spec/support/artifice/endpoint_fallback.rb +17 -0
  260. data/spec/support/artifice/endpoint_host_redirect.rb +15 -0
  261. data/spec/support/artifice/endpoint_marshal_fail.rb +11 -0
  262. data/spec/support/artifice/endpoint_redirect.rb +15 -0
  263. data/spec/support/artifice/endpoint_strict_basic_authentication.rb +18 -0
  264. data/spec/support/artifice/endpoint_timeout.rb +13 -0
  265. data/spec/support/builders.rb +748 -0
  266. data/spec/support/fakeweb/rack-1.0.0.marshal +2 -0
  267. data/spec/support/fakeweb/windows.rb +23 -0
  268. data/spec/support/hax.rb +22 -0
  269. data/spec/support/helpers.rb +348 -0
  270. data/spec/support/indexes.rb +280 -0
  271. data/spec/support/less_than_proc.rb +14 -0
  272. data/spec/support/matchers.rb +77 -0
  273. data/spec/support/path.rb +81 -0
  274. data/spec/support/permissions.rb +10 -0
  275. data/spec/support/platforms.rb +94 -0
  276. data/spec/support/ruby_ext.rb +20 -0
  277. data/spec/support/rubygems_ext.rb +39 -0
  278. data/spec/support/streams.rb +13 -0
  279. data/spec/support/sudo.rb +16 -0
  280. data/spec/update/gems_spec.rb +201 -0
  281. data/spec/update/git_spec.rb +236 -0
  282. data/spec/update/source_spec.rb +63 -0
  283. data/spec/update/svn_spec.rb +100 -0
  284. metadata +486 -0
@@ -0,0 +1,59 @@
1
+ bundle-package(1) -- Package your needed `.gem` files into your application
2
+ ===========================================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `bundle package`
7
+
8
+ ## DESCRIPTION
9
+
10
+ Copy all of the `.gem` files needed to run the application into the
11
+ `vendor/cache` directory. In the future, when running [bundle install(1)][bundle-install],
12
+ use the gems in the cache in preference to the ones on `rubygems.org`.
13
+
14
+ ## GIT AND PATH GEMS
15
+
16
+ Since Bundler 1.2, the `bundle package` command can also package `:git` and
17
+ `:path` dependencies besides .gem files. This needs to be explicitly enabled
18
+ via the `--all` option. Once used, the `--all` option will be remembered.
19
+
20
+ ## REMOTE FETCHING
21
+
22
+ By default, if you simply run [bundle install(1)][bundle-install] after running
23
+ [bundle package(1)][bundle-package], bundler will still connect to `rubygems.org`
24
+ to check whether a platform-specific gem exists for any of the gems
25
+ in `vendor/cache`.
26
+
27
+ For instance, consider this Gemfile(5):
28
+
29
+ source "https://rubygems.org"
30
+
31
+ gem "nokogiri"
32
+
33
+ If you run `bundle package` under C Ruby, bundler will retrieve
34
+ the version of `nokogiri` for the `"ruby"` platform. If you deploy
35
+ to JRuby and run `bundle install`, bundler is forced to check to
36
+ see whether a `"java"` platformed `nokogiri` exists.
37
+
38
+ Even though the `nokogiri` gem for the Ruby platform is
39
+ _technically_ acceptable on JRuby, it actually has a C extension
40
+ that does not run on JRuby. As a result, bundler will, by default,
41
+ still connect to `rubygems.org` to check whether it has a version
42
+ of one of your gems more specific to your platform.
43
+
44
+ This problem is also not just limited to the `"java"` platform.
45
+ A similar (common) problem can happen when developing on Windows
46
+ and deploying to Linux, or even when developing on OSX and
47
+ deploying to Linux.
48
+
49
+ If you know for sure that the gems packaged in `vendor/cache`
50
+ are appropriate for the platform you are on, you can run
51
+ `bundle install --local` to skip checking for more appropriate
52
+ gems, and just use the ones in `vendor/cache`.
53
+
54
+ One way to be sure that you have the right platformed versions
55
+ of all your gems is to run `bundle package` on an identical
56
+ machine and check in the gems. For instance, you can run
57
+ `bundle package` on an identical staging box during your
58
+ staging process, and check in the `vendor/cache` before
59
+ deploying to production.
@@ -0,0 +1,42 @@
1
+ bundle-platform(1) -- Displays platform compatibility information
2
+ =================================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `bundle platform` [--ruby]
7
+
8
+ ## DESCRIPTION
9
+
10
+ `platform` will display information from your Gemfile, Gemfile.lock, and Ruby
11
+ VM about your platform.
12
+
13
+ For instance, using this Gemfile(5):
14
+
15
+ source "https://rubygems.org"
16
+
17
+ ruby "1.9.3"
18
+
19
+ gem "rack"
20
+
21
+ If you run `bundle platform` on Ruby 1.9.3, it will display the following output:
22
+
23
+ Your platform is: x86_64-linux
24
+
25
+ Your app has gems that work on these platforms:
26
+ * ruby
27
+
28
+ Your Gemfile specifies a Ruby version requirement:
29
+ * ruby 1.9.3
30
+
31
+ Your current platform satisfies the Ruby version requirement.
32
+
33
+ `platform` will list all the platforms in your `Gemfile.lock` as well as the
34
+ `ruby` directive if applicable from your Gemfile(5). It will also let you know
35
+ if the `ruby` directive requirement has been met. If `ruby` directive doesn't
36
+ match the running Ruby VM, it will tell you what part does not.
37
+
38
+ ## OPTIONS
39
+
40
+ * `--ruby`:
41
+ It will just display the ruby directive information, so you don't have to
42
+ parse it from the Gemfile(5).
@@ -0,0 +1,179 @@
1
+ bundle-update(1) -- Update your gems to the latest available versions
2
+ =====================================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `bundle update` <*gems> [--source=NAME] [--local]
7
+
8
+ ## DESCRIPTION
9
+
10
+ Update the gems specified (all gems, if none are specified), ignoring
11
+ the previously installed gems specified in the `Gemfile.lock`. In
12
+ general, you should use [bundle install(1)][bundle-install] to install the same exact
13
+ gems and versions across machines.
14
+
15
+ You would use `bundle update` to explicitly update the version of a
16
+ gem.
17
+
18
+ ## OPTIONS
19
+
20
+ * `--source=<name>`:
21
+ The name of a `:git` or `:path` source used in the Gemfile(5). For
22
+ instance, with a `:git` source of `http://github.com/rails/rails.git`,
23
+ you would call `bundle update --source rails`
24
+
25
+ * `--local`:
26
+ Do not attempt to fetch gems remotely and use the gem cache instead.
27
+
28
+ ## UPDATING ALL GEMS
29
+
30
+ If you run `bundle update` with no parameters, bundler will ignore
31
+ any previously installed gems and resolve all dependencies again
32
+ based on the latest versions of all gems available in the sources.
33
+
34
+ Consider the following Gemfile(5):
35
+
36
+ source "https://rubygems.org"
37
+
38
+ gem "rails", "3.0.0.rc"
39
+ gem "nokogiri"
40
+
41
+ When you run [bundle install(1)][bundle-install] the first time, bundler will resolve
42
+ all of the dependencies, all the way down, and install what you need:
43
+
44
+ Fetching source index for https://rubygems.org/
45
+ Installing rake (10.0.2)
46
+ Installing abstract (1.0.0)
47
+ Installing activesupport (3.0.0.rc)
48
+ Installing builder (2.1.2)
49
+ Installing i18n (0.4.1)
50
+ Installing activemodel (3.0.0.rc)
51
+ Installing erubis (2.6.6)
52
+ Installing rack (1.2.1)
53
+ Installing rack-mount (0.6.9)
54
+ Installing rack-test (0.5.4)
55
+ Installing tzinfo (0.3.22)
56
+ Installing actionpack (3.0.0.rc)
57
+ Installing mime-types (1.16)
58
+ Installing polyglot (0.3.1)
59
+ Installing treetop (1.4.8)
60
+ Installing mail (2.2.5)
61
+ Installing actionmailer (3.0.0.rc)
62
+ Installing arel (0.4.0)
63
+ Installing activerecord (3.0.0.rc)
64
+ Installing activeresource (3.0.0.rc)
65
+ Installing bundler (1.0.0.rc.3)
66
+ Installing nokogiri (1.4.3.1) with native extensions
67
+ Installing thor (0.14.0)
68
+ Installing railties (3.0.0.rc)
69
+ Installing rails (3.0.0.rc)
70
+
71
+ Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
72
+
73
+ As you can see, even though you have just two gems in the Gemfile(5), your application
74
+ actually needs 25 different gems in order to run. Bundler remembers the exact versions
75
+ it installed in `Gemfile.lock`. The next time you run [bundle install(1)][bundle-install], bundler skips
76
+ the dependency resolution and installs the same gems as it installed last time.
77
+
78
+ After checking in the `Gemfile.lock` into version control and cloning it on another
79
+ machine, running [bundle install(1)][bundle-install] will _still_ install the gems that you installed
80
+ last time. You don't need to worry that a new release of `erubis` or `mail` changes
81
+ the gems you use.
82
+
83
+ However, from time to time, you might want to update the gems you are using to the
84
+ newest versions that still match the gems in your Gemfile(5).
85
+
86
+ To do this, run `bundle update`, which will ignore the `Gemfile.lock`, and resolve
87
+ all the dependencies again. Keep in mind that this process can result in a significantly
88
+ different set of the 25 gems, based on the requirements of new gems that the gem
89
+ authors released since the last time you ran `bundle update`.
90
+
91
+ ## UPDATING A LIST OF GEMS
92
+
93
+ Sometimes, you want to update a single gem in the Gemfile(5), and leave the rest of the
94
+ gems that you specified locked to the versions in the `Gemfile.lock`.
95
+
96
+ For instance, in the scenario above, imagine that `nokogiri` releases version `1.4.4`, and
97
+ you want to update it _without_ updating Rails and all of its dependencies. To do this,
98
+ run `bundle update nokogiri`.
99
+
100
+ Bundler will update `nokogiri` and any of its dependencies, but leave alone Rails and
101
+ its dependencies.
102
+
103
+ ## OVERLAPPING DEPENDENCIES
104
+
105
+ Sometimes, multiple gems declared in your Gemfile(5) are satisfied by the same
106
+ second-level dependency. For instance, consider the case of `thin` and
107
+ `rack-perftools-profiler`.
108
+
109
+ source "https://rubygems.org"
110
+
111
+ gem "thin"
112
+ gem "rack-perftools-profiler"
113
+
114
+ The `thin` gem depends on `rack >= 1.0`, while `rack-perftools-profiler` depends
115
+ on `rack ~> 1.0`. If you run bundle install, you get:
116
+
117
+ Fetching source index for https://rubygems.org/
118
+ Installing daemons (1.1.0)
119
+ Installing eventmachine (0.12.10) with native extensions
120
+ Installing open4 (1.0.1)
121
+ Installing perftools.rb (0.4.7) with native extensions
122
+ Installing rack (1.2.1)
123
+ Installing rack-perftools_profiler (0.0.2)
124
+ Installing thin (1.2.7) with native extensions
125
+ Using bundler (1.0.0.rc.3)
126
+
127
+ In this case, the two gems have their own set of dependencies, but they share
128
+ `rack` in common. If you run `bundle update thin`, bundler will update `daemons`,
129
+ `eventmachine` and `rack`, which are dependencies of `thin`, but not `open4` or
130
+ `perftools.rb`, which are dependencies of `rack-perftools_profiler`. Note that
131
+ `bundle update thin` will update `rack` even though it's _also_ a dependency of
132
+ `rack-perftools_profiler`.
133
+
134
+ `In short`, when you update a gem using `bundle update`, bundler will update all
135
+ dependencies of that gem, including those that are also dependencies of another gem.
136
+
137
+ In this scenario, updating the `thin` version manually in the Gemfile(5),
138
+ and then running [bundle install(1)][bundle-install] will only update `daemons` and `eventmachine`,
139
+ but not `rack`. For more information, see the `CONSERVATIVE UPDATING` section
140
+ of [bundle install(1)][bundle-install].
141
+
142
+ ## RECOMMENDED WORKFLOW
143
+
144
+ In general, when working with an application managed with bundler, you should
145
+ use the following workflow:
146
+
147
+ * After you create your Gemfile(5) for the first time, run
148
+
149
+ $ bundle install
150
+
151
+ * Check the resulting `Gemfile.lock` into version control
152
+
153
+ $ git add Gemfile.lock
154
+
155
+ * When checking out this repository on another development machine, run
156
+
157
+ $ bundle install
158
+
159
+ * When checking out this repository on a deployment machine, run
160
+
161
+ $ bundle install --deployment
162
+
163
+ * After changing the Gemfile(5) to reflect a new or update dependency, run
164
+
165
+ $ bundle install
166
+
167
+ * Make sure to check the updated `Gemfile.lock` into version control
168
+
169
+ $ git add Gemfile.lock
170
+
171
+ * If [bundle install(1)][bundle-install] reports a conflict, manually update the specific
172
+ gems that you changed in the Gemfile(5)
173
+
174
+ $ bundle update rails thin
175
+
176
+ * If you want to update all the gems to the latest possible versions that
177
+ still match the gems listed in the Gemfile(5), run
178
+
179
+ $ bundle update
@@ -0,0 +1,92 @@
1
+ bundle(1) -- Ruby Dependency Management
2
+ =======================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `bundle` COMMAND [--no-color] [--verbose] [ARGS]
7
+
8
+ ## DESCRIPTION
9
+
10
+ Bundler manages an `application's dependencies` through its entire life
11
+ across many machines systematically and repeatably.
12
+
13
+ See [the bundler website](http://bundler.io) for information on getting
14
+ started, and Gemfile(5) for more information on the `Gemfile` format.
15
+
16
+ ## OPTIONS
17
+
18
+ * `--no-color`:
19
+ Prints all output without color
20
+
21
+ * `--verbose`:
22
+ Prints out additional logging information
23
+
24
+ ## BUNDLE COMMANDS
25
+
26
+ We divide `bundle` subcommands into primary commands and utilities.
27
+
28
+ ## PRIMARY COMMANDS
29
+
30
+ * [bundle install(1)][bundle-install]:
31
+ Install the gems specified by the `Gemfile` or `Gemfile.lock`
32
+
33
+ * [bundle update(1)][bundle-update]:
34
+ Update dependencies to their latest versions
35
+
36
+ * [bundle package(1)][bundle-package]:
37
+ Package the .gem files required by your application into the
38
+ `vendor/cache` directory
39
+
40
+ * [bundle exec(1)][bundle-exec]:
41
+ Execute a script in the context of the current bundle
42
+
43
+ * [bundle config(1)][bundle-config]:
44
+ Specify and read configuration options for bundler
45
+
46
+ * `bundle help(1)`:
47
+ Displays detailed help for each subcommand
48
+
49
+ ## UTILITIES
50
+
51
+ * `bundle check(1)`:
52
+ Determine whether the requirements for your application are installed
53
+ and available to bundler
54
+
55
+ * `bundle list(1)`:
56
+ Show all of the gems in the current bundle
57
+
58
+ * `bundle show(1)`:
59
+ Show the source location of a particular gem in the bundle
60
+
61
+ * `bundle outdated(1)`:
62
+ Show all of the outdated gems in the current bundle
63
+
64
+ * `bundle console(1)`:
65
+ Start an IRB session in the context of the current bundle
66
+
67
+ * `bundle open(1)`:
68
+ Open an installed gem in the editor
69
+
70
+ * `bundle viz(1)`:
71
+ Generate a visual representation of your dependencies
72
+
73
+ * `bundle init(1)`:
74
+ Generate a simple `Gemfile`, placed in the current directory
75
+
76
+ * `bundle gem(1)`:
77
+ Create a simple gem, suitable for development with bundler
78
+
79
+ * [bundle platform(1)][bundle-platform]:
80
+ Displays platform compatibility information
81
+
82
+ * `bundle clean(1)`:
83
+ Cleans up unused gems in your bundler directory
84
+
85
+ ## OBSOLETE
86
+
87
+ These commands are obsolete and should no longer be used
88
+
89
+ * `bundle lock(1)`
90
+ * `bundle unlock(1)`
91
+ * `bundle cache(1)`
92
+
@@ -0,0 +1,369 @@
1
+ Gemfile(5) -- A format for describing gem dependencies for Ruby programs
2
+ ========================================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ A `Gemfile` describes the gem dependencies required to execute associated
7
+ Ruby code.
8
+
9
+ Place the `Gemfile` in the root of the directory containing the associated
10
+ code. For instance, in a Rails application, place the `Gemfile` in the same
11
+ directory as the `Rakefile`.
12
+
13
+ ## SYNTAX
14
+
15
+ A `Gemfile` is evaluated as Ruby code, in a context which makes available
16
+ a number of methods used to describe the gem requirements.
17
+
18
+ ## SOURCES (#source)
19
+
20
+ At the top of the `Gemfile`, add one line for each `Rubygems` source that
21
+ might contain the gems listed in the `Gemfile`.
22
+
23
+ source "https://rubygems.org"
24
+ source "http://gems.github.com"
25
+
26
+ Each of these _source_s `MUST` be a valid Rubygems repository. Sources are
27
+ checked for gems following the heuristics described in [SOURCE PRIORITY][].
28
+
29
+ ## RUBY (#ruby)
30
+
31
+ If your application requires a specific Ruby version or engine, specify your
32
+ requirements using the `ruby` method, with the following arguments.
33
+ All parameters are `OPTIONAL` unless otherwise specified.
34
+
35
+ ### VERSION (required)
36
+
37
+ The version of Ruby that your application requires. If your application
38
+ requires an alternate Ruby engine, such as JRuby or Rubinius, this should be
39
+ the Ruby version that the engine is compatible with.
40
+
41
+ ruby "1.9.3"
42
+
43
+ ### ENGINE (:engine)
44
+
45
+ Each application _may_ specify a Ruby engine. If an engine is specified, an
46
+ engine version _must_ also be specified.
47
+
48
+ ### ENGINE VERSION (:engine_version)
49
+
50
+ Each application _may_ specify a Ruby engine version. If an engine version is
51
+ specified, an engine _must_ also be specified. If the engine is "ruby" the
52
+ engine version specified _must_ match the Ruby version.
53
+
54
+ ruby "1.8.7", :engine => "jruby", :engine_version => "1.6.7"
55
+
56
+ ### PATCHLEVEL (:patchlevel)
57
+
58
+ Each application _may_ specify a Ruby patchlevel.
59
+
60
+ ruby "2.0.0", :patchlevel => "247"
61
+
62
+ ## GEMS (#gem)
63
+
64
+ Specify gem requirements using the `gem` method, with the following arguments.
65
+ All parameters are `OPTIONAL` unless otherwise specified.
66
+
67
+ ### NAME (required)
68
+
69
+ For each gem requirement, list a single _gem_ line.
70
+
71
+ gem "nokogiri"
72
+
73
+ ### VERSION
74
+
75
+ Each _gem_ `MAY` have one or more version specifiers.
76
+
77
+ gem "nokogiri", ">= 1.4.2"
78
+ gem "RedCloth", ">= 4.1.0", "< 4.2.0"
79
+
80
+ ### REQUIRE AS (:require)
81
+
82
+ Each _gem_ `MAY` specify files that should be used when autorequiring via
83
+ `Bundler.require`. You may pass an array with multiple files or `true` if file
84
+ you want `required` has same name as _gem_ or `false` to
85
+ prevent any file from being autorequired.
86
+
87
+ gem "redis", :require => ["redis/connection/hiredis", "redis"]
88
+ gem "webmock", :require => false
89
+ gem "debugger", :require => true
90
+
91
+ The argument defaults to the name of the gem. For example, these are identical:
92
+
93
+ gem "nokogiri"
94
+ gem "nokogiri", :require => "nokogiri"
95
+ gem "nokogiri", :require => true
96
+
97
+ ### GROUPS (:group or :groups)
98
+
99
+ Each _gem_ `MAY` specify membership in one or more groups. Any _gem_ that does
100
+ not specify membership in any group is placed in the `default` group.
101
+
102
+ gem "rspec", :group => :test
103
+ gem "wirble", :groups => [:development, :test]
104
+
105
+ The Bundler runtime allows its two main methods, `Bundler.setup` and
106
+ `Bundler.require`, to limit their impact to particular groups.
107
+
108
+ # setup adds gems to Ruby's load path
109
+ Bundler.setup # defaults to all groups
110
+ require "bundler/setup" # same as Bundler.setup
111
+ Bundler.setup(:default) # only set up the _default_ group
112
+ Bundler.setup(:test) # only set up the _test_ group (but `not` _default_)
113
+ Bundler.setup(:default, :test) # set up the _default_ and _test_ groups, but no others
114
+
115
+ # require requires all of the gems in the specified groups
116
+ Bundler.require # defaults to just the _default_ group
117
+ Bundler.require(:default) # identical
118
+ Bundler.require(:default, :test) # requires the _default_ and _test_ groups
119
+ Bundler.require(:test) # requires just the _test_ group
120
+
121
+ The Bundler CLI allows you to specify a list of groups whose gems `bundle install` should
122
+ not install with the `--without` option. To specify multiple groups to ignore, specify a
123
+ list of groups separated by spaces.
124
+
125
+ bundle install --without test
126
+ bundle install --without development test
127
+
128
+ After running `bundle install --without test`, bundler will remember that you excluded
129
+ the test group in the last installation. The next time you run `bundle install`,
130
+ without any `--without option`, bundler will recall it.
131
+
132
+ Also, calling `Bundler.setup` with no parameters, or calling `require "bundler/setup"`
133
+ will setup all groups except for the ones you excluded via `--without` (since they
134
+ are obviously not available).
135
+
136
+ Note that on `bundle install`, bundler downloads and evaluates all gems, in order to
137
+ create a single canonical list of all of the required gems and their dependencies.
138
+ This means that you cannot list different versions of the same gems in different
139
+ groups. For more details, see [Understanding Bundler](http://bundler.io/rationale.html).
140
+
141
+ ### PLATFORMS (:platforms)
142
+
143
+ If a gem should only be used in a particular platform or set of platforms, you can
144
+ specify them. Platforms are essentially identical to groups, except that you do not
145
+ need to use the `--without` install-time flag to exclude groups of gems for other
146
+ platforms.
147
+
148
+ There are a number of `Gemfile` platforms:
149
+
150
+ * `ruby`:
151
+ C Ruby (MRI) or Rubinius, but `NOT` Windows
152
+ * `ruby_18`:
153
+ _ruby_ `AND` version 1.8
154
+ * `ruby_19`:
155
+ _ruby_ `AND` version 1.9
156
+ * `ruby_20`:
157
+ _ruby_ `AND` version 2.0
158
+ * `ruby_21`:
159
+ _ruby_ `AND` version 2.1
160
+ * `mri`:
161
+ Same as _ruby_, but not Rubinius
162
+ * `mri_18`:
163
+ _mri_ `AND` version 1.8
164
+ * `mri_19`:
165
+ _mri_ `AND` version 1.9
166
+ * `mri_20`:
167
+ _mri_ `AND` version 2.0
168
+ * `mri_21`:
169
+ _mri_ `AND` version 2.1
170
+ * `rbx`:
171
+ Same as _ruby_, but only Rubinius (not MRI)
172
+ * `jruby`:
173
+ JRuby
174
+ * `mswin`:
175
+ Windows
176
+ * `mingw`:
177
+ Windows 32 bit 'mingw32' platform (aka RubyInstaller)
178
+ * `mingw_18`:
179
+ _mingw_ `AND` version 1.8
180
+ * `mingw_19`:
181
+ _mingw_ `AND` version 1.9
182
+ * `mingw_20`:
183
+ _mingw_ `AND` version 2.0
184
+ * `mingw_21`:
185
+ _mingw_ `AND` version 2.1
186
+ * `x64_mingw`:
187
+ Windows 64 bit 'mingw32' platform (aka RubyInstaller x64)
188
+ * `x64_mingw_20`:
189
+ _x64_mingw_ `AND` version 2.0
190
+ * `x64_mingw_21`:
191
+ _x64_mingw_ `AND` version 2.1
192
+
193
+ As with groups, you can specify one or more platforms:
194
+
195
+ gem "weakling", :platforms => :jruby
196
+ gem "ruby-debug", :platforms => :mri_18
197
+ gem "nokogiri", :platforms => [:mri_18, :jruby]
198
+
199
+ All operations involving groups (`bundle install`, `Bundler.setup`,
200
+ `Bundler.require`) behave exactly the same as if any groups not
201
+ matching the current platform were explicitly excluded.
202
+
203
+ ### GIT (:git)
204
+
205
+ If necessary, you can specify that a gem is located at a particular
206
+ git repository using the `:git` parameter. The repository can be accessed via
207
+ several protocols:
208
+
209
+ * `HTTP(S)`:
210
+ gem "rails", :git => "https://github.com/rails/rails.git"
211
+ * `SSH`:
212
+ gem "rails", :git => "git@github.com:rails/rails.git"
213
+ * `git`:
214
+ gem "rails", :git => "git://github.com/rails/rails.git"
215
+
216
+ If using SSH, the user that you use to run `bundle install` `MUST` have the
217
+ appropriate keys available in their `$HOME/.ssh`.
218
+
219
+ `NOTE`: `http://` and `git://` URLs should be avoided if at all possible. These
220
+ protocols are unauthenticated, so a man-in-the-middle attacker can deliver
221
+ malicious code and compromise your system. HTTPS and SSH are strongly
222
+ preferred.
223
+
224
+ The `group`, `platforms`, and `require` options are available and behave
225
+ exactly the same as they would for a normal gem.
226
+
227
+ A git repository `SHOULD` have at least one file, at the root of the
228
+ directory containing the gem, with the extension `.gemspec`. This file
229
+ `MUST` contain a valid gem specification, as expected by the `gem build`
230
+ command.
231
+
232
+ If a git repository does not have a `.gemspec`, bundler will attempt to
233
+ create one, but it will not contain any dependencies, executables, or
234
+ C extension compilation instructions. As a result, it may fail to properly
235
+ integrate into your application.
236
+
237
+ If a git repository does have a `.gemspec` for the gem you attached it
238
+ to, a version specifier, if provided, means that the git repository is
239
+ only valid if the `.gemspec` specifies a version matching the version
240
+ specifier. If not, bundler will print a warning.
241
+
242
+ gem "rails", "2.3.8", :git => "https://github.com/rails/rails.git"
243
+ # bundle install will fail, because the .gemspec in the rails
244
+ # repository's master branch specifies version 3.0.0
245
+
246
+ If a git repository does `not` have a `.gemspec` for the gem you attached
247
+ it to, a version specifier `MUST` be provided. Bundler will use this
248
+ version in the simple `.gemspec` it creates.
249
+
250
+ Git repositories support a number of additional options.
251
+
252
+ * `branch`, `tag`, and `ref`:
253
+ You `MUST` only specify at most one of these options. The default
254
+ is `:branch => "master"`
255
+ * `submodules`:
256
+ Specify `:submodules => true` to cause bundler to expand any
257
+ submodules included in the git repository
258
+
259
+ If a git repository contains multiple `.gemspecs`, each `.gemspec`
260
+ represents a gem located at the same place in the file system as
261
+ the `.gemspec`.
262
+
263
+ |~rails [git root]
264
+ | |-rails.gemspec [rails gem located here]
265
+ |~actionpack
266
+ | |-actionpack.gemspec [actionpack gem located here]
267
+ |~activesupport
268
+ | |-activesupport.gemspec [activesupport gem located here]
269
+ |...
270
+
271
+ To install a gem located in a git repository, bundler changes to
272
+ the directory containing the gemspec, runs `gem build name.gemspec`
273
+ and then installs the resulting gem. The `gem build` command,
274
+ which comes standard with Rubygems, evaluates the `.gemspec` in
275
+ the context of the directory in which it is located.
276
+
277
+ ### GITHUB (:github)
278
+
279
+ `NOTE`: This shorthand should be avoided until Bundler 2.0, since it
280
+ currently expands to an insecure `git://` URL. This allows a
281
+ man-in-the-middle attacker to compromise your system.
282
+
283
+ If the git repository you want to use is hosted on GitHub and is public, you can use the
284
+ :github shorthand to specify just the github username and repository name (without the
285
+ trailing ".git"), separated by a slash. If both the username and repository name are the
286
+ same, you can omit one.
287
+
288
+ gem "rails", :github => "rails/rails"
289
+ gem "rails", :github => "rails"
290
+
291
+ Are both equivalent to
292
+
293
+ gem "rails", :git => "git://github.com/rails/rails.git"
294
+
295
+ In addition, if you wish to choose a specific branch:
296
+
297
+ gem "rails", :github => "rails/rails", :branch => "branch_name"
298
+
299
+ ### PATH (:path)
300
+
301
+ You can specify that a gem is located in a particular location
302
+ on the file system. Relative paths are resolved relative to the
303
+ directory containing the `Gemfile`.
304
+
305
+ Similar to the semantics of the `:git` option, the `:path`
306
+ option requires that the directory in question either contains
307
+ a `.gemspec` for the gem, or that you specify an explicit
308
+ version that bundler should use.
309
+
310
+ Unlike `:git`, bundler does not compile C extensions for
311
+ gems specified as paths.
312
+
313
+ gem "rails", :path => "vendor/rails"
314
+
315
+ ## BLOCK FORM OF GIT, PATH, GROUP and PLATFORMS
316
+
317
+ The `:git`, `:path`, `:group`, and `:platforms` options may be
318
+ applied to a group of gems by using block form.
319
+
320
+ git "https://github.com/rails/rails.git" do
321
+ gem "activesupport"
322
+ gem "actionpack"
323
+ end
324
+
325
+ platforms :ruby do
326
+ gem "ruby-debug"
327
+ gem "sqlite3"
328
+ end
329
+
330
+ group :development do
331
+ gem "wirble"
332
+ gem "faker"
333
+ end
334
+
335
+ In the case of the `git` block form, the `:ref`, `:branch`, `:tag`,
336
+ and `:submodules` options may be passed to the `git` method, and
337
+ all gems in the block will inherit those options.
338
+
339
+ ## GEMSPEC (#gemspec)
340
+
341
+ If you wish to use Bundler to help install dependencies for a gem while it is
342
+ being developed, use the `gemspec` method to pull in the dependencies listed in
343
+ the `.gemspec` file.
344
+
345
+ The `gemspec` method adds any runtime dependencies as gem requirements in the
346
+ default group. It also adds development dependencies as gem requirements in the
347
+ `development` group. Finally, it adds a gem requirement on your project (`:path
348
+ => '.'`). In conjunction with `Bundler.setup`, this allows you to require project
349
+ files in your test code as you would if the project were installed as a gem; you
350
+ need not manipulate the load path manually or require project files via relative
351
+ paths.
352
+
353
+ The `gemspec` method supports optional `:path`, `:name`, and `:development_group`
354
+ options, which control where bundler looks for the `.gemspec`, what named
355
+ `.gemspec` it uses (if more than one is present), and which group development
356
+ dependencies are included in.
357
+
358
+ ## SOURCE PRIORITY
359
+
360
+ When attempting to locate a gem to satisfy a gem requirement,
361
+ bundler uses the following priority order:
362
+
363
+ 1. The source explicitly attached to the gem (using `:path` or `:git`)
364
+ 2. For implicit gems (dependencies of explicit gems), any git or path
365
+ repository otherwise declared. This results in bundler prioritizing the
366
+ ActiveSupport gem from the Rails git repository over ones from
367
+ `rubygems.org`
368
+ 3. The sources specified via `source`, searching each source in your `Gemfile`
369
+ from last added to first added.