bundler 1.13.6 → 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 +554 -9
- data/README.md +28 -5
- data/bundler.gemspec +40 -11
- data/exe/bundle +4 -8
- data/exe/bundle_ruby +4 -3
- data/lib/bundler.rb +162 -68
- data/lib/bundler/build_metadata.rb +53 -0
- data/lib/bundler/capistrano.rb +5 -0
- data/lib/bundler/cli.rb +360 -118
- data/lib/bundler/cli/add.rb +35 -0
- data/lib/bundler/cli/binstubs.rb +18 -10
- data/lib/bundler/cli/cache.rb +6 -5
- data/lib/bundler/cli/check.rb +4 -6
- data/lib/bundler/cli/clean.rb +6 -7
- data/lib/bundler/cli/common.rb +47 -1
- data/lib/bundler/cli/config.rb +26 -7
- data/lib/bundler/cli/console.rb +2 -1
- data/lib/bundler/cli/doctor.rb +63 -18
- data/lib/bundler/cli/exec.rb +12 -5
- data/lib/bundler/cli/gem.rb +59 -21
- data/lib/bundler/cli/info.rb +50 -0
- data/lib/bundler/cli/init.rb +21 -7
- data/lib/bundler/cli/inject.rb +13 -4
- data/lib/bundler/cli/install.rb +72 -101
- data/lib/bundler/cli/issue.rb +40 -0
- data/lib/bundler/cli/list.rb +58 -0
- data/lib/bundler/cli/lock.rb +9 -6
- data/lib/bundler/cli/open.rb +4 -3
- data/lib/bundler/cli/outdated.rb +175 -60
- data/lib/bundler/cli/package.rb +9 -6
- data/lib/bundler/cli/platform.rb +2 -1
- data/lib/bundler/cli/plugin.rb +1 -0
- data/lib/bundler/cli/pristine.rb +47 -0
- data/lib/bundler/cli/remove.rb +18 -0
- data/lib/bundler/cli/show.rb +2 -2
- data/lib/bundler/cli/update.rb +44 -34
- data/lib/bundler/cli/viz.rb +5 -1
- data/lib/bundler/compact_index_client.rb +109 -0
- data/lib/bundler/compact_index_client/cache.rb +118 -0
- data/lib/bundler/compact_index_client/updater.rb +116 -0
- data/lib/bundler/compatibility_guard.rb +14 -0
- data/lib/bundler/constants.rb +1 -0
- data/lib/bundler/current_ruby.rb +17 -8
- data/lib/bundler/definition.rb +353 -182
- data/lib/bundler/dep_proxy.rb +3 -1
- data/lib/bundler/dependency.rb +22 -10
- data/lib/bundler/deployment.rb +1 -1
- data/lib/bundler/deprecate.rb +15 -3
- data/lib/bundler/dsl.rb +122 -64
- data/lib/bundler/endpoint_specification.rb +13 -3
- data/lib/bundler/env.rb +110 -38
- data/lib/bundler/environment_preserver.rb +27 -6
- data/lib/bundler/errors.rb +24 -0
- data/lib/bundler/feature_flag.rb +74 -0
- data/lib/bundler/fetcher.rb +18 -11
- data/lib/bundler/fetcher/base.rb +1 -0
- data/lib/bundler/fetcher/compact_index.rb +7 -5
- data/lib/bundler/fetcher/dependency.rb +3 -2
- data/lib/bundler/fetcher/downloader.rb +25 -7
- data/lib/bundler/fetcher/index.rb +3 -2
- data/lib/bundler/friendly_errors.rb +33 -7
- data/lib/bundler/gem_helper.rb +25 -11
- data/lib/bundler/gem_helpers.rb +70 -1
- 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 +29 -0
- data/lib/bundler/graph.rb +1 -0
- data/lib/bundler/index.rb +28 -15
- data/lib/bundler/injector.rb +216 -33
- data/lib/bundler/inline.rb +12 -12
- data/lib/bundler/installer.rb +139 -53
- data/lib/bundler/installer/gem_installer.rb +15 -5
- data/lib/bundler/installer/parallel_installer.rb +113 -28
- data/lib/bundler/installer/standalone.rb +1 -0
- data/lib/bundler/lazy_specification.rb +31 -3
- data/lib/bundler/lockfile_generator.rb +95 -0
- data/lib/bundler/lockfile_parser.rb +50 -37
- data/lib/bundler/match_platform.rb +13 -3
- data/lib/bundler/mirror.rb +10 -5
- data/lib/bundler/plugin.rb +22 -8
- data/lib/bundler/plugin/api.rb +2 -1
- data/lib/bundler/plugin/api/source.rb +17 -4
- data/lib/bundler/plugin/events.rb +61 -0
- data/lib/bundler/plugin/index.rb +9 -2
- data/lib/bundler/plugin/installer.rb +7 -6
- data/lib/bundler/plugin/source_list.rb +7 -8
- data/lib/bundler/process_lock.rb +24 -0
- data/lib/bundler/psyched_yaml.rb +10 -0
- data/lib/bundler/remote_specification.rb +30 -1
- data/lib/bundler/resolver.rb +187 -194
- data/lib/bundler/resolver/spec_group.rb +106 -0
- data/lib/bundler/retry.rb +5 -1
- data/lib/bundler/ruby_dsl.rb +1 -0
- data/lib/bundler/ruby_version.rb +12 -2
- data/lib/bundler/rubygems_ext.rb +23 -8
- data/lib/bundler/rubygems_gem_installer.rb +90 -0
- data/lib/bundler/rubygems_integration.rb +193 -70
- data/lib/bundler/runtime.rb +39 -22
- data/lib/bundler/settings.rb +245 -85
- data/lib/bundler/settings/validator.rb +102 -0
- data/lib/bundler/setup.rb +4 -7
- data/lib/bundler/shared_helpers.rb +183 -40
- data/lib/bundler/similarity_detector.rb +1 -0
- data/lib/bundler/source.rb +58 -1
- data/lib/bundler/source/gemspec.rb +1 -0
- data/lib/bundler/source/git.rb +52 -23
- data/lib/bundler/source/git/git_proxy.rb +30 -14
- data/lib/bundler/source/metadata.rb +62 -0
- data/lib/bundler/source/path.rb +42 -16
- data/lib/bundler/source/path/installer.rb +4 -2
- data/lib/bundler/source/rubygems.rb +171 -82
- data/lib/bundler/source/rubygems/remote.rb +12 -2
- data/lib/bundler/source_list.rb +75 -15
- data/lib/bundler/spec_set.rb +67 -32
- data/lib/bundler/ssl_certs/certificate_manager.rb +2 -1
- data/lib/bundler/stub_specification.rb +86 -2
- data/lib/bundler/templates/.document +1 -0
- data/lib/bundler/templates/Executable +13 -1
- data/lib/bundler/templates/Executable.bundler +105 -0
- data/lib/bundler/templates/Executable.standalone +5 -5
- data/lib/bundler/templates/Gemfile +3 -0
- data/lib/bundler/templates/gems.rb +8 -0
- data/lib/bundler/templates/newgem/Gemfile.tt +4 -2
- data/lib/bundler/templates/newgem/LICENSE.txt.tt +1 -1
- data/lib/bundler/templates/newgem/README.md.tt +14 -8
- data/lib/bundler/templates/newgem/Rakefile.tt +5 -5
- data/lib/bundler/templates/newgem/bin/console.tt +1 -1
- data/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +4 -4
- data/lib/bundler/templates/newgem/ext/newgem/newgem.h.tt +3 -3
- data/lib/bundler/templates/newgem/gitignore.tt +5 -1
- data/lib/bundler/templates/newgem/lib/newgem.rb.tt +7 -6
- data/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +4 -4
- data/lib/bundler/templates/newgem/newgem.gemspec.tt +21 -12
- data/lib/bundler/templates/newgem/rspec.tt +1 -0
- data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +1 -3
- data/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +13 -1
- data/lib/bundler/templates/newgem/test/newgem_test.rb.tt +1 -1
- data/lib/bundler/templates/newgem/test/test_helper.rb.tt +3 -3
- data/lib/bundler/templates/newgem/{.travis.yml.tt → travis.yml.tt} +2 -0
- data/lib/bundler/ui.rb +1 -0
- data/lib/bundler/ui/rg_proxy.rb +1 -0
- data/lib/bundler/ui/shell.rb +30 -10
- data/lib/bundler/ui/silent.rb +21 -1
- 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.rb +2 -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.rb +26 -6
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +2 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +12 -4
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +3 -2
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +63 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +11 -3
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +13 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +3 -2
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +3 -2
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +18 -5
- 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 +499 -128
- 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/{net → net-http-persistent/lib/net}/http/faster.rb +1 -0
- data/lib/bundler/vendor/{net → net-http-persistent/lib/net}/http/persistent.rb +27 -24
- data/lib/bundler/vendor/{net → net-http-persistent/lib/net}/http/persistent/ssl_reuse.rb +2 -1
- data/lib/bundler/vendor/thor/lib/thor.rb +46 -21
- data/lib/bundler/vendor/thor/lib/thor/actions.rb +24 -22
- data/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +2 -1
- data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +2 -1
- data/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +2 -2
- data/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +16 -8
- data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +66 -18
- data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +17 -15
- data/lib/bundler/vendor/thor/lib/thor/base.rb +55 -32
- data/lib/bundler/vendor/thor/lib/thor/command.rb +13 -11
- data/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +21 -1
- data/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb +7 -5
- data/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +94 -63
- data/lib/bundler/vendor/thor/lib/thor/error.rb +3 -3
- data/lib/bundler/vendor/thor/lib/thor/group.rb +13 -13
- data/lib/bundler/vendor/thor/lib/thor/invocation.rb +4 -5
- data/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +2 -0
- data/lib/bundler/vendor/thor/lib/thor/parser/argument.rb +4 -7
- data/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +16 -16
- data/lib/bundler/vendor/thor/lib/thor/parser/option.rb +42 -21
- data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +13 -10
- data/lib/bundler/vendor/thor/lib/thor/runner.rb +31 -29
- data/lib/bundler/vendor/thor/lib/thor/shell.rb +1 -1
- data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +49 -33
- data/lib/bundler/vendor/thor/lib/thor/shell/color.rb +1 -1
- data/lib/bundler/vendor/thor/lib/thor/shell/html.rb +4 -4
- data/lib/bundler/vendor/thor/lib/thor/util.rb +8 -7
- data/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
- data/lib/bundler/vendored_fileutils.rb +9 -0
- data/lib/bundler/vendored_molinillo.rb +1 -0
- data/lib/bundler/vendored_persistent.rb +43 -3
- data/lib/bundler/vendored_thor.rb +6 -2
- data/lib/bundler/version.rb +19 -2
- data/lib/bundler/version_ranges.rb +76 -0
- data/lib/bundler/vlad.rb +5 -0
- data/lib/bundler/worker.rb +30 -6
- data/lib/bundler/yaml_serializer.rb +4 -4
- data/man/bundle-add.1 +58 -0
- data/man/bundle-add.1.txt +52 -0
- data/man/bundle-add.ronn +40 -0
- data/{lib/bundler/man/bundle-binstubs → man/bundle-binstubs.1} +11 -1
- data/man/bundle-binstubs.1.txt +48 -0
- data/man/bundle-binstubs.ronn +15 -1
- data/man/bundle-check.1 +31 -0
- data/man/bundle-check.1.txt +33 -0
- data/man/bundle-check.ronn +26 -0
- data/man/bundle-clean.1 +24 -0
- data/man/bundle-clean.1.txt +26 -0
- data/man/bundle-clean.ronn +18 -0
- data/man/bundle-config.1 +497 -0
- data/man/bundle-config.1.txt +529 -0
- data/man/bundle-config.ronn +233 -61
- data/man/bundle-doctor.1 +44 -0
- data/man/bundle-doctor.1.txt +44 -0
- data/man/bundle-doctor.ronn +33 -0
- data/{lib/bundler/man/bundle-exec → man/bundle-exec.1} +6 -3
- data/man/bundle-exec.1.txt +178 -0
- data/man/bundle-exec.ronn +10 -3
- data/{lib/bundler/man/bundle-gem → man/bundle-gem.1} +4 -4
- data/man/bundle-gem.1.txt +91 -0
- data/man/bundle-gem.ronn +3 -2
- data/man/bundle-info.1 +20 -0
- data/man/bundle-info.1.txt +21 -0
- data/man/bundle-info.ronn +17 -0
- data/man/bundle-init.1 +25 -0
- data/man/bundle-init.1.txt +34 -0
- data/man/bundle-init.ronn +29 -0
- data/man/bundle-inject.1 +33 -0
- data/man/bundle-inject.1.txt +32 -0
- data/man/bundle-inject.ronn +22 -0
- data/{lib/bundler/man/bundle-install → man/bundle-install.1} +32 -29
- data/man/bundle-install.1.txt +396 -0
- data/man/bundle-install.ronn +45 -36
- data/man/bundle-list.1 +50 -0
- data/man/bundle-list.1.txt +43 -0
- data/man/bundle-list.ronn +33 -0
- data/{lib/bundler/man/bundle-lock → man/bundle-lock.1} +43 -2
- data/man/bundle-lock.1.txt +93 -0
- data/man/bundle-lock.ronn +47 -0
- data/man/bundle-open.1 +32 -0
- data/man/bundle-open.1.txt +29 -0
- data/man/bundle-open.ronn +19 -0
- data/man/bundle-outdated.1 +155 -0
- data/man/bundle-outdated.1.txt +131 -0
- data/man/bundle-outdated.ronn +111 -0
- data/{lib/bundler/man/bundle-package → man/bundle-package.1} +6 -3
- data/man/bundle-package.1.txt +79 -0
- data/man/bundle-package.ronn +7 -2
- data/{lib/bundler/man/bundle-platform → man/bundle-platform.1} +1 -1
- data/man/bundle-platform.1.txt +57 -0
- data/man/bundle-pristine.1 +34 -0
- data/man/bundle-pristine.1.txt +44 -0
- data/man/bundle-pristine.ronn +34 -0
- 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 +23 -0
- data/man/bundle-show.1.txt +27 -0
- data/man/bundle-show.ronn +21 -0
- data/man/bundle-update.1 +394 -0
- data/man/bundle-update.1.txt +391 -0
- data/man/bundle-update.ronn +172 -16
- data/man/bundle-viz.1 +39 -0
- data/man/bundle-viz.1.txt +39 -0
- data/man/bundle-viz.ronn +30 -0
- data/{lib/bundler/man/bundle → man/bundle.1} +44 -28
- data/man/bundle.1.txt +116 -0
- data/man/bundle.ronn +39 -27
- data/{lib/bundler/man → man}/gemfile.5 +67 -84
- data/man/gemfile.5.ronn +77 -55
- data/man/gemfile.5.txt +653 -0
- data/man/index.txt +25 -8
- metadata +118 -58
- data/.codeclimate.yml +0 -25
- data/.gitignore +0 -16
- data/.rspec +0 -3
- data/.rubocop.yml +0 -128
- data/.rubocop_todo.yml +0 -248
- data/.travis.yml +0 -108
- data/CODE_OF_CONDUCT.md +0 -42
- data/CONTRIBUTING.md +0 -36
- data/DEVELOPMENT.md +0 -148
- data/ISSUES.md +0 -100
- data/Rakefile +0 -333
- data/bin/rake +0 -19
- data/bin/rspec +0 -15
- data/bin/rubocop +0 -17
- data/bin/with_rubygems +0 -39
- data/lib/bundler/man/bundle-binstubs.txt +0 -33
- data/lib/bundler/man/bundle-config +0 -254
- data/lib/bundler/man/bundle-config.txt +0 -282
- data/lib/bundler/man/bundle-exec.txt +0 -171
- data/lib/bundler/man/bundle-gem.txt +0 -90
- data/lib/bundler/man/bundle-install.txt +0 -385
- data/lib/bundler/man/bundle-lock.txt +0 -52
- data/lib/bundler/man/bundle-package.txt +0 -74
- data/lib/bundler/man/bundle-platform.txt +0 -57
- data/lib/bundler/man/bundle-update +0 -221
- data/lib/bundler/man/bundle-update.txt +0 -227
- data/lib/bundler/man/bundle.txt +0 -104
- data/lib/bundler/man/gemfile.5.txt +0 -636
- data/lib/bundler/postit_trampoline.rb +0 -68
- data/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb +0 -79
- data/lib/bundler/vendor/compact_index_client/lib/compact_index_client/cache.rb +0 -112
- data/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb +0 -80
- data/lib/bundler/vendor/compact_index_client/lib/compact_index_client/version.rb +0 -4
- data/lib/bundler/vendor/postit/lib/postit.rb +0 -15
- 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/man/bundle.txt
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
BUNDLE(1) BUNDLE(1)
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
1mNAME0m
|
6
|
-
1mbundle 22m- Ruby Dependency Management
|
7
|
-
|
8
|
-
1mSYNOPSIS0m
|
9
|
-
1mbundle 22mCOMMAND [--no-color] [--verbose] [ARGS]
|
10
|
-
|
11
|
-
1mDESCRIPTION0m
|
12
|
-
Bundler manages an 1mapplication's dependencies 22mthrough its entire life
|
13
|
-
across many machines systematically and repeatably.
|
14
|
-
|
15
|
-
See the bundler website 4mhttp://bundler.io24m for information on getting
|
16
|
-
started, and Gemfile(5) for more information on the 1mGemfile 22mformat.
|
17
|
-
|
18
|
-
1mOPTIONS0m
|
19
|
-
1m--no-color0m
|
20
|
-
Print all output without color
|
21
|
-
|
22
|
-
1m--verbose0m
|
23
|
-
Print out additional logging information
|
24
|
-
|
25
|
-
1mBUNDLE COMMANDS0m
|
26
|
-
We divide 1mbundle 22msubcommands into primary commands and utilities.
|
27
|
-
|
28
|
-
1mPRIMARY COMMANDS0m
|
29
|
-
bundle install(1) 4mbundle-install.1.html0m
|
30
|
-
Install the gems specified by the 1mGemfile 22mor 1mGemfile.lock0m
|
31
|
-
|
32
|
-
bundle update(1) 4mbundle-update.1.html0m
|
33
|
-
Update dependencies to their latest versions
|
34
|
-
|
35
|
-
bundle package(1) 4mbundle-package.1.html0m
|
36
|
-
Package the .gem files required by your application into the
|
37
|
-
1mvendor/cache 22mdirectory
|
38
|
-
|
39
|
-
bundle exec(1) 4mbundle-exec.1.html0m
|
40
|
-
Execute a script in the context of the current bundle
|
41
|
-
|
42
|
-
bundle config(1) 4mbundle-config.1.html0m
|
43
|
-
Specify and read configuration options for bundler
|
44
|
-
|
45
|
-
1mbundle help(1)0m
|
46
|
-
Display detailed help for each subcommand
|
47
|
-
|
48
|
-
1mUTILITIES0m
|
49
|
-
1mbundle check(1)0m
|
50
|
-
Determine whether the requirements for your application are
|
51
|
-
installed and available to bundler
|
52
|
-
|
53
|
-
1mbundle show(1)0m
|
54
|
-
Show the source location of a particular gem in the bundle
|
55
|
-
|
56
|
-
1mbundle outdated(1)0m
|
57
|
-
Show all of the outdated gems in the current bundle
|
58
|
-
|
59
|
-
1mbundle console(1)0m
|
60
|
-
Start an IRB session in the context of the current bundle
|
61
|
-
|
62
|
-
1mbundle open(1)0m
|
63
|
-
Open an installed gem in the editor
|
64
|
-
|
65
|
-
1mbundle lock(1)0m
|
66
|
-
Generate a lockfile for your dependencies
|
67
|
-
|
68
|
-
1mbundle viz(1)0m
|
69
|
-
Generate a visual representation of your dependencies
|
70
|
-
|
71
|
-
1mbundle init(1)0m
|
72
|
-
Generate a simple 1mGemfile22m, placed in the current directory
|
73
|
-
|
74
|
-
bundle gem(1) 4mbundle-gem.1.html0m
|
75
|
-
Create a simple gem, suitable for development with bundler
|
76
|
-
|
77
|
-
bundle platform(1) 4mbundle-platform.1.html0m
|
78
|
-
Display platform compatibility information
|
79
|
-
|
80
|
-
1mbundle clean(1)0m
|
81
|
-
Clean up unused gems in your bundler directory
|
82
|
-
|
83
|
-
1mbundle doctor(1)0m
|
84
|
-
Display warnings about common potential problems
|
85
|
-
|
86
|
-
1mPLUGINS0m
|
87
|
-
When running a command that isn't listed in PRIMARY COMMANDS or UTILI-
|
88
|
-
TIES, Bundler will try to find an executable on your path named
|
89
|
-
1mbundler-<command> 22mand execute it, passing down any extra arguments to
|
90
|
-
it.
|
91
|
-
|
92
|
-
1mOBSOLETE0m
|
93
|
-
These commands are obsolete and should no longer be used
|
94
|
-
|
95
|
-
o 1mbundle cache(1)0m
|
96
|
-
|
97
|
-
o 1mbundle list(1)0m
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
October 2016 BUNDLE(1)
|
@@ -1,636 +0,0 @@
|
|
1
|
-
GEMFILE(5) GEMFILE(5)
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
1mNAME0m
|
6
|
-
1mGemfile 22m- A format for describing gem dependencies for Ruby programs
|
7
|
-
|
8
|
-
1mSYNOPSIS0m
|
9
|
-
A 1mGemfile 22mdescribes the gem dependencies required to execute associated
|
10
|
-
Ruby code.
|
11
|
-
|
12
|
-
Place the 1mGemfile 22min the root of the directory containing the associ-
|
13
|
-
ated code. For instance, in a Rails application, place the 1mGemfile 22min
|
14
|
-
the same directory as the 1mRakefile22m.
|
15
|
-
|
16
|
-
1mSYNTAX0m
|
17
|
-
A 1mGemfile 22mis evaluated as Ruby code, in a context which makes available
|
18
|
-
a number of methods used to describe the gem requirements.
|
19
|
-
|
20
|
-
1mGLOBAL SOURCES0m
|
21
|
-
At the top of the 1mGemfile22m, add a line for the 1mRubygems 22msource that con-
|
22
|
-
tains the gems listed in the 1mGemfile22m.
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
source "https://rubygems.org"
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
It is possible, but not recommended as of Bundler 1.7, to add multiple
|
31
|
-
global 1msource 22mlines. Each of these 1msource22ms 1mMUST 22mbe a valid Rubygems
|
32
|
-
repository.
|
33
|
-
|
34
|
-
Sources are checked for gems following the heuristics described in
|
35
|
-
4mSOURCE24m 4mPRIORITY24m. If a gem is found in more than one global source,
|
36
|
-
Bundler will print a warning after installing the gem indicating which
|
37
|
-
source was used, and listing the other sources where the gem is avail-
|
38
|
-
able. A specific source can be selected for gems that need to use a
|
39
|
-
non-standard repository, suppressing this warning, by using the 1m:source0m
|
40
|
-
option or a 1msource 22mblock.
|
41
|
-
|
42
|
-
1mCREDENTIALS0m
|
43
|
-
Some gem sources require a username and password. Use bundle config(1)
|
44
|
-
4mbundle-config.1.html24m to set the username and password for any of the
|
45
|
-
sources that need it. The command must be run once on each computer
|
46
|
-
that will install the Gemfile, but this keeps the credentials from
|
47
|
-
being stored in plain text in version control.
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
bundle config gems.example.com user:password
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
For some sources, like a company Gemfury account, it may be easier to
|
56
|
-
include the credentials in the Gemfile as part of the source URL.
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
source "https://user:password@gems.example.com"
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
Credentials in the source URL will take precedence over credentials set
|
65
|
-
using 1mconfig22m.
|
66
|
-
|
67
|
-
1mRUBY0m
|
68
|
-
If your application requires a specific Ruby version or engine, specify
|
69
|
-
your requirements using the 1mruby 22mmethod, with the following arguments.
|
70
|
-
All parameters are 1mOPTIONAL 22munless otherwise specified.
|
71
|
-
|
72
|
-
1mVERSION (required)0m
|
73
|
-
The version of Ruby that your application requires. If your application
|
74
|
-
requires an alternate Ruby engine, such as JRuby or Rubinius, this
|
75
|
-
should be the Ruby version that the engine is compatible with.
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
ruby "1.9.3"
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
1mENGINE0m
|
84
|
-
Each application 4mmay24m specify a Ruby engine. If an engine is specified,
|
85
|
-
an engine version 4mmust24m also be specified.
|
86
|
-
|
87
|
-
1mENGINE VERSION0m
|
88
|
-
Each application 4mmay24m specify a Ruby engine version. If an engine ver-
|
89
|
-
sion is specified, an engine 4mmust24m also be specified. If the engine is
|
90
|
-
"ruby" the engine version specified 4mmust24m match the Ruby version.
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
ruby "1.8.7", :engine => "jruby", :engine_version => "1.6.7"
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
1mPATCHLEVEL0m
|
99
|
-
Each application 4mmay24m specify a Ruby patchlevel.
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
ruby "2.0.0", :patchlevel => "247"
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
1mGEMS0m
|
108
|
-
Specify gem requirements using the 1mgem 22mmethod, with the following argu-
|
109
|
-
ments. All parameters are 1mOPTIONAL 22munless otherwise specified.
|
110
|
-
|
111
|
-
1mNAME (required)0m
|
112
|
-
For each gem requirement, list a single 4mgem24m line.
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
gem "nokogiri"
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
1mVERSION0m
|
121
|
-
Each 4mgem24m 1mMAY 22mhave one or more version specifiers.
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
gem "nokogiri", ">= 1.4.2"
|
126
|
-
gem "RedCloth", ">= 4.1.0", "< 4.2.0"
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
1mREQUIRE AS0m
|
131
|
-
Each 4mgem24m 1mMAY 22mspecify files that should be used when autorequiring via
|
132
|
-
1mBundler.require22m. You may pass an array with multiple files or 1mtrue 22mif
|
133
|
-
file you want 1mrequired 22mhas same name as 4mgem24m or 1mfalse 22mto prevent any
|
134
|
-
file from being autorequired.
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
gem "redis", :require => ["redis/connection/hiredis", "redis"]
|
139
|
-
gem "webmock", :require => false
|
140
|
-
gem "debugger", :require => true
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
The argument defaults to the name of the gem. For example, these are
|
145
|
-
identical:
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
gem "nokogiri"
|
150
|
-
gem "nokogiri", :require => "nokogiri"
|
151
|
-
gem "nokogiri", :require => true
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
1mGROUPS0m
|
156
|
-
Each 4mgem24m 1mMAY 22mspecify membership in one or more groups. Any 4mgem24m that
|
157
|
-
does not specify membership in any group is placed in the 1mdefault0m
|
158
|
-
group.
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
gem "rspec", :group => :test
|
163
|
-
gem "wirble", :groups => [:development, :test]
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
The Bundler runtime allows its two main methods, 1mBundler.setup 22mand
|
168
|
-
1mBundler.require22m, to limit their impact to particular groups.
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
# setup adds gems to Ruby's load path
|
173
|
-
Bundler.setup # defaults to all groups
|
174
|
-
require "bundler/setup" # same as Bundler.setup
|
175
|
-
Bundler.setup(:default) # only set up the _default_ group
|
176
|
-
Bundler.setup(:test) # only set up the _test_ group (but `not` _default_)
|
177
|
-
Bundler.setup(:default, :test) # set up the _default_ and _test_ groups, but no others
|
178
|
-
|
179
|
-
# require requires all of the gems in the specified groups
|
180
|
-
Bundler.require # defaults to the _default_ group
|
181
|
-
Bundler.require(:default) # identical
|
182
|
-
Bundler.require(:default, :test) # requires the _default_ and _test_ groups
|
183
|
-
Bundler.require(:test) # requires the _test_ group
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
The Bundler CLI allows you to specify a list of groups whose gems 1mbun-0m
|
188
|
-
1mdle install 22mshould not install with the 1m--without 22moption. To specify
|
189
|
-
multiple groups to ignore, specify a list of groups separated by spa-
|
190
|
-
ces.
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
bundle install --without test
|
195
|
-
bundle install --without development test
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
After running 1mbundle install --without test22m, bundler will remember that
|
200
|
-
you excluded the test group in the last installation. The next time you
|
201
|
-
run 1mbundle install22m, without any 1m--without option22m, bundler will recall
|
202
|
-
it.
|
203
|
-
|
204
|
-
Also, calling 1mBundler.setup 22mwith no parameters, or calling 1mrequire0m
|
205
|
-
1m"bundler/setup" 22mwill setup all groups except for the ones you excluded
|
206
|
-
via 1m--without 22m(since they are not available).
|
207
|
-
|
208
|
-
Note that on 1mbundle install22m, bundler downloads and evaluates all gems,
|
209
|
-
in order to create a single canonical list of all of the required gems
|
210
|
-
and their dependencies. This means that you cannot list different ver-
|
211
|
-
sions of the same gems in different groups. For more details, see
|
212
|
-
Understanding Bundler 4mhttp://bundler.io/rationale.html24m.
|
213
|
-
|
214
|
-
1mPLATFORMS0m
|
215
|
-
If a gem should only be used in a particular platform or set of plat-
|
216
|
-
forms, you can specify them. Platforms are essentially identical to
|
217
|
-
groups, except that you do not need to use the 1m--without 22minstall-time
|
218
|
-
flag to exclude groups of gems for other platforms.
|
219
|
-
|
220
|
-
There are a number of 1mGemfile 22mplatforms:
|
221
|
-
|
222
|
-
1mruby 22mC Ruby (MRI) or Rubinius, but 1mNOT 22mWindows
|
223
|
-
|
224
|
-
1mruby_180m
|
225
|
-
4mruby24m 1mAND 22mversion 1.8
|
226
|
-
|
227
|
-
1mruby_190m
|
228
|
-
4mruby24m 1mAND 22mversion 1.9
|
229
|
-
|
230
|
-
1mruby_200m
|
231
|
-
4mruby24m 1mAND 22mversion 2.0
|
232
|
-
|
233
|
-
1mruby_210m
|
234
|
-
4mruby24m 1mAND 22mversion 2.1
|
235
|
-
|
236
|
-
1mruby_220m
|
237
|
-
4mruby24m 1mAND 22mversion 2.2
|
238
|
-
|
239
|
-
1mruby_230m
|
240
|
-
4mruby24m 1mAND 22mversion 2.3
|
241
|
-
|
242
|
-
1mmri 22mSame as 4mruby24m, but not Rubinius
|
243
|
-
|
244
|
-
1mmri_18 4m22mmri24m 1mAND 22mversion 1.8
|
245
|
-
|
246
|
-
1mmri_19 4m22mmri24m 1mAND 22mversion 1.9
|
247
|
-
|
248
|
-
1mmri_20 4m22mmri24m 1mAND 22mversion 2.0
|
249
|
-
|
250
|
-
1mmri_21 4m22mmri24m 1mAND 22mversion 2.1
|
251
|
-
|
252
|
-
1mmri_22 4m22mmri24m 1mAND 22mversion 2.2
|
253
|
-
|
254
|
-
1mmri_23 4m22mmri24m 1mAND 22mversion 2.3
|
255
|
-
|
256
|
-
1mrbx 22mSame as 4mruby24m, but only Rubinius (not MRI)
|
257
|
-
|
258
|
-
1mjruby 22mJRuby
|
259
|
-
|
260
|
-
1mmswin 22mWindows
|
261
|
-
|
262
|
-
1mmingw 22mWindows 32 bit 'mingw32' platform (aka RubyInstaller)
|
263
|
-
|
264
|
-
1mmingw_180m
|
265
|
-
4mmingw24m 1mAND 22mversion 1.8
|
266
|
-
|
267
|
-
1mmingw_190m
|
268
|
-
4mmingw24m 1mAND 22mversion 1.9
|
269
|
-
|
270
|
-
1mmingw_200m
|
271
|
-
4mmingw24m 1mAND 22mversion 2.0
|
272
|
-
|
273
|
-
1mmingw_210m
|
274
|
-
4mmingw24m 1mAND 22mversion 2.1
|
275
|
-
|
276
|
-
1mmingw_220m
|
277
|
-
4mmingw24m 1mAND 22mversion 2.2
|
278
|
-
|
279
|
-
1mmingw_230m
|
280
|
-
4mmingw24m 1mAND 22mversion 2.3
|
281
|
-
|
282
|
-
1mx64_mingw0m
|
283
|
-
Windows 64 bit 'mingw32' platform (aka RubyInstaller x64)
|
284
|
-
|
285
|
-
1mx64_mingw_200m
|
286
|
-
4mx64_mingw24m 1mAND 22mversion 2.0
|
287
|
-
|
288
|
-
1mx64_mingw_210m
|
289
|
-
4mx64_mingw24m 1mAND 22mversion 2.1
|
290
|
-
|
291
|
-
1mx64_mingw_220m
|
292
|
-
4mx64_mingw24m 1mAND 22mversion 2.2
|
293
|
-
|
294
|
-
1mx64_mingw_230m
|
295
|
-
4mx64_mingw24m 1mAND 22mversion 2.3
|
296
|
-
|
297
|
-
As with groups, you can specify one or more platforms:
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
gem "weakling", :platforms => :jruby
|
302
|
-
gem "ruby-debug", :platforms => :mri_18
|
303
|
-
gem "nokogiri", :platforms => [:mri_18, :jruby]
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
All operations involving groups (1mbundle install22m, 1mBundler.setup22m,
|
308
|
-
1mBundler.require22m) behave exactly the same as if any groups not matching
|
309
|
-
the current platform were explicitly excluded.
|
310
|
-
|
311
|
-
1mSOURCE0m
|
312
|
-
You can select an alternate Rubygems repository for a gem using the
|
313
|
-
':source' option.
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
gem "some_internal_gem", :source => "https://gems.example.com"
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
This forces the gem to be loaded from this source and ignores any
|
322
|
-
global sources declared at the top level of the file. If the gem does
|
323
|
-
not exist in this source, it will not be installed.
|
324
|
-
|
325
|
-
Bundler will search for child dependencies of this gem by first looking
|
326
|
-
in the source selected for the parent, but if they are not found there,
|
327
|
-
it will fall back on global sources using the ordering described in
|
328
|
-
4mSOURCE24m 4mPRIORITY24m.
|
329
|
-
|
330
|
-
Selecting a specific source repository this way also suppresses the
|
331
|
-
ambiguous gem warning described above in 4mGLOBAL24m 4mSOURCES24m 4m(#source)24m.
|
332
|
-
|
333
|
-
1mGIT0m
|
334
|
-
If necessary, you can specify that a gem is located at a particular git
|
335
|
-
repository using the 1m:git 22mparameter. The repository can be accessed via
|
336
|
-
several protocols:
|
337
|
-
|
338
|
-
1mHTTP(S)0m
|
339
|
-
gem "rails", :git => "https://github.com/rails/rails.git"
|
340
|
-
|
341
|
-
1mSSH 22mgem "rails", :git => "git@github.com:rails/rails.git"
|
342
|
-
|
343
|
-
1mgit 22mgem "rails", :git => "git://github.com/rails/rails.git"
|
344
|
-
|
345
|
-
If using SSH, the user that you use to run 1mbundle install MUST 22mhave the
|
346
|
-
appropriate keys available in their 1m$HOME/.ssh22m.
|
347
|
-
|
348
|
-
1mNOTE22m: 1mhttp:// 22mand 1mgit:// 22mURLs should be avoided if at all possible.
|
349
|
-
These protocols are unauthenticated, so a man-in-the-middle attacker
|
350
|
-
can deliver malicious code and compromise your system. HTTPS and SSH
|
351
|
-
are strongly preferred.
|
352
|
-
|
353
|
-
The 1mgroup22m, 1mplatforms22m, and 1mrequire 22moptions are available and behave
|
354
|
-
exactly the same as they would for a normal gem.
|
355
|
-
|
356
|
-
A git repository 1mSHOULD 22mhave at least one file, at the root of the
|
357
|
-
directory containing the gem, with the extension 1m.gemspec22m. This file
|
358
|
-
1mMUST 22mcontain a valid gem specification, as expected by the 1mgem build0m
|
359
|
-
command.
|
360
|
-
|
361
|
-
If a git repository does not have a 1m.gemspec22m, bundler will attempt to
|
362
|
-
create one, but it will not contain any dependencies, executables, or C
|
363
|
-
extension compilation instructions. As a result, it may fail to prop-
|
364
|
-
erly integrate into your application.
|
365
|
-
|
366
|
-
If a git repository does have a 1m.gemspec 22mfor the gem you attached it
|
367
|
-
to, a version specifier, if provided, means that the git repository is
|
368
|
-
only valid if the 1m.gemspec 22mspecifies a version matching the version
|
369
|
-
specifier. If not, bundler will print a warning.
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
gem "rails", "2.3.8", :git => "https://github.com/rails/rails.git"
|
374
|
-
# bundle install will fail, because the .gemspec in the rails
|
375
|
-
# repository's master branch specifies version 3.0.0
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
If a git repository does 1mnot 22mhave a 1m.gemspec 22mfor the gem you attached
|
380
|
-
it to, a version specifier 1mMUST 22mbe provided. Bundler will use this ver-
|
381
|
-
sion in the simple 1m.gemspec 22mit creates.
|
382
|
-
|
383
|
-
Git repositories support a number of additional options.
|
384
|
-
|
385
|
-
1mbranch22m, 1mtag22m, and 1mref0m
|
386
|
-
You 1mMUST 22monly specify at most one of these options. The default
|
387
|
-
is 1m:branch => "master"0m
|
388
|
-
|
389
|
-
1msubmodules0m
|
390
|
-
Specify 1m:submodules => true 22mto cause bundler to expand any sub-
|
391
|
-
modules included in the git repository
|
392
|
-
|
393
|
-
If a git repository contains multiple 1m.gemspecs22m, each 1m.gemspec 22mrepre-
|
394
|
-
sents a gem located at the same place in the file system as the 1m.gem-0m
|
395
|
-
1mspec22m.
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|~rails [git root]
|
400
|
-
| |-rails.gemspec [rails gem located here]
|
401
|
-
|~actionpack
|
402
|
-
| |-actionpack.gemspec [actionpack gem located here]
|
403
|
-
|~activesupport
|
404
|
-
| |-activesupport.gemspec [activesupport gem located here]
|
405
|
-
|...
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
To install a gem located in a git repository, bundler changes to the
|
410
|
-
directory containing the gemspec, runs 1mgem build name.gemspec 22mand then
|
411
|
-
installs the resulting gem. The 1mgem build 22mcommand, which comes standard
|
412
|
-
with Rubygems, evaluates the 1m.gemspec 22min the context of the directory
|
413
|
-
in which it is located.
|
414
|
-
|
415
|
-
1mGIT SOURCE0m
|
416
|
-
A custom git source can be defined via the 1mgit_source 22mmethod. Provide
|
417
|
-
the source's name as an argument, and a block which receives a single
|
418
|
-
argument and interpolates it into a string to return the full repo
|
419
|
-
address:
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
git_source(:stash){ |repo_name| "https://stash.corp.acme.pl/#{repo_name}.git" }
|
424
|
-
gem 'rails', :stash => 'forks/rails'
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
In addition, if you wish to choose a specific branch:
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
gem "rails", :stash => "forks/rails", :branch => "branch_name"
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
1mGITHUB0m
|
437
|
-
1mNOTE22m: This shorthand should be avoided until Bundler 2.0, since it cur-
|
438
|
-
rently expands to an insecure 1mgit:// 22mURL. This allows a man-in-the-mid-
|
439
|
-
dle attacker to compromise your system.
|
440
|
-
|
441
|
-
If the git repository you want to use is hosted on GitHub and is pub-
|
442
|
-
lic, you can use the :github shorthand to specify the github username
|
443
|
-
and repository name (without the trailing ".git"), separated by a
|
444
|
-
slash. If both the username and repository name are the same, you can
|
445
|
-
omit one.
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
gem "rails", :github => "rails/rails"
|
450
|
-
gem "rails", :github => "rails"
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
Are both equivalent to
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
gem "rails", :git => "git://github.com/rails/rails.git"
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
Since the 1mgithub 22mmethod is a specialization of 1mgit_source22m, it accepts a
|
463
|
-
1m:branch 22mnamed argument.
|
464
|
-
|
465
|
-
1mGIST0m
|
466
|
-
If the git repository you want to use is hosted as a Github Gist and is
|
467
|
-
public, you can use the :gist shorthand to specify the gist identifier
|
468
|
-
(without the trailing ".git").
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
gem "the_hatch", :gist => "4815162342"
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
Is equivalent to:
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
gem "the_hatch", :git => "https://gist.github.com/4815162342.git"
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
Since the 1mgist 22mmethod is a specialization of 1mgit_source22m, it accepts a
|
485
|
-
1m:branch 22mnamed argument.
|
486
|
-
|
487
|
-
1mBITBUCKET0m
|
488
|
-
If the git repository you want to use is hosted on Bitbucket and is
|
489
|
-
public, you can use the :bitbucket shorthand to specify the bitbucket
|
490
|
-
username and repository name (without the trailing ".git"), separated
|
491
|
-
by a slash. If both the username and repository name are the same, you
|
492
|
-
can omit one.
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
gem "rails", :bitbucket => "rails/rails"
|
497
|
-
gem "rails", :bitbucket => "rails"
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
Are both equivalent to
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
gem "rails", :git => "https://rails@bitbucket.org/rails/rails.git"
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
Since the 1mbitbucket 22mmethod is a specialization of 1mgit_source22m, it
|
510
|
-
accepts a 1m:branch 22mnamed argument.
|
511
|
-
|
512
|
-
1mPATH0m
|
513
|
-
You can specify that a gem is located in a particular location on the
|
514
|
-
file system. Relative paths are resolved relative to the directory con-
|
515
|
-
taining the 1mGemfile22m.
|
516
|
-
|
517
|
-
Similar to the semantics of the 1m:git 22moption, the 1m:path 22moption requires
|
518
|
-
that the directory in question either contains a 1m.gemspec 22mfor the gem,
|
519
|
-
or that you specify an explicit version that bundler should use.
|
520
|
-
|
521
|
-
Unlike 1m:git22m, bundler does not compile C extensions for gems specified
|
522
|
-
as paths.
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
gem "rails", :path => "vendor/rails"
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
If you would like to use multiple local gems directly from the filesys-
|
531
|
-
tem, you can set a global 1mpath 22moption to the path containing the gem's
|
532
|
-
files. This will automatically load gemspec files from subdirectories.
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
path 'components' do
|
537
|
-
gem 'admin_ui'
|
538
|
-
gem 'public_ui'
|
539
|
-
end
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
1mBLOCK FORM OF SOURCE, GIT, PATH, GROUP and PLATFORMS0m
|
544
|
-
The 1m:source22m, 1m:git22m, 1m:path22m, 1m:group22m, and 1m:platforms 22moptions may be applied
|
545
|
-
to a group of gems by using block form.
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
source "https://gems.example.com" do
|
550
|
-
gem "some_internal_gem"
|
551
|
-
gem "another_internal_gem"
|
552
|
-
end
|
553
|
-
|
554
|
-
git "https://github.com/rails/rails.git" do
|
555
|
-
gem "activesupport"
|
556
|
-
gem "actionpack"
|
557
|
-
end
|
558
|
-
|
559
|
-
platforms :ruby do
|
560
|
-
gem "ruby-debug"
|
561
|
-
gem "sqlite3"
|
562
|
-
end
|
563
|
-
|
564
|
-
group :development, :optional => true do
|
565
|
-
gem "wirble"
|
566
|
-
gem "faker"
|
567
|
-
end
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
In the case of the group block form the :optional option can be given
|
572
|
-
to prevent a group from being installed unless listed in the 1m--with0m
|
573
|
-
option given to the 1mbundle install 22mcommand.
|
574
|
-
|
575
|
-
In the case of the 1mgit 22mblock form, the 1m:ref22m, 1m:branch22m, 1m:tag22m, and 1m:sub-0m
|
576
|
-
1mmodules 22moptions may be passed to the 1mgit 22mmethod, and all gems in the
|
577
|
-
block will inherit those options.
|
578
|
-
|
579
|
-
1mINSTALL_IF0m
|
580
|
-
The 1minstall_if 22mmethod allows gems to be installed based on a proc or
|
581
|
-
lambda. This is especially useful for optional gems that can only be
|
582
|
-
used if certain software is installed or some other conditions are met.
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
install_if -> { RUBY_PLATFORM =~ /darwin/ } do
|
587
|
-
gem "pasteboard"
|
588
|
-
end
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
1mGEMSPEC0m
|
593
|
-
If you wish to use Bundler to help install dependencies for a gem while
|
594
|
-
it is being developed, use the 1mgemspec 22mmethod to pull in the dependen-
|
595
|
-
cies listed in the 1m.gemspec 22mfile.
|
596
|
-
|
597
|
-
The 1mgemspec 22mmethod adds any runtime dependencies as gem requirements in
|
598
|
-
the default group. It also adds development dependencies as gem
|
599
|
-
requirements in the 1mdevelopment 22mgroup. Finally, it adds a gem require-
|
600
|
-
ment on your project (1m:path => '.'22m). In conjunction with 1mBundler.setup22m,
|
601
|
-
this allows you to require project files in your test code as you would
|
602
|
-
if the project were installed as a gem; you need not manipulate the
|
603
|
-
load path manually or require project files via relative paths.
|
604
|
-
|
605
|
-
The 1mgemspec 22mmethod supports optional 1m:path22m, 1m:glob22m, 1m:name22m, and 1m:develop-0m
|
606
|
-
1mment_group 22moptions, which control where bundler looks for the 1m.gemspec22m,
|
607
|
-
the glob it uses to look for the gemspec (defaults to: "{,4m,24m/*}.gem-
|
608
|
-
spec"), what named 1m.gemspec 22mit uses (if more than one is present), and
|
609
|
-
which group development dependencies are included in.
|
610
|
-
|
611
|
-
When a 1mgemspec 22mdependency encounters version conflicts during resolu-
|
612
|
-
tion, the local version under development will always be selected --
|
613
|
-
even if there are remote versions that better match other requirements
|
614
|
-
for the 1mgemspec 22mgem.
|
615
|
-
|
616
|
-
1mSOURCE PRIORITY0m
|
617
|
-
When attempting to locate a gem to satisfy a gem requirement, bundler
|
618
|
-
uses the following priority order:
|
619
|
-
|
620
|
-
1. The source explicitly attached to the gem (using 1m:source22m, 1m:path22m, or
|
621
|
-
1m:git22m)
|
622
|
-
|
623
|
-
2. For implicit gems (dependencies of explicit gems), any source, git,
|
624
|
-
or path repository declared on the parent. This results in bundler
|
625
|
-
prioritizing the ActiveSupport gem from the Rails git repository
|
626
|
-
over ones from 1mrubygems.org0m
|
627
|
-
|
628
|
-
3. The sources specified via global 1msource 22mlines, searching each
|
629
|
-
source in your 1mGemfile 22mfrom last added to first added.
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
October 2016 GEMFILE(5)
|