bundler 2.0.2
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 +7 -0
- data/CHANGELOG.md +3111 -0
- data/LICENSE.md +23 -0
- data/README.md +63 -0
- data/bundler.gemspec +65 -0
- data/exe/bundle +31 -0
- data/exe/bundle_ruby +60 -0
- data/exe/bundler +4 -0
- data/lib/bundler.rb +567 -0
- data/lib/bundler/build_metadata.rb +53 -0
- data/lib/bundler/capistrano.rb +22 -0
- data/lib/bundler/cli.rb +792 -0
- data/lib/bundler/cli/add.rb +35 -0
- data/lib/bundler/cli/binstubs.rb +49 -0
- data/lib/bundler/cli/cache.rb +36 -0
- data/lib/bundler/cli/check.rb +38 -0
- data/lib/bundler/cli/clean.rb +25 -0
- data/lib/bundler/cli/common.rb +102 -0
- data/lib/bundler/cli/config.rb +119 -0
- data/lib/bundler/cli/console.rb +43 -0
- data/lib/bundler/cli/doctor.rb +140 -0
- data/lib/bundler/cli/exec.rb +105 -0
- data/lib/bundler/cli/gem.rb +252 -0
- data/lib/bundler/cli/info.rb +50 -0
- data/lib/bundler/cli/init.rb +47 -0
- data/lib/bundler/cli/inject.rb +60 -0
- data/lib/bundler/cli/install.rb +218 -0
- data/lib/bundler/cli/issue.rb +40 -0
- data/lib/bundler/cli/list.rb +58 -0
- data/lib/bundler/cli/lock.rb +63 -0
- data/lib/bundler/cli/open.rb +26 -0
- data/lib/bundler/cli/outdated.rb +266 -0
- data/lib/bundler/cli/package.rb +49 -0
- data/lib/bundler/cli/platform.rb +46 -0
- data/lib/bundler/cli/plugin.rb +24 -0
- data/lib/bundler/cli/pristine.rb +47 -0
- data/lib/bundler/cli/remove.rb +18 -0
- data/lib/bundler/cli/show.rb +75 -0
- data/lib/bundler/cli/update.rb +91 -0
- data/lib/bundler/cli/viz.rb +31 -0
- 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 +13 -0
- data/lib/bundler/constants.rb +7 -0
- data/lib/bundler/current_ruby.rb +94 -0
- data/lib/bundler/definition.rb +995 -0
- data/lib/bundler/dep_proxy.rb +48 -0
- data/lib/bundler/dependency.rb +139 -0
- data/lib/bundler/deployment.rb +69 -0
- data/lib/bundler/deprecate.rb +44 -0
- data/lib/bundler/dsl.rb +615 -0
- data/lib/bundler/endpoint_specification.rb +141 -0
- data/lib/bundler/env.rb +149 -0
- data/lib/bundler/environment_preserver.rb +59 -0
- data/lib/bundler/errors.rb +158 -0
- data/lib/bundler/feature_flag.rb +75 -0
- data/lib/bundler/fetcher.rb +312 -0
- data/lib/bundler/fetcher/base.rb +52 -0
- data/lib/bundler/fetcher/compact_index.rb +126 -0
- data/lib/bundler/fetcher/dependency.rb +82 -0
- data/lib/bundler/fetcher/downloader.rb +84 -0
- data/lib/bundler/fetcher/index.rb +52 -0
- data/lib/bundler/friendly_errors.rb +131 -0
- data/lib/bundler/gem_helper.rb +217 -0
- data/lib/bundler/gem_helpers.rb +101 -0
- data/lib/bundler/gem_remote_fetcher.rb +43 -0
- data/lib/bundler/gem_tasks.rb +7 -0
- data/lib/bundler/gem_version_promoter.rb +190 -0
- data/lib/bundler/gemdeps.rb +29 -0
- data/lib/bundler/graph.rb +152 -0
- data/lib/bundler/index.rb +213 -0
- data/lib/bundler/injector.rb +253 -0
- data/lib/bundler/inline.rb +74 -0
- data/lib/bundler/installer.rb +318 -0
- data/lib/bundler/installer/gem_installer.rb +85 -0
- data/lib/bundler/installer/parallel_installer.rb +229 -0
- data/lib/bundler/installer/standalone.rb +53 -0
- data/lib/bundler/lazy_specification.rb +123 -0
- data/lib/bundler/lockfile_generator.rb +95 -0
- data/lib/bundler/lockfile_parser.rb +256 -0
- data/lib/bundler/match_platform.rb +24 -0
- data/lib/bundler/mirror.rb +223 -0
- data/lib/bundler/plugin.rb +294 -0
- data/lib/bundler/plugin/api.rb +81 -0
- data/lib/bundler/plugin/api/source.rb +306 -0
- data/lib/bundler/plugin/dsl.rb +53 -0
- data/lib/bundler/plugin/events.rb +61 -0
- data/lib/bundler/plugin/index.rb +165 -0
- data/lib/bundler/plugin/installer.rb +96 -0
- data/lib/bundler/plugin/installer/git.rb +38 -0
- data/lib/bundler/plugin/installer/rubygems.rb +27 -0
- data/lib/bundler/plugin/source_list.rb +27 -0
- data/lib/bundler/process_lock.rb +24 -0
- data/lib/bundler/psyched_yaml.rb +37 -0
- data/lib/bundler/remote_specification.rb +114 -0
- data/lib/bundler/resolver.rb +373 -0
- data/lib/bundler/resolver/spec_group.rb +106 -0
- data/lib/bundler/retry.rb +66 -0
- data/lib/bundler/ruby_dsl.rb +18 -0
- data/lib/bundler/ruby_version.rb +152 -0
- data/lib/bundler/rubygems_ext.rb +209 -0
- data/lib/bundler/rubygems_gem_installer.rb +99 -0
- data/lib/bundler/rubygems_integration.rb +915 -0
- data/lib/bundler/runtime.rb +322 -0
- data/lib/bundler/settings.rb +464 -0
- data/lib/bundler/settings/validator.rb +102 -0
- data/lib/bundler/setup.rb +28 -0
- data/lib/bundler/shared_helpers.rb +386 -0
- data/lib/bundler/similarity_detector.rb +63 -0
- data/lib/bundler/source.rb +94 -0
- data/lib/bundler/source/gemspec.rb +18 -0
- data/lib/bundler/source/git.rb +329 -0
- data/lib/bundler/source/git/git_proxy.rb +262 -0
- data/lib/bundler/source/metadata.rb +62 -0
- data/lib/bundler/source/path.rb +249 -0
- data/lib/bundler/source/path/installer.rb +74 -0
- data/lib/bundler/source/rubygems.rb +539 -0
- data/lib/bundler/source/rubygems/remote.rb +69 -0
- data/lib/bundler/source_list.rb +186 -0
- data/lib/bundler/spec_set.rb +208 -0
- data/lib/bundler/ssl_certs/.document +1 -0
- data/lib/bundler/ssl_certs/certificate_manager.rb +66 -0
- data/lib/bundler/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem +21 -0
- data/lib/bundler/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem +23 -0
- data/lib/bundler/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem +25 -0
- data/lib/bundler/stub_specification.rb +108 -0
- data/lib/bundler/templates/.document +1 -0
- data/lib/bundler/templates/Executable +29 -0
- data/lib/bundler/templates/Executable.bundler +105 -0
- data/lib/bundler/templates/Executable.standalone +14 -0
- data/lib/bundler/templates/Gemfile +7 -0
- data/lib/bundler/templates/gems.rb +8 -0
- data/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +74 -0
- data/lib/bundler/templates/newgem/Gemfile.tt +4 -0
- data/lib/bundler/templates/newgem/LICENSE.txt.tt +21 -0
- data/lib/bundler/templates/newgem/README.md.tt +47 -0
- data/lib/bundler/templates/newgem/Rakefile.tt +29 -0
- data/lib/bundler/templates/newgem/bin/console.tt +14 -0
- data/lib/bundler/templates/newgem/bin/setup.tt +8 -0
- data/lib/bundler/templates/newgem/exe/newgem.tt +3 -0
- data/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt +3 -0
- data/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +9 -0
- data/lib/bundler/templates/newgem/ext/newgem/newgem.h.tt +6 -0
- data/lib/bundler/templates/newgem/gitignore.tt +20 -0
- data/lib/bundler/templates/newgem/lib/newgem.rb.tt +13 -0
- data/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +7 -0
- data/lib/bundler/templates/newgem/newgem.gemspec.tt +50 -0
- data/lib/bundler/templates/newgem/rspec.tt +3 -0
- data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +9 -0
- data/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +14 -0
- data/lib/bundler/templates/newgem/test/newgem_test.rb.tt +11 -0
- data/lib/bundler/templates/newgem/test/test_helper.rb.tt +8 -0
- data/lib/bundler/templates/newgem/travis.yml.tt +7 -0
- data/lib/bundler/ui.rb +9 -0
- data/lib/bundler/ui/rg_proxy.rb +19 -0
- data/lib/bundler/ui/shell.rb +146 -0
- data/lib/bundler/ui/silent.rb +69 -0
- data/lib/bundler/uri_credentials_filter.rb +37 -0
- data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1741 -0
- data/lib/bundler/vendor/fileutils/lib/fileutils/version.rb +5 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo.rb +12 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +57 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +81 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +223 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +36 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +66 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +62 -0
- 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 +61 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +126 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +46 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +36 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +136 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +143 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +6 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +101 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +67 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +837 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +46 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +58 -0
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/faster.rb +27 -0
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +1233 -0
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/ssl_reuse.rb +129 -0
- data/lib/bundler/vendor/thor/lib/thor.rb +509 -0
- data/lib/bundler/vendor/thor/lib/thor/actions.rb +331 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +104 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +60 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +118 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +143 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +373 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +109 -0
- data/lib/bundler/vendor/thor/lib/thor/base.rb +678 -0
- data/lib/bundler/vendor/thor/lib/thor/command.rb +135 -0
- data/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +97 -0
- data/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb +12 -0
- data/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +129 -0
- data/lib/bundler/vendor/thor/lib/thor/error.rb +114 -0
- data/lib/bundler/vendor/thor/lib/thor/group.rb +281 -0
- data/lib/bundler/vendor/thor/lib/thor/invocation.rb +177 -0
- data/lib/bundler/vendor/thor/lib/thor/line_editor.rb +17 -0
- data/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +37 -0
- data/lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb +88 -0
- data/lib/bundler/vendor/thor/lib/thor/parser.rb +4 -0
- data/lib/bundler/vendor/thor/lib/thor/parser/argument.rb +70 -0
- data/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +175 -0
- data/lib/bundler/vendor/thor/lib/thor/parser/option.rb +146 -0
- data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +226 -0
- data/lib/bundler/vendor/thor/lib/thor/rake_compat.rb +71 -0
- data/lib/bundler/vendor/thor/lib/thor/runner.rb +324 -0
- data/lib/bundler/vendor/thor/lib/thor/shell.rb +81 -0
- data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +482 -0
- data/lib/bundler/vendor/thor/lib/thor/shell/color.rb +149 -0
- data/lib/bundler/vendor/thor/lib/thor/shell/html.rb +126 -0
- data/lib/bundler/vendor/thor/lib/thor/util.rb +268 -0
- data/lib/bundler/vendor/thor/lib/thor/version.rb +3 -0
- data/lib/bundler/vendored_fileutils.rb +9 -0
- data/lib/bundler/vendored_molinillo.rb +4 -0
- data/lib/bundler/vendored_persistent.rb +52 -0
- data/lib/bundler/vendored_thor.rb +8 -0
- data/lib/bundler/version.rb +28 -0
- data/lib/bundler/version_ranges.rb +76 -0
- data/lib/bundler/vlad.rb +17 -0
- data/lib/bundler/worker.rb +106 -0
- data/lib/bundler/yaml_serializer.rb +90 -0
- data/man/bundle-add.1 +58 -0
- data/man/bundle-add.1.txt +52 -0
- data/man/bundle-add.ronn +40 -0
- data/man/bundle-binstubs.1 +40 -0
- data/man/bundle-binstubs.1.txt +48 -0
- data/man/bundle-binstubs.ronn +43 -0
- 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 +397 -0
- 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 +165 -0
- data/man/bundle-exec.1.txt +178 -0
- data/man/bundle-exec.ronn +152 -0
- data/man/bundle-gem.1 +80 -0
- data/man/bundle-gem.1.txt +91 -0
- data/man/bundle-gem.ronn +78 -0
- 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/man/bundle-install.1 +308 -0
- data/man/bundle-install.1.txt +396 -0
- data/man/bundle-install.ronn +378 -0
- 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 +84 -0
- data/man/bundle-lock.1.txt +93 -0
- data/man/bundle-lock.ronn +94 -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/man/bundle-package.1 +55 -0
- data/man/bundle-package.1.txt +79 -0
- data/man/bundle-package.ronn +72 -0
- data/man/bundle-platform.1 +61 -0
- data/man/bundle-platform.1.txt +57 -0
- data/man/bundle-platform.ronn +42 -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 +350 -0
- data/man/bundle-viz.1 +39 -0
- data/man/bundle-viz.1.txt +39 -0
- data/man/bundle-viz.ronn +30 -0
- data/man/bundle.1 +136 -0
- data/man/bundle.1.txt +116 -0
- data/man/bundle.ronn +111 -0
- data/man/gemfile.5 +689 -0
- data/man/gemfile.5.ronn +521 -0
- data/man/gemfile.5.txt +653 -0
- data/man/index.txt +25 -0
- metadata +463 -0
data/man/bundle.1
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "BUNDLE" "1" "June 2019" "" ""
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fBbundle\fR \- Ruby Dependency Management
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
\fBbundle\fR COMMAND [\-\-no\-color] [\-\-verbose] [ARGS]
|
11
|
+
.
|
12
|
+
.SH "DESCRIPTION"
|
13
|
+
Bundler manages an \fBapplication\'s dependencies\fR through its entire life across many machines systematically and repeatably\.
|
14
|
+
.
|
15
|
+
.P
|
16
|
+
See the bundler website \fIhttps://bundler\.io\fR for information on getting started, and Gemfile(5) for more information on the \fBGemfile\fR format\.
|
17
|
+
.
|
18
|
+
.SH "OPTIONS"
|
19
|
+
.
|
20
|
+
.TP
|
21
|
+
\fB\-\-no\-color\fR
|
22
|
+
Print all output without color
|
23
|
+
.
|
24
|
+
.TP
|
25
|
+
\fB\-\-retry\fR, \fB\-r\fR
|
26
|
+
Specify the number of times you wish to attempt network commands
|
27
|
+
.
|
28
|
+
.TP
|
29
|
+
\fB\-\-verbose\fR, \fB\-V\fR
|
30
|
+
Print out additional logging information
|
31
|
+
.
|
32
|
+
.SH "BUNDLE COMMANDS"
|
33
|
+
We divide \fBbundle\fR subcommands into primary commands and utilities:
|
34
|
+
.
|
35
|
+
.SH "PRIMARY COMMANDS"
|
36
|
+
.
|
37
|
+
.TP
|
38
|
+
\fBbundle install(1)\fR \fIbundle\-install\.1\.html\fR
|
39
|
+
Install the gems specified by the \fBGemfile\fR or \fBGemfile\.lock\fR
|
40
|
+
.
|
41
|
+
.TP
|
42
|
+
\fBbundle update(1)\fR \fIbundle\-update\.1\.html\fR
|
43
|
+
Update dependencies to their latest versions
|
44
|
+
.
|
45
|
+
.TP
|
46
|
+
\fBbundle package(1)\fR \fIbundle\-package\.1\.html\fR
|
47
|
+
Package the \.gem files required by your application into the \fBvendor/cache\fR directory
|
48
|
+
.
|
49
|
+
.TP
|
50
|
+
\fBbundle exec(1)\fR \fIbundle\-exec\.1\.html\fR
|
51
|
+
Execute a script in the current bundle
|
52
|
+
.
|
53
|
+
.TP
|
54
|
+
\fBbundle config(1)\fR \fIbundle\-config\.1\.html\fR
|
55
|
+
Specify and read configuration options for Bundler
|
56
|
+
.
|
57
|
+
.TP
|
58
|
+
\fBbundle help(1)\fR
|
59
|
+
Display detailed help for each subcommand
|
60
|
+
.
|
61
|
+
.SH "UTILITIES"
|
62
|
+
.
|
63
|
+
.TP
|
64
|
+
\fBbundle add(1)\fR \fIbundle\-add\.1\.html\fR
|
65
|
+
Add the named gem to the Gemfile and run \fBbundle install\fR
|
66
|
+
.
|
67
|
+
.TP
|
68
|
+
\fBbundle binstubs(1)\fR \fIbundle\-binstubs\.1\.html\fR
|
69
|
+
Generate binstubs for executables in a gem
|
70
|
+
.
|
71
|
+
.TP
|
72
|
+
\fBbundle check(1)\fR \fIbundle\-check\.1\.html\fR
|
73
|
+
Determine whether the requirements for your application are installed and available to Bundler
|
74
|
+
.
|
75
|
+
.TP
|
76
|
+
\fBbundle show(1)\fR \fIbundle\-show\.1\.html\fR
|
77
|
+
Show the source location of a particular gem in the bundle
|
78
|
+
.
|
79
|
+
.TP
|
80
|
+
\fBbundle outdated(1)\fR \fIbundle\-outdated\.1\.html\fR
|
81
|
+
Show all of the outdated gems in the current bundle
|
82
|
+
.
|
83
|
+
.TP
|
84
|
+
\fBbundle console(1)\fR
|
85
|
+
Start an IRB session in the current bundle
|
86
|
+
.
|
87
|
+
.TP
|
88
|
+
\fBbundle open(1)\fR \fIbundle\-open\.1\.html\fR
|
89
|
+
Open an installed gem in the editor
|
90
|
+
.
|
91
|
+
.TP
|
92
|
+
\fBbundle lock(1)\fR \fIbundle\-lock\.1\.hmtl\fR
|
93
|
+
Generate a lockfile for your dependencies
|
94
|
+
.
|
95
|
+
.TP
|
96
|
+
\fBbundle viz(1)\fR \fIbundle\-viz\.1\.html\fR
|
97
|
+
Generate a visual representation of your dependencies
|
98
|
+
.
|
99
|
+
.TP
|
100
|
+
\fBbundle init(1)\fR \fIbundle\-init\.1\.html\fR
|
101
|
+
Generate a simple \fBGemfile\fR, placed in the current directory
|
102
|
+
.
|
103
|
+
.TP
|
104
|
+
\fBbundle gem(1)\fR \fIbundle\-gem\.1\.html\fR
|
105
|
+
Create a simple gem, suitable for development with Bundler
|
106
|
+
.
|
107
|
+
.TP
|
108
|
+
\fBbundle platform(1)\fR \fIbundle\-platform\.1\.html\fR
|
109
|
+
Display platform compatibility information
|
110
|
+
.
|
111
|
+
.TP
|
112
|
+
\fBbundle clean(1)\fR \fIbundle\-clean\.1\.html\fR
|
113
|
+
Clean up unused gems in your Bundler directory
|
114
|
+
.
|
115
|
+
.TP
|
116
|
+
\fBbundle doctor(1)\fR \fIbundle\-doctor\.1\.html\fR
|
117
|
+
Display warnings about common problems
|
118
|
+
.
|
119
|
+
.TP
|
120
|
+
\fBbundle remove(1)\fR \fIbundle\-remove\.1\.html\fR
|
121
|
+
Removes gems from the Gemfile
|
122
|
+
.
|
123
|
+
.SH "PLUGINS"
|
124
|
+
When running a command that isn\'t listed in PRIMARY COMMANDS or UTILITIES, Bundler will try to find an executable on your path named \fBbundler\-<command>\fR and execute it, passing down any extra arguments to it\.
|
125
|
+
.
|
126
|
+
.SH "OBSOLETE"
|
127
|
+
These commands are obsolete and should no longer be used:
|
128
|
+
.
|
129
|
+
.IP "\(bu" 4
|
130
|
+
\fBbundle cache(1)\fR
|
131
|
+
.
|
132
|
+
.IP "\(bu" 4
|
133
|
+
\fBbundle show(1)\fR
|
134
|
+
.
|
135
|
+
.IP "" 0
|
136
|
+
|
data/man/bundle.1.txt
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
BUNDLE(1) BUNDLE(1)
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
NAME
|
6
|
+
bundle - Ruby Dependency Management
|
7
|
+
|
8
|
+
SYNOPSIS
|
9
|
+
bundle COMMAND [--no-color] [--verbose] [ARGS]
|
10
|
+
|
11
|
+
DESCRIPTION
|
12
|
+
Bundler manages an application's dependencies through its entire life
|
13
|
+
across many machines systematically and repeatably.
|
14
|
+
|
15
|
+
See the bundler website https://bundler.io for information on getting
|
16
|
+
started, and Gemfile(5) for more information on the Gemfile format.
|
17
|
+
|
18
|
+
OPTIONS
|
19
|
+
--no-color
|
20
|
+
Print all output without color
|
21
|
+
|
22
|
+
--retry, -r
|
23
|
+
Specify the number of times you wish to attempt network commands
|
24
|
+
|
25
|
+
--verbose, -V
|
26
|
+
Print out additional logging information
|
27
|
+
|
28
|
+
BUNDLE COMMANDS
|
29
|
+
We divide bundle subcommands into primary commands and utilities:
|
30
|
+
|
31
|
+
PRIMARY COMMANDS
|
32
|
+
bundle install(1) bundle-install.1.html
|
33
|
+
Install the gems specified by the Gemfile or Gemfile.lock
|
34
|
+
|
35
|
+
bundle update(1) bundle-update.1.html
|
36
|
+
Update dependencies to their latest versions
|
37
|
+
|
38
|
+
bundle package(1) bundle-package.1.html
|
39
|
+
Package the .gem files required by your application into the
|
40
|
+
vendor/cache directory
|
41
|
+
|
42
|
+
bundle exec(1) bundle-exec.1.html
|
43
|
+
Execute a script in the current bundle
|
44
|
+
|
45
|
+
bundle config(1) bundle-config.1.html
|
46
|
+
Specify and read configuration options for Bundler
|
47
|
+
|
48
|
+
bundle help(1)
|
49
|
+
Display detailed help for each subcommand
|
50
|
+
|
51
|
+
UTILITIES
|
52
|
+
bundle add(1) bundle-add.1.html
|
53
|
+
Add the named gem to the Gemfile and run bundle install
|
54
|
+
|
55
|
+
bundle binstubs(1) bundle-binstubs.1.html
|
56
|
+
Generate binstubs for executables in a gem
|
57
|
+
|
58
|
+
bundle check(1) bundle-check.1.html
|
59
|
+
Determine whether the requirements for your application are
|
60
|
+
installed and available to Bundler
|
61
|
+
|
62
|
+
bundle show(1) bundle-show.1.html
|
63
|
+
Show the source location of a particular gem in the bundle
|
64
|
+
|
65
|
+
bundle outdated(1) bundle-outdated.1.html
|
66
|
+
Show all of the outdated gems in the current bundle
|
67
|
+
|
68
|
+
bundle console(1)
|
69
|
+
Start an IRB session in the current bundle
|
70
|
+
|
71
|
+
bundle open(1) bundle-open.1.html
|
72
|
+
Open an installed gem in the editor
|
73
|
+
|
74
|
+
bundle lock(1) bundle-lock.1.hmtl
|
75
|
+
Generate a lockfile for your dependencies
|
76
|
+
|
77
|
+
bundle viz(1) bundle-viz.1.html
|
78
|
+
Generate a visual representation of your dependencies
|
79
|
+
|
80
|
+
bundle init(1) bundle-init.1.html
|
81
|
+
Generate a simple Gemfile, placed in the current directory
|
82
|
+
|
83
|
+
bundle gem(1) bundle-gem.1.html
|
84
|
+
Create a simple gem, suitable for development with Bundler
|
85
|
+
|
86
|
+
bundle platform(1) bundle-platform.1.html
|
87
|
+
Display platform compatibility information
|
88
|
+
|
89
|
+
bundle clean(1) bundle-clean.1.html
|
90
|
+
Clean up unused gems in your Bundler directory
|
91
|
+
|
92
|
+
bundle doctor(1) bundle-doctor.1.html
|
93
|
+
Display warnings about common problems
|
94
|
+
|
95
|
+
bundle remove(1) bundle-remove.1.html
|
96
|
+
Removes gems from the Gemfile
|
97
|
+
|
98
|
+
PLUGINS
|
99
|
+
When running a command that isn't listed in PRIMARY COMMANDS or UTILI-
|
100
|
+
TIES, Bundler will try to find an executable on your path named
|
101
|
+
bundler-<command> and execute it, passing down any extra arguments to
|
102
|
+
it.
|
103
|
+
|
104
|
+
OBSOLETE
|
105
|
+
These commands are obsolete and should no longer be used:
|
106
|
+
|
107
|
+
o bundle cache(1)
|
108
|
+
|
109
|
+
o bundle show(1)
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
June 2019 BUNDLE(1)
|
data/man/bundle.ronn
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
bundle(1) -- Ruby Dependency Management
|
2
|
+
=======================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`bundle` COMMAND [--no-color] [--verbose] [ARGS]
|
7
|
+
|
8
|
+
## DESCRIPTION
|
9
|
+
|
10
|
+
Bundler manages an `application's dependencies` through its entire life
|
11
|
+
across many machines systematically and repeatably.
|
12
|
+
|
13
|
+
See [the bundler website](https://bundler.io) for information on getting
|
14
|
+
started, and Gemfile(5) for more information on the `Gemfile` format.
|
15
|
+
|
16
|
+
## OPTIONS
|
17
|
+
|
18
|
+
* `--no-color`:
|
19
|
+
Print all output without color
|
20
|
+
|
21
|
+
* `--retry`, `-r`:
|
22
|
+
Specify the number of times you wish to attempt network commands
|
23
|
+
|
24
|
+
* `--verbose`, `-V`:
|
25
|
+
Print out additional logging information
|
26
|
+
|
27
|
+
## BUNDLE COMMANDS
|
28
|
+
|
29
|
+
We divide `bundle` subcommands into primary commands and utilities:
|
30
|
+
|
31
|
+
## PRIMARY COMMANDS
|
32
|
+
|
33
|
+
* [`bundle install(1)`](bundle-install.1.html):
|
34
|
+
Install the gems specified by the `Gemfile` or `Gemfile.lock`
|
35
|
+
|
36
|
+
* [`bundle update(1)`](bundle-update.1.html):
|
37
|
+
Update dependencies to their latest versions
|
38
|
+
|
39
|
+
* [`bundle package(1)`](bundle-package.1.html):
|
40
|
+
Package the .gem files required by your application into the
|
41
|
+
`vendor/cache` directory
|
42
|
+
|
43
|
+
* [`bundle exec(1)`](bundle-exec.1.html):
|
44
|
+
Execute a script in the current bundle
|
45
|
+
|
46
|
+
* [`bundle config(1)`](bundle-config.1.html):
|
47
|
+
Specify and read configuration options for Bundler
|
48
|
+
|
49
|
+
* `bundle help(1)`:
|
50
|
+
Display detailed help for each subcommand
|
51
|
+
|
52
|
+
## UTILITIES
|
53
|
+
|
54
|
+
* [`bundle add(1)`](bundle-add.1.html):
|
55
|
+
Add the named gem to the Gemfile and run `bundle install`
|
56
|
+
|
57
|
+
* [`bundle binstubs(1)`](bundle-binstubs.1.html):
|
58
|
+
Generate binstubs for executables in a gem
|
59
|
+
|
60
|
+
* [`bundle check(1)`](bundle-check.1.html):
|
61
|
+
Determine whether the requirements for your application are installed
|
62
|
+
and available to Bundler
|
63
|
+
|
64
|
+
* [`bundle show(1)`](bundle-show.1.html):
|
65
|
+
Show the source location of a particular gem in the bundle
|
66
|
+
|
67
|
+
* [`bundle outdated(1)`](bundle-outdated.1.html):
|
68
|
+
Show all of the outdated gems in the current bundle
|
69
|
+
|
70
|
+
* `bundle console(1)`:
|
71
|
+
Start an IRB session in the current bundle
|
72
|
+
|
73
|
+
* [`bundle open(1)`](bundle-open.1.html):
|
74
|
+
Open an installed gem in the editor
|
75
|
+
|
76
|
+
* [`bundle lock(1)`](bundle-lock.1.hmtl):
|
77
|
+
Generate a lockfile for your dependencies
|
78
|
+
|
79
|
+
* [`bundle viz(1)`](bundle-viz.1.html):
|
80
|
+
Generate a visual representation of your dependencies
|
81
|
+
|
82
|
+
* [`bundle init(1)`](bundle-init.1.html):
|
83
|
+
Generate a simple `Gemfile`, placed in the current directory
|
84
|
+
|
85
|
+
* [`bundle gem(1)`](bundle-gem.1.html):
|
86
|
+
Create a simple gem, suitable for development with Bundler
|
87
|
+
|
88
|
+
* [`bundle platform(1)`](bundle-platform.1.html):
|
89
|
+
Display platform compatibility information
|
90
|
+
|
91
|
+
* [`bundle clean(1)`](bundle-clean.1.html):
|
92
|
+
Clean up unused gems in your Bundler directory
|
93
|
+
|
94
|
+
* [`bundle doctor(1)`](bundle-doctor.1.html):
|
95
|
+
Display warnings about common problems
|
96
|
+
|
97
|
+
* [`bundle remove(1)`](bundle-remove.1.html):
|
98
|
+
Removes gems from the Gemfile
|
99
|
+
|
100
|
+
## PLUGINS
|
101
|
+
|
102
|
+
When running a command that isn't listed in PRIMARY COMMANDS or UTILITIES,
|
103
|
+
Bundler will try to find an executable on your path named `bundler-<command>`
|
104
|
+
and execute it, passing down any extra arguments to it.
|
105
|
+
|
106
|
+
## OBSOLETE
|
107
|
+
|
108
|
+
These commands are obsolete and should no longer be used:
|
109
|
+
|
110
|
+
* `bundle cache(1)`
|
111
|
+
* `bundle show(1)`
|
data/man/gemfile.5
ADDED
@@ -0,0 +1,689 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "GEMFILE" "5" "June 2019" "" ""
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fBGemfile\fR \- A format for describing gem dependencies for Ruby programs
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
A \fBGemfile\fR describes the gem dependencies required to execute associated Ruby code\.
|
11
|
+
.
|
12
|
+
.P
|
13
|
+
Place the \fBGemfile\fR in the root of the directory containing the associated code\. For instance, in a Rails application, place the \fBGemfile\fR in the same directory as the \fBRakefile\fR\.
|
14
|
+
.
|
15
|
+
.SH "SYNTAX"
|
16
|
+
A \fBGemfile\fR is evaluated as Ruby code, in a context which makes available a number of methods used to describe the gem requirements\.
|
17
|
+
.
|
18
|
+
.SH "GLOBAL SOURCES"
|
19
|
+
At the top of the \fBGemfile\fR, add a line for the \fBRubygems\fR source that contains the gems listed in the \fBGemfile\fR\.
|
20
|
+
.
|
21
|
+
.IP "" 4
|
22
|
+
.
|
23
|
+
.nf
|
24
|
+
|
25
|
+
source "https://rubygems\.org"
|
26
|
+
.
|
27
|
+
.fi
|
28
|
+
.
|
29
|
+
.IP "" 0
|
30
|
+
.
|
31
|
+
.P
|
32
|
+
It is possible, but not recommended as of Bundler 1\.7, to add multiple global \fBsource\fR lines\. Each of these \fBsource\fRs \fBMUST\fR be a valid Rubygems repository\.
|
33
|
+
.
|
34
|
+
.P
|
35
|
+
Sources are checked for gems following the heuristics described in \fISOURCE PRIORITY\fR\. If a gem is found in more than one global source, Bundler will print a warning after installing the gem indicating which source was used, and listing the other sources where the gem is available\. A specific source can be selected for gems that need to use a non\-standard repository, suppressing this warning, by using the \fI\fB:source\fR option\fR or a \fI\fBsource\fR block\fR\.
|
36
|
+
.
|
37
|
+
.SS "CREDENTIALS"
|
38
|
+
Some gem sources require a username and password\. Use bundle config(1) \fIbundle\-config\.1\.html\fR to set the username and password for any of the sources that need it\. The command must be run once on each computer that will install the Gemfile, but this keeps the credentials from being stored in plain text in version control\.
|
39
|
+
.
|
40
|
+
.IP "" 4
|
41
|
+
.
|
42
|
+
.nf
|
43
|
+
|
44
|
+
bundle config gems\.example\.com user:password
|
45
|
+
.
|
46
|
+
.fi
|
47
|
+
.
|
48
|
+
.IP "" 0
|
49
|
+
.
|
50
|
+
.P
|
51
|
+
For some sources, like a company Gemfury account, it may be easier to include the credentials in the Gemfile as part of the source URL\.
|
52
|
+
.
|
53
|
+
.IP "" 4
|
54
|
+
.
|
55
|
+
.nf
|
56
|
+
|
57
|
+
source "https://user:password@gems\.example\.com"
|
58
|
+
.
|
59
|
+
.fi
|
60
|
+
.
|
61
|
+
.IP "" 0
|
62
|
+
.
|
63
|
+
.P
|
64
|
+
Credentials in the source URL will take precedence over credentials set using \fBconfig\fR\.
|
65
|
+
.
|
66
|
+
.SH "RUBY"
|
67
|
+
If your application requires a specific Ruby version or engine, specify your requirements using the \fBruby\fR method, with the following arguments\. All parameters are \fBOPTIONAL\fR unless otherwise specified\.
|
68
|
+
.
|
69
|
+
.SS "VERSION (required)"
|
70
|
+
The version of Ruby that your application requires\. If your application requires an alternate Ruby engine, such as JRuby, Rubinius or TruffleRuby, this should be the Ruby version that the engine is compatible with\.
|
71
|
+
.
|
72
|
+
.IP "" 4
|
73
|
+
.
|
74
|
+
.nf
|
75
|
+
|
76
|
+
ruby "1\.9\.3"
|
77
|
+
.
|
78
|
+
.fi
|
79
|
+
.
|
80
|
+
.IP "" 0
|
81
|
+
.
|
82
|
+
.SS "ENGINE"
|
83
|
+
Each application \fImay\fR specify a Ruby engine\. If an engine is specified, an engine version \fImust\fR also be specified\.
|
84
|
+
.
|
85
|
+
.P
|
86
|
+
What exactly is an Engine? \- A Ruby engine is an implementation of the Ruby language\.
|
87
|
+
.
|
88
|
+
.IP "\(bu" 4
|
89
|
+
For background: the reference or original implementation of the Ruby programming language is called Matz\'s Ruby Interpreter \fIhttps://en\.wikipedia\.org/wiki/Ruby_MRI\fR, or MRI for short\. This is named after Ruby creator Yukihiro Matsumoto, also known as Matz\. MRI is also known as CRuby, because it is written in C\. MRI is the most widely used Ruby engine\.
|
90
|
+
.
|
91
|
+
.IP "\(bu" 4
|
92
|
+
Other implementations \fIhttps://www\.ruby\-lang\.org/en/about/\fR of Ruby exist\. Some of the more well\-known implementations include Rubinius \fIhttps://rubinius\.com/\fR, and JRuby \fIhttp://jruby\.org/\fR\. Rubinius is an alternative implementation of Ruby written in Ruby\. JRuby is an implementation of Ruby on the JVM, short for Java Virtual Machine\.
|
93
|
+
.
|
94
|
+
.IP "" 0
|
95
|
+
.
|
96
|
+
.SS "ENGINE VERSION"
|
97
|
+
Each application \fImay\fR specify a Ruby engine version\. If an engine version is specified, an engine \fImust\fR also be specified\. If the engine is "ruby" the engine version specified \fImust\fR match the Ruby version\.
|
98
|
+
.
|
99
|
+
.IP "" 4
|
100
|
+
.
|
101
|
+
.nf
|
102
|
+
|
103
|
+
ruby "1\.8\.7", :engine => "jruby", :engine_version => "1\.6\.7"
|
104
|
+
.
|
105
|
+
.fi
|
106
|
+
.
|
107
|
+
.IP "" 0
|
108
|
+
.
|
109
|
+
.SS "PATCHLEVEL"
|
110
|
+
Each application \fImay\fR specify a Ruby patchlevel\.
|
111
|
+
.
|
112
|
+
.IP "" 4
|
113
|
+
.
|
114
|
+
.nf
|
115
|
+
|
116
|
+
ruby "2\.0\.0", :patchlevel => "247"
|
117
|
+
.
|
118
|
+
.fi
|
119
|
+
.
|
120
|
+
.IP "" 0
|
121
|
+
.
|
122
|
+
.SH "GEMS"
|
123
|
+
Specify gem requirements using the \fBgem\fR method, with the following arguments\. All parameters are \fBOPTIONAL\fR unless otherwise specified\.
|
124
|
+
.
|
125
|
+
.SS "NAME (required)"
|
126
|
+
For each gem requirement, list a single \fIgem\fR line\.
|
127
|
+
.
|
128
|
+
.IP "" 4
|
129
|
+
.
|
130
|
+
.nf
|
131
|
+
|
132
|
+
gem "nokogiri"
|
133
|
+
.
|
134
|
+
.fi
|
135
|
+
.
|
136
|
+
.IP "" 0
|
137
|
+
.
|
138
|
+
.SS "VERSION"
|
139
|
+
Each \fIgem\fR \fBMAY\fR have one or more version specifiers\.
|
140
|
+
.
|
141
|
+
.IP "" 4
|
142
|
+
.
|
143
|
+
.nf
|
144
|
+
|
145
|
+
gem "nokogiri", ">= 1\.4\.2"
|
146
|
+
gem "RedCloth", ">= 4\.1\.0", "< 4\.2\.0"
|
147
|
+
.
|
148
|
+
.fi
|
149
|
+
.
|
150
|
+
.IP "" 0
|
151
|
+
.
|
152
|
+
.SS "REQUIRE AS"
|
153
|
+
Each \fIgem\fR \fBMAY\fR specify files that should be used when autorequiring via \fBBundler\.require\fR\. You may pass an array with multiple files or \fBtrue\fR if file you want \fBrequired\fR has same name as \fIgem\fR or \fBfalse\fR to prevent any file from being autorequired\.
|
154
|
+
.
|
155
|
+
.IP "" 4
|
156
|
+
.
|
157
|
+
.nf
|
158
|
+
|
159
|
+
gem "redis", :require => ["redis/connection/hiredis", "redis"]
|
160
|
+
gem "webmock", :require => false
|
161
|
+
gem "debugger", :require => true
|
162
|
+
.
|
163
|
+
.fi
|
164
|
+
.
|
165
|
+
.IP "" 0
|
166
|
+
.
|
167
|
+
.P
|
168
|
+
The argument defaults to the name of the gem\. For example, these are identical:
|
169
|
+
.
|
170
|
+
.IP "" 4
|
171
|
+
.
|
172
|
+
.nf
|
173
|
+
|
174
|
+
gem "nokogiri"
|
175
|
+
gem "nokogiri", :require => "nokogiri"
|
176
|
+
gem "nokogiri", :require => true
|
177
|
+
.
|
178
|
+
.fi
|
179
|
+
.
|
180
|
+
.IP "" 0
|
181
|
+
.
|
182
|
+
.SS "GROUPS"
|
183
|
+
Each \fIgem\fR \fBMAY\fR specify membership in one or more groups\. Any \fIgem\fR that does not specify membership in any group is placed in the \fBdefault\fR group\.
|
184
|
+
.
|
185
|
+
.IP "" 4
|
186
|
+
.
|
187
|
+
.nf
|
188
|
+
|
189
|
+
gem "rspec", :group => :test
|
190
|
+
gem "wirble", :groups => [:development, :test]
|
191
|
+
.
|
192
|
+
.fi
|
193
|
+
.
|
194
|
+
.IP "" 0
|
195
|
+
.
|
196
|
+
.P
|
197
|
+
The Bundler runtime allows its two main methods, \fBBundler\.setup\fR and \fBBundler\.require\fR, to limit their impact to particular groups\.
|
198
|
+
.
|
199
|
+
.IP "" 4
|
200
|
+
.
|
201
|
+
.nf
|
202
|
+
|
203
|
+
# setup adds gems to Ruby\'s load path
|
204
|
+
Bundler\.setup # defaults to all groups
|
205
|
+
require "bundler/setup" # same as Bundler\.setup
|
206
|
+
Bundler\.setup(:default) # only set up the _default_ group
|
207
|
+
Bundler\.setup(:test) # only set up the _test_ group (but `not` _default_)
|
208
|
+
Bundler\.setup(:default, :test) # set up the _default_ and _test_ groups, but no others
|
209
|
+
|
210
|
+
# require requires all of the gems in the specified groups
|
211
|
+
Bundler\.require # defaults to the _default_ group
|
212
|
+
Bundler\.require(:default) # identical
|
213
|
+
Bundler\.require(:default, :test) # requires the _default_ and _test_ groups
|
214
|
+
Bundler\.require(:test) # requires the _test_ group
|
215
|
+
.
|
216
|
+
.fi
|
217
|
+
.
|
218
|
+
.IP "" 0
|
219
|
+
.
|
220
|
+
.P
|
221
|
+
The Bundler CLI allows you to specify a list of groups whose gems \fBbundle install\fR should not install with the \fB\-\-without\fR option\. To specify multiple groups to ignore, specify a list of groups separated by spaces\.
|
222
|
+
.
|
223
|
+
.IP "" 4
|
224
|
+
.
|
225
|
+
.nf
|
226
|
+
|
227
|
+
bundle install \-\-without test
|
228
|
+
bundle install \-\-without development test
|
229
|
+
.
|
230
|
+
.fi
|
231
|
+
.
|
232
|
+
.IP "" 0
|
233
|
+
.
|
234
|
+
.P
|
235
|
+
After running \fBbundle install \-\-without test\fR, bundler will remember that you excluded the test group in the last installation\. The next time you run \fBbundle install\fR, without any \fB\-\-without option\fR, bundler will recall it\.
|
236
|
+
.
|
237
|
+
.P
|
238
|
+
Also, calling \fBBundler\.setup\fR with no parameters, or calling \fBrequire "bundler/setup"\fR will setup all groups except for the ones you excluded via \fB\-\-without\fR (since they are not available)\.
|
239
|
+
.
|
240
|
+
.P
|
241
|
+
Note that on \fBbundle install\fR, bundler downloads and evaluates all gems, in order to create a single canonical list of all of the required gems and their dependencies\. This means that you cannot list different versions of the same gems in different groups\. For more details, see Understanding Bundler \fIhttps://bundler\.io/rationale\.html\fR\.
|
242
|
+
.
|
243
|
+
.SS "PLATFORMS"
|
244
|
+
If a gem should only be used in a particular platform or set of platforms, you can specify them\. Platforms are essentially identical to groups, except that you do not need to use the \fB\-\-without\fR install\-time flag to exclude groups of gems for other platforms\.
|
245
|
+
.
|
246
|
+
.P
|
247
|
+
There are a number of \fBGemfile\fR platforms:
|
248
|
+
.
|
249
|
+
.TP
|
250
|
+
\fBruby\fR
|
251
|
+
C Ruby (MRI), Rubinius or TruffleRuby, but \fBNOT\fR Windows
|
252
|
+
.
|
253
|
+
.TP
|
254
|
+
\fBmri\fR
|
255
|
+
Same as \fIruby\fR, but only C Ruby (MRI)
|
256
|
+
.
|
257
|
+
.TP
|
258
|
+
\fBmingw\fR
|
259
|
+
Windows 32 bit \'mingw32\' platform (aka RubyInstaller)
|
260
|
+
.
|
261
|
+
.TP
|
262
|
+
\fBx64_mingw\fR
|
263
|
+
Windows 64 bit \'mingw32\' platform (aka RubyInstaller x64)
|
264
|
+
.
|
265
|
+
.TP
|
266
|
+
\fBrbx\fR
|
267
|
+
Rubinius
|
268
|
+
.
|
269
|
+
.TP
|
270
|
+
\fBjruby\fR
|
271
|
+
JRuby
|
272
|
+
.
|
273
|
+
.TP
|
274
|
+
\fBtruffleruby\fR
|
275
|
+
TruffleRuby
|
276
|
+
.
|
277
|
+
.TP
|
278
|
+
\fBmswin\fR
|
279
|
+
Windows
|
280
|
+
.
|
281
|
+
.P
|
282
|
+
You can restrict further by platform and version for all platforms \fIexcept\fR for \fBrbx\fR, \fBjruby\fR, \fBtruffleruby\fR and \fBmswin\fR\.
|
283
|
+
.
|
284
|
+
.P
|
285
|
+
To specify a version in addition to a platform, append the version number without the delimiter to the platform\. For example, to specify that a gem should only be used on platforms with Ruby 2\.3, use:
|
286
|
+
.
|
287
|
+
.IP "" 4
|
288
|
+
.
|
289
|
+
.nf
|
290
|
+
|
291
|
+
ruby_23
|
292
|
+
.
|
293
|
+
.fi
|
294
|
+
.
|
295
|
+
.IP "" 0
|
296
|
+
.
|
297
|
+
.P
|
298
|
+
The full list of platforms and supported versions includes:
|
299
|
+
.
|
300
|
+
.TP
|
301
|
+
\fBruby\fR
|
302
|
+
1\.8, 1\.9, 2\.0, 2\.1, 2\.2, 2\.3, 2\.4, 2\.5, 2\.6
|
303
|
+
.
|
304
|
+
.TP
|
305
|
+
\fBmri\fR
|
306
|
+
1\.8, 1\.9, 2\.0, 2\.1, 2\.2, 2\.3, 2\.4, 2\.5, 2\.6
|
307
|
+
.
|
308
|
+
.TP
|
309
|
+
\fBmingw\fR
|
310
|
+
1\.8, 1\.9, 2\.0, 2\.1, 2\.2, 2\.3, 2\.4, 2\.5, 2\.6
|
311
|
+
.
|
312
|
+
.TP
|
313
|
+
\fBx64_mingw\fR
|
314
|
+
2\.0, 2\.1, 2\.2, 2\.3, 2\.4, 2\.5, 2\.6
|
315
|
+
.
|
316
|
+
.P
|
317
|
+
As with groups, you can specify one or more platforms:
|
318
|
+
.
|
319
|
+
.IP "" 4
|
320
|
+
.
|
321
|
+
.nf
|
322
|
+
|
323
|
+
gem "weakling", :platforms => :jruby
|
324
|
+
gem "ruby\-debug", :platforms => :mri_18
|
325
|
+
gem "nokogiri", :platforms => [:mri_18, :jruby]
|
326
|
+
.
|
327
|
+
.fi
|
328
|
+
.
|
329
|
+
.IP "" 0
|
330
|
+
.
|
331
|
+
.P
|
332
|
+
All operations involving groups (\fBbundle install\fR \fIbundle\-install\.1\.html\fR, \fBBundler\.setup\fR, \fBBundler\.require\fR) behave exactly the same as if any groups not matching the current platform were explicitly excluded\.
|
333
|
+
.
|
334
|
+
.SS "SOURCE"
|
335
|
+
You can select an alternate Rubygems repository for a gem using the \':source\' option\.
|
336
|
+
.
|
337
|
+
.IP "" 4
|
338
|
+
.
|
339
|
+
.nf
|
340
|
+
|
341
|
+
gem "some_internal_gem", :source => "https://gems\.example\.com"
|
342
|
+
.
|
343
|
+
.fi
|
344
|
+
.
|
345
|
+
.IP "" 0
|
346
|
+
.
|
347
|
+
.P
|
348
|
+
This forces the gem to be loaded from this source and ignores any global sources declared at the top level of the file\. If the gem does not exist in this source, it will not be installed\.
|
349
|
+
.
|
350
|
+
.P
|
351
|
+
Bundler will search for child dependencies of this gem by first looking in the source selected for the parent, but if they are not found there, it will fall back on global sources using the ordering described in \fISOURCE PRIORITY\fR\.
|
352
|
+
.
|
353
|
+
.P
|
354
|
+
Selecting a specific source repository this way also suppresses the ambiguous gem warning described above in \fIGLOBAL SOURCES (#source)\fR\.
|
355
|
+
.
|
356
|
+
.P
|
357
|
+
Using the \fB:source\fR option for an individual gem will also make that source available as a possible global source for any other gems which do not specify explicit sources\. Thus, when adding gems with explicit sources, it is recommended that you also ensure all other gems in the Gemfile are using explicit sources\.
|
358
|
+
.
|
359
|
+
.SS "GIT"
|
360
|
+
If necessary, you can specify that a gem is located at a particular git repository using the \fB:git\fR parameter\. The repository can be accessed via several protocols:
|
361
|
+
.
|
362
|
+
.TP
|
363
|
+
\fBHTTP(S)\fR
|
364
|
+
gem "rails", :git => "https://github\.com/rails/rails\.git"
|
365
|
+
.
|
366
|
+
.TP
|
367
|
+
\fBSSH\fR
|
368
|
+
gem "rails", :git => "git@github\.com:rails/rails\.git"
|
369
|
+
.
|
370
|
+
.TP
|
371
|
+
\fBgit\fR
|
372
|
+
gem "rails", :git => "git://github\.com/rails/rails\.git"
|
373
|
+
.
|
374
|
+
.P
|
375
|
+
If using SSH, the user that you use to run \fBbundle install\fR \fBMUST\fR have the appropriate keys available in their \fB$HOME/\.ssh\fR\.
|
376
|
+
.
|
377
|
+
.P
|
378
|
+
\fBNOTE\fR: \fBhttp://\fR and \fBgit://\fR URLs should be avoided if at all possible\. These protocols are unauthenticated, so a man\-in\-the\-middle attacker can deliver malicious code and compromise your system\. HTTPS and SSH are strongly preferred\.
|
379
|
+
.
|
380
|
+
.P
|
381
|
+
The \fBgroup\fR, \fBplatforms\fR, and \fBrequire\fR options are available and behave exactly the same as they would for a normal gem\.
|
382
|
+
.
|
383
|
+
.P
|
384
|
+
A git repository \fBSHOULD\fR have at least one file, at the root of the directory containing the gem, with the extension \fB\.gemspec\fR\. This file \fBMUST\fR contain a valid gem specification, as expected by the \fBgem build\fR command\.
|
385
|
+
.
|
386
|
+
.P
|
387
|
+
If a git repository does not have a \fB\.gemspec\fR, bundler will attempt to create one, but it will not contain any dependencies, executables, or C extension compilation instructions\. As a result, it may fail to properly integrate into your application\.
|
388
|
+
.
|
389
|
+
.P
|
390
|
+
If a git repository does have a \fB\.gemspec\fR for the gem you attached it to, a version specifier, if provided, means that the git repository is only valid if the \fB\.gemspec\fR specifies a version matching the version specifier\. If not, bundler will print a warning\.
|
391
|
+
.
|
392
|
+
.IP "" 4
|
393
|
+
.
|
394
|
+
.nf
|
395
|
+
|
396
|
+
gem "rails", "2\.3\.8", :git => "https://github\.com/rails/rails\.git"
|
397
|
+
# bundle install will fail, because the \.gemspec in the rails
|
398
|
+
# repository\'s master branch specifies version 3\.0\.0
|
399
|
+
.
|
400
|
+
.fi
|
401
|
+
.
|
402
|
+
.IP "" 0
|
403
|
+
.
|
404
|
+
.P
|
405
|
+
If a git repository does \fBnot\fR have a \fB\.gemspec\fR for the gem you attached it to, a version specifier \fBMUST\fR be provided\. Bundler will use this version in the simple \fB\.gemspec\fR it creates\.
|
406
|
+
.
|
407
|
+
.P
|
408
|
+
Git repositories support a number of additional options\.
|
409
|
+
.
|
410
|
+
.TP
|
411
|
+
\fBbranch\fR, \fBtag\fR, and \fBref\fR
|
412
|
+
You \fBMUST\fR only specify at most one of these options\. The default is \fB:branch => "master"\fR
|
413
|
+
.
|
414
|
+
.TP
|
415
|
+
For example:
|
416
|
+
.
|
417
|
+
.IP
|
418
|
+
git "https://github\.com/rails/rails\.git", :branch => "5\-0\-stable" do
|
419
|
+
.
|
420
|
+
.IP
|
421
|
+
git "https://github\.com/rails/rails\.git", :tag => "v5\.0\.0" do
|
422
|
+
.
|
423
|
+
.IP
|
424
|
+
git "https://github\.com/rails/rails\.git", :ref => "4aded" do
|
425
|
+
.
|
426
|
+
.TP
|
427
|
+
\fBsubmodules\fR
|
428
|
+
For reference, a git submodule \fIhttps://git\-scm\.com/book/en/v2/Git\-Tools\-Submodules\fR lets you have another git repository within a subfolder of your repository\. Specify \fB:submodules => true\fR to cause bundler to expand any submodules included in the git repository
|
429
|
+
.
|
430
|
+
.P
|
431
|
+
If a git repository contains multiple \fB\.gemspecs\fR, each \fB\.gemspec\fR represents a gem located at the same place in the file system as the \fB\.gemspec\fR\.
|
432
|
+
.
|
433
|
+
.IP "" 4
|
434
|
+
.
|
435
|
+
.nf
|
436
|
+
|
437
|
+
|~rails [git root]
|
438
|
+
| |\-rails\.gemspec [rails gem located here]
|
439
|
+
|~actionpack
|
440
|
+
| |\-actionpack\.gemspec [actionpack gem located here]
|
441
|
+
|~activesupport
|
442
|
+
| |\-activesupport\.gemspec [activesupport gem located here]
|
443
|
+
|\.\.\.
|
444
|
+
.
|
445
|
+
.fi
|
446
|
+
.
|
447
|
+
.IP "" 0
|
448
|
+
.
|
449
|
+
.P
|
450
|
+
To install a gem located in a git repository, bundler changes to the directory containing the gemspec, runs \fBgem build name\.gemspec\fR and then installs the resulting gem\. The \fBgem build\fR command, which comes standard with Rubygems, evaluates the \fB\.gemspec\fR in the context of the directory in which it is located\.
|
451
|
+
.
|
452
|
+
.SS "GIT SOURCE"
|
453
|
+
A custom git source can be defined via the \fBgit_source\fR method\. Provide the source\'s name as an argument, and a block which receives a single argument and interpolates it into a string to return the full repo address:
|
454
|
+
.
|
455
|
+
.IP "" 4
|
456
|
+
.
|
457
|
+
.nf
|
458
|
+
|
459
|
+
git_source(:stash){ |repo_name| "https://stash\.corp\.acme\.pl/#{repo_name}\.git" }
|
460
|
+
gem \'rails\', :stash => \'forks/rails\'
|
461
|
+
.
|
462
|
+
.fi
|
463
|
+
.
|
464
|
+
.IP "" 0
|
465
|
+
.
|
466
|
+
.P
|
467
|
+
In addition, if you wish to choose a specific branch:
|
468
|
+
.
|
469
|
+
.IP "" 4
|
470
|
+
.
|
471
|
+
.nf
|
472
|
+
|
473
|
+
gem "rails", :stash => "forks/rails", :branch => "branch_name"
|
474
|
+
.
|
475
|
+
.fi
|
476
|
+
.
|
477
|
+
.IP "" 0
|
478
|
+
.
|
479
|
+
.SS "GITHUB"
|
480
|
+
\fBNOTE\fR: This shorthand should be avoided until Bundler 2\.0, since it currently expands to an insecure \fBgit://\fR URL\. This allows a man\-in\-the\-middle attacker to compromise your system\.
|
481
|
+
.
|
482
|
+
.P
|
483
|
+
If the git repository you want to use is hosted on GitHub and is public, you can use the :github shorthand to specify the github username and repository name (without the trailing "\.git"), separated by a slash\. If both the username and repository name are the same, you can omit one\.
|
484
|
+
.
|
485
|
+
.IP "" 4
|
486
|
+
.
|
487
|
+
.nf
|
488
|
+
|
489
|
+
gem "rails", :github => "rails/rails"
|
490
|
+
gem "rails", :github => "rails"
|
491
|
+
.
|
492
|
+
.fi
|
493
|
+
.
|
494
|
+
.IP "" 0
|
495
|
+
.
|
496
|
+
.P
|
497
|
+
Are both equivalent to
|
498
|
+
.
|
499
|
+
.IP "" 4
|
500
|
+
.
|
501
|
+
.nf
|
502
|
+
|
503
|
+
gem "rails", :git => "git://github\.com/rails/rails\.git"
|
504
|
+
.
|
505
|
+
.fi
|
506
|
+
.
|
507
|
+
.IP "" 0
|
508
|
+
.
|
509
|
+
.P
|
510
|
+
Since the \fBgithub\fR method is a specialization of \fBgit_source\fR, it accepts a \fB:branch\fR named argument\.
|
511
|
+
.
|
512
|
+
.SS "GIST"
|
513
|
+
If the git repository you want to use is hosted as a Github Gist and is public, you can use the :gist shorthand to specify the gist identifier (without the trailing "\.git")\.
|
514
|
+
.
|
515
|
+
.IP "" 4
|
516
|
+
.
|
517
|
+
.nf
|
518
|
+
|
519
|
+
gem "the_hatch", :gist => "4815162342"
|
520
|
+
.
|
521
|
+
.fi
|
522
|
+
.
|
523
|
+
.IP "" 0
|
524
|
+
.
|
525
|
+
.P
|
526
|
+
Is equivalent to:
|
527
|
+
.
|
528
|
+
.IP "" 4
|
529
|
+
.
|
530
|
+
.nf
|
531
|
+
|
532
|
+
gem "the_hatch", :git => "https://gist\.github\.com/4815162342\.git"
|
533
|
+
.
|
534
|
+
.fi
|
535
|
+
.
|
536
|
+
.IP "" 0
|
537
|
+
.
|
538
|
+
.P
|
539
|
+
Since the \fBgist\fR method is a specialization of \fBgit_source\fR, it accepts a \fB:branch\fR named argument\.
|
540
|
+
.
|
541
|
+
.SS "BITBUCKET"
|
542
|
+
If the git repository you want to use is hosted on Bitbucket and is public, you can use the :bitbucket shorthand to specify the bitbucket username and repository name (without the trailing "\.git"), separated by a slash\. If both the username and repository name are the same, you can omit one\.
|
543
|
+
.
|
544
|
+
.IP "" 4
|
545
|
+
.
|
546
|
+
.nf
|
547
|
+
|
548
|
+
gem "rails", :bitbucket => "rails/rails"
|
549
|
+
gem "rails", :bitbucket => "rails"
|
550
|
+
.
|
551
|
+
.fi
|
552
|
+
.
|
553
|
+
.IP "" 0
|
554
|
+
.
|
555
|
+
.P
|
556
|
+
Are both equivalent to
|
557
|
+
.
|
558
|
+
.IP "" 4
|
559
|
+
.
|
560
|
+
.nf
|
561
|
+
|
562
|
+
gem "rails", :git => "https://rails@bitbucket\.org/rails/rails\.git"
|
563
|
+
.
|
564
|
+
.fi
|
565
|
+
.
|
566
|
+
.IP "" 0
|
567
|
+
.
|
568
|
+
.P
|
569
|
+
Since the \fBbitbucket\fR method is a specialization of \fBgit_source\fR, it accepts a \fB:branch\fR named argument\.
|
570
|
+
.
|
571
|
+
.SS "PATH"
|
572
|
+
You can specify that a gem is located in a particular location on the file system\. Relative paths are resolved relative to the directory containing the \fBGemfile\fR\.
|
573
|
+
.
|
574
|
+
.P
|
575
|
+
Similar to the semantics of the \fB:git\fR option, the \fB:path\fR option requires that the directory in question either contains a \fB\.gemspec\fR for the gem, or that you specify an explicit version that bundler should use\.
|
576
|
+
.
|
577
|
+
.P
|
578
|
+
Unlike \fB:git\fR, bundler does not compile C extensions for gems specified as paths\.
|
579
|
+
.
|
580
|
+
.IP "" 4
|
581
|
+
.
|
582
|
+
.nf
|
583
|
+
|
584
|
+
gem "rails", :path => "vendor/rails"
|
585
|
+
.
|
586
|
+
.fi
|
587
|
+
.
|
588
|
+
.IP "" 0
|
589
|
+
.
|
590
|
+
.P
|
591
|
+
If you would like to use multiple local gems directly from the filesystem, you can set a global \fBpath\fR option to the path containing the gem\'s files\. This will automatically load gemspec files from subdirectories\.
|
592
|
+
.
|
593
|
+
.IP "" 4
|
594
|
+
.
|
595
|
+
.nf
|
596
|
+
|
597
|
+
path \'components\' do
|
598
|
+
gem \'admin_ui\'
|
599
|
+
gem \'public_ui\'
|
600
|
+
end
|
601
|
+
.
|
602
|
+
.fi
|
603
|
+
.
|
604
|
+
.IP "" 0
|
605
|
+
.
|
606
|
+
.SH "BLOCK FORM OF SOURCE, GIT, PATH, GROUP and PLATFORMS"
|
607
|
+
The \fB:source\fR, \fB:git\fR, \fB:path\fR, \fB:group\fR, and \fB:platforms\fR options may be applied to a group of gems by using block form\.
|
608
|
+
.
|
609
|
+
.IP "" 4
|
610
|
+
.
|
611
|
+
.nf
|
612
|
+
|
613
|
+
source "https://gems\.example\.com" do
|
614
|
+
gem "some_internal_gem"
|
615
|
+
gem "another_internal_gem"
|
616
|
+
end
|
617
|
+
|
618
|
+
git "https://github\.com/rails/rails\.git" do
|
619
|
+
gem "activesupport"
|
620
|
+
gem "actionpack"
|
621
|
+
end
|
622
|
+
|
623
|
+
platforms :ruby do
|
624
|
+
gem "ruby\-debug"
|
625
|
+
gem "sqlite3"
|
626
|
+
end
|
627
|
+
|
628
|
+
group :development, :optional => true do
|
629
|
+
gem "wirble"
|
630
|
+
gem "faker"
|
631
|
+
end
|
632
|
+
.
|
633
|
+
.fi
|
634
|
+
.
|
635
|
+
.IP "" 0
|
636
|
+
.
|
637
|
+
.P
|
638
|
+
In the case of the group block form the :optional option can be given to prevent a group from being installed unless listed in the \fB\-\-with\fR option given to the \fBbundle install\fR command\.
|
639
|
+
.
|
640
|
+
.P
|
641
|
+
In the case of the \fBgit\fR block form, the \fB:ref\fR, \fB:branch\fR, \fB:tag\fR, and \fB:submodules\fR options may be passed to the \fBgit\fR method, and all gems in the block will inherit those options\.
|
642
|
+
.
|
643
|
+
.P
|
644
|
+
The presence of a \fBsource\fR block in a Gemfile also makes that source available as a possible global source for any other gems which do not specify explicit sources\. Thus, when defining source blocks, it is recommended that you also ensure all other gems in the Gemfile are using explicit sources, either via source blocks or \fB:source\fR directives on individual gems\.
|
645
|
+
.
|
646
|
+
.SH "INSTALL_IF"
|
647
|
+
The \fBinstall_if\fR method allows gems to be installed based on a proc or lambda\. This is especially useful for optional gems that can only be used if certain software is installed or some other conditions are met\.
|
648
|
+
.
|
649
|
+
.IP "" 4
|
650
|
+
.
|
651
|
+
.nf
|
652
|
+
|
653
|
+
install_if \-> { RUBY_PLATFORM =~ /darwin/ } do
|
654
|
+
gem "pasteboard"
|
655
|
+
end
|
656
|
+
.
|
657
|
+
.fi
|
658
|
+
.
|
659
|
+
.IP "" 0
|
660
|
+
.
|
661
|
+
.SH "GEMSPEC"
|
662
|
+
The \fB\.gemspec\fR \fIhttp://guides\.rubygems\.org/specification\-reference/\fR file is where you provide metadata about your gem to Rubygems\. Some required Gemspec attributes include the name, description, and homepage of your gem\. This is also where you specify the dependencies your gem needs to run\.
|
663
|
+
.
|
664
|
+
.P
|
665
|
+
If you wish to use Bundler to help install dependencies for a gem while it is being developed, use the \fBgemspec\fR method to pull in the dependencies listed in the \fB\.gemspec\fR file\.
|
666
|
+
.
|
667
|
+
.P
|
668
|
+
The \fBgemspec\fR method adds any runtime dependencies as gem requirements in the default group\. It also adds development dependencies as gem requirements in the \fBdevelopment\fR group\. Finally, it adds a gem requirement on your project (\fB:path => \'\.\'\fR)\. In conjunction with \fBBundler\.setup\fR, this allows you to require project files in your test code as you would if the project were installed as a gem; you need not manipulate the load path manually or require project files via relative paths\.
|
669
|
+
.
|
670
|
+
.P
|
671
|
+
The \fBgemspec\fR method supports optional \fB:path\fR, \fB:glob\fR, \fB:name\fR, and \fB:development_group\fR options, which control where bundler looks for the \fB\.gemspec\fR, the glob it uses to look for the gemspec (defaults to: "{,\fI,\fR/*}\.gemspec"), what named \fB\.gemspec\fR it uses (if more than one is present), and which group development dependencies are included in\.
|
672
|
+
.
|
673
|
+
.P
|
674
|
+
When a \fBgemspec\fR dependency encounters version conflicts during resolution, the local version under development will always be selected \-\- even if there are remote versions that better match other requirements for the \fBgemspec\fR gem\.
|
675
|
+
.
|
676
|
+
.SH "SOURCE PRIORITY"
|
677
|
+
When attempting to locate a gem to satisfy a gem requirement, bundler uses the following priority order:
|
678
|
+
.
|
679
|
+
.IP "1." 4
|
680
|
+
The source explicitly attached to the gem (using \fB:source\fR, \fB:path\fR, or \fB:git\fR)
|
681
|
+
.
|
682
|
+
.IP "2." 4
|
683
|
+
For implicit gems (dependencies of explicit gems), any source, git, or path repository declared on the parent\. This results in bundler prioritizing the ActiveSupport gem from the Rails git repository over ones from \fBrubygems\.org\fR
|
684
|
+
.
|
685
|
+
.IP "3." 4
|
686
|
+
The sources specified via global \fBsource\fR lines, searching each source in your \fBGemfile\fR from last added to first added\.
|
687
|
+
.
|
688
|
+
.IP "" 0
|
689
|
+
|