bundler 1.15.1 → 1.17.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bundler might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/CHANGELOG.md +320 -0
- data/README.md +17 -8
- data/bundler.gemspec +25 -9
- data/exe/bundle +1 -6
- data/exe/bundle_ruby +4 -3
- data/lib/bundler/build_metadata.rb +53 -0
- data/lib/bundler/capistrano.rb +5 -0
- data/lib/bundler/cli/add.rb +15 -6
- data/lib/bundler/cli/binstubs.rb +17 -9
- data/lib/bundler/cli/cache.rb +5 -4
- data/lib/bundler/cli/check.rb +3 -5
- data/lib/bundler/cli/clean.rb +5 -6
- data/lib/bundler/cli/common.rb +11 -2
- data/lib/bundler/cli/config.rb +2 -1
- data/lib/bundler/cli/console.rb +2 -1
- data/lib/bundler/cli/doctor.rb +48 -1
- data/lib/bundler/cli/exec.rb +6 -5
- data/lib/bundler/cli/gem.rb +13 -8
- data/lib/bundler/cli/info.rb +0 -1
- data/lib/bundler/cli/init.rb +18 -6
- data/lib/bundler/cli/inject.rb +1 -0
- data/lib/bundler/cli/install.rb +64 -77
- data/lib/bundler/cli/issue.rb +1 -1
- data/lib/bundler/cli/list.rb +58 -0
- data/lib/bundler/cli/lock.rb +0 -1
- data/lib/bundler/cli/open.rb +2 -2
- data/lib/bundler/cli/outdated.rb +20 -9
- data/lib/bundler/cli/package.rb +9 -6
- data/lib/bundler/cli/platform.rb +1 -0
- data/lib/bundler/cli/plugin.rb +1 -0
- data/lib/bundler/cli/pristine.rb +20 -6
- data/lib/bundler/cli/remove.rb +18 -0
- data/lib/bundler/cli/show.rb +0 -1
- data/lib/bundler/cli/update.rb +35 -7
- data/lib/bundler/cli/viz.rb +4 -0
- data/lib/bundler/cli.rb +234 -90
- data/lib/bundler/compact_index_client/cache.rb +1 -2
- data/lib/bundler/compact_index_client/updater.rb +35 -7
- data/lib/bundler/compact_index_client.rb +1 -0
- data/lib/bundler/compatibility_guard.rb +14 -0
- data/lib/bundler/constants.rb +1 -0
- data/lib/bundler/current_ruby.rb +13 -5
- data/lib/bundler/definition.rb +192 -139
- data/lib/bundler/dep_proxy.rb +3 -1
- data/lib/bundler/dependency.rb +9 -9
- data/lib/bundler/deployment.rb +1 -1
- data/lib/bundler/deprecate.rb +15 -3
- data/lib/bundler/dsl.rb +115 -64
- data/lib/bundler/endpoint_specification.rb +10 -1
- data/lib/bundler/env.rb +90 -29
- data/lib/bundler/environment_preserver.rb +27 -6
- data/lib/bundler/errors.rb +1 -0
- data/lib/bundler/feature_flag.rb +46 -4
- data/lib/bundler/fetcher/base.rb +1 -0
- data/lib/bundler/fetcher/compact_index.rb +2 -11
- data/lib/bundler/fetcher/dependency.rb +2 -1
- data/lib/bundler/fetcher/downloader.rb +11 -5
- data/lib/bundler/fetcher/index.rb +3 -2
- data/lib/bundler/fetcher.rb +18 -11
- data/lib/bundler/friendly_errors.rb +6 -1
- data/lib/bundler/gem_helper.rb +19 -10
- data/lib/bundler/gem_helpers.rb +1 -0
- data/lib/bundler/gem_remote_fetcher.rb +1 -0
- data/lib/bundler/gem_tasks.rb +1 -0
- data/lib/bundler/gem_version_promoter.rb +17 -2
- data/lib/bundler/gemdeps.rb +1 -0
- data/lib/bundler/graph.rb +1 -0
- data/lib/bundler/index.rb +8 -8
- data/lib/bundler/injector.rb +192 -30
- data/lib/bundler/inline.rb +10 -10
- data/lib/bundler/installer/gem_installer.rb +12 -2
- data/lib/bundler/installer/parallel_installer.rb +78 -42
- data/lib/bundler/installer/standalone.rb +1 -0
- data/lib/bundler/installer.rb +138 -53
- data/lib/bundler/lazy_specification.rb +3 -2
- data/lib/bundler/lockfile_generator.rb +95 -0
- data/lib/bundler/lockfile_parser.rb +10 -4
- data/lib/bundler/match_platform.rb +1 -0
- data/lib/bundler/mirror.rb +8 -5
- data/lib/bundler/plugin/api/source.rb +9 -2
- data/lib/bundler/plugin/events.rb +61 -0
- data/lib/bundler/plugin/index.rb +7 -2
- data/lib/bundler/plugin/installer.rb +7 -6
- data/lib/bundler/plugin/source_list.rb +7 -8
- data/lib/bundler/plugin.rb +13 -5
- data/lib/bundler/process_lock.rb +24 -0
- data/lib/bundler/psyched_yaml.rb +10 -0
- data/lib/bundler/remote_specification.rb +10 -1
- data/lib/bundler/resolver/spec_group.rb +106 -0
- data/lib/bundler/resolver.rb +158 -195
- data/lib/bundler/retry.rb +1 -0
- data/lib/bundler/ruby_dsl.rb +1 -0
- data/lib/bundler/ruby_version.rb +2 -1
- data/lib/bundler/rubygems_ext.rb +5 -4
- data/lib/bundler/rubygems_gem_installer.rb +31 -1
- data/lib/bundler/rubygems_integration.rb +71 -32
- data/lib/bundler/runtime.rb +11 -9
- data/lib/bundler/settings/validator.rb +102 -0
- data/lib/bundler/settings.rb +213 -86
- data/lib/bundler/setup.rb +4 -7
- data/lib/bundler/shared_helpers.rb +131 -26
- data/lib/bundler/similarity_detector.rb +1 -0
- data/lib/bundler/source/gemspec.rb +1 -0
- data/lib/bundler/source/git/git_proxy.rb +21 -11
- data/lib/bundler/source/git.rb +24 -19
- data/lib/bundler/source/metadata.rb +62 -0
- data/lib/bundler/source/path/installer.rb +2 -0
- data/lib/bundler/source/path.rb +11 -7
- data/lib/bundler/source/rubygems/remote.rb +8 -2
- data/lib/bundler/source/rubygems.rb +161 -84
- data/lib/bundler/source.rb +36 -0
- data/lib/bundler/source_list.rb +75 -15
- data/lib/bundler/spec_set.rb +12 -6
- data/lib/bundler/ssl_certs/certificate_manager.rb +2 -1
- data/lib/bundler/stub_specification.rb +1 -0
- data/lib/bundler/templates/.document +1 -0
- data/lib/bundler/templates/Executable +12 -0
- data/lib/bundler/templates/Executable.bundler +105 -0
- data/lib/bundler/templates/Gemfile +3 -0
- data/lib/bundler/templates/gems.rb +8 -0
- data/lib/bundler/templates/newgem/Gemfile.tt +2 -0
- data/lib/bundler/templates/newgem/README.md.tt +1 -1
- data/lib/bundler/templates/newgem/gitignore.tt +0 -1
- data/lib/bundler/templates/newgem/lib/newgem.rb.tt +1 -0
- data/lib/bundler/templates/newgem/newgem.gemspec.tt +12 -3
- data/lib/bundler/templates/newgem/rspec.tt +1 -0
- data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -2
- data/lib/bundler/templates/newgem/{.travis.yml.tt → travis.yml.tt} +2 -0
- data/lib/bundler/ui/rg_proxy.rb +1 -0
- data/lib/bundler/ui/shell.rb +17 -4
- data/lib/bundler/ui/silent.rb +1 -0
- data/lib/bundler/ui.rb +1 -0
- data/lib/bundler/uri_credentials_filter.rb +1 -0
- data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1638 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +7 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +15 -4
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +3 -2
- data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +75 -7
- data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +2 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +3 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +491 -148
- data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +8 -4
- data/lib/bundler/vendor/molinillo/lib/molinillo.rb +2 -0
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +3 -1
- data/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +1 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +1 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +9 -1
- data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +45 -8
- data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +9 -3
- data/lib/bundler/vendor/thor/lib/thor/actions.rb +6 -3
- data/lib/bundler/vendor/thor/lib/thor/base.rb +27 -4
- data/lib/bundler/vendor/thor/lib/thor/command.rb +9 -7
- data/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +12 -0
- data/lib/bundler/vendor/thor/lib/thor/group.rb +1 -1
- data/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +2 -0
- data/lib/bundler/vendor/thor/lib/thor/parser/option.rb +5 -5
- data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +6 -5
- data/lib/bundler/vendor/thor/lib/thor/runner.rb +6 -4
- data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +10 -9
- data/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
- data/lib/bundler/vendor/thor/lib/thor.rb +25 -8
- data/lib/bundler/vendored_fileutils.rb +9 -0
- data/lib/bundler/vendored_molinillo.rb +1 -0
- data/lib/bundler/vendored_persistent.rb +35 -0
- data/lib/bundler/vendored_thor.rb +1 -0
- data/lib/bundler/version.rb +6 -2
- data/lib/bundler/version_ranges.rb +1 -0
- data/lib/bundler/vlad.rb +5 -0
- data/lib/bundler/worker.rb +1 -0
- data/lib/bundler/yaml_serializer.rb +3 -3
- data/lib/bundler.rb +86 -52
- data/man/bundle-add.1 +18 -3
- data/man/bundle-add.1.txt +26 -14
- data/man/bundle-add.ronn +13 -2
- data/man/bundle-binstubs.1 +11 -1
- data/man/bundle-binstubs.1.txt +33 -18
- data/man/bundle-binstubs.ronn +15 -1
- data/man/bundle-check.1 +4 -4
- data/man/bundle-check.1.txt +15 -14
- data/man/bundle-check.ronn +3 -3
- data/man/bundle-clean.1 +1 -1
- data/man/bundle-clean.1.txt +10 -10
- data/man/bundle-config.1 +129 -29
- data/man/bundle-config.1.txt +285 -174
- data/man/bundle-config.ronn +167 -88
- data/man/bundle-doctor.1 +44 -0
- data/man/bundle-doctor.1.txt +44 -0
- data/man/bundle-doctor.ronn +33 -0
- data/man/bundle-exec.1 +6 -3
- data/man/bundle-exec.1.txt +78 -71
- data/man/bundle-exec.ronn +10 -3
- data/man/bundle-gem.1 +4 -4
- data/man/bundle-gem.1.txt +41 -40
- data/man/bundle-gem.ronn +3 -2
- data/man/bundle-info.1 +1 -1
- data/man/bundle-info.1.txt +8 -8
- data/man/bundle-init.1 +9 -4
- data/man/bundle-init.1.txt +23 -13
- data/man/bundle-init.ronn +15 -4
- data/man/bundle-inject.1 +4 -4
- data/man/bundle-inject.1.txt +10 -10
- data/man/bundle-inject.ronn +3 -3
- data/man/bundle-install.1 +31 -28
- data/man/bundle-install.1.txt +205 -194
- data/man/bundle-install.ronn +44 -35
- data/man/bundle-list.1 +50 -0
- data/man/bundle-list.1.txt +43 -0
- data/man/bundle-list.ronn +33 -0
- data/man/bundle-lock.1 +1 -1
- data/man/bundle-lock.1.txt +47 -47
- data/man/bundle-lock.ronn +1 -1
- data/man/bundle-open.1 +1 -1
- data/man/bundle-open.1.txt +7 -7
- data/man/bundle-outdated.1 +7 -3
- data/man/bundle-outdated.1.txt +40 -36
- data/man/bundle-outdated.ronn +6 -2
- data/man/bundle-package.1 +6 -3
- data/man/bundle-package.1.txt +44 -39
- data/man/bundle-package.ronn +7 -2
- data/man/bundle-platform.1 +1 -1
- data/man/bundle-platform.1.txt +13 -13
- data/man/bundle-pristine.1 +21 -3
- data/man/bundle-pristine.1.txt +33 -10
- data/man/bundle-pristine.ronn +24 -3
- data/man/bundle-remove.1 +31 -0
- data/man/bundle-remove.1.txt +34 -0
- data/man/bundle-remove.ronn +23 -0
- data/man/bundle-show.1 +3 -3
- data/man/bundle-show.1.txt +14 -12
- data/man/bundle-show.ronn +3 -2
- data/man/bundle-update.1 +13 -9
- data/man/bundle-update.1.txt +133 -130
- data/man/bundle-update.ronn +21 -17
- data/man/bundle-viz.1 +7 -7
- data/man/bundle-viz.1.txt +17 -15
- data/man/bundle-viz.ronn +6 -6
- data/man/bundle.1 +31 -32
- data/man/bundle.1.txt +63 -75
- data/man/bundle.ronn +35 -47
- data/man/gemfile.5 +44 -8
- data/man/gemfile.5.ronn +54 -8
- data/man/gemfile.5.txt +218 -165
- data/man/index.txt +25 -15
- metadata +36 -44
- data/.codeclimate.yml +0 -25
- data/.gitignore +0 -18
- data/.rspec +0 -3
- data/.rubocop.yml +0 -131
- data/.rubocop_todo.yml +0 -418
- data/.travis.yml +0 -122
- data/CODE_OF_CONDUCT.md +0 -42
- data/CONTRIBUTING.md +0 -17
- data/Rakefile +0 -346
- data/bin/rake +0 -19
- data/bin/rspec +0 -15
- data/bin/rubocop +0 -17
- data/bin/with_rubygems +0 -39
- data/doc/README.md +0 -30
- data/doc/TROUBLESHOOTING.md +0 -64
- data/doc/contributing/BUG_TRIAGE.md +0 -36
- data/doc/contributing/COMMUNITY.md +0 -13
- data/doc/contributing/GETTING_HELP.md +0 -11
- data/doc/contributing/HOW_YOU_CAN_HELP.md +0 -27
- data/doc/contributing/ISSUES.md +0 -51
- data/doc/contributing/README.md +0 -38
- data/doc/development/NEW_FEATURES.md +0 -10
- data/doc/development/PULL_REQUESTS.md +0 -40
- data/doc/development/README.md +0 -19
- data/doc/development/RELEASING.md +0 -9
- data/doc/development/SETUP.md +0 -29
- data/doc/documentation/README.md +0 -29
- data/doc/documentation/VISION.md +0 -26
- data/doc/documentation/WRITING.md +0 -54
- data/lib/bundler/postit_trampoline.rb +0 -73
- data/lib/bundler/vendor/postit/lib/postit/environment.rb +0 -44
- data/lib/bundler/vendor/postit/lib/postit/installer.rb +0 -28
- data/lib/bundler/vendor/postit/lib/postit/parser.rb +0 -21
- data/lib/bundler/vendor/postit/lib/postit/setup.rb +0 -12
- data/lib/bundler/vendor/postit/lib/postit/version.rb +0 -3
- data/lib/bundler/vendor/postit/lib/postit.rb +0 -15
- data/task/release.rake +0 -116
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 57be2a031c802a256fffbddca6f7cac7814f550ba22a5228ca4d69ffc6219ca0
|
4
|
+
data.tar.gz: f1928fbdadc8b1e2dbbedfb9361a7afed83b8d51b5fea407c5bef0857f93fd03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08986fab1b004158cb55a6f0ef41e4a17e4b85561a97b24e85a731056af327f801e1d105915e6760e99b4b006da7f9a3c79b388d3ca998d2d12492e9accf7ad6'
|
7
|
+
data.tar.gz: fb07fcd0f42267952e5ce1a929825b7c1d7e42cd489f025a03a3a8846616bcd60bb477d12e437206dbb188f4e7c575fc6d0e6f89ab8adaf1bb6b01e91739fe21
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,323 @@
|
|
1
|
+
## 1.17.3 (2018-12-27)
|
2
|
+
|
3
|
+
Bugfixes:
|
4
|
+
|
5
|
+
- Fix a Bundler error when installing gems on old versions of RubyGems ([#6839](https://github.com/bundler/bundler/issues/6839), @colby-swandale)
|
6
|
+
- Fix a rare issue where Bundler was removing itself after a `bundle clean` ([#6829](https://github.com/bundler/bundler/issues/6829), @colby-swandale)
|
7
|
+
|
8
|
+
Documentation:
|
9
|
+
|
10
|
+
- Add entry for the `bundle remove` command to the main Bundler manual page
|
11
|
+
|
12
|
+
## 1.17.2 (2018-12-11)
|
13
|
+
|
14
|
+
- Add compatibility for bundler merge with Ruby 2.6
|
15
|
+
|
16
|
+
## 1.17.1 (2018-10-25)
|
17
|
+
|
18
|
+
- Convert `Pathname`s to `String`s before sorting them, fixing #6760 and #6758 ([#6761](https://github.com/bundler/bundler/pull/6761), @alexggordon)
|
19
|
+
|
20
|
+
## 1.17.0 (2018-10-25)
|
21
|
+
|
22
|
+
No new changes.
|
23
|
+
|
24
|
+
## 1.17.0.pre.2 (2018-10-13)
|
25
|
+
|
26
|
+
Features:
|
27
|
+
|
28
|
+
- Configure Bundler home, cache, config and plugin directories with `BUNDLE_USER_HOME`, `BUNDLE_USER_CACHE`, `BUNDLE_USER_CONFIG` and `BUNDLE_USER_PLUGIN` env vars ([#4333](https://github.com/bundler/bundler/issues/4333), @gwerbin)
|
29
|
+
- Add `--all` option to `bundle binstubs` that will generate an executable file for all gems with commands in the bundle
|
30
|
+
- Add `bundle remove` command to remove gems from the Gemfile via the CLI
|
31
|
+
- Improve checking file permissions and asking for `sudo` in Bundler when it doesn't need to
|
32
|
+
- Add error message to `bundle add` to check adding duplicate gems to the Gemfile
|
33
|
+
- When asking for `sudo`, Bundler will show a list of folders/files that require elevated permissions to write to.
|
34
|
+
|
35
|
+
The following new features are available but are not enabled by default. These are intended to be tested by users for the upcoming release of Bundler 2.
|
36
|
+
|
37
|
+
- Improve deprecation warning message for `bundle show` command
|
38
|
+
- Improve deprecation warning message for the `--force` option in `bundle install`
|
39
|
+
|
40
|
+
## 1.17.0.pre.1 (2018-09-24)
|
41
|
+
|
42
|
+
Features:
|
43
|
+
|
44
|
+
- Check folder/file permissions of the Bundle home directory in the `bundle doctor` command ([#5786](https://github.com/bundler/bundler/issues/5786), @ajwann)
|
45
|
+
- Remove compiled gem extensions when running `bundle clean` ([#5596](https://github.com/bundler/bundler/issues/5596), @akhramov)
|
46
|
+
- Add `--paths` option to `bundle list` command ([#6172](https://github.com/bundler/bundler/issues/6172), @colby-swandale)
|
47
|
+
- Add base error class to gems generated from `bundle gem` ([#6260](https://github.com/bundler/bundler/issues/6260), @christhekeele)
|
48
|
+
- Correctly re-install gem extensions with a git source when running `bundle pristine` ([#6294](https://github.com/bundler/bundler/issues/6294), @wagenet)
|
49
|
+
- Add config option to disable platform warnings ([#6124](https://github.com/bundler/bundler/issues/6124), @agrim123)
|
50
|
+
- Add `--skip-install` option to `bundle add` command to add gems to the Gemfile without installation ([#6511](https://github.com/bundler/bundler/issues/6511), @agrim123)
|
51
|
+
- Add `--only-explicit` option to `bundle outdated` to list only outdated gems in the Gemfile ([#5366](https://github.com/bundler/bundler/issues/5366), @peret)
|
52
|
+
- Support adding multiple gems to the Gemfile with `bundle add` ([#6543](https://github.com/bundler/bundler/issues/6543), @agrim123)
|
53
|
+
- Make registered plugin events easier to manage in the Plugin API (@jules2689)
|
54
|
+
- Add new gem install hooks to the Plugin API (@jules2689)
|
55
|
+
- Add `--optimistic` and `--strict` options to `bundle add` ([#6553](https://github.com/bundler/bundler/issues/6553), @agrim123)
|
56
|
+
- Add `--without-group` and `--only-group` options to `bundle list` ([#6564](https://github.com/bundler/bundler/issues/6564), @agrim123)
|
57
|
+
- Add `--gemfile` option to the `bundle exec` command ([#5924](https://github.com/bundler/bundler/issues/5924), @ankitkataria)
|
58
|
+
|
59
|
+
The following new features are available but are not enabled by default. These are intended to be tested by users for the upcoming release of Bundler 2.
|
60
|
+
|
61
|
+
- Make `install --path` relative to the current working directory ([#2048](https://github.com/bundler/bundler/issues/2048), @igorbozato)
|
62
|
+
- Auto-configure job count ([#5808](https://github.com/bundler/bundler/issues/5808), @segiddins)
|
63
|
+
- Use the Gem Version Promoter for major gem updates ([#5993](https://github.com/bundler/bundler/issues/5993), @segiddins)
|
64
|
+
- Add config option to add the Ruby scope to `bundle config path` when configured globally (@segiddins)
|
65
|
+
|
66
|
+
## 1.16.6 (2018-10-05)
|
67
|
+
|
68
|
+
Changes:
|
69
|
+
|
70
|
+
- Add an error message when adding a gem with `bundle add` that's already in the bundle ([#6341](https://github.com/bundler/bundler/issues/6341), @agrim123)
|
71
|
+
- Add Homepage, Source Code and Chanagelog URI metadata fields to the `bundle gem` gemspec template (@walf443)
|
72
|
+
|
73
|
+
Bugfixes:
|
74
|
+
|
75
|
+
- Fix issue where updating a gem resulted in the gem's version being downgraded when `BUNDLE_ONLY_UPDATE_TO_NEWER_VERSIONS` was set ([#6529](https://github.com/bundler/bundler/issues/6529), @theflow)
|
76
|
+
- Fix some rescue calls that don't specifiy error type (@utilum)
|
77
|
+
- Fix an issue when the Lockfile would contain platform-specific gems that it didn't need ([#6491](https://github.com/bundler/bundler/issues/6491), @segiddins)
|
78
|
+
- Improve handlding of adding new gems with only a single group to the Gemfile in `bundle add` (@agrim123)
|
79
|
+
- Refactor check for OpenSSL in `bundle env` (@voxik)
|
80
|
+
- Remove an unnecessary assignment in Metadata (@voxik)
|
81
|
+
|
82
|
+
Documentation:
|
83
|
+
|
84
|
+
- Update docs to reflect revised guidance to check in Gemfile.lock into version control for gems ([#5879](https://github.com/bundler/bundler/issues/5879), @arbonap)
|
85
|
+
- Add documentation for the `--all` flag in `bundle update` (@agrim123)
|
86
|
+
- Update README to use `bundle add` in usage examples (@hdf1986)
|
87
|
+
|
88
|
+
## 1.16.5 (2018-09-18)
|
89
|
+
|
90
|
+
Changes:
|
91
|
+
|
92
|
+
- Add support for TruffleRuby (@eregon)
|
93
|
+
|
94
|
+
Bugfixes:
|
95
|
+
|
96
|
+
- Avoid printing git errors when checking the version on incorrectly packaged versions of Bundler ([#6453](https://github.com/bundler/bundler/issues/6453), @greysteil)
|
97
|
+
- Fix issue where Bundler does not check the given class when comparing equality in DepProxy (@ChrisBr)
|
98
|
+
- Handle `RangeNotSatisfiable` error in Compact Index (@MaxLap)
|
99
|
+
- Check for initialized `search` variable in `LazySpecification` (@voxik)
|
100
|
+
- Fix LoadError occurring in nested bundle exec calls ([#6537](https://github.com/bundler/bundler/issues/6537), @colby-swandale)
|
101
|
+
- Check that Bundler::Deprecate is not an autoload constant ([#6163](https://github.com/bundler/bundler/issues/6163), @eregon)
|
102
|
+
- Prefer non-pre-release versions when performing a `bundle update --patch` ([#6684](https://github.com/bundler/bundler/issues/6684), @segiddins)
|
103
|
+
|
104
|
+
## 1.16.4 (2018-08-17)
|
105
|
+
|
106
|
+
Changes:
|
107
|
+
|
108
|
+
- Welcome new members to the Bundler core team (@indirect)
|
109
|
+
- Don't mutate original error trees when determining version_conflict_message (@greysteil)
|
110
|
+
- Update vendored Molinillo to 0.6.6 (@segiddins)
|
111
|
+
|
112
|
+
Bugfixes:
|
113
|
+
|
114
|
+
- Reword bundle update regression message to be more clear to the user when a gem's version is downgraded ([#6584](https://github.com/bundler/bundler/issues/6584), @ralphbolo)
|
115
|
+
- Respect --conservative flag when updating a dependency group ([#6560](https://github.com/bundler/bundler/issues/6560), @greysteil)
|
116
|
+
- Fix issue where a pre-release version was not being selected when it's specified in the Gemfile ([#6449](https://github.com/bundler/bundler/issues/6449), @akihiro17)
|
117
|
+
- Fix issue where `Etc` was not loaded when getting the user's home dir ([#6640](https://github.com/bundler/bundler/issues/6640), @colby-swandale)
|
118
|
+
- Use UTF-8 for reading files including Gemfile ([#6660](https://github.com/bundler/bundler/issues/6660), @eregon)
|
119
|
+
- Remove unnecessary `while` loop in path resolver helper (@ojab)
|
120
|
+
|
121
|
+
Documentation:
|
122
|
+
|
123
|
+
- Document that `bundle show [--paths]` sorts results by name (@kemitchell)
|
124
|
+
|
125
|
+
## 1.16.3 (2018-07-17)
|
126
|
+
|
127
|
+
Features:
|
128
|
+
|
129
|
+
- Support URI::File of Ruby 2.6 (@hsbt)
|
130
|
+
|
131
|
+
Bugfixes:
|
132
|
+
|
133
|
+
- Expand symlinks during setup to allow Bundler to load correctly when using symlinks in $GEM_HOME ([#6465](https://github.com/bundler/bundler/issues/6465), @ojab, @indirect)
|
134
|
+
- Dont let Bundler create temporary folders for gem installs which are owned by root ([#6258](https://github.com/bundler/bundler/issues/6258), @colby-swandale)
|
135
|
+
- Don't fallback to using temporary directories when needed directories already exist ([#6546](https://github.com/bundler/bundler/issues/6546), @brodock)
|
136
|
+
- Use SharedHelpers.filesystem_access when reading a Gemfile so friendly error messages can be given to the user ([#6541](https://github.com/bundler/bundler/issues/6541), @segiddins)
|
137
|
+
- Check if source responds to `#remotes` before printing gem install error message ([#6211](https://github.com/bundler/bundler/issues/6211), @colby-swandale)
|
138
|
+
- Handle Errno::ENOTSUP in the Bundler Process Lock to prevent exceptions when using NFS mounts ([#6566](https://github.com/bundler/bundler/issues/6566), @colby-swandale)
|
139
|
+
- Respect encodings when reading gemspecs ([#6598](https://github.com/bundler/bundler/issues/6598), @deivid-rodriguez)
|
140
|
+
|
141
|
+
Documentation:
|
142
|
+
|
143
|
+
- Fix links between manual pages (@BanzaiMan)
|
144
|
+
- Add warning to Gemfile documentation for the use of the `source` option when declaring gems ([#6280](https://github.com/bundler/bundler/issues/6280), @forestgagnon)
|
145
|
+
|
146
|
+
## 1.16.2 (2018-04-20)
|
147
|
+
|
148
|
+
Changes:
|
149
|
+
|
150
|
+
- Include the gem's source in the gem install error message when available (@papanikge)
|
151
|
+
- Remove unnecessary executable bit from gem template (@voxik)
|
152
|
+
- Dont add the timestamp comment with gems added to the Gemfile via `bundle add` ([#6193](https://github.com/bundler/bundler/issues/6193), @cpgo)
|
153
|
+
- Improve yanked gem error message (@alyssais)
|
154
|
+
- Use `Bundler.rubygems.inflate` instead of the Gem::Util method directly (@segiddins)
|
155
|
+
- Remove unused instance variable (@segiddins)
|
156
|
+
|
157
|
+
Bugfixes:
|
158
|
+
|
159
|
+
- Only trap INT signal and have Ruby's signal default handler be invoked (@shayonj)
|
160
|
+
- Fix warning about the use of `__FILE__` in RubyGems integration testing (@MSP-Greg)
|
161
|
+
- Skip the outdated bundler check when MD5 is not available ([#6032](https://github.com/bundler/bundler/issues/6032), @segiddins)
|
162
|
+
- Fallback to the original error if the friendly message raises (@segiddins)
|
163
|
+
- Rename Bundler.frozen? to avoid Object method conflict ([#6252](https://github.com/bundler/bundler/issues/6252), @segiddins)
|
164
|
+
- Ensure the bindir exists before installing gems (@segiddins)
|
165
|
+
- Handle gzip corruption errors in the compact index client ([#6261](https://github.com/bundler/bundler/issues/6261), @colby-swandale)
|
166
|
+
- Check if the current directory is writeable when writing files in `bundle gem` ([#6219](https://github.com/bundler/bundler/issues/6219), @nilsding)
|
167
|
+
- Fix hang when gemspec has incompatible encoding (@deivid-rodriguez)
|
168
|
+
- Gracefully handle when the lockfile is missing spec entries for the current platform ([#6079](https://github.com/bundler/bundler/issues/6079), @segiddins)
|
169
|
+
- Use Gem::Util.inflate instead of Gem.inflate (@hsbt)
|
170
|
+
- Update binstub generator to use new ERB.new arity in Ruby 2.6 (@koic)
|
171
|
+
- Fix `source_location` call in rubygems integration (@MSP-Greg)
|
172
|
+
- Use `filesystem_access` when copying files in Compact Index Updater ([#6289](https://github.com/bundler/bundler/issues/6289), @segiddins)
|
173
|
+
- Fail gracefully when resetting git gems to the given revision fails ([#6324](https://github.com/bundler/bundler/issues/6324), @segiddins)
|
174
|
+
- Handle exceptions that do not have a backtrace ([#6342](https://github.com/bundler/bundler/issues/6342), @nesaulov)
|
175
|
+
- Check if stderr was closed before writing to it (@shime)
|
176
|
+
- Handle updating a specific gem for a non-local platform ([#6350](https://github.com/bundler/bundler/issues/6350), @greysteil)
|
177
|
+
- Bump the `bundle_binstub` check-length to 300 characters (@tduffield)
|
178
|
+
- Fix specifying alterntive Lockfile with `bundle lock` when default gemfile is present ([#6460](https://github.com/bundler/bundler/issues/6460), @agrim123)
|
179
|
+
- Allow installing dependencies when the path is set to `.` ([#6475](https://github.com/bundler/bundler/issues/6475), @segiddins)
|
180
|
+
- Support Bundler installing on a readonly filesystem without a home directory ([#6461](https://github.com/bundler/bundler/issues/6461), @grosser)
|
181
|
+
- Filter git uri credentials in source description (@segiddins)
|
182
|
+
|
183
|
+
Documentation:
|
184
|
+
|
185
|
+
- Correct typos in `bundle binstubs` man page (@erikj, @samueloph)
|
186
|
+
- Update links in `bundle gem` command documentation to use https (@KrauseFx)
|
187
|
+
- Fix broken links between bundler man pages (@segiddins)
|
188
|
+
- Add man page for the `bundle doctor` command ([#6243](https://github.com/bundler/bundler/issues/6243), @nholden)
|
189
|
+
- Document `# frozen_string_literal` in `bundle init` Gemfile (@315tky)
|
190
|
+
- Explain the gemspec files attribute in `bundle gem` template and print a link to bundler.io guides when running `bundle gem` ([#6246](https://github.com/bundler/bundler/issues/6246), @nesaulov)
|
191
|
+
- Small copy tweaks & removed redundant phrasing in the bundler man page (@rubymorillo)
|
192
|
+
- Improve the documentation of the settings load order in Bundler (@rubymorillo)
|
193
|
+
- Added license info to main README (@rubymorillo)
|
194
|
+
- Document parameters and return value of Injector#inject (@tobias-grasse)
|
195
|
+
|
196
|
+
## 1.16.1 (2017-12-12)
|
197
|
+
|
198
|
+
Bugfixes:
|
199
|
+
|
200
|
+
- avoid hanging on complex resolver errors ([#6114](https://github.com/bundler/bundler/issues/6114), @halfbyte)
|
201
|
+
- avoid an error when running `bundle update --group` ([#6156](https://github.com/bundler/bundler/issues/6156), @mattbrictson)
|
202
|
+
- ensure the resolver prefers non-pre-release gems when possible ([#6181](https://github.com/bundler/bundler/issues/6181), @greysteil)
|
203
|
+
- include bundler's gemspec in the built gem ([#6165](https://github.com/bundler/bundler/issues/6165), @dr-itz)
|
204
|
+
- ensure locally installed specs are not overriden by those in remote sources during dependency resolution ([#6072](https://github.com/bundler/bundler/issues/6072), @indirect)
|
205
|
+
- ensure custom gemfiles are respected in generated binstubs (@pftg)
|
206
|
+
- fail gracefully when loading a bundler-generated binstub when `bin/bundle` was not generated by bundler ([#6149](https://github.com/bundler/bundler/issues/6149), @hsbt)
|
207
|
+
- allow `bundle init` to be run even when a parent directory contains a gemfile ([#6205](https://github.com/bundler/bundler/issues/6205), @colby-swandale)
|
208
|
+
|
209
|
+
## 1.16.0 (2017-10-31)
|
210
|
+
|
211
|
+
Bugfixes:
|
212
|
+
|
213
|
+
- avoid new RubyGems warning about unsafe YAML loading (to keep output consistent) (@segiddins)
|
214
|
+
- load digest subclasses in a thread-safe manner (@segiddins, @colby-swandale)
|
215
|
+
- avoid unusued variable warnings under ruby 2.5 (@amatsuda)
|
216
|
+
- fix printing the same message twice in verbose mode ([#6028](https://github.com/bundler/bundler/issues/6028), @akhramov)
|
217
|
+
- allow `SignalException`s to bubble up to the interpreter during `bundle exec` ([#6090](https://github.com/bundler/bundler/issues/6090), @dekellum)
|
218
|
+
- avoid activating stdlib digest under Ruby 2.5 (@segiddins)
|
219
|
+
- prioritise explicitly requested gems in dependency resolution sort order (@segiddins)
|
220
|
+
- reduce memory usage during dependency resolution ([#6114](https://github.com/bundler/bundler/issues/6114), @greysteil)
|
221
|
+
- ensure that the default bundler gem is not accidentally activated on ruby 2.5 when using local git overrides (@segiddins)
|
222
|
+
|
223
|
+
## 1.16.0.pre.3 (2017-10-04)
|
224
|
+
|
225
|
+
Features:
|
226
|
+
|
227
|
+
- the output from `bundle env` includes more information, particularly both the compiled & loaded versions of OpenSSL (@indirect)
|
228
|
+
|
229
|
+
Bugfixes:
|
230
|
+
|
231
|
+
- fix a bug where installing on FreeBSD would accidentally raise an error (#6013, @olleolleolle)
|
232
|
+
- fix a regression in 1.16 where pre-release gems could accidentally be resolved even when the gemfile contained no pre-release requirements (@greysteil)
|
233
|
+
- bundler will avoid making unnecessary network requests to fetch dependency data, fixing a regression introduced in 1.16 (@segiddins)
|
234
|
+
- the outdated bundler version message is disabled by default until the message has been fine-tuned (#6004, @segiddins)
|
235
|
+
|
236
|
+
## 1.16.0.pre.2 (2017-09-06)
|
237
|
+
|
238
|
+
Bugfixes:
|
239
|
+
|
240
|
+
- handle when a connection is missing a socket when warning about OpenSSL version (@greysteil)
|
241
|
+
- the description for the `rake release` task now reflects `$RUBYGEMS_HOST` (@wadetandy)
|
242
|
+
- fix a bug where `bundle update` would regress transitive dependencies (@greysteil)
|
243
|
+
|
244
|
+
## 1.16.0.pre.1 (2017-09-04)
|
245
|
+
|
246
|
+
Features:
|
247
|
+
|
248
|
+
- allow using non-branch symbolic refs in a git source (#4845, @segiddins)
|
249
|
+
- allow absolute paths in the `cache path` setting (#5627, @mal)
|
250
|
+
- gems created via `bundle gem` with rspec have `--require spec_helper` in their `.rspec` file (@koic)
|
251
|
+
- `bundle env` includes `Gem.ruby` and the `bundle` binstub shebang when they don't match (#5616, @segiddins)
|
252
|
+
- allow passing gem names to `bundle pristine` (@segiddins)
|
253
|
+
- `bundle version` and `bundle env` include the commit and build date for the bundler gem (#5049, @segiddins)
|
254
|
+
- add the `--shebang` option to `bundle binstubs` (#4070, @segiddins, @Zorbash)
|
255
|
+
- gemfiles are `eval`ed one fewer time when running `bundle install` (#4952, #3096, #4417, @segiddins)
|
256
|
+
- the `fileutils` gem is now vendored so different versions of the gem can be activated (@segiddins)
|
257
|
+
- speed up no-op installations (#5842, @segiddins)
|
258
|
+
- default to keeping the lockfile in the default gem template (@deivid-rodriguez)
|
259
|
+
- add a special bundler binstub that ensures the correct version of bundler is activated (#5876, @segiddins)
|
260
|
+
- speed up dependency resolution and ensure that all resolvable gemfiles can be installed (@segiddins, @greysteil)
|
261
|
+
- add a `bundle list` command that prints the gems in use (#4754, @colby-swandale)
|
262
|
+
- allow adding credentials to a gem source during deployment when `allow_deployment_source_credential_changes` is set (@adrian-gomez)
|
263
|
+
- making an outdated (and insecure) TLS connection to rubygems.org will print a warning (@segiddins)
|
264
|
+
|
265
|
+
Bugfixes:
|
266
|
+
|
267
|
+
- allow configuring a mirror fallback timeout without a trailing slash (#4830, @segiddins)
|
268
|
+
- fix handling of mirrors for file: urls that contain upper-case characters (@segiddins)
|
269
|
+
- list the correct gem host for `rake release` when `allowed_push_host` has been set (@mdeering)
|
270
|
+
- ensure `Bundler.original_env` preserves all env keys that bundler sets (#5700, @segiddins)
|
271
|
+
- ensure `bundle pristine` removes files added to a git gem (@segiddins)
|
272
|
+
- load plugin files from path gems before gem installation (#5429, @segiddins)
|
273
|
+
- ensure gems containing manpages are properly set up (#5730, @segiddins)
|
274
|
+
- avoid fetching remote specs when all effected gems are in groups that are not being installed (@segiddins)
|
275
|
+
- allow `BUNDLE_GEMFILE` to be a relative path (#5712, @gxespino)
|
276
|
+
- show a more helpful error message when a gem fails to install due to a corrupted lockfile (#5846, @segiddins)
|
277
|
+
- add a process lock to allow multiple concurrent `bundle install`s (#5851, @stefansedich)
|
278
|
+
- ensure that specifications always return an array for `#extensions` (@greysteil)
|
279
|
+
- print a helpful error message when using a gem in the Gemfile with an empty name (@colby-swandale)
|
280
|
+
- ensure that all gemfiles are included in `bundle env` (@segiddins)
|
281
|
+
- use ssl client cert and ca cert settings from gem configuration as fallbacks (@stan3)
|
282
|
+
- avoid global namespace pollution when loading gems (#5958, @shyouhei)
|
283
|
+
- avoid running a complete re-resolve on `bundle update --bundler` (@segiddins)
|
284
|
+
- allow `bundle binstubs --standalone` to work without `path` being set (@colby-swandale)
|
285
|
+
- fix support for bundle paths that include jars or wars on jruby (#5975, @torcido)
|
286
|
+
|
287
|
+
## 1.15.4 (2017-08-19)
|
288
|
+
|
289
|
+
Bugfixes:
|
290
|
+
|
291
|
+
- handle file conflicts gracefully in `bundle gem` (@rafaelfranca, @segiddins)
|
292
|
+
- bundler will fail gracefully when the bundle path contains the system path separator (#5485, ajwann)
|
293
|
+
- failed gem downloads will be retried consistently across different RubyGems versions (@shayonj)
|
294
|
+
- `bundle pristine` will respect build options while re-building native extensions (@NickLaMuro)
|
295
|
+
|
296
|
+
## 1.15.3 (2017-07-21)
|
297
|
+
|
298
|
+
Bugfixes:
|
299
|
+
|
300
|
+
- ensure that empty strings passed to `bundle config` are serialized & parsed properly (#5881, @segiddins)
|
301
|
+
- avoid printing an outdated version warning when running a parseable command (@segiddins)
|
302
|
+
|
303
|
+
## 1.15.2 (2017-07-17)
|
304
|
+
|
305
|
+
Features:
|
306
|
+
|
307
|
+
- new gemfiles created by bundler will include an explicit `github` git source that uses `https` (@segiddins)
|
308
|
+
|
309
|
+
Bugfixes:
|
310
|
+
|
311
|
+
- inline gemfiles work when `BUNDLE_BIN` is set (#5847, @segiddins)
|
312
|
+
- avoid using the old dependency API when there are no changes to the compact index files (#5373, @greysteil)
|
313
|
+
- fail gracefully when the full index serves gemspecs with invalid dependencies (#5797, @segiddins)
|
314
|
+
- support installing gemfiles that use `eval_gemfile`, `:path` gems with relative paths, and `--deployment` simultaneously (@NickLaMuro)
|
315
|
+
- `bundle config` will print settings as the type they are interpreted as (@segiddins)
|
316
|
+
- respect the `no_proxy` environment variable when making network requests (#5781, @jakauppila)
|
317
|
+
- commands invoked with `--verbose` will not have default flags printed (@segiddins)
|
318
|
+
- allow `bundle viz` to work when another gem has a requirable `grapviz` file (#5707, @segiddins)
|
319
|
+
- ensure bundler puts activated gems on the `$LOAD_PATH` in a consistent order (#5696, @segiddins)
|
320
|
+
|
1
321
|
## 1.15.1 (2017-06-02)
|
2
322
|
|
3
323
|
Bugfixes:
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
[![Build Status](https://img.shields.io/travis/bundler/bundler/master.svg?style=flat)](https://travis-ci.org/bundler/bundler)
|
3
3
|
[![Code Climate](https://img.shields.io/codeclimate/github/bundler/bundler.svg?style=flat)](https://codeclimate.com/github/bundler/bundler)
|
4
4
|
[![Inline docs ](http://inch-ci.org/github/bundler/bundler.svg?style=flat)](http://inch-ci.org/github/bundler/bundler)
|
5
|
+
[![Slack ](http://bundler-slackin.herokuapp.com/badge.svg)](http://bundler-slackin.herokuapp.com)
|
5
6
|
|
6
7
|
# Bundler: a gem to bundle gems
|
7
8
|
|
@@ -11,17 +12,19 @@ It does this by managing the gems that the application depends on. Given a list
|
|
11
12
|
|
12
13
|
### Installation and usage
|
13
14
|
|
14
|
-
To install:
|
15
|
+
To install (or update to the latest version):
|
15
16
|
|
16
17
|
```
|
17
18
|
gem install bundler
|
18
19
|
```
|
19
20
|
|
20
|
-
|
21
|
+
To install a prerelease version (if one is available), run `gem install bundler --pre`. To uninstall Bundler, run `gem uninstall bundler`.
|
22
|
+
|
23
|
+
Bundler is most commonly used to manage your application's dependencies. For example, these commands will allow you to use Bundler to manage the `rspec` gem for your application:
|
21
24
|
|
22
25
|
```
|
23
26
|
bundle init
|
24
|
-
|
27
|
+
bundle add rspec
|
25
28
|
bundle install
|
26
29
|
bundle exec rspec
|
27
30
|
```
|
@@ -34,11 +37,6 @@ For help with common problems, see [TROUBLESHOOTING](doc/TROUBLESHOOTING.md).
|
|
34
37
|
|
35
38
|
Still stuck? Try [filing an issue](doc/contributing/ISSUES.md).
|
36
39
|
|
37
|
-
### Supporting
|
38
|
-
|
39
|
-
<a href="https://rubytogether.org/"><img src="https://rubytogether.org/images/rubies.svg" width=200></a><br/>
|
40
|
-
Bundler is maintained by <a href="https://rubytogether.org/">Ruby Together</a>, a grassroots initiative committed to supporting the critical Ruby infrastructure you rely on. Contribute today <a href="https://rubytogether.org/developers">as an individual</a> or even better, <a href="https://rubytogether.org/companies">as a company</a>, and ensure that Bundler, RubyGems, and other shared tooling is around for years to come.
|
41
|
-
|
42
40
|
### Other questions
|
43
41
|
|
44
42
|
To see what has changed in recent versions of Bundler, see the [CHANGELOG](CHANGELOG.md).
|
@@ -49,6 +47,17 @@ To get in touch with the Bundler core team and other Bundler users, please see [
|
|
49
47
|
|
50
48
|
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 [our documentation section](doc/README.md).
|
51
49
|
|
50
|
+
While some Bundler contributors are compensated by Ruby Together, the project maintainers make decisions independent of Ruby Together. As a project, we welcome contributions regardless of the author’s affiliation with Ruby Together.
|
51
|
+
|
52
|
+
### Supporting
|
53
|
+
|
54
|
+
<a href="https://rubytogether.org/"><img src="https://rubytogether.org/images/rubies.svg" width="150"></a><br>
|
55
|
+
<a href="https://rubytogether.org/">Ruby Together</a> pays some Bundler maintainers for their ongoing work. As a grassroots initiative committed to supporting the critical Ruby infrastructure you rely on, Ruby Together is funded entirely by the Ruby community. Contribute today <a href="https://rubytogether.org/developers">as an individual</a> or (better yet) <a href="https://rubytogether.org/companies">as a company</a> to ensure that Bundler, RubyGems, and other shared tooling is around for years to come.
|
56
|
+
|
52
57
|
### Code of Conduct
|
53
58
|
|
54
59
|
Everyone interacting in the Bundler project’s codebases, issue trackers, chat rooms, and mailing lists is expected to follow the [Bundler code of conduct](https://github.com/bundler/bundler/blob/master/CODE_OF_CONDUCT.md).
|
60
|
+
|
61
|
+
### License
|
62
|
+
|
63
|
+
[MIT License](https://github.com/bundler/bundler/blob/master/LICENSE.md)
|
data/bundler.gemspec
CHANGED
@@ -1,15 +1,22 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# frozen_string_literal: true
|
3
|
-
|
4
|
-
|
5
|
-
require "bundler/version"
|
3
|
+
|
4
|
+
begin
|
5
|
+
require File.expand_path("../lib/bundler/version", __FILE__)
|
6
|
+
rescue LoadError
|
7
|
+
# for Ruby core repository
|
8
|
+
require File.expand_path("../bundler/version", __FILE__)
|
9
|
+
end
|
10
|
+
|
11
|
+
require "shellwords"
|
6
12
|
|
7
13
|
Gem::Specification.new do |s|
|
8
14
|
s.name = "bundler"
|
9
15
|
s.version = Bundler::VERSION
|
10
16
|
s.license = "MIT"
|
11
17
|
s.authors = [
|
12
|
-
"André Arko", "Samuel Giddins", "
|
18
|
+
"André Arko", "Samuel Giddins", "Colby Swandale", "Hiroshi Shibata",
|
19
|
+
"David Rodríguez", "Grey Baker", "Stephanie Morillo", "Chris Morris", "James Wen", "Tim Moore",
|
13
20
|
"André Medeiros", "Jessica Lynn Suttles", "Terence Lee", "Carl Lerche",
|
14
21
|
"Yehuda Katz"
|
15
22
|
]
|
@@ -27,22 +34,31 @@ Gem::Specification.new do |s|
|
|
27
34
|
}
|
28
35
|
end
|
29
36
|
|
30
|
-
s.
|
31
|
-
|
37
|
+
if s.version >= Gem::Version.new("2.a".dup)
|
38
|
+
s.required_ruby_version = ">= 2.3.0"
|
39
|
+
s.required_rubygems_version = ">= 2.5.0"
|
40
|
+
else
|
41
|
+
s.required_ruby_version = ">= 1.8.7"
|
42
|
+
s.required_rubygems_version = ">= 1.3.6"
|
43
|
+
end
|
32
44
|
|
33
45
|
s.add_development_dependency "automatiek", "~> 0.1.0"
|
34
46
|
s.add_development_dependency "mustache", "0.99.6"
|
35
47
|
s.add_development_dependency "rake", "~> 10.0"
|
36
48
|
s.add_development_dependency "rdiscount", "~> 2.2"
|
37
49
|
s.add_development_dependency "ronn", "~> 0.7.3"
|
38
|
-
s.add_development_dependency "rspec", "~> 3.
|
50
|
+
s.add_development_dependency "rspec", "~> 3.6"
|
39
51
|
|
40
|
-
s.files = `git ls-files -z`.split("\x0").
|
52
|
+
s.files = `git ls-files -z`.split("\x0").select {|f| f.match(%r{^(lib|exe)/}) }
|
41
53
|
# we don't check in man pages, but we need to ship them because
|
42
54
|
# we use them to generate the long-form help for each command.
|
43
55
|
s.files += Dir.glob("man/**/*")
|
56
|
+
# Include the CHANGELOG.md, LICENSE.md, README.md manually
|
57
|
+
s.files += %w[CHANGELOG.md LICENSE.md README.md]
|
58
|
+
# include the gemspec itself because warbler breaks w/o it
|
59
|
+
s.files += %w[bundler.gemspec]
|
44
60
|
|
45
61
|
s.bindir = "exe"
|
46
|
-
s.executables = %w
|
62
|
+
s.executables = %w[bundle bundler]
|
47
63
|
s.require_paths = ["lib"]
|
48
64
|
end
|
data/exe/bundle
CHANGED
@@ -7,11 +7,6 @@ Signal.trap("INT") do
|
|
7
7
|
exit 1
|
8
8
|
end
|
9
9
|
|
10
|
-
update = "update".start_with?(ARGV.first || " ") && ARGV.find {|a| a.start_with?("--bundler") }
|
11
|
-
update &&= update =~ /--bundler(?:=(.+))?/ && $1 || "> 0.a"
|
12
|
-
ENV["BUNDLER_VERSION"] = update if update
|
13
|
-
require "bundler/postit_trampoline"
|
14
|
-
|
15
10
|
require "bundler"
|
16
11
|
# Check if an older version of bundler is installed
|
17
12
|
$LOAD_PATH.each do |path|
|
@@ -28,7 +23,7 @@ Bundler.with_friendly_errors do
|
|
28
23
|
require "bundler/cli"
|
29
24
|
|
30
25
|
# Allow any command to use --help flag to show help for that command
|
31
|
-
help_flags = %w
|
26
|
+
help_flags = %w[--help -h]
|
32
27
|
help_flag_used = ARGV.any? {|a| help_flags.include? a }
|
33
28
|
args = help_flag_used ? Bundler::CLI.reformatted_help_args(ARGV) : ARGV
|
34
29
|
|
data/exe/bundle_ruby
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
require "bundler/shared_helpers"
|
5
|
+
|
6
|
+
Bundler::SharedHelpers.major_deprecation(2, "the bundle_ruby executable has been removed in favor of `bundle platform --ruby`")
|
7
|
+
|
4
8
|
Signal.trap("INT") { exit 1 }
|
5
9
|
|
6
10
|
require "bundler/errors"
|
7
11
|
require "bundler/ruby_version"
|
8
12
|
require "bundler/ruby_dsl"
|
9
|
-
require "bundler/shared_helpers"
|
10
13
|
|
11
14
|
module Bundler
|
12
15
|
class Dsl
|
@@ -42,8 +45,6 @@ module Bundler
|
|
42
45
|
end
|
43
46
|
end
|
44
47
|
|
45
|
-
Bundler::SharedHelpers.major_deprecation("the bundle_ruby executable has been removed in favor of `bundle platform --ruby`")
|
46
|
-
|
47
48
|
dsl = Bundler::Dsl.new
|
48
49
|
begin
|
49
50
|
dsl.eval_gemfile(Bundler::SharedHelpers.default_gemfile)
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Bundler
|
4
|
+
# Represents metadata from when the Bundler gem was built.
|
5
|
+
module BuildMetadata
|
6
|
+
# begin ivars
|
7
|
+
@built_at = "2018-12-27".freeze
|
8
|
+
@git_commit_sha = "d7089abb6".freeze
|
9
|
+
@release = true
|
10
|
+
# end ivars
|
11
|
+
|
12
|
+
# A hash representation of the build metadata.
|
13
|
+
def self.to_h
|
14
|
+
{
|
15
|
+
"Built At" => built_at,
|
16
|
+
"Git SHA" => git_commit_sha,
|
17
|
+
"Released Version" => release?,
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# A string representing the date the bundler gem was built.
|
22
|
+
def self.built_at
|
23
|
+
@built_at ||= Time.now.utc.strftime("%Y-%m-%d").freeze
|
24
|
+
end
|
25
|
+
|
26
|
+
# The SHA for the git commit the bundler gem was built from.
|
27
|
+
def self.git_commit_sha
|
28
|
+
return @git_commit_sha if @git_commit_sha
|
29
|
+
|
30
|
+
# If Bundler has been installed without its .git directory and without a
|
31
|
+
# commit instance variable then we can't determine its commits SHA.
|
32
|
+
git_dir = File.join(File.expand_path("../../..", __FILE__), ".git")
|
33
|
+
if File.directory?(git_dir)
|
34
|
+
return @git_commit_sha = Dir.chdir(git_dir) { `git rev-parse --short HEAD`.strip.freeze }
|
35
|
+
end
|
36
|
+
|
37
|
+
# If Bundler is a submodule in RubyGems, get the submodule commit
|
38
|
+
git_sub_dir = File.join(File.expand_path("../../../..", __FILE__), ".git")
|
39
|
+
if File.directory?(git_sub_dir)
|
40
|
+
return @git_commit_sha = Dir.chdir(git_sub_dir) do
|
41
|
+
`git ls-tree --abbrev=8 HEAD bundler`.split(/\s/).fetch(2, "").strip.freeze
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
@git_commit_sha ||= "unknown"
|
46
|
+
end
|
47
|
+
|
48
|
+
# Whether this is an official release build of Bundler.
|
49
|
+
def self.release?
|
50
|
+
@release
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
data/lib/bundler/capistrano.rb
CHANGED
@@ -1,4 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "bundler/shared_helpers"
|
4
|
+
Bundler::SharedHelpers.major_deprecation 2,
|
5
|
+
"The Bundler task for Capistrano. Please use http://github.com/capistrano/bundler"
|
6
|
+
|
2
7
|
# Capistrano task for Bundler.
|
3
8
|
#
|
4
9
|
# Add "require 'bundler/capistrano'" in your Capistrano deploy.rb, and
|
data/lib/bundler/cli/add.rb
CHANGED
@@ -1,15 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
require "bundler/cli/common"
|
3
2
|
|
4
3
|
module Bundler
|
5
4
|
class CLI::Add
|
6
|
-
def initialize(options,
|
7
|
-
@
|
5
|
+
def initialize(options, gems)
|
6
|
+
@gems = gems
|
8
7
|
@options = options
|
9
8
|
@options[:group] = @options[:group].split(",").map(&:strip) if !@options[:group].nil? && !@options[:group].empty?
|
10
9
|
end
|
11
10
|
|
12
11
|
def run
|
12
|
+
raise InvalidOption, "You can not specify `--strict` and `--optimistic` at the same time." if @options[:strict] && @options[:optimistic]
|
13
|
+
|
14
|
+
# raise error when no gems are specified
|
15
|
+
raise InvalidOption, "Please specify gems to add." if @gems.empty?
|
16
|
+
|
13
17
|
version = @options[:version].nil? ? nil : @options[:version].split(",").map(&:strip)
|
14
18
|
|
15
19
|
unless version.nil?
|
@@ -17,10 +21,15 @@ module Bundler
|
|
17
21
|
raise InvalidOption, "Invalid gem requirement pattern '#{v}'" unless Gem::Requirement::PATTERN =~ v.to_s
|
18
22
|
end
|
19
23
|
end
|
20
|
-
dependency = Bundler::Dependency.new(@gem_name, version, @options)
|
21
24
|
|
22
|
-
|
23
|
-
|
25
|
+
dependencies = @gems.map {|g| Bundler::Dependency.new(g, version, @options) }
|
26
|
+
|
27
|
+
Injector.inject(dependencies,
|
28
|
+
:conservative_versioning => @options[:version].nil?, # Perform conservative versioning only when version is not specified
|
29
|
+
:optimistic => @options[:optimistic],
|
30
|
+
:strict => @options[:strict])
|
31
|
+
|
32
|
+
Installer.install(Bundler.root, Bundler.definition) unless @options["skip-install"]
|
24
33
|
end
|
25
34
|
end
|
26
35
|
end
|