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,3 @@
1
+ class Thor
2
+ VERSION = '0.18.1'
3
+ end
@@ -0,0 +1,3 @@
1
+ vendor = File.expand_path('../vendor', __FILE__)
2
+ $:.unshift(vendor) unless $:.include?(vendor)
3
+ require 'net/http/persistent'
@@ -0,0 +1,8 @@
1
+ if defined?(Thor)
2
+ Bundler.ui.warn "Thor has already been required. " +
3
+ "This may cause Bundler to malfunction in unexpected ways."
4
+ end
5
+ vendor = File.expand_path('../vendor', __FILE__)
6
+ $:.unshift(vendor) unless $:.include?(vendor)
7
+ require 'thor'
8
+ require 'thor/actions'
@@ -0,0 +1,6 @@
1
+ module Bundler
2
+ # We're doing this because we might write tests that deal
3
+ # with other versions of bundler and we are unsure how to
4
+ # handle this better.
5
+ VERSION = "1.6.2" unless defined?(::Bundler::VERSION)
6
+ end
@@ -0,0 +1,11 @@
1
+ # Vlad task for Bundler.
2
+ #
3
+ # Just add "require 'bundler/vlad'" in your Vlad deploy.rb, and
4
+ # include the vlad:bundle:install task in your vlad:deploy task.
5
+ require 'bundler/deployment'
6
+
7
+ include Rake::DSL if defined? Rake::DSL
8
+
9
+ namespace :vlad do
10
+ Bundler::Deployment.define_task(Rake::RemoteTask, :remote_task, :roles => :app)
11
+ end
@@ -0,0 +1,155 @@
1
+ bundle-config(1) -- Set bundler configuration options
2
+ =====================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `bundle config` [<name> [<value>]]
7
+
8
+ ## DESCRIPTION
9
+
10
+ This command allows you to interact with bundler's configuration system.
11
+ Bundler retrieves its configuration from the local application (`app/.bundle/config`),
12
+ environment variables, and the user's home directory (`~/.bundle/config`),
13
+ in that order of priority.
14
+
15
+ Executing `bundle config` with no parameters will print a list of all
16
+ bundler configuration for the current bundle, and where that configuration
17
+ was set.
18
+
19
+ Executing `bundle config <name>` will print the value of that configuration
20
+ setting, and where it was set.
21
+
22
+ Executing `bundle config <name> <value>` will set that configuration to the
23
+ value specified for all bundles executed as the current user. The configuration
24
+ will be stored in `~/.bundle/config`. If <name> already is set, <name> will be
25
+ overridden and user will be warned.
26
+
27
+ Executing `bundle config --global <name> <value>` works the same as above.
28
+
29
+ Executing `bundle config --local <name> <value>` will set that configuration to
30
+ the local application. The configuration will be stored in `app/.bundle/config`.
31
+
32
+ Executing `bundle config --delete <name>` will delete the configuration in both
33
+ local and global sources. Not compatible with --global or --local flag.
34
+
35
+ Executing bundle with the `BUNDLE_IGNORE_CONFIG` environment variable set will
36
+ cause it to ignore all configuration.
37
+
38
+ ## BUILD OPTIONS
39
+
40
+ You can use `bundle config` to give bundler the flags to pass to the gem
41
+ installer every time bundler tries to install a particular gem.
42
+
43
+ A very common example, the `mysql` gem, requires Snow Leopard users to
44
+ pass configuration flags to `gem install` to specify where to find the
45
+ `mysql_config` executable.
46
+
47
+ gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
48
+
49
+ Since the specific location of that executable can change from machine
50
+ to machine, you can specify these flags on a per-machine basis.
51
+
52
+ bundle config build.mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
53
+
54
+ After running this command, every time bundler needs to install the
55
+ `mysql` gem, it will pass along the flags you specified.
56
+
57
+ ## CONFIGURATION KEYS
58
+
59
+ Configuration keys in bundler have two forms: the canonical form and the
60
+ environment variable form.
61
+
62
+ For instance, passing the `--without` flag to [bundle install(1)][bundle-install]
63
+ prevents Bundler from installing certain groups specified in the Gemfile(5). Bundler
64
+ persists this value in `app/.bundle/config` so that calls to `Bundler.setup`
65
+ do not try to find gems from the `Gemfile` that you didn't install. Additionally,
66
+ subsequent calls to [bundle install(1)][bundle-install] remember this setting and skip those
67
+ groups.
68
+
69
+ The canonical form of this configuration is `"without"`. To convert the canonical
70
+ form to the environment variable form, capitalize it, and prepend `BUNDLE_`. The
71
+ environment variable form of `"without"` is `BUNDLE_WITHOUT`.
72
+
73
+ ## LIST OF AVAILABLE KEYS
74
+
75
+ The following is a list of all configuration keys and their purpose. You can
76
+ learn more about their operation in [bundle install(1)][bundle-install].
77
+
78
+ * `path` (`BUNDLE_PATH`):
79
+ The location on disk to install gems. Defaults to `$GEM_HOME` in development
80
+ and `vendor/bundle` when `--deployment` is used
81
+ * `frozen` (`BUNDLE_FROZEN`):
82
+ Disallow changes to the `Gemfile`. Defaults to `true` when `--deployment`
83
+ is used.
84
+ * `without` (`BUNDLE_WITHOUT`):
85
+ A `:`-separated list of groups whose gems bundler should not install
86
+ * `bin` (`BUNDLE_BIN`):
87
+ Install executables from gems in the bundle to the specified directory.
88
+ Defaults to `false`.
89
+ * `ssl_ca_cert` (`BUNDLE_SSL_CA_CERT`):
90
+ Path to a designated CA certificate file or folder containing multiple
91
+ certificates for trusted CAs in PEM format.
92
+ * `ssl_client_cert` (`BUNDLE_SSL_CLIENT_CERT`):
93
+ Path to a designated file containing a X.509 client certificate
94
+ and key in PEM format.
95
+
96
+ In general, you should set these settings per-application by using the applicable
97
+ flag to the [bundle install(1)][bundle-install] command.
98
+
99
+ You can set them globally either via environment variables or `bundle config`,
100
+ whichever is preferable for your setup. If you use both, environment variables
101
+ will take preference over global settings.
102
+
103
+ An additional setting is available only as an environment variable:
104
+
105
+ * `BUNDLE_GEMFILE`:
106
+ The name of the file that bundler should use as the `Gemfile`. This location
107
+ of this file also sets the root of the project, which is used to resolve
108
+ relative paths in the `Gemfile`, among other things. By default, bundler
109
+ will search up from the current working directory until it finds a
110
+ `Gemfile`.
111
+
112
+ Bundler will ignore any `BUNDLE_GEMFILE` entries in local or global
113
+ configuration files.
114
+
115
+ ## LOCAL GIT REPOS
116
+
117
+ Bundler also allows you to work against a git repository locally
118
+ instead of using the remote version. This can be achieved by setting
119
+ up a local override:
120
+
121
+ bundle config local.GEM_NAME /path/to/local/git/repository
122
+
123
+ For example, in order to use a local Rack repository, a developer could call:
124
+
125
+ bundle config local.rack ~/Work/git/rack
126
+
127
+ Now instead of checking out the remote git repository, the local
128
+ override will be used. Similar to a path source, every time the local
129
+ git repository change, changes will be automatically picked up by
130
+ Bundler. This means a commit in the local git repo will update the
131
+ revision in the `Gemfile.lock` to the local git repo revision. This
132
+ requires the same attention as git submodules. Before pushing to
133
+ the remote, you need to ensure the local override was pushed, otherwise
134
+ you may point to a commit that only exists in your local machine.
135
+
136
+ Bundler does many checks to ensure a developer won't work with
137
+ invalid references. Particularly, we force a developer to specify
138
+ a branch in the `Gemfile` in order to use this feature. If the branch
139
+ specified in the `Gemfile` and the current branch in the local git
140
+ repository do not match, Bundler will abort. This ensures that
141
+ a developer is always working against the correct branches, and prevents
142
+ accidental locking to a different branch.
143
+
144
+ Finally, Bundler also ensures that the current revision in the
145
+ `Gemfile.lock` exists in the local git repository. By doing this, Bundler
146
+ forces you to fetch the latest changes in the remotes.
147
+
148
+ ## MIRRORS OF GEM REPOSITORIES
149
+
150
+ Bundler supports overriding gem sources with mirrors. This allows you to
151
+ configure rubygems.org as the gem source in your Gemfile while still using your
152
+ mirror to fetch gems.
153
+
154
+ bundle config mirror.http://rubygems.org http://rubygems-mirror.org
155
+
@@ -0,0 +1,136 @@
1
+ bundle-exec(1) -- Execute a command in the context of the bundle
2
+ ================================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `bundle exec` [--keep-file-descriptors] <command>
7
+
8
+ ## DESCRIPTION
9
+
10
+ This command executes the command, making all gems specified in the
11
+ `Gemfile(5)` available to `require` in Ruby programs.
12
+
13
+ Essentially, if you would normally have run something like
14
+ `rspec spec/my_spec.rb`, and you want to use the gems specified
15
+ in the `Gemfile(5)` and installed via [bundle install(1)][bundle-install], you
16
+ should run `bundle exec rspec spec/my_spec.rb`.
17
+
18
+ Note that `bundle exec` does not require that an executable is
19
+ available on your shell's `$PATH`.
20
+
21
+ ## OPTIONS
22
+
23
+ * `--keep-file-descriptors`:
24
+ Exec in Ruby 2.0 began discarding non-standard file descriptors. When this
25
+ flag is passed, exec will revert to the 1.9 behaviour of passing all file
26
+ descriptors to the new process.
27
+
28
+ ## BUNDLE INSTALL --BINSTUBS
29
+
30
+ If you use the `--binstubs` flag in [bundle install(1)][bundle-install], Bundler will
31
+ automatically create a directory (which defaults to `app_root/bin`)
32
+ containing all of the executables available from gems in the bundle.
33
+
34
+ After using `--binstubs`, `bin/rspec spec/my_spec.rb` is identical
35
+ to `bundle exec rspec spec/my_spec.rb`.
36
+
37
+ ## ENVIRONMENT MODIFICATIONS
38
+
39
+ `bundle exec` makes a number of changes to the shell environment,
40
+ then executes the command you specify in full.
41
+
42
+ * make sure that it's still possible to shell out to `bundle`
43
+ from inside a command invoked by `bundle exec` (using
44
+ `$BUNDLE_BIN_PATH`)
45
+ * put the directory containing executables (like `rails`, `rspec`,
46
+ `rackup`) for your bundle on `$PATH`
47
+ * make sure that if bundler is invoked in the subshell, it uses
48
+ the same `Gemfile` (by setting `BUNDLE_GEMFILE`)
49
+ * add `-rbundler/setup` to `$RUBYOPT`, which makes sure that
50
+ Ruby programs invoked in the subshell can see the gems in
51
+ the bundle
52
+
53
+ It also modifies Rubygems:
54
+
55
+ * disallow loading additional gems not in the bundle
56
+ * modify the `gem` method to be a no-op if a gem matching
57
+ the requirements is in the bundle, and to raise a
58
+ `Gem::LoadError` if it's not
59
+ * Define `Gem.refresh` to be a no-op, since the source
60
+ index is always frozen when using bundler, and to
61
+ prevent gems from the system leaking into the environment
62
+ * Override `Gem.bin_path` to use the gems in the bundle,
63
+ making system executables work
64
+ * Add all gems in the bundle into Gem.loaded_specs
65
+
66
+ ### Shelling out
67
+
68
+ Any Ruby code that opens a subshell (like `system`, backticks, or `%x{}`) will
69
+ automatically use the current Bundler environment. If you need to shell out to
70
+ a Ruby command that is not part of your current bundle, use the
71
+ `with_clean_env` method with a block. Any subshells created inside the block
72
+ will be given the environment present before Bundler was activated. For
73
+ example, Homebrew commands run Ruby, but don't work inside a bundle:
74
+
75
+ Bundler.with_clean_env do
76
+ `brew install wget`
77
+ end
78
+
79
+ Using `with_clean_env` is also necessary if you are shelling out to a different
80
+ bundle. Any Bundler commands run in a subshell will inherit the current
81
+ Gemfile, so commands that need to run in the context of a different bundle also
82
+ need to use `with_clean_env`.
83
+
84
+ Bundler.with_clean_env do
85
+ Dir.chdir "/other/bundler/project" do
86
+ `bundle exec ./script`
87
+ end
88
+ end
89
+
90
+ Bundler provides convenience helpers that wrap `system` and `exec`, and they
91
+ can be used like this:
92
+
93
+ Bundler.clean_system('brew install wget')
94
+ Bundler.clean_exec('brew install wget')
95
+
96
+
97
+ ## RUBYGEMS PLUGINS
98
+
99
+ At present, the Rubygems plugin system requires all files
100
+ named `rubygems_plugin.rb` on the load path of _any_ installed
101
+ gem when any Ruby code requires `rubygems.rb`. This includes
102
+ executables installed into the system, like `rails`, `rackup`,
103
+ and `rspec`.
104
+
105
+ Since Rubygems plugins can contain arbitrary Ruby code, they
106
+ commonly end up activating themselves or their dependencies.
107
+
108
+ For instance, the `gemcutter 0.5` gem depended on `json_pure`.
109
+ If you had that version of gemcutter installed (even if
110
+ you _also_ had a newer version without this problem), Rubygems
111
+ would activate `gemcutter 0.5` and `json_pure <latest>`.
112
+
113
+ If your Gemfile(5) also contained `json_pure` (or a gem
114
+ with a dependency on `json_pure`), the latest version on
115
+ your system might conflict with the version in your
116
+ Gemfile(5), or the snapshot version in your `Gemfile.lock`.
117
+
118
+ If this happens, bundler will say:
119
+
120
+ You have already activated json_pure 1.4.6 but your Gemfile
121
+ requires json_pure 1.4.3. Consider using bundle exec.
122
+
123
+ In this situation, you almost certainly want to remove the
124
+ underlying gem with the problematic gem plugin. In general,
125
+ the authors of these plugins (in this case, the `gemcutter`
126
+ gem) have released newer versions that are more careful in
127
+ their plugins.
128
+
129
+ You can find a list of all the gems containing gem plugins
130
+ by running
131
+
132
+ ruby -rubygems -e "puts Gem.find_files('rubygems_plugin.rb')"
133
+
134
+ At the very least, you should remove all but the newest
135
+ version of each gem plugin, and also remove all gem plugins
136
+ that you aren't using (`gem uninstall gem_name`).
@@ -0,0 +1,372 @@
1
+ bundle-install(1) -- Install the dependencies specified in your Gemfile
2
+ =======================================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `bundle install` [--gemfile=GEMFILE]
7
+ [--path PATH] [--system]
8
+ [--without=GROUP1[ GROUP2...]]
9
+ [--local] [--deployment]
10
+ [--binstubs[=DIRECTORY]]
11
+ [--standalone[=GROUP1[ GROUP2...]]]
12
+ [--trust-policy=POLICY]
13
+ [--jobs=SIZE]
14
+ [--retry=TRIES]
15
+ [--no-cache]
16
+ [--quiet]
17
+ [--clean]
18
+ [--full-index]
19
+ [--no-prune]
20
+ [--shebang]
21
+
22
+ ## DESCRIPTION
23
+
24
+ Install the gems specified in your Gemfile(5). If this is the first
25
+ time you run bundle install (and a `Gemfile.lock` does not exist),
26
+ bundler will fetch all remote sources, resolve dependencies and
27
+ install all needed gems.
28
+
29
+ If a `Gemfile.lock` does exist, and you have not updated your Gemfile(5),
30
+ bundler will fetch all remote sources, but use the dependencies
31
+ specified in the `Gemfile.lock` instead of resolving dependencies.
32
+
33
+ If a `Gemfile.lock` does exist, and you have updated your Gemfile(5),
34
+ bundler will use the dependencies in the `Gemfile.lock` for all gems
35
+ that you did not update, but will re-resolve the dependencies of
36
+ gems that you did update. You can find more information about this
37
+ update process below under [CONSERVATIVE UPDATING][].
38
+
39
+ ## OPTIONS
40
+
41
+ * `--gemfile=<gemfile>`:
42
+ The location of the Gemfile(5) that bundler should use. This defaults
43
+ to a gemfile in the current working directory. In general, bundler
44
+ will assume that the location of the Gemfile(5) is also the project
45
+ root, and will look for the `Gemfile.lock` and `vendor/cache` relative
46
+ to it.
47
+
48
+ * `--path=<path>`:
49
+ The location to install the gems in the bundle to. This defaults to
50
+ Rubygems' gem home, which is also the default location where `gem
51
+ install` installs gems. This means that, by default, gems installed
52
+ without a `--path` setting will show up in `gem list`. This setting is
53
+ a [remembered option][REMEMBERED OPTIONS].
54
+
55
+ * `--system`:
56
+ Installs the gems in the bundle to the system location. This
57
+ overrides any previous [remembered][REMEMBERED OPTIONS] use of
58
+ `--path`.
59
+
60
+ * `--without=<list>`:
61
+ A space-separated list of groups to skip installing. This is a
62
+ [remembered option][REMEMBERED OPTIONS].
63
+
64
+ * `--local`:
65
+ Do not attempt to connect to `rubygems.org`, instead using just
66
+ the gems already present in Rubygems' cache or in `vendor/cache`.
67
+ Note that if a more appropriate platform-specific gem exists on
68
+ `rubygems.org`, it will not be found.
69
+
70
+ * `--deployment`:
71
+ Switches bundler's defaults into [deployment mode][DEPLOYMENT MODE].
72
+ Do not use this flag on development machines.
73
+
74
+ * `--binstubs[=<directory>]`:
75
+ Create a directory (defaults to `bin`) containing an executable
76
+ that runs in the context of the bundle. For instance, if the
77
+ `rails` gem comes with a `rails` executable, this flag will create
78
+ a `bin/rails` executable that ensures that all dependencies used
79
+ come from the bundled gems.
80
+
81
+ * `--shebang ruby-install-name`:
82
+ Uses the ruby executable (usually `ruby`) provided to execute the scripts created
83
+ with --binstubs. For instance, if you use --binstubs with `--shebang jruby`,
84
+ all executables will be created to use jruby instead.
85
+
86
+ * `--standalone[=<list>]`:
87
+ Make a bundle that can work without Ruby Gems or Bundler at runtime.
88
+ It takes a space separated list of groups to install. It creates a
89
+ `bundle` directory and installs the bundle there. It also generates
90
+ a `bundle/bundler/setup.rb` file to replace Bundler's own setup.
91
+
92
+ * `--trust-policy=[<policy>]`:
93
+ Apply the Rubygems security policy named <policy>, where policy is one of
94
+ HighSecurity, MediumSecurity, LowSecurity, AlmostNoSecurity, or NoSecurity.
95
+ For more detail, see the Rubygems signing documentation, linked below in
96
+ [SEE ALSO][].
97
+
98
+ * `--jobs=[<size>]`:
99
+ Install gems parallely by starting <size> number of parallel workers.
100
+
101
+ * `--retry[<tries]`:
102
+ Retries failed network or git requests <tries> times.
103
+
104
+ * `--no-cache`:
105
+ Do not update the cache in `vendor/cache` with the newly bundled gems. This
106
+ does not remove any existing cached gems, only stops the newly bundled gems
107
+ from being cached during the install.
108
+
109
+ * `--quiet`:
110
+ Do not print progress information to stdout. Instead, communicate the
111
+ success of the install operation via exit status code.
112
+
113
+ * `--clean`:
114
+ Run bundle clean automatically after install.
115
+
116
+ * `--full-index`:
117
+ Use the rubygems modern index instead of the API endpoint.
118
+
119
+ * `--no-prune`:
120
+ Don't remove stale gems from the cache.
121
+
122
+ ## DEPLOYMENT MODE
123
+
124
+ Bundler's defaults are optimized for development. To switch to
125
+ defaults optimized for deployment, use the `--deployment` flag.
126
+ Do not activate deployment mode on development machines, as it
127
+ will cause in an error when the Gemfile is modified.
128
+
129
+ 1. A `Gemfile.lock` is required.
130
+
131
+ To ensure that the same versions of the gems you developed with
132
+ and tested with are also used in deployments, a `Gemfile.lock`
133
+ is required.
134
+
135
+ This is mainly to ensure that you remember to check your
136
+ `Gemfile.lock` into version control.
137
+
138
+ 2. The `Gemfile.lock` must be up to date
139
+
140
+ In development, you can modify your Gemfile(5) and re-run
141
+ `bundle install` to [conservatively update][CONSERVATIVE UPDATING]
142
+ your `Gemfile.lock` snapshot.
143
+
144
+ In deployment, your `Gemfile.lock` should be up-to-date with
145
+ changes made in your Gemfile(5).
146
+
147
+ 3. Gems are installed to `vendor/bundle` not your default system location
148
+
149
+ In development, it's convenient to share the gems used in your
150
+ application with other applications and other scripts run on
151
+ the system.
152
+
153
+ In deployment, isolation is a more important default. In addition,
154
+ the user deploying the application may not have permission to install
155
+ gems to the system, or the web server may not have permission to
156
+ read them.
157
+
158
+ As a result, `bundle install --deployment` installs gems to
159
+ the `vendor/bundle` directory in the application. This may be
160
+ overridden using the `--path` option.
161
+
162
+ ## SUDO USAGE
163
+
164
+ By default, bundler installs gems to the same location as `gem install`.
165
+
166
+ In some cases, that location may not be writable by your Unix user. In
167
+ that case, bundler will stage everything in a temporary directory,
168
+ then ask you for your `sudo` password in order to copy the gems into
169
+ their system location.
170
+
171
+ From your perspective, this is identical to installing them gems
172
+ directly into the system.
173
+
174
+ You should never use `sudo bundle install`. This is because several
175
+ other steps in `bundle install` must be performed as the current user:
176
+
177
+ * Updating your `Gemfile.lock`
178
+ * Updating your `vendor/cache`, if necessary
179
+ * Checking out private git repositories using your user's SSH keys
180
+
181
+ Of these three, the first two could theoretically be performed by
182
+ `chown`ing the resulting files to `$SUDO_USER`. The third, however,
183
+ can only be performed by actually invoking the `git` command as
184
+ the current user. Therefore, git gems are downloaded and installed
185
+ into `~/.bundle` rather than $GEM_HOME or $BUNDLE_PATH.
186
+
187
+ As a result, you should run `bundle install` as the current user,
188
+ and bundler will ask for your password if it is needed to put the
189
+ gems into their final location.
190
+
191
+ ## INSTALLING GROUPS
192
+
193
+ By default, `bundle install` will install all gems in all groups
194
+ in your Gemfile(5), except those declared for a different platform.
195
+
196
+ However, you can explicitly tell bundler to skip installing
197
+ certain groups with the `--without` option. This option takes
198
+ a space-separated list of groups.
199
+
200
+ While the `--without` option will skip _installing_ the gems in the
201
+ specified groups, it will still _download_ those gems and use them to
202
+ resolve the dependencies of every gem in your Gemfile(5).
203
+
204
+ This is so that installing a different set of groups on another
205
+ machine (such as a production server) will not change the
206
+ gems and versions that you have already developed and tested against.
207
+
208
+ `Bundler offers a rock-solid guarantee that the third-party
209
+ code you are running in development and testing is also the
210
+ third-party code you are running in production. You can choose
211
+ to exclude some of that code in different environments, but you
212
+ will never be caught flat-footed by different versions of
213
+ third-party code being used in different environments.`
214
+
215
+ For a simple illustration, consider the following Gemfile(5):
216
+
217
+ source "https://rubygems.org"
218
+
219
+ gem "sinatra"
220
+
221
+ group :production do
222
+ gem "rack-perftools-profiler"
223
+ end
224
+
225
+ In this case, `sinatra` depends on any version of Rack (`>= 1.0`, while
226
+ `rack-perftools-profiler` depends on 1.x (`~> 1.0`).
227
+
228
+ When you run `bundle install --without production` in development, we
229
+ look at the dependencies of `rack-perftools-profiler` as well. That way,
230
+ you do not spend all your time developing against Rack 2.0, using new
231
+ APIs unavailable in Rack 1.x, only to have bundler switch to Rack 1.2
232
+ when the `production` group _is_ used.
233
+
234
+ This should not cause any problems in practice, because we do not
235
+ attempt to `install` the gems in the excluded groups, and only evaluate
236
+ as part of the dependency resolution process.
237
+
238
+ This also means that you cannot include different versions of the same
239
+ gem in different groups, because doing so would result in different
240
+ sets of dependencies used in development and production. Because of
241
+ the vagaries of the dependency resolution process, this usually
242
+ affects more than just the gems you list in your Gemfile(5), and can
243
+ (surprisingly) radically change the gems you are using.
244
+
245
+ ## REMEMBERED OPTIONS
246
+
247
+ Some options (marked above in the [OPTIONS][] section) are remembered
248
+ between calls to `bundle install`, and by the Bundler runtime.
249
+
250
+ For instance, if you run `bundle install --without test`, a subsequent
251
+ call to `bundle install` that does not include a `--without` flag will
252
+ remember your previous choice.
253
+
254
+ In addition, a call to `Bundler.setup` will not attempt to make the
255
+ gems in those groups available on the Ruby load path, as they were
256
+ not installed.
257
+
258
+ The settings that are remembered are:
259
+
260
+ * `--deployment`:
261
+ At runtime, this remembered setting will also result in Bundler
262
+ raising an exception if the `Gemfile.lock` is out of date.
263
+
264
+ * `--path`:
265
+ Subsequent calls to `bundle install` will install gems to the
266
+ directory originally passed to `--path`. The Bundler runtime
267
+ will look for gems in that location. You can revert this
268
+ option by running `bundle install --system`.
269
+
270
+ * `--binstubs`:
271
+ Bundler will update the executables every subsequent call to
272
+ `bundle install`.
273
+
274
+ * `--without`:
275
+ As described above, Bundler will skip the gems specified by
276
+ `--without` in subsequent calls to `bundle install`. The
277
+ Bundler runtime will also not try to make the gems in the
278
+ skipped groups available.
279
+
280
+ ## THE GEMFILE.LOCK
281
+
282
+ When you run `bundle install`, Bundler will persist the full names
283
+ and versions of all gems that you used (including dependencies of
284
+ the gems specified in the Gemfile(5)) into a file called `Gemfile.lock`.
285
+
286
+ Bundler uses this file in all subsequent calls to `bundle install`,
287
+ which guarantees that you always use the same exact code, even
288
+ as your application moves across machines.
289
+
290
+ Because of the way dependency resolution works, even a
291
+ seemingly small change (for instance, an update to a point-release
292
+ of a dependency of a gem in your Gemfile(5)) can result in radically
293
+ different gems being needed to satisfy all dependencies.
294
+
295
+ As a result, you `SHOULD` check your `Gemfile.lock` into version
296
+ control. If you do not, every machine that checks out your
297
+ repository (including your production server) will resolve all
298
+ dependencies again, which will result in different versions of
299
+ third-party code being used if `any` of the gems in the Gemfile(5)
300
+ or any of their dependencies have been updated.
301
+
302
+ ## CONSERVATIVE UPDATING
303
+
304
+ When you make a change to the Gemfile(5) and then run `bundle install`,
305
+ Bundler will update only the gems that you modified.
306
+
307
+ In other words, if a gem that you `did not modify` worked before
308
+ you called `bundle install`, it will continue to use the exact
309
+ same versions of all dependencies as it used before the update.
310
+
311
+ Let's take a look at an example. Here's your original Gemfile(5):
312
+
313
+ source "https://rubygems.org"
314
+
315
+ gem "actionpack", "2.3.8"
316
+ gem "activemerchant"
317
+
318
+ In this case, both `actionpack` and `activemerchant` depend on
319
+ `activesupport`. The `actionpack` gem depends on `activesupport 2.3.8`
320
+ and `rack ~> 1.1.0`, while the `activemerchant` gem depends on
321
+ `activesupport >= 2.3.2`, `braintree >= 2.0.0`, and `builder >= 2.0.0`.
322
+
323
+ When the dependencies are first resolved, Bundler will select
324
+ `activesupport 2.3.8`, which satisfies the requirements of both
325
+ gems in your Gemfile(5).
326
+
327
+ Next, you modify your Gemfile(5) to:
328
+
329
+ source "https://rubygems.org"
330
+
331
+ gem "actionpack", "3.0.0.rc"
332
+ gem "activemerchant"
333
+
334
+ The `actionpack 3.0.0.rc` gem has a number of new dependencies,
335
+ and updates the `activesupport` dependency to `= 3.0.0.rc` and
336
+ the `rack` dependency to `~> 1.2.1`.
337
+
338
+ When you run `bundle install`, Bundler notices that you changed
339
+ the `actionpack` gem, but not the `activemerchant` gem. It
340
+ evaluates the gems currently being used to satisfy its requirements:
341
+
342
+ * `activesupport 2.3.8`:
343
+ also used to satisfy a dependency in `activemerchant`,
344
+ which is not being updated
345
+ * `rack ~> 1.1.0`:
346
+ not currently being used to satisfy another dependency
347
+
348
+ Because you did not explicitly ask to update `activemerchant`,
349
+ you would not expect it to suddenly stop working after updating
350
+ `actionpack`. However, satisfying the new `activesupport 3.0.0.rc`
351
+ dependency of actionpack requires updating one of its dependencies.
352
+
353
+ Even though `activemerchant` declares a very loose dependency
354
+ that theoretically matches `activesupport 3.0.0.rc`, bundler treats
355
+ gems in your Gemfile(5) that have not changed as an atomic unit
356
+ together with their dependencies. In this case, the `activemerchant`
357
+ dependency is treated as `activemerchant 1.7.1 + activesupport 2.3.8`,
358
+ so `bundle install` will report that it cannot update `actionpack`.
359
+
360
+ To explicitly update `actionpack`, including its dependencies
361
+ which other gems in the Gemfile(5) still depend on, run
362
+ `bundle update actionpack` (see `bundle update(1)`).
363
+
364
+ `Summary`: In general, after making a change to the Gemfile(5) , you
365
+ should first try to run `bundle install`, which will guarantee that no
366
+ other gems in the Gemfile(5) are impacted by the change. If that
367
+ does not work, run [bundle update(1)][bundle-update].
368
+
369
+ ## SEE ALSO
370
+
371
+ * Gem install docs: http://guides.rubygems.org/rubygems-basics/#installing-gems
372
+ * Rubygems signing docs: http://guides.rubygems.org/security/