rubygems-update 3.0.3 → 3.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/.travis.yml +2 -0
- data/CODE_OF_CONDUCT.md +10 -8
- data/CONTRIBUTING.md +7 -0
- data/History.txt +152 -0
- data/Manifest.txt +5 -3
- data/README.md +6 -0
- data/Rakefile +27 -7
- data/bundler/lib/bundler/build_metadata.rb +2 -2
- data/lib/rubygems.rb +7 -12
- data/lib/rubygems/command_manager.rb +6 -0
- data/lib/rubygems/commands/build_command.rb +28 -13
- data/lib/rubygems/commands/owner_command.rb +2 -0
- data/lib/rubygems/commands/push_command.rb +2 -0
- data/lib/rubygems/commands/setup_command.rb +9 -11
- data/lib/rubygems/commands/uninstall_command.rb +16 -6
- data/lib/rubygems/commands/which_command.rb +1 -3
- data/lib/rubygems/defaults.rb +1 -8
- data/lib/rubygems/dependency.rb +1 -1
- data/lib/rubygems/dependency_installer.rb +1 -2
- data/lib/rubygems/dependency_list.rb +1 -1
- data/lib/rubygems/exceptions.rb +0 -4
- data/lib/rubygems/gemcutter_utilities.rb +9 -5
- data/lib/rubygems/installer.rb +8 -5
- data/lib/rubygems/installer_test_case.rb +2 -2
- data/lib/rubygems/package/tar_header.rb +11 -2
- data/lib/rubygems/rdoc.rb +2 -2
- data/lib/rubygems/remote_fetcher.rb +15 -54
- data/lib/rubygems/request.rb +1 -1
- data/lib/rubygems/request_set/gem_dependency_api.rb +11 -10
- data/lib/rubygems/requirement.rb +0 -4
- data/lib/rubygems/resolver.rb +4 -1
- data/lib/rubygems/s3_uri_signer.rb +183 -0
- data/lib/rubygems/security_option.rb +0 -1
- data/lib/rubygems/specification.rb +21 -23
- data/lib/rubygems/ssl_certs/{index.rubygems.org → rubygems.org}/GlobalSignRootCA.pem +0 -0
- data/lib/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem +21 -0
- data/lib/rubygems/stub_specification.rb +1 -2
- data/lib/rubygems/test_case.rb +22 -12
- data/lib/rubygems/uninstaller.rb +1 -1
- data/lib/rubygems/util.rb +12 -0
- data/rubygems-update.gemspec +1 -1
- data/test/rubygems/ca_cert.pem +74 -65
- data/test/rubygems/client.pem +103 -45
- data/test/rubygems/ssl_cert.pem +78 -17
- data/test/rubygems/ssl_key.pem +25 -13
- data/test/rubygems/test_bundled_ca.rb +8 -5
- data/test/rubygems/test_gem.rb +45 -11
- data/test/rubygems/test_gem_bundler_version_finder.rb +4 -0
- data/test/rubygems/test_gem_command_manager.rb +10 -0
- data/test/rubygems/test_gem_commands_build_command.rb +1 -0
- data/test/rubygems/test_gem_commands_push_command.rb +15 -0
- data/test/rubygems/test_gem_commands_setup_command.rb +11 -7
- data/test/rubygems/test_gem_commands_uninstall_command.rb +80 -1
- data/test/rubygems/test_gem_ext_cmake_builder.rb +1 -1
- data/test/rubygems/test_gem_indexer.rb +15 -8
- data/test/rubygems/test_gem_installer.rb +85 -22
- data/test/rubygems/test_gem_package_tar_header.rb +41 -0
- data/test/rubygems/test_gem_rdoc.rb +1 -135
- data/test/rubygems/test_gem_remote_fetcher.rb +133 -14
- data/test/rubygems/test_gem_request.rb +4 -4
- data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +80 -57
- data/test/rubygems/test_gem_security_policy.rb +1 -1
- data/test/rubygems/test_gem_specification.rb +29 -0
- data/test/rubygems/test_gem_stream_ui.rb +2 -2
- data/test/rubygems/test_gem_uninstaller.rb +21 -2
- data/test/rubygems/test_gem_util.rb +8 -0
- data/util/ci +6 -1
- data/util/cops/deprecations.rb +52 -0
- data/util/create_certs.sh +27 -0
- data/util/create_encrypted_key.rb +4 -4
- data/util/update_bundled_ca_certificates.rb +1 -3
- metadata +12 -57
- data/bundler/man/bundle-add.1 +0 -58
- data/bundler/man/bundle-binstubs.1 +0 -40
- data/bundler/man/bundle-check.1 +0 -31
- data/bundler/man/bundle-clean.1 +0 -24
- data/bundler/man/bundle-config.1 +0 -497
- data/bundler/man/bundle-doctor.1 +0 -44
- data/bundler/man/bundle-exec.1 +0 -165
- data/bundler/man/bundle-gem.1 +0 -80
- data/bundler/man/bundle-info.1 +0 -20
- data/bundler/man/bundle-init.1 +0 -25
- data/bundler/man/bundle-inject.1 +0 -33
- data/bundler/man/bundle-install.1 +0 -308
- data/bundler/man/bundle-list.1 +0 -50
- data/bundler/man/bundle-lock.1 +0 -84
- data/bundler/man/bundle-open.1 +0 -32
- data/bundler/man/bundle-outdated.1 +0 -155
- data/bundler/man/bundle-package.1 +0 -55
- data/bundler/man/bundle-platform.1 +0 -61
- data/bundler/man/bundle-pristine.1 +0 -34
- data/bundler/man/bundle-remove.1 +0 -31
- data/bundler/man/bundle-show.1 +0 -23
- data/bundler/man/bundle-update.1 +0 -394
- data/bundler/man/bundle-viz.1 +0 -39
- data/bundler/man/bundle.1 +0 -136
- data/lib/rubygems/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem +0 -23
- data/lib/rubygems/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem +0 -25
data/bundler/man/bundle-list.1
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
.\" generated with Ronn/v0.7.3
|
2
|
-
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
-
.
|
4
|
-
.TH "BUNDLE\-LIST" "1" "November 2018" "" ""
|
5
|
-
.
|
6
|
-
.SH "NAME"
|
7
|
-
\fBbundle\-list\fR \- List all the gems in the bundle
|
8
|
-
.
|
9
|
-
.SH "SYNOPSIS"
|
10
|
-
\fBbundle list\fR [\-\-name\-only] [\-\-paths] [\-\-without\-group=GROUP] [\-\-only\-group=GROUP]
|
11
|
-
.
|
12
|
-
.SH "DESCRIPTION"
|
13
|
-
Prints a list of all the gems in the bundle including their version\.
|
14
|
-
.
|
15
|
-
.P
|
16
|
-
Example:
|
17
|
-
.
|
18
|
-
.P
|
19
|
-
bundle list \-\-name\-only
|
20
|
-
.
|
21
|
-
.P
|
22
|
-
bundle list \-\-paths
|
23
|
-
.
|
24
|
-
.P
|
25
|
-
bundle list \-\-without\-group test
|
26
|
-
.
|
27
|
-
.P
|
28
|
-
bundle list \-\-only\-group dev
|
29
|
-
.
|
30
|
-
.P
|
31
|
-
bundle list \-\-only\-group dev \-\-paths
|
32
|
-
.
|
33
|
-
.SH "OPTIONS"
|
34
|
-
.
|
35
|
-
.TP
|
36
|
-
\fB\-\-name\-only\fR
|
37
|
-
Print only the name of each gem\.
|
38
|
-
.
|
39
|
-
.TP
|
40
|
-
\fB\-\-paths\fR
|
41
|
-
Print the path to each gem in the bundle\.
|
42
|
-
.
|
43
|
-
.TP
|
44
|
-
\fB\-\-without\-group\fR
|
45
|
-
Print all gems expect from a group\.
|
46
|
-
.
|
47
|
-
.TP
|
48
|
-
\fB\-\-only\-group\fR
|
49
|
-
Print gems from a particular group\.
|
50
|
-
|
data/bundler/man/bundle-lock.1
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
.\" generated with Ronn/v0.7.3
|
2
|
-
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
-
.
|
4
|
-
.TH "BUNDLE\-LOCK" "1" "October 2018" "" ""
|
5
|
-
.
|
6
|
-
.SH "NAME"
|
7
|
-
\fBbundle\-lock\fR \- Creates / Updates a lockfile without installing
|
8
|
-
.
|
9
|
-
.SH "SYNOPSIS"
|
10
|
-
\fBbundle lock\fR [\-\-update] [\-\-local] [\-\-print] [\-\-lockfile=PATH] [\-\-full\-index] [\-\-add\-platform] [\-\-remove\-platform] [\-\-patch] [\-\-minor] [\-\-major] [\-\-strict] [\-\-conservative]
|
11
|
-
.
|
12
|
-
.SH "DESCRIPTION"
|
13
|
-
Lock the gems specified in Gemfile\.
|
14
|
-
.
|
15
|
-
.SH "OPTIONS"
|
16
|
-
.
|
17
|
-
.TP
|
18
|
-
\fB\-\-update=<*gems>\fR
|
19
|
-
Ignores the existing lockfile\. Resolve then updates lockfile\. Taking a list of gems or updating all gems if no list is given\.
|
20
|
-
.
|
21
|
-
.TP
|
22
|
-
\fB\-\-local\fR
|
23
|
-
Do not attempt to connect to \fBrubygems\.org\fR\. Instead, Bundler will use the gems already present in Rubygems\' cache or in \fBvendor/cache\fR\. Note that if a appropriate platform\-specific gem exists on \fBrubygems\.org\fR it will not be found\.
|
24
|
-
.
|
25
|
-
.TP
|
26
|
-
\fB\-\-print\fR
|
27
|
-
Prints the lockfile to STDOUT instead of writing to the file system\.
|
28
|
-
.
|
29
|
-
.TP
|
30
|
-
\fB\-\-lockfile=<path>\fR
|
31
|
-
The path where the lockfile should be written to\.
|
32
|
-
.
|
33
|
-
.TP
|
34
|
-
\fB\-\-full\-index\fR
|
35
|
-
Fall back to using the single\-file index of all gems\.
|
36
|
-
.
|
37
|
-
.TP
|
38
|
-
\fB\-\-add\-platform\fR
|
39
|
-
Add a new platform to the lockfile, re\-resolving for the addition of that platform\.
|
40
|
-
.
|
41
|
-
.TP
|
42
|
-
\fB\-\-remove\-platform\fR
|
43
|
-
Remove a platform from the lockfile\.
|
44
|
-
.
|
45
|
-
.TP
|
46
|
-
\fB\-\-patch\fR
|
47
|
-
If updating, prefer updating only to next patch version\.
|
48
|
-
.
|
49
|
-
.TP
|
50
|
-
\fB\-\-minor\fR
|
51
|
-
If updating, prefer updating only to next minor version\.
|
52
|
-
.
|
53
|
-
.TP
|
54
|
-
\fB\-\-major\fR
|
55
|
-
If updating, prefer updating to next major version (default)\.
|
56
|
-
.
|
57
|
-
.TP
|
58
|
-
\fB\-\-strict\fR
|
59
|
-
If updating, do not allow any gem to be updated past latest \-\-patch | \-\-minor | \-\-major\.
|
60
|
-
.
|
61
|
-
.TP
|
62
|
-
\fB\-\-conservative\fR
|
63
|
-
If updating, use bundle install conservative update behavior and do not allow shared dependencies to be updated\.
|
64
|
-
.
|
65
|
-
.SH "UPDATING ALL GEMS"
|
66
|
-
If you run \fBbundle lock\fR with \fB\-\-update\fR option without list of gems, bundler will ignore any previously installed gems and resolve all dependencies again based on the latest versions of all gems available in the sources\.
|
67
|
-
.
|
68
|
-
.SH "UPDATING A LIST OF GEMS"
|
69
|
-
Sometimes, you want to update a single gem in the Gemfile(5), and leave the rest of the gems that you specified locked to the versions in the \fBGemfile\.lock\fR\.
|
70
|
-
.
|
71
|
-
.P
|
72
|
-
For instance, you only want to update \fBnokogiri\fR, run \fBbundle lock \-\-update nokogiri\fR\.
|
73
|
-
.
|
74
|
-
.P
|
75
|
-
Bundler will update \fBnokogiri\fR and any of its dependencies, but leave the rest of the gems that you specified locked to the versions in the \fBGemfile\.lock\fR\.
|
76
|
-
.
|
77
|
-
.SH "SUPPORTING OTHER PLATFORMS"
|
78
|
-
If you want your bundle to support platforms other than the one you\'re running locally, you can run \fBbundle lock \-\-add\-platform PLATFORM\fR to add PLATFORM to the lockfile, force bundler to re\-resolve and consider the new platform when picking gems, all without needing to have a machine that matches PLATFORM handy to install those platform\-specific gems on\.
|
79
|
-
.
|
80
|
-
.P
|
81
|
-
For a full explanation of gem platforms, see \fBgem help platform\fR\.
|
82
|
-
.
|
83
|
-
.SH "PATCH LEVEL OPTIONS"
|
84
|
-
See bundle update(1) \fIbundle\-update\.1\.html\fR for details\.
|
data/bundler/man/bundle-open.1
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
.\" generated with Ronn/v0.7.3
|
2
|
-
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
-
.
|
4
|
-
.TH "BUNDLE\-OPEN" "1" "May 2018" "" ""
|
5
|
-
.
|
6
|
-
.SH "NAME"
|
7
|
-
\fBbundle\-open\fR \- Opens the source directory for a gem in your bundle
|
8
|
-
.
|
9
|
-
.SH "SYNOPSIS"
|
10
|
-
\fBbundle open\fR [GEM]
|
11
|
-
.
|
12
|
-
.SH "DESCRIPTION"
|
13
|
-
Opens the source directory of the provided GEM in your editor\.
|
14
|
-
.
|
15
|
-
.P
|
16
|
-
For this to work the \fBEDITOR\fR or \fBBUNDLER_EDITOR\fR environment variable has to be set\.
|
17
|
-
.
|
18
|
-
.P
|
19
|
-
Example:
|
20
|
-
.
|
21
|
-
.IP "" 4
|
22
|
-
.
|
23
|
-
.nf
|
24
|
-
|
25
|
-
bundle open \'rack\'
|
26
|
-
.
|
27
|
-
.fi
|
28
|
-
.
|
29
|
-
.IP "" 0
|
30
|
-
.
|
31
|
-
.P
|
32
|
-
Will open the source directory for the \'rack\' gem in your bundle\.
|
@@ -1,155 +0,0 @@
|
|
1
|
-
.\" generated with Ronn/v0.7.3
|
2
|
-
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
-
.
|
4
|
-
.TH "BUNDLE\-OUTDATED" "1" "November 2018" "" ""
|
5
|
-
.
|
6
|
-
.SH "NAME"
|
7
|
-
\fBbundle\-outdated\fR \- List installed gems with newer versions available
|
8
|
-
.
|
9
|
-
.SH "SYNOPSIS"
|
10
|
-
\fBbundle outdated\fR [GEM] [\-\-local] [\-\-pre] [\-\-source] [\-\-strict] [\-\-parseable | \-\-porcelain] [\-\-group=GROUP] [\-\-groups] [\-\-update\-strict] [\-\-patch|\-\-minor|\-\-major] [\-\-filter\-major] [\-\-filter\-minor] [\-\-filter\-patch] [\-\-only\-explicit]
|
11
|
-
.
|
12
|
-
.SH "DESCRIPTION"
|
13
|
-
Outdated lists the names and versions of gems that have a newer version available in the given source\. Calling outdated with [GEM [GEM]] will only check for newer versions of the given gems\. Prerelease gems are ignored by default\. If your gems are up to date, Bundler will exit with a status of 0\. Otherwise, it will exit 1\.
|
14
|
-
.
|
15
|
-
.SH "OPTIONS"
|
16
|
-
.
|
17
|
-
.TP
|
18
|
-
\fB\-\-local\fR
|
19
|
-
Do not attempt to fetch gems remotely and use the gem cache instead\.
|
20
|
-
.
|
21
|
-
.TP
|
22
|
-
\fB\-\-pre\fR
|
23
|
-
Check for newer pre\-release gems\.
|
24
|
-
.
|
25
|
-
.TP
|
26
|
-
\fB\-\-source\fR
|
27
|
-
Check against a specific source\.
|
28
|
-
.
|
29
|
-
.TP
|
30
|
-
\fB\-\-strict\fR
|
31
|
-
Only list newer versions allowed by your Gemfile requirements\.
|
32
|
-
.
|
33
|
-
.TP
|
34
|
-
\fB\-\-parseable\fR, \fB\-\-porcelain\fR
|
35
|
-
Use minimal formatting for more parseable output\.
|
36
|
-
.
|
37
|
-
.TP
|
38
|
-
\fB\-\-group\fR
|
39
|
-
List gems from a specific group\.
|
40
|
-
.
|
41
|
-
.TP
|
42
|
-
\fB\-\-groups\fR
|
43
|
-
List gems organized by groups\.
|
44
|
-
.
|
45
|
-
.TP
|
46
|
-
\fB\-\-update\-strict\fR
|
47
|
-
Strict conservative resolution, do not allow any gem to be updated past latest \-\-patch | \-\-minor| \-\-major\.
|
48
|
-
.
|
49
|
-
.TP
|
50
|
-
\fB\-\-minor\fR
|
51
|
-
Prefer updating only to next minor version\.
|
52
|
-
.
|
53
|
-
.TP
|
54
|
-
\fB\-\-major\fR
|
55
|
-
Prefer updating to next major version (default)\.
|
56
|
-
.
|
57
|
-
.TP
|
58
|
-
\fB\-\-patch\fR
|
59
|
-
Prefer updating only to next patch version\.
|
60
|
-
.
|
61
|
-
.TP
|
62
|
-
\fB\-\-filter\-major\fR
|
63
|
-
Only list major newer versions\.
|
64
|
-
.
|
65
|
-
.TP
|
66
|
-
\fB\-\-filter\-minor\fR
|
67
|
-
Only list minor newer versions\.
|
68
|
-
.
|
69
|
-
.TP
|
70
|
-
\fB\-\-filter\-patch\fR
|
71
|
-
Only list patch newer versions\.
|
72
|
-
.
|
73
|
-
.TP
|
74
|
-
\fB\-\-only\-explicit\fR
|
75
|
-
Only list gems specified in your Gemfile, not their dependencies\.
|
76
|
-
.
|
77
|
-
.SH "PATCH LEVEL OPTIONS"
|
78
|
-
See bundle update(1) \fIbundle\-update\.1\.html\fR for details\.
|
79
|
-
.
|
80
|
-
.P
|
81
|
-
One difference between the patch level options in \fBbundle update\fR and here is the \fB\-\-strict\fR option\. \fB\-\-strict\fR was already an option on outdated before the patch level options were added\. \fB\-\-strict\fR wasn\'t altered, and the \fB\-\-update\-strict\fR option on \fBoutdated\fR reflects what \fB\-\-strict\fR does on \fBbundle update\fR\.
|
82
|
-
.
|
83
|
-
.SH "FILTERING OUTPUT"
|
84
|
-
The 3 filtering options do not affect the resolution of versions, merely what versions are shown in the output\.
|
85
|
-
.
|
86
|
-
.P
|
87
|
-
If the regular output shows the following:
|
88
|
-
.
|
89
|
-
.IP "" 4
|
90
|
-
.
|
91
|
-
.nf
|
92
|
-
|
93
|
-
* faker (newest 1\.6\.6, installed 1\.6\.5, requested ~> 1\.4) in groups "development, test"
|
94
|
-
* hashie (newest 3\.4\.6, installed 1\.2\.0, requested = 1\.2\.0) in groups "default"
|
95
|
-
* headless (newest 2\.3\.1, installed 2\.2\.3) in groups "test"
|
96
|
-
.
|
97
|
-
.fi
|
98
|
-
.
|
99
|
-
.IP "" 0
|
100
|
-
.
|
101
|
-
.P
|
102
|
-
\fB\-\-filter\-major\fR would only show:
|
103
|
-
.
|
104
|
-
.IP "" 4
|
105
|
-
.
|
106
|
-
.nf
|
107
|
-
|
108
|
-
* hashie (newest 3\.4\.6, installed 1\.2\.0, requested = 1\.2\.0) in groups "default"
|
109
|
-
.
|
110
|
-
.fi
|
111
|
-
.
|
112
|
-
.IP "" 0
|
113
|
-
.
|
114
|
-
.P
|
115
|
-
\fB\-\-filter\-minor\fR would only show:
|
116
|
-
.
|
117
|
-
.IP "" 4
|
118
|
-
.
|
119
|
-
.nf
|
120
|
-
|
121
|
-
* headless (newest 2\.3\.1, installed 2\.2\.3) in groups "test"
|
122
|
-
.
|
123
|
-
.fi
|
124
|
-
.
|
125
|
-
.IP "" 0
|
126
|
-
.
|
127
|
-
.P
|
128
|
-
\fB\-\-filter\-patch\fR would only show:
|
129
|
-
.
|
130
|
-
.IP "" 4
|
131
|
-
.
|
132
|
-
.nf
|
133
|
-
|
134
|
-
* faker (newest 1\.6\.6, installed 1\.6\.5, requested ~> 1\.4) in groups "development, test"
|
135
|
-
.
|
136
|
-
.fi
|
137
|
-
.
|
138
|
-
.IP "" 0
|
139
|
-
.
|
140
|
-
.P
|
141
|
-
Filter options can be combined\. \fB\-\-filter\-minor\fR and \fB\-\-filter\-patch\fR would show:
|
142
|
-
.
|
143
|
-
.IP "" 4
|
144
|
-
.
|
145
|
-
.nf
|
146
|
-
|
147
|
-
* faker (newest 1\.6\.6, installed 1\.6\.5, requested ~> 1\.4) in groups "development, test"
|
148
|
-
* headless (newest 2\.3\.1, installed 2\.2\.3) in groups "test"
|
149
|
-
.
|
150
|
-
.fi
|
151
|
-
.
|
152
|
-
.IP "" 0
|
153
|
-
.
|
154
|
-
.P
|
155
|
-
Combining all three \fBfilter\fR options would be the same result as providing none of them\.
|
@@ -1,55 +0,0 @@
|
|
1
|
-
.\" generated with Ronn/v0.7.3
|
2
|
-
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
-
.
|
4
|
-
.TH "BUNDLE\-PACKAGE" "1" "October 2018" "" ""
|
5
|
-
.
|
6
|
-
.SH "NAME"
|
7
|
-
\fBbundle\-package\fR \- Package your needed \fB\.gem\fR files into your application
|
8
|
-
.
|
9
|
-
.SH "SYNOPSIS"
|
10
|
-
\fBbundle package\fR
|
11
|
-
.
|
12
|
-
.SH "DESCRIPTION"
|
13
|
-
Copy all of the \fB\.gem\fR files needed to run the application into the \fBvendor/cache\fR directory\. In the future, when running [bundle install(1)][bundle\-install], use the gems in the cache in preference to the ones on \fBrubygems\.org\fR\.
|
14
|
-
.
|
15
|
-
.SH "GIT AND PATH GEMS"
|
16
|
-
Since Bundler 1\.2, the \fBbundle package\fR command can also package \fB:git\fR and \fB:path\fR dependencies besides \.gem files\. This needs to be explicitly enabled via the \fB\-\-all\fR option\. Once used, the \fB\-\-all\fR option will be remembered\.
|
17
|
-
.
|
18
|
-
.SH "SUPPORT FOR MULTIPLE PLATFORMS"
|
19
|
-
When using gems that have different packages for different platforms, Bundler 1\.8 and newer support caching of gems for other platforms where the Gemfile has been resolved (i\.e\. present in the lockfile) in \fBvendor/cache\fR\. This needs to be enabled via the \fB\-\-all\-platforms\fR option\. This setting will be remembered in your local bundler configuration\.
|
20
|
-
.
|
21
|
-
.SH "REMOTE FETCHING"
|
22
|
-
By default, if you run \fBbundle install(1)\fR](bundle\-install\.1\.html) after running bundle package(1) \fIbundle\-package\.1\.html\fR, bundler will still connect to \fBrubygems\.org\fR to check whether a platform\-specific gem exists for any of the gems in \fBvendor/cache\fR\.
|
23
|
-
.
|
24
|
-
.P
|
25
|
-
For instance, consider this Gemfile(5):
|
26
|
-
.
|
27
|
-
.IP "" 4
|
28
|
-
.
|
29
|
-
.nf
|
30
|
-
|
31
|
-
source "https://rubygems\.org"
|
32
|
-
|
33
|
-
gem "nokogiri"
|
34
|
-
.
|
35
|
-
.fi
|
36
|
-
.
|
37
|
-
.IP "" 0
|
38
|
-
.
|
39
|
-
.P
|
40
|
-
If you run \fBbundle package\fR under C Ruby, bundler will retrieve the version of \fBnokogiri\fR for the \fB"ruby"\fR platform\. If you deploy to JRuby and run \fBbundle install\fR, bundler is forced to check to see whether a \fB"java"\fR platformed \fBnokogiri\fR exists\.
|
41
|
-
.
|
42
|
-
.P
|
43
|
-
Even though the \fBnokogiri\fR gem for the Ruby platform is \fItechnically\fR acceptable on JRuby, it has a C extension that does not run on JRuby\. As a result, bundler will, by default, still connect to \fBrubygems\.org\fR to check whether it has a version of one of your gems more specific to your platform\.
|
44
|
-
.
|
45
|
-
.P
|
46
|
-
This problem is also not limited to the \fB"java"\fR platform\. A similar (common) problem can happen when developing on Windows and deploying to Linux, or even when developing on OSX and deploying to Linux\.
|
47
|
-
.
|
48
|
-
.P
|
49
|
-
If you know for sure that the gems packaged in \fBvendor/cache\fR are appropriate for the platform you are on, you can run \fBbundle install \-\-local\fR to skip checking for more appropriate gems, and use the ones in \fBvendor/cache\fR\.
|
50
|
-
.
|
51
|
-
.P
|
52
|
-
One way to be sure that you have the right platformed versions of all your gems is to run \fBbundle package\fR on an identical machine and check in the gems\. For instance, you can run \fBbundle package\fR on an identical staging box during your staging process, and check in the \fBvendor/cache\fR before deploying to production\.
|
53
|
-
.
|
54
|
-
.P
|
55
|
-
By default, bundle package(1) \fIbundle\-package\.1\.html\fR fetches and also installs the gems to the default location\. To package the dependencies to \fBvendor/cache\fR without installing them to the local install location, you can run \fBbundle package \-\-no\-install\fR\.
|
@@ -1,61 +0,0 @@
|
|
1
|
-
.\" generated with Ronn/v0.7.3
|
2
|
-
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
-
.
|
4
|
-
.TH "BUNDLE\-PLATFORM" "1" "May 2018" "" ""
|
5
|
-
.
|
6
|
-
.SH "NAME"
|
7
|
-
\fBbundle\-platform\fR \- Displays platform compatibility information
|
8
|
-
.
|
9
|
-
.SH "SYNOPSIS"
|
10
|
-
\fBbundle platform\fR [\-\-ruby]
|
11
|
-
.
|
12
|
-
.SH "DESCRIPTION"
|
13
|
-
\fBplatform\fR will display information from your Gemfile, Gemfile\.lock, and Ruby VM about your platform\.
|
14
|
-
.
|
15
|
-
.P
|
16
|
-
For instance, using this Gemfile(5):
|
17
|
-
.
|
18
|
-
.IP "" 4
|
19
|
-
.
|
20
|
-
.nf
|
21
|
-
|
22
|
-
source "https://rubygems\.org"
|
23
|
-
|
24
|
-
ruby "1\.9\.3"
|
25
|
-
|
26
|
-
gem "rack"
|
27
|
-
.
|
28
|
-
.fi
|
29
|
-
.
|
30
|
-
.IP "" 0
|
31
|
-
.
|
32
|
-
.P
|
33
|
-
If you run \fBbundle platform\fR on Ruby 1\.9\.3, it will display the following output:
|
34
|
-
.
|
35
|
-
.IP "" 4
|
36
|
-
.
|
37
|
-
.nf
|
38
|
-
|
39
|
-
Your platform is: x86_64\-linux
|
40
|
-
|
41
|
-
Your app has gems that work on these platforms:
|
42
|
-
* ruby
|
43
|
-
|
44
|
-
Your Gemfile specifies a Ruby version requirement:
|
45
|
-
* ruby 1\.9\.3
|
46
|
-
|
47
|
-
Your current platform satisfies the Ruby version requirement\.
|
48
|
-
.
|
49
|
-
.fi
|
50
|
-
.
|
51
|
-
.IP "" 0
|
52
|
-
.
|
53
|
-
.P
|
54
|
-
\fBplatform\fR will list all the platforms in your \fBGemfile\.lock\fR as well as the \fBruby\fR directive if applicable from your Gemfile(5)\. It will also let you know if the \fBruby\fR directive requirement has been met\. If \fBruby\fR directive doesn\'t match the running Ruby VM, it will tell you what part does not\.
|
55
|
-
.
|
56
|
-
.SH "OPTIONS"
|
57
|
-
.
|
58
|
-
.TP
|
59
|
-
\fB\-\-ruby\fR
|
60
|
-
It will display the ruby directive information, so you don\'t have to parse it from the Gemfile(5)\.
|
61
|
-
|
@@ -1,34 +0,0 @@
|
|
1
|
-
.\" generated with Ronn/v0.7.3
|
2
|
-
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
-
.
|
4
|
-
.TH "BUNDLE\-PRISTINE" "1" "May 2018" "" ""
|
5
|
-
.
|
6
|
-
.SH "NAME"
|
7
|
-
\fBbundle\-pristine\fR \- Restores installed gems to their pristine condition
|
8
|
-
.
|
9
|
-
.SH "SYNOPSIS"
|
10
|
-
\fBbundle pristine\fR
|
11
|
-
.
|
12
|
-
.SH "DESCRIPTION"
|
13
|
-
\fBpristine\fR restores the installed gems in the bundle to their pristine condition using the local gem cache from RubyGems\. For git gems, a forced checkout will be performed\.
|
14
|
-
.
|
15
|
-
.P
|
16
|
-
For further explanation, \fBbundle pristine\fR ignores unpacked files on disk\. In other words, this command utilizes the local \fB\.gem\fR cache or the gem\'s git repository as if one were installing from scratch\.
|
17
|
-
.
|
18
|
-
.P
|
19
|
-
Note: the Bundler gem cannot be restored to its original state with \fBpristine\fR\. One also cannot use \fBbundle pristine\fR on gems with a \'path\' option in the Gemfile, because bundler has no original copy it can restore from\.
|
20
|
-
.
|
21
|
-
.P
|
22
|
-
When is it practical to use \fBbundle pristine\fR?
|
23
|
-
.
|
24
|
-
.P
|
25
|
-
It comes in handy when a developer is debugging a gem\. \fBbundle pristine\fR is a great way to get rid of experimental changes to a gem that one may not want\.
|
26
|
-
.
|
27
|
-
.P
|
28
|
-
Why use \fBbundle pristine\fR over \fBgem pristine \-\-all\fR?
|
29
|
-
.
|
30
|
-
.P
|
31
|
-
Both commands are very similar\. For context: \fBbundle pristine\fR, without arguments, cleans all gems from the lockfile\. Meanwhile, \fBgem pristine \-\-all\fR cleans all installed gems for that Ruby version\.
|
32
|
-
.
|
33
|
-
.P
|
34
|
-
If a developer forgets which gems in their project they might have been debugging, the Rubygems \fBgem pristine [GEMNAME]\fR command may be inconvenient\. One can avoid waiting for \fBgem pristine \-\-all\fR, and instead run \fBbundle pristine\fR\.
|