bundler-prehistoric 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +3 -0
- data/.travis.yml +100 -0
- data/CHANGELOG.md +1640 -0
- data/CONTRIBUTING.md +32 -0
- data/DEVELOPMENT.md +117 -0
- data/Gemfile +3 -0
- data/ISSUES.md +96 -0
- data/LICENSE.md +23 -0
- data/README.md +46 -0
- data/Rakefile +256 -0
- data/UPGRADING.md +103 -0
- data/bin/bundle +21 -0
- data/bin/bundle_ruby +56 -0
- data/bin/bundler +21 -0
- data/bundler.gemspec +33 -0
- data/lib/bundler.rb +442 -0
- data/lib/bundler/backports/time.rb +7 -0
- data/lib/bundler/capistrano.rb +16 -0
- data/lib/bundler/cli.rb +395 -0
- data/lib/bundler/cli/binstubs.rb +38 -0
- data/lib/bundler/cli/cache.rb +34 -0
- data/lib/bundler/cli/check.rb +35 -0
- data/lib/bundler/cli/clean.rb +19 -0
- data/lib/bundler/cli/common.rb +54 -0
- data/lib/bundler/cli/config.rb +84 -0
- data/lib/bundler/cli/console.rb +39 -0
- data/lib/bundler/cli/exec.rb +37 -0
- data/lib/bundler/cli/gem.rb +101 -0
- data/lib/bundler/cli/init.rb +33 -0
- data/lib/bundler/cli/inject.rb +33 -0
- data/lib/bundler/cli/install.rb +133 -0
- data/lib/bundler/cli/open.rb +23 -0
- data/lib/bundler/cli/outdated.rb +80 -0
- data/lib/bundler/cli/package.rb +36 -0
- data/lib/bundler/cli/platform.rb +43 -0
- data/lib/bundler/cli/show.rb +48 -0
- data/lib/bundler/cli/update.rb +73 -0
- data/lib/bundler/cli/viz.rb +27 -0
- data/lib/bundler/constants.rb +5 -0
- data/lib/bundler/current_ruby.rb +155 -0
- data/lib/bundler/definition.rb +604 -0
- data/lib/bundler/dep_proxy.rb +43 -0
- data/lib/bundler/dependency.rb +106 -0
- data/lib/bundler/deployment.rb +59 -0
- data/lib/bundler/deprecate.rb +15 -0
- data/lib/bundler/dsl.rb +305 -0
- data/lib/bundler/endpoint_specification.rb +76 -0
- data/lib/bundler/env.rb +56 -0
- data/lib/bundler/environment.rb +42 -0
- data/lib/bundler/fetcher.rb +396 -0
- data/lib/bundler/friendly_errors.rb +42 -0
- data/lib/bundler/gem_helper.rb +169 -0
- data/lib/bundler/gem_helpers.rb +25 -0
- data/lib/bundler/gem_installer.rb +9 -0
- data/lib/bundler/gem_path_manipulation.rb +8 -0
- data/lib/bundler/gem_tasks.rb +2 -0
- data/lib/bundler/graph.rb +169 -0
- data/lib/bundler/index.rb +184 -0
- data/lib/bundler/injector.rb +64 -0
- data/lib/bundler/installer.rb +332 -0
- data/lib/bundler/lazy_specification.rb +83 -0
- data/lib/bundler/lockfile_parser.rb +146 -0
- data/lib/bundler/match_platform.rb +13 -0
- data/lib/bundler/parallel_workers.rb +18 -0
- data/lib/bundler/parallel_workers/thread_worker.rb +30 -0
- data/lib/bundler/parallel_workers/unix_worker.rb +101 -0
- data/lib/bundler/parallel_workers/worker.rb +69 -0
- data/lib/bundler/psyched_yaml.rb +26 -0
- data/lib/bundler/remote_specification.rb +57 -0
- data/lib/bundler/resolver.rb +534 -0
- data/lib/bundler/retry.rb +60 -0
- data/lib/bundler/ruby_dsl.rb +11 -0
- data/lib/bundler/ruby_version.rb +117 -0
- data/lib/bundler/rubygems_ext.rb +171 -0
- data/lib/bundler/rubygems_integration.rb +578 -0
- data/lib/bundler/runtime.rb +310 -0
- data/lib/bundler/settings.rb +176 -0
- data/lib/bundler/setup.rb +23 -0
- data/lib/bundler/shared_helpers.rb +110 -0
- data/lib/bundler/similarity_detector.rb +63 -0
- data/lib/bundler/source.rb +29 -0
- data/lib/bundler/source/git.rb +289 -0
- data/lib/bundler/source/git/git_proxy.rb +158 -0
- data/lib/bundler/source/path.rb +225 -0
- data/lib/bundler/source/path/installer.rb +38 -0
- data/lib/bundler/source/rubygems.rb +334 -0
- data/lib/bundler/source/svn.rb +260 -0
- data/lib/bundler/source/svn/svn_proxy.rb +110 -0
- data/lib/bundler/spec_set.rb +154 -0
- data/lib/bundler/ssl_certs/.document +1 -0
- data/lib/bundler/ssl_certs/Class3PublicPrimaryCertificationAuthority.pem +14 -0
- data/lib/bundler/ssl_certs/DigiCertHighAssuranceEVRootCA.pem +23 -0
- data/lib/bundler/ssl_certs/EntrustnetSecureServerCertificationAuthority.pem +28 -0
- data/lib/bundler/ssl_certs/GeoTrustGlobalCA.pem +20 -0
- data/lib/bundler/ssl_certs/certificate_manager.rb +41 -0
- data/lib/bundler/templates/Executable +16 -0
- data/lib/bundler/templates/Executable.standalone +12 -0
- data/lib/bundler/templates/Gemfile +4 -0
- data/lib/bundler/templates/newgem/.travis.yml.tt +3 -0
- data/lib/bundler/templates/newgem/Gemfile.tt +4 -0
- data/lib/bundler/templates/newgem/LICENSE.txt.tt +22 -0
- data/lib/bundler/templates/newgem/README.md.tt +31 -0
- data/lib/bundler/templates/newgem/Rakefile.tt +26 -0
- data/lib/bundler/templates/newgem/bin/newgem.tt +3 -0
- data/lib/bundler/templates/newgem/consolerc.tt +3 -0
- data/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt +3 -0
- data/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +9 -0
- data/lib/bundler/templates/newgem/ext/newgem/newgem.h.tt +6 -0
- data/lib/bundler/templates/newgem/gitignore.tt +16 -0
- data/lib/bundler/templates/newgem/lib/newgem.rb.tt +12 -0
- data/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +7 -0
- data/lib/bundler/templates/newgem/newgem.gemspec.tt +38 -0
- data/lib/bundler/templates/newgem/rspec.tt +2 -0
- data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +11 -0
- data/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +2 -0
- data/lib/bundler/templates/newgem/test/minitest_helper.rb.tt +4 -0
- data/lib/bundler/templates/newgem/test/test_newgem.rb.tt +11 -0
- data/lib/bundler/ui.rb +7 -0
- data/lib/bundler/ui/rg_proxy.rb +21 -0
- data/lib/bundler/ui/shell.rb +98 -0
- data/lib/bundler/ui/silent.rb +44 -0
- data/lib/bundler/vendor/.document +0 -0
- data/lib/bundler/vendor/net/http/faster.rb +26 -0
- data/lib/bundler/vendor/net/http/persistent.rb +1230 -0
- data/lib/bundler/vendor/net/http/persistent/ssl_reuse.rb +128 -0
- data/lib/bundler/vendor/thor.rb +480 -0
- data/lib/bundler/vendor/thor/actions.rb +319 -0
- data/lib/bundler/vendor/thor/actions/create_file.rb +103 -0
- data/lib/bundler/vendor/thor/actions/create_link.rb +59 -0
- data/lib/bundler/vendor/thor/actions/directory.rb +118 -0
- data/lib/bundler/vendor/thor/actions/empty_directory.rb +135 -0
- data/lib/bundler/vendor/thor/actions/file_manipulation.rb +316 -0
- data/lib/bundler/vendor/thor/actions/inject_into_file.rb +107 -0
- data/lib/bundler/vendor/thor/base.rb +656 -0
- data/lib/bundler/vendor/thor/command.rb +133 -0
- data/lib/bundler/vendor/thor/core_ext/hash_with_indifferent_access.rb +77 -0
- data/lib/bundler/vendor/thor/core_ext/io_binary_read.rb +10 -0
- data/lib/bundler/vendor/thor/core_ext/ordered_hash.rb +98 -0
- data/lib/bundler/vendor/thor/error.rb +32 -0
- data/lib/bundler/vendor/thor/group.rb +281 -0
- data/lib/bundler/vendor/thor/invocation.rb +173 -0
- data/lib/bundler/vendor/thor/line_editor.rb +17 -0
- data/lib/bundler/vendor/thor/line_editor/basic.rb +35 -0
- data/lib/bundler/vendor/thor/line_editor/readline.rb +88 -0
- data/lib/bundler/vendor/thor/parser.rb +4 -0
- data/lib/bundler/vendor/thor/parser/argument.rb +73 -0
- data/lib/bundler/vendor/thor/parser/arguments.rb +175 -0
- data/lib/bundler/vendor/thor/parser/option.rb +121 -0
- data/lib/bundler/vendor/thor/parser/options.rb +218 -0
- data/lib/bundler/vendor/thor/rake_compat.rb +71 -0
- data/lib/bundler/vendor/thor/runner.rb +322 -0
- data/lib/bundler/vendor/thor/shell.rb +81 -0
- data/lib/bundler/vendor/thor/shell/basic.rb +420 -0
- data/lib/bundler/vendor/thor/shell/color.rb +149 -0
- data/lib/bundler/vendor/thor/shell/html.rb +126 -0
- data/lib/bundler/vendor/thor/util.rb +267 -0
- data/lib/bundler/vendor/thor/version.rb +3 -0
- data/lib/bundler/vendored_persistent.rb +3 -0
- data/lib/bundler/vendored_thor.rb +8 -0
- data/lib/bundler/version.rb +6 -0
- data/lib/bundler/vlad.rb +11 -0
- data/man/bundle-config.ronn +155 -0
- data/man/bundle-exec.ronn +136 -0
- data/man/bundle-install.ronn +372 -0
- data/man/bundle-package.ronn +59 -0
- data/man/bundle-platform.ronn +42 -0
- data/man/bundle-update.ronn +179 -0
- data/man/bundle.ronn +92 -0
- data/man/gemfile.5.ronn +369 -0
- data/man/index.txt +7 -0
- data/spec/bundler/bundler_spec.rb +74 -0
- data/spec/bundler/cli_spec.rb +16 -0
- data/spec/bundler/definition_spec.rb +21 -0
- data/spec/bundler/dsl_spec.rb +108 -0
- data/spec/bundler/friendly_errors_spec.rb +13 -0
- data/spec/bundler/gem_helper_spec.rb +225 -0
- data/spec/bundler/psyched_yaml_spec.rb +8 -0
- data/spec/bundler/retry_spec.rb +59 -0
- data/spec/bundler/settings_spec.rb +13 -0
- data/spec/bundler/source_spec.rb +25 -0
- data/spec/cache/gems_spec.rb +316 -0
- data/spec/cache/git_spec.rb +188 -0
- data/spec/cache/path_spec.rb +121 -0
- data/spec/cache/platform_spec.rb +53 -0
- data/spec/cache/svn_spec.rb +82 -0
- data/spec/commands/binstubs_spec.rb +246 -0
- data/spec/commands/check_spec.rb +278 -0
- data/spec/commands/clean_spec.rb +652 -0
- data/spec/commands/config_spec.rb +227 -0
- data/spec/commands/console_spec.rb +102 -0
- data/spec/commands/exec_spec.rb +367 -0
- data/spec/commands/help_spec.rb +39 -0
- data/spec/commands/init_spec.rb +39 -0
- data/spec/commands/inject_spec.rb +78 -0
- data/spec/commands/licenses_spec.rb +31 -0
- data/spec/commands/newgem_spec.rb +451 -0
- data/spec/commands/open_spec.rb +80 -0
- data/spec/commands/outdated_spec.rb +168 -0
- data/spec/commands/package_spec.rb +128 -0
- data/spec/commands/show_spec.rb +152 -0
- data/spec/install/binstubs_spec.rb +24 -0
- data/spec/install/bundler_spec.rb +146 -0
- data/spec/install/deploy_spec.rb +237 -0
- data/spec/install/gemfile/gemspec_spec.rb +170 -0
- data/spec/install/gemfile/git_spec.rb +967 -0
- data/spec/install/gemfile/path_spec.rb +480 -0
- data/spec/install/gemfile/svn_spec.rb +582 -0
- data/spec/install/gemfile_spec.rb +44 -0
- data/spec/install/gems/c_ext_spec.rb +48 -0
- data/spec/install/gems/dependency_api_spec.rb +580 -0
- data/spec/install/gems/env_spec.rb +107 -0
- data/spec/install/gems/flex_spec.rb +314 -0
- data/spec/install/gems/groups_spec.rb +308 -0
- data/spec/install/gems/mirror_spec.rb +39 -0
- data/spec/install/gems/platform_spec.rb +221 -0
- data/spec/install/gems/post_install_spec.rb +121 -0
- data/spec/install/gems/resolving_spec.rb +124 -0
- data/spec/install/gems/simple_case_spec.rb +386 -0
- data/spec/install/gems/standalone_spec.rb +260 -0
- data/spec/install/gems/sudo_spec.rb +136 -0
- data/spec/install/gems/win32_spec.rb +26 -0
- data/spec/install/gemspecs_spec.rb +50 -0
- data/spec/install/path_spec.rb +150 -0
- data/spec/install/post_bundle_message_spec.rb +142 -0
- data/spec/install/prereleases_spec.rb +43 -0
- data/spec/install/security_policy_spec.rb +77 -0
- data/spec/install/upgrade_spec.rb +26 -0
- data/spec/lock/git_spec.rb +34 -0
- data/spec/lock/lockfile_spec.rb +912 -0
- data/spec/lock/svn_spec.rb +35 -0
- data/spec/other/bundle_ruby_spec.rb +142 -0
- data/spec/other/cli_dispatch_spec.rb +21 -0
- data/spec/other/ext_spec.rb +60 -0
- data/spec/other/platform_spec.rb +1285 -0
- data/spec/other/ssl_cert_spec.rb +10 -0
- data/spec/quality_spec.rb +88 -0
- data/spec/realworld/dependency_api_spec.rb +60 -0
- data/spec/realworld/edgecases_spec.rb +177 -0
- data/spec/realworld/parallel_spec.rb +69 -0
- data/spec/resolver/basic_spec.rb +66 -0
- data/spec/resolver/platform_spec.rb +88 -0
- data/spec/runtime/executable_spec.rb +149 -0
- data/spec/runtime/load_spec.rb +107 -0
- data/spec/runtime/platform_spec.rb +90 -0
- data/spec/runtime/require_spec.rb +332 -0
- data/spec/runtime/setup_spec.rb +856 -0
- data/spec/runtime/with_clean_env_spec.rb +91 -0
- data/spec/spec_helper.rb +114 -0
- data/spec/support/artifice/endopint_marshal_fail_basic_authentication.rb +13 -0
- data/spec/support/artifice/endpoint.rb +71 -0
- data/spec/support/artifice/endpoint_500.rb +37 -0
- data/spec/support/artifice/endpoint_api_missing.rb +16 -0
- data/spec/support/artifice/endpoint_basic_authentication.rb +13 -0
- data/spec/support/artifice/endpoint_creds_diff_host.rb +38 -0
- data/spec/support/artifice/endpoint_extra.rb +31 -0
- data/spec/support/artifice/endpoint_extra_missing.rb +15 -0
- data/spec/support/artifice/endpoint_fallback.rb +17 -0
- data/spec/support/artifice/endpoint_host_redirect.rb +15 -0
- data/spec/support/artifice/endpoint_marshal_fail.rb +11 -0
- data/spec/support/artifice/endpoint_redirect.rb +15 -0
- data/spec/support/artifice/endpoint_strict_basic_authentication.rb +18 -0
- data/spec/support/artifice/endpoint_timeout.rb +13 -0
- data/spec/support/builders.rb +748 -0
- data/spec/support/fakeweb/rack-1.0.0.marshal +2 -0
- data/spec/support/fakeweb/windows.rb +23 -0
- data/spec/support/hax.rb +22 -0
- data/spec/support/helpers.rb +348 -0
- data/spec/support/indexes.rb +280 -0
- data/spec/support/less_than_proc.rb +14 -0
- data/spec/support/matchers.rb +77 -0
- data/spec/support/path.rb +81 -0
- data/spec/support/permissions.rb +10 -0
- data/spec/support/platforms.rb +94 -0
- data/spec/support/ruby_ext.rb +20 -0
- data/spec/support/rubygems_ext.rb +39 -0
- data/spec/support/streams.rb +13 -0
- data/spec/support/sudo.rb +16 -0
- data/spec/update/gems_spec.rb +201 -0
- data/spec/update/git_spec.rb +236 -0
- data/spec/update/source_spec.rb +63 -0
- data/spec/update/svn_spec.rb +100 -0
- metadata +486 -0
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Contributing
|
2
|
+
|
3
|
+
Bundler welcomes contributions from *everyone*. While contributing, please follow the project [code of conduct](http://bundler.io/conduct.html), so that everyone can be included.
|
4
|
+
|
5
|
+
If you'd like to help make Bundler better, you totally rock! Here are some ways you can contribute:
|
6
|
+
|
7
|
+
- by using prerelease versions (run `gem install bundler --pre`)
|
8
|
+
- by [reporting bugs you encounter](https://github.com/bundler/bundler/issues/new)
|
9
|
+
- by [suggesting new features](https://github.com/bundler/bundler-features/issues/new)
|
10
|
+
- by adding to or editing [the Bundler documentation website](http://bundler.io) and [Bundler man pages](http://bundler.io/man/bundle.1.html)
|
11
|
+
- by [checking issues for completeness](https://github.com/bundler/bundler/blob/master/DEVELOPMENT.md#bug-triage)
|
12
|
+
- by closing issues that are not complete
|
13
|
+
- by adding a failing test for reproducible [reported bugs](https://github.com/bundler/bundler/issues)
|
14
|
+
- by reviewing [pull requests](https://github.com/bundler/bundler/pulls) and suggesting improvements
|
15
|
+
- by improving existing code, including [suggestions from PullReview](https://www.pullreview.com/github/bundler/bundler/reviews/master)
|
16
|
+
- by [writing code](https://github.com/bundler/bundler/blob/master/DEVELOPMENT.md) (no patch is too small! fix typos or bad whitespace)
|
17
|
+
|
18
|
+
If you need help getting started, check out the [DEVELOPMENT](https://github.com/bundler/bundler/blob/master/DEVELOPMENT.md) file for steps that will get you up and running.
|
19
|
+
|
20
|
+
Thanks for helping us make Bundler better.
|
21
|
+
|
22
|
+
# Troubleshooting
|
23
|
+
|
24
|
+
If you're having a problem, please see [ISSUES](https://github.com/bundler/bundler/blob/master/ISSUES.md) for troubleshooting steps and a guide for how to submit a ticket that will help us solve the problem you are having as quickly as possible.
|
25
|
+
|
26
|
+
# Requesting Features
|
27
|
+
|
28
|
+
Head on over to the [Bundler features](https://github.com/bundler/bundler-features) project, or any of the lists or channels listed below. Feature-wise we consider Bundler stable, so the core team does not tend to work on feature suggestions. Pull requests welcome though!
|
29
|
+
|
30
|
+
# Discussing Bundler
|
31
|
+
|
32
|
+
If you'd like to discuss features, ask questions, or just engage in general Bundler-focused discussion, please see the [#bundler](irc://irc.freenode.net/#bundler) IRC channel on Freenode, and the [Bundler mailing list](http://groups.google.com/group/ruby-bundler) on Google Groups.
|
data/DEVELOPMENT.md
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
Great to have you here! Here are a few ways you can help out with [Bundler](http://github.com/bundler/bundler).
|
2
|
+
|
3
|
+
# Where should I start?
|
4
|
+
|
5
|
+
You can start learning about Bundler by reading [the documentation](http://bundler.io). If you want, you can also read a (lengthy) explanation of [why Bundler exists and what it does](http://bundler.io/rationale.html). You can also check out discussions about Bundler on the [Bundler mailing list](https://groups.google.com/group/ruby-bundler) and in the [Bundler IRC channel](http://webchat.freenode.net/?channels=%23bundler), which is #bundler on Freenode.
|
6
|
+
|
7
|
+
## Your first commits
|
8
|
+
|
9
|
+
If you’re interested in contributing to Bundler, that’s awesome! We’d love your help.
|
10
|
+
|
11
|
+
If you have any questions after reading this page, please feel free to contact either [@indirect](http://github.com/indirect) or [@hone](http://github.com/hone). They are both happy to provide help working through your first bugfix or thinking through the problem you’re trying to resolve.
|
12
|
+
|
13
|
+
## Tackle some small problems
|
14
|
+
|
15
|
+
We track [small
|
16
|
+
bugs](https://github.com/bundler/bundler/issues?labels=small&state=open) and [small features](https://github.com/bundler/bundler-features/issues?labels=small&state=open) so that anyone who wants to help can start with something that's not too overwhelming. If nothing on those lists looks good, though, just talk to us.
|
17
|
+
|
18
|
+
|
19
|
+
# Development setup
|
20
|
+
|
21
|
+
Bundler doesn't use a Gemfile to list development dependencies, because when we tried it we couldn't tell if we were awake or it was just another level of dreams. To work on Bundler, you'll probably want to do a couple of things.
|
22
|
+
|
23
|
+
1. Install Bundler's development dependencies
|
24
|
+
|
25
|
+
$ rake spec:deps
|
26
|
+
|
27
|
+
2. Run the test suite, to make sure things are working
|
28
|
+
|
29
|
+
$ rake spec
|
30
|
+
|
31
|
+
3. Set up a shell alias to run Bundler from your clone, e.g. a Bash alias:
|
32
|
+
|
33
|
+
$ alias dbundle='ruby -I /path/to/bundler/lib /path/to/bundler/bin/bundle'
|
34
|
+
|
35
|
+
With that set up, you can test changes you've made to Bundler by running `dbundle`, without interfering with the regular `bundle` command.
|
36
|
+
|
37
|
+
|
38
|
+
# Bug triage
|
39
|
+
|
40
|
+
Triage is the work of processing tickets that have been opened into actionable issues, feature requests, or bug reports. That includes verifying bugs, categorizing the ticket, and ensuring there's enough information to reproduce the bug for anyone who wants to try to fix it.
|
41
|
+
|
42
|
+
We've created an [issues guide](https://github.com/bundler/bundler/blob/master/ISSUES.md) to walk Bundler users through the process of troubleshooting issues and reporting bugs.
|
43
|
+
|
44
|
+
If you'd like to help, awesome! You can [report a new bug](https://github.com/bundler/bundler/issues/new) or browse our [existing open tickets](https://github.com/bundler/bundler/issues).
|
45
|
+
|
46
|
+
Not every ticket will point to a bug in Bundler's code, but open tickets usually mean that there is something we could improve to help that user. Sometimes that means writing additional documentation, sometimes that means making error messages clearer, and sometimes that means explaining to a user that they need to install git to use git gems.
|
47
|
+
|
48
|
+
When you're looking at a ticket, here are the main questions to ask:
|
49
|
+
|
50
|
+
* Can I reproduce this bug myself?
|
51
|
+
* Are the steps to reproduce clearly stated in the ticket?
|
52
|
+
* Which versions of Bundler (1.1.x, 1.2.x, git, etc.) manifest this bug?
|
53
|
+
* Which operating systems (OS X, Windows, Ubuntu, CentOS, etc.) manifest this bug?
|
54
|
+
* Which rubies (MRI, JRuby, Rubinius, etc.) and which versions (1.8.7, 1.9.3, etc.) have this bug?
|
55
|
+
|
56
|
+
If you can't reproduce an issue, chances are good that the bug has been fixed (hurrah!). That's a good time to post to the ticket explaining what you did and how it worked.
|
57
|
+
|
58
|
+
If you can reproduce an issue, you're well on your way to fixing it. :) Fixing issues is similar to adding new features:
|
59
|
+
|
60
|
+
1. Discuss the fix on the existing issue. Coordinating with everyone else saves duplicate work and serves as a great way to get suggestions and ideas if you need any.
|
61
|
+
2. Base your commits on the correct branch. Bugfixes for 1.x versions of Bundler should be based on the matching 1-x-stable branch.
|
62
|
+
3. Commit the code and at least one test covering your changes to a named branch in your fork.
|
63
|
+
4. Put a line in the [CHANGELOG](https://github.com/bundler/bundler/blob/master/CHANGELOG.md) summarizing your changes under the next release under the “Bugfixes” heading.
|
64
|
+
5. Send us a [pull request](https://help.github.com/articles/using-pull-requests) from your bugfix branch.
|
65
|
+
|
66
|
+
Finally, the ticket may be a duplicate of another older ticket. If you notice a ticket is a duplicate, simply comment on the ticket noting the original ticket’s number. For example, you could say “This is a duplicate of issue #42, and can be closed”.
|
67
|
+
|
68
|
+
|
69
|
+
# Adding new features
|
70
|
+
|
71
|
+
If you would like to add a new feature to Bundler, please follow these steps:
|
72
|
+
|
73
|
+
1. [Create an issue](https://github.com/bundler/bundler-features/issues/new) to discuss your feature.
|
74
|
+
2. Base your commits on the master branch, since we follow [SemVer](http://semver.org) and don't add new features to old releases.
|
75
|
+
3. Commit the code and at least one test covering your changes to a feature branch in your fork.
|
76
|
+
4. Put a line in the [CHANGELOG](https://github.com/bundler/bundler/blob/master/CHANGELOG.md) summarizing your changes under the next release under the "Features" heading.
|
77
|
+
5. Send us a [pull request](https://help.github.com/articles/using-pull-requests) from your feature branch.
|
78
|
+
|
79
|
+
If you don't hear back immediately, don’t get discouraged! We all have day jobs, but we respond to most tickets within a day or two.
|
80
|
+
|
81
|
+
|
82
|
+
# Beta testing
|
83
|
+
|
84
|
+
Early releases require heavy testing, especially across various system setups. We :heart: testers, and are big fans of anyone who can run `gem install bundler --pre` and try out upcoming releases in their development and staging environments.
|
85
|
+
|
86
|
+
There may not always be prereleases or beta versions of Bundler. That said, you are always welcome to try checking out master and building a gem yourself if you want to try out the latest changes.
|
87
|
+
|
88
|
+
|
89
|
+
# Translations
|
90
|
+
|
91
|
+
We don't currently have any translations, but please reach out to us if you would like to help get this going.
|
92
|
+
|
93
|
+
|
94
|
+
# Documentation
|
95
|
+
|
96
|
+
Code needs explanation, and sometimes those who know the code well have trouble explaining it to someone just getting into it. Because of that, we welcome documentation suggestions and patches from everyone, especially if they are brand new to using Bundler.
|
97
|
+
|
98
|
+
Bundler has two main sources of documentation: the built-in help (including usage information and man pages) and the [Bundler documentation site](http://bundler.io).
|
99
|
+
|
100
|
+
If you’d like to submit a patch to the man pages, follow the steps for adding a feature above. All of the man pages are located in the `man` directory. Just use the “Documentation” heading when you describe what you did in the changelog.
|
101
|
+
|
102
|
+
If you have a suggestion or proposed change for [bundler.io](http://bundler.io), please open an issue or send a pull request to the [bundler-site](https://github.com/bundler/bundler-site) repository.
|
103
|
+
|
104
|
+
|
105
|
+
# Community
|
106
|
+
|
107
|
+
Community is an important part of all we do. If you’d like to be part of the Bundler community, you can jump right in and start helping make Bundler better for everyone who uses it.
|
108
|
+
|
109
|
+
It would be tremendously helpful to have more people answering questions about Bundler (and often simply about Rubygems or Ruby itself) in our [issue tracker](https://github.com/bundler/bundler/issues) or on [Stack Overflow](http://stackoverflow.com/questions/tagged/bundler).
|
110
|
+
|
111
|
+
Additional documentation and explanation is always helpful, too. If you have any suggestions for the Bundler website [bundler.io](http://bundler.io), we would absolutely love it if you opened an issue or pull request on the [bundler-site](https://github.com/bundler/bundler-site) repository.
|
112
|
+
|
113
|
+
Finally, sharing your experiences and discoveries by writing them up is a valuable way to help others who have similar problems or experiences in the future. You can write a blog post, create an example and commit it to Github, take screenshots, or make videos.
|
114
|
+
|
115
|
+
Examples of how Bundler is used help everyone, and we’ve discovered that people already use it in ways that we never imagined when we were writing it. If you’re still not sure what to write about, there are also several projects doing interesting things based on Bundler. They could probably use publicity too.
|
116
|
+
|
117
|
+
If you let someone on the core team know you wrote about Bundler, we will add your post to the list of Bundler resources on the Github project wiki.
|
data/Gemfile
ADDED
data/ISSUES.md
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
# Bundler Issues
|
2
|
+
|
3
|
+
So! You're having problems with Bundler. This file is here to help. If you're running into an error, try reading the rest of this file for help. If you can't figure out how to solve your problem, there are also instructions on how to report a bug.
|
4
|
+
|
5
|
+
**Please use the [Bundler
|
6
|
+
Features](https://github.com/bundler/bundler-features) repo to suggest and
|
7
|
+
discuss features. The bundler issue tracker is only for bugs.**
|
8
|
+
|
9
|
+
## Documentation
|
10
|
+
|
11
|
+
Instructions for common Bundler uses can be found on the [Bundler documentation site](http://bundler.io/).
|
12
|
+
|
13
|
+
Detailed information about each Bundler command, including help with common problems, can be found in the [Bundler man pages](http://bundler.io/man/bundle.1.html).
|
14
|
+
|
15
|
+
## Troubleshooting
|
16
|
+
|
17
|
+
### Heroku errors
|
18
|
+
|
19
|
+
Please open a ticket with Heroku if you're having trouble deploying. They have a professional support team who can help you resolve Heroku issues far better than the Bundler team can. If the problem that you are having turns out to be a bug in Bundler itself, Heroku support can get the exact details to us.
|
20
|
+
|
21
|
+
### Other problems
|
22
|
+
|
23
|
+
First, figure out exactly what it is that you're trying to do. Then, go to the [Bundler documentation website](http://bundler.io) and see if we have instructions on how to do that.
|
24
|
+
|
25
|
+
Second, check [the compatibility
|
26
|
+
list](http://bundler.io/compatibility.html), and make sure that the version of Bundler that you are
|
27
|
+
using works with the versions of Ruby and Rubygems that you are using.
|
28
|
+
|
29
|
+
If the instructions don't work, or you can't find any instructions, you can try these troubleshooting steps:
|
30
|
+
|
31
|
+
# remove user-specific gems and git repos
|
32
|
+
rm -rf ~/.bundle/ ~/.gem/bundler/ ~/.gems/cache/bundler/
|
33
|
+
|
34
|
+
# remove system-wide git repos and git checkouts
|
35
|
+
rm -rf $GEM_HOME/bundler/ $GEM_HOME/cache/bundler/
|
36
|
+
|
37
|
+
# remove project-specific settings
|
38
|
+
rm -rf .bundle/
|
39
|
+
|
40
|
+
# remove project-specific cached gems and repos
|
41
|
+
rm -rf vendor/cache/
|
42
|
+
|
43
|
+
# remove the saved resolve of the Gemfile
|
44
|
+
rm -rf Gemfile.lock
|
45
|
+
|
46
|
+
# uninstall the rubygems-bundler and open_gem gems
|
47
|
+
rvm gemset use global # if using rvm
|
48
|
+
gem uninstall rubygems-bundler open_gem
|
49
|
+
|
50
|
+
# try to install one more time
|
51
|
+
bundle install
|
52
|
+
|
53
|
+
## Reporting unresolved problems
|
54
|
+
|
55
|
+
Hopefully the troubleshooting steps above resolved your problem. If things still aren't working the way you expect them to, please let us know so that we can diagnose and hopefully fix the problem you're having.
|
56
|
+
|
57
|
+
**The best way to report a bug is by providing a reproduction script.** See these examples:
|
58
|
+
|
59
|
+
* [Git environment variables causing install to fail.](https://gist.github.com/xaviershay/6207550)
|
60
|
+
* [Multiple gems in a repository cannot be updated independently.](https://gist.github.com/xaviershay/6295889)
|
61
|
+
|
62
|
+
A half working script with comments for the parts you were unable to automate is still appreciated.
|
63
|
+
|
64
|
+
If you are unable to do that, please include the following information in your report:
|
65
|
+
|
66
|
+
- What you're trying to accomplish
|
67
|
+
- The command you ran
|
68
|
+
- What you expected to happen
|
69
|
+
- What actually happened
|
70
|
+
- The exception backtrace(s), if any
|
71
|
+
- Everything output by running `bundle env`
|
72
|
+
|
73
|
+
If your version of Bundler does not have the `bundle env` command, then please include:
|
74
|
+
|
75
|
+
- Your Gemfile
|
76
|
+
- Your Gemfile.lock
|
77
|
+
- Your Bundler configuration settings (run `bundle config`)
|
78
|
+
- What version of bundler you are using (run `bundle -v`)
|
79
|
+
- What version of Ruby you are using (run `ruby -v`)
|
80
|
+
- What version of Rubygems you are using (run `gem -v`)
|
81
|
+
- Whether you are using RVM, and if so what version (run `rvm -v`)
|
82
|
+
- Whether you have the `rubygems-bundler` gem, which can break gem executables (run `gem list rubygems-bundler`)
|
83
|
+
- Whether you have the `open_gem` gem, which can cause rake activation conflicts (run `gem list open_gem`)
|
84
|
+
|
85
|
+
If you are using Rails 2.3, please also include:
|
86
|
+
|
87
|
+
- Your boot.rb file
|
88
|
+
- Your preinitializer.rb file
|
89
|
+
- Your environment.rb file
|
90
|
+
|
91
|
+
|
92
|
+
If you have either `rubygems-bundler` or `open_gem` installed, please try removing them and then following the troubleshooting steps above before opening a new ticket.
|
93
|
+
|
94
|
+
[Create a gist](https://gist.github.com) containing all of that information, then visit the [Bundler issue tracker](https://github.com/bundler/bundler/issues) and [create a ticket](https://github.com/bundler/bundler/issues/new) describing your problem and linking to your gist.
|
95
|
+
|
96
|
+
Thanks for reporting issues and helping make Bundler better!
|
data/LICENSE.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
Portions copyright (c) 2010 Andre Arko
|
2
|
+
Portions copyright (c) 2009 Engine Yard
|
3
|
+
|
4
|
+
MIT License
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
7
|
+
a copy of this software and associated documentation files (the
|
8
|
+
"Software"), to deal in the Software without restriction, including
|
9
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
10
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
11
|
+
permit persons to whom the Software is furnished to do so, subject to
|
12
|
+
the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be
|
15
|
+
included in all copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
18
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
19
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
20
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
21
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
22
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
23
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
[![Version ](https://img.shields.io/gem/v/bundler.svg)](https://rubygems.org/gems/bundler)
|
2
|
+
[![Build Status](https://img.shields.io/travis/bundler/bundler/master.svg)](https://travis-ci.org/bundler/bundler)
|
3
|
+
[![Code Climate](https://img.shields.io/codeclimate/github/bundler/bundler.svg)](https://codeclimate.com/github/bundler/bundler)
|
4
|
+
[![Inline docs ](http://inch-ci.org/github/bundler/bundler.svg)](http://inch-ci.org/github/bundler/bundler)
|
5
|
+
[![Gittip
|
6
|
+
](http://img.shields.io/gittip/bundler.svg)](http://gittip.com/bundler)
|
7
|
+
|
8
|
+
# Bundler: a gem to bundle gems
|
9
|
+
|
10
|
+
Bundler makes sure Ruby applications run the same code on every machine.
|
11
|
+
|
12
|
+
It does this by managing the gems that the application depends on. Given a list of gems, it can automatically download and install those gems, as well as any other gems needed by the gems that are listed. Before installing gems, it checks the versions of every gem to make sure that they are compatible, and can all be loaded at the same time. After the gems have been installed, Bundler can help you update some or all of them when new versions become available. Finally, it records the exact versions that have been installed, so that others can install the exact same gems.
|
13
|
+
|
14
|
+
### About this fork
|
15
|
+
|
16
|
+
This fork add compatibility with ruby 1.8.6
|
17
|
+
|
18
|
+
### Installation and usage
|
19
|
+
|
20
|
+
```
|
21
|
+
gem install bundler
|
22
|
+
bundle init
|
23
|
+
echo "gem 'rails'" >> Gemfile
|
24
|
+
bundle install
|
25
|
+
bundle exec rails new myapp
|
26
|
+
```
|
27
|
+
|
28
|
+
See [bundler.io](http://bundler.io) for the full documentation.
|
29
|
+
|
30
|
+
### Troubleshooting
|
31
|
+
|
32
|
+
For help with common problems, see [ISSUES](https://github.com/bundler/bundler/blob/master/ISSUES.md).
|
33
|
+
|
34
|
+
### Other questions
|
35
|
+
|
36
|
+
To see what has changed in recent versions of Bundler, see the [CHANGELOG](https://github.com/bundler/bundler/blob/master/CHANGELOG.md).
|
37
|
+
|
38
|
+
Feel free to chat with the Bundler core team (and many other users) on IRC in the [#bundler](irc://irc.freenode.net/bundler) channel on Freenode, or via email on the [Bundler mailing list](http://groups.google.com/group/ruby-bundler).
|
39
|
+
|
40
|
+
### Contributing
|
41
|
+
|
42
|
+
If you'd like to contribute to Bundler, that's awesome, and we <3 you. There's a guide to contributing to Bundler (both code and general help) over in [DEVELOPMENT](https://github.com/bundler/bundler/blob/master/DEVELOPMENT.md)
|
43
|
+
|
44
|
+
### Support work on Bundler
|
45
|
+
|
46
|
+
Bundler is developed entirely by a team of volunteers. If Bundler saves your company time and money, contribute to the [Bundler development fund on Gittip](http://www.gittip.com/bundler). Every dollar goes towards Bundler documentation, outreach, and development.
|
data/Rakefile
ADDED
@@ -0,0 +1,256 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.unshift File.expand_path("../lib", __FILE__)
|
3
|
+
require 'shellwords'
|
4
|
+
require 'benchmark'
|
5
|
+
|
6
|
+
RUBYGEMS_REPO = File.expand_path("tmp/rubygems")
|
7
|
+
BUNDLER_SPEC = Gem::Specification.load("bundler.gemspec")
|
8
|
+
|
9
|
+
def safe_task(&block)
|
10
|
+
yield
|
11
|
+
true
|
12
|
+
rescue
|
13
|
+
false
|
14
|
+
end
|
15
|
+
|
16
|
+
# Benchmark task execution
|
17
|
+
module Rake
|
18
|
+
class Task
|
19
|
+
alias_method :real_invoke, :invoke
|
20
|
+
|
21
|
+
def invoke(*args)
|
22
|
+
time = Benchmark.measure(@name) do
|
23
|
+
real_invoke(*args)
|
24
|
+
end
|
25
|
+
puts "#{@name} ran for #{time}"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
namespace :spec do
|
31
|
+
desc "Ensure spec dependencies are installed"
|
32
|
+
task :deps do
|
33
|
+
deps = Hash[BUNDLER_SPEC.development_dependencies.map do |d|
|
34
|
+
[d.name, d.requirement.to_s]
|
35
|
+
end]
|
36
|
+
|
37
|
+
# JRuby can't build ronn or rdiscount, so we skip that
|
38
|
+
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
|
39
|
+
deps.delete("ronn")
|
40
|
+
deps.delete("rdiscount")
|
41
|
+
end
|
42
|
+
|
43
|
+
deps.each do |name, version|
|
44
|
+
sh "#{Gem.ruby} -S gem list -i '^#{name}$' -v '#{version}' || " \
|
45
|
+
"#{Gem.ruby} -S gem install #{name} -v '#{version}' --no-ri --no-rdoc"
|
46
|
+
end
|
47
|
+
|
48
|
+
# Download and install gems used inside tests
|
49
|
+
$LOAD_PATH.unshift("./spec")
|
50
|
+
require 'support/rubygems_ext'
|
51
|
+
Spec::Rubygems.setup
|
52
|
+
end
|
53
|
+
|
54
|
+
namespace :travis do
|
55
|
+
task :deps do
|
56
|
+
# Give the travis user a name so that git won't fatally error
|
57
|
+
system "sudo sed -i 's/1000::/1000:Travis:/g' /etc/passwd"
|
58
|
+
# Strip secure_path so that RVM paths transmit through sudo -E
|
59
|
+
system "sudo sed -i '/secure_path/d' /etc/sudoers"
|
60
|
+
# Install groff for the ronn gem
|
61
|
+
sh "sudo apt-get install groff -y"
|
62
|
+
if RUBY_VERSION < '1.9'
|
63
|
+
# Downgrade Rubygems on 1.8 so Ronn can be required
|
64
|
+
# https://github.com/rubygems/rubygems/issues/784
|
65
|
+
sh "gem update --system 2.1.11"
|
66
|
+
else
|
67
|
+
# Downgrade Rubygems so RSpec 3 can be installed
|
68
|
+
# https://github.com/rubygems/rubygems/issues/813
|
69
|
+
sh "gem update --system 2.2.0"
|
70
|
+
end
|
71
|
+
# Install the other gem deps, etc.
|
72
|
+
Rake::Task["spec:deps"].invoke
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
begin
|
78
|
+
rspec = BUNDLER_SPEC.development_dependencies.find{|d| d.name == "rspec" }
|
79
|
+
gem 'rspec', rspec.requirement.to_s
|
80
|
+
require 'rspec/core/rake_task'
|
81
|
+
|
82
|
+
desc "Run specs"
|
83
|
+
RSpec::Core::RakeTask.new
|
84
|
+
task :spec => "man:build"
|
85
|
+
|
86
|
+
namespace :spec do
|
87
|
+
task :clean do
|
88
|
+
rm_rf 'tmp'
|
89
|
+
end
|
90
|
+
|
91
|
+
desc "Run the real-world spec suite (requires internet)"
|
92
|
+
task :realworld => ["set_realworld", "spec"]
|
93
|
+
|
94
|
+
task :set_realworld do
|
95
|
+
ENV['BUNDLER_REALWORLD_TESTS'] = '1'
|
96
|
+
end
|
97
|
+
|
98
|
+
desc "Run the spec suite with the sudo tests"
|
99
|
+
task :sudo => ["set_sudo", "spec", "clean_sudo"]
|
100
|
+
|
101
|
+
task :set_sudo do
|
102
|
+
ENV['BUNDLER_SUDO_TESTS'] = '1'
|
103
|
+
end
|
104
|
+
|
105
|
+
task :clean_sudo do
|
106
|
+
puts "Cleaning up sudo test files..."
|
107
|
+
system "sudo rm -rf #{File.expand_path('../tmp/sudo_gem_home', __FILE__)}"
|
108
|
+
end
|
109
|
+
|
110
|
+
# Rubygems specs by version
|
111
|
+
namespace :rubygems do
|
112
|
+
rubyopt = ENV["RUBYOPT"]
|
113
|
+
# When editing this list, also edit .travis.yml!
|
114
|
+
branches = %w(master 2.2)
|
115
|
+
releases = %w(v1.3.6 v1.3.7 v1.4.2 v1.5.3 v1.6.2 v1.7.2 v1.8.29 v2.0.14 v2.1.11 v2.2.2)
|
116
|
+
(branches + releases).each do |rg|
|
117
|
+
desc "Run specs with Rubygems #{rg}"
|
118
|
+
RSpec::Core::RakeTask.new(rg) do |t|
|
119
|
+
t.rspec_opts = %w(--format documentation --color)
|
120
|
+
t.ruby_opts = %w(-w)
|
121
|
+
end
|
122
|
+
|
123
|
+
# Create tasks like spec:rubygems:v1.8.3:sudo to run the sudo specs
|
124
|
+
namespace rg do
|
125
|
+
task :sudo => ["set_sudo", rg, "clean_sudo"]
|
126
|
+
task :realworld => ["set_realworld", rg]
|
127
|
+
end
|
128
|
+
|
129
|
+
task "clone_rubygems_#{rg}" do
|
130
|
+
unless File.directory?("tmp/rubygems")
|
131
|
+
system("git clone https://github.com/rubygems/rubygems.git tmp/rubygems")
|
132
|
+
end
|
133
|
+
hash = nil
|
134
|
+
|
135
|
+
Dir.chdir(RUBYGEMS_REPO) do
|
136
|
+
system("git remote update")
|
137
|
+
if rg == "master"
|
138
|
+
system("git checkout origin/master")
|
139
|
+
else
|
140
|
+
system("git checkout #{rg}") || raise("Unknown Rubygems ref #{rg}")
|
141
|
+
end
|
142
|
+
hash = `git rev-parse HEAD`.chomp
|
143
|
+
end
|
144
|
+
|
145
|
+
puts "Checked out rubygems '#{rg}' at #{hash}"
|
146
|
+
ENV["RUBYOPT"] = "-I#{File.expand_path("tmp/rubygems/lib")} #{rubyopt}"
|
147
|
+
puts "RUBYOPT=#{ENV['RUBYOPT']}"
|
148
|
+
end
|
149
|
+
|
150
|
+
task rg => ["man:build", "clone_rubygems_#{rg}"]
|
151
|
+
task "rubygems:all" => rg
|
152
|
+
end
|
153
|
+
|
154
|
+
desc "Run specs under a Rubygems checkout (set RG=path)"
|
155
|
+
RSpec::Core::RakeTask.new("co") do |t|
|
156
|
+
t.rspec_opts = %w(--format documentation --color)
|
157
|
+
t.ruby_opts = %w(-w)
|
158
|
+
end
|
159
|
+
|
160
|
+
task "setup_co" do
|
161
|
+
rg = File.expand_path ENV['RG']
|
162
|
+
puts "Running specs against Rubygems in #{rg}..."
|
163
|
+
ENV["RUBYOPT"] = "-I#{rg} #{rubyopt}"
|
164
|
+
end
|
165
|
+
|
166
|
+
task "co" => "setup_co"
|
167
|
+
task "rubygems:all" => "co"
|
168
|
+
end
|
169
|
+
|
170
|
+
desc "Run the tests on Travis CI against a rubygem version (using ENV['RGV'])"
|
171
|
+
task :travis do
|
172
|
+
rg = ENV['RGV'] || raise("Rubygems version is required on Travis!")
|
173
|
+
|
174
|
+
puts "\n\e[1;33m[Travis CI] Running bundler specs against rubygems #{rg}\e[m\n\n"
|
175
|
+
specs = safe_task { Rake::Task["spec:rubygems:#{rg}"].invoke }
|
176
|
+
|
177
|
+
Rake::Task["spec:rubygems:#{rg}"].reenable
|
178
|
+
|
179
|
+
puts "\n\e[1;33m[Travis CI] Running bundler sudo specs against rubygems #{rg}\e[m\n\n"
|
180
|
+
sudos = system("sudo -E rake spec:rubygems:#{rg}:sudo")
|
181
|
+
# clean up by chowning the newly root-owned tmp directory back to the travis user
|
182
|
+
system("sudo chown -R #{ENV['USER']} #{File.join(File.dirname(__FILE__), 'tmp')}")
|
183
|
+
|
184
|
+
Rake::Task["spec:rubygems:#{rg}"].reenable
|
185
|
+
|
186
|
+
puts "\n\e[1;33m[Travis CI] Running bundler real world specs against rubygems #{rg}\e[m\n\n"
|
187
|
+
realworld = safe_task { Rake::Task["spec:rubygems:#{rg}:realworld"].invoke }
|
188
|
+
|
189
|
+
{"specs" => specs, "sudo" => sudos, "realworld" => realworld}.each do |name, passed|
|
190
|
+
if passed
|
191
|
+
puts "\e[0;32m[Travis CI] #{name} passed\e[m"
|
192
|
+
else
|
193
|
+
puts "\e[0;31m[Travis CI] #{name} failed\e[m"
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
unless specs && sudos && realworld
|
198
|
+
fail "Spec run failed, please review the log for more information"
|
199
|
+
end
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
rescue LoadError
|
204
|
+
task :spec do
|
205
|
+
abort "Run `rake spec:deps` to be able to run the specs"
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
begin
|
210
|
+
require 'ronn'
|
211
|
+
|
212
|
+
namespace :man do
|
213
|
+
directory "lib/bundler/man"
|
214
|
+
|
215
|
+
Dir["man/*.ronn"].each do |ronn|
|
216
|
+
basename = File.basename(ronn, ".ronn")
|
217
|
+
roff = "lib/bundler/man/#{basename}"
|
218
|
+
|
219
|
+
file roff => ["lib/bundler/man", ronn] do
|
220
|
+
sh "#{Gem.ruby} -S ronn --roff --pipe #{ronn} > #{roff}"
|
221
|
+
end
|
222
|
+
|
223
|
+
file "#{roff}.txt" => roff do
|
224
|
+
sh "groff -Wall -mtty-char -mandoc -Tascii #{roff} | col -b > #{roff}.txt"
|
225
|
+
end
|
226
|
+
|
227
|
+
task :build_all_pages => "#{roff}.txt"
|
228
|
+
end
|
229
|
+
|
230
|
+
desc "Build the man pages"
|
231
|
+
task :build => "man:build_all_pages"
|
232
|
+
|
233
|
+
desc "Clean up from the built man pages"
|
234
|
+
task :clean do
|
235
|
+
rm_rf "lib/bundler/man"
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
rescue LoadError
|
240
|
+
namespace :man do
|
241
|
+
task(:build) { warn "Install the ronn gem to be able to release!" }
|
242
|
+
task(:clean) { warn "Install the ronn gem to be able to release!" }
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
desc "Update vendored SSL certs to match the certs vendored by Rubygems"
|
247
|
+
task :update_certs => "spec:rubygems:clone_rubygems_master" do
|
248
|
+
require 'bundler/ssl_certs/certificate_manager'
|
249
|
+
Bundler::SSLCerts::CertificateManager.update_from!(RUBYGEMS_REPO)
|
250
|
+
end
|
251
|
+
|
252
|
+
require 'bundler/gem_tasks'
|
253
|
+
task :build => ["man:clean", "man:build"]
|
254
|
+
task :release => ["man:clean", "man:build"]
|
255
|
+
|
256
|
+
task :default => :spec
|