rubygems-update 3.5.6 → 3.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -0
- data/Manifest.txt +4 -4
- data/bundler/CHANGELOG.md +18 -0
- data/bundler/lib/bundler/build_metadata.rb +2 -2
- data/bundler/lib/bundler/cli/binstubs.rb +1 -1
- data/bundler/lib/bundler/cli/plugin.rb +2 -2
- data/bundler/lib/bundler/cli.rb +1 -1
- data/bundler/lib/bundler/dsl.rb +16 -1
- data/bundler/lib/bundler/man/bundle-add.1 +1 -1
- data/bundler/lib/bundler/man/bundle-binstubs.1 +1 -1
- data/bundler/lib/bundler/man/bundle-cache.1 +1 -1
- data/bundler/lib/bundler/man/bundle-check.1 +1 -1
- data/bundler/lib/bundler/man/bundle-clean.1 +1 -1
- data/bundler/lib/bundler/man/bundle-config.1 +1 -1
- data/bundler/lib/bundler/man/bundle-console.1 +1 -1
- data/bundler/lib/bundler/man/bundle-doctor.1 +1 -1
- data/bundler/lib/bundler/man/bundle-exec.1 +1 -1
- data/bundler/lib/bundler/man/bundle-gem.1 +1 -1
- data/bundler/lib/bundler/man/bundle-help.1 +1 -1
- data/bundler/lib/bundler/man/bundle-info.1 +1 -1
- data/bundler/lib/bundler/man/bundle-init.1 +1 -1
- data/bundler/lib/bundler/man/bundle-inject.1 +1 -1
- data/bundler/lib/bundler/man/bundle-install.1 +3 -3
- data/bundler/lib/bundler/man/bundle-install.1.ronn +2 -2
- data/bundler/lib/bundler/man/bundle-list.1 +1 -1
- data/bundler/lib/bundler/man/bundle-lock.1 +1 -1
- data/bundler/lib/bundler/man/bundle-open.1 +1 -1
- data/bundler/lib/bundler/man/bundle-outdated.1 +1 -1
- data/bundler/lib/bundler/man/bundle-platform.1 +1 -1
- data/bundler/lib/bundler/man/bundle-plugin.1 +4 -4
- data/bundler/lib/bundler/man/bundle-plugin.1.ronn +3 -3
- data/bundler/lib/bundler/man/bundle-pristine.1 +1 -1
- data/bundler/lib/bundler/man/bundle-remove.1 +1 -1
- data/bundler/lib/bundler/man/bundle-show.1 +1 -1
- data/bundler/lib/bundler/man/bundle-update.1 +1 -1
- data/bundler/lib/bundler/man/bundle-version.1 +1 -1
- data/bundler/lib/bundler/man/bundle-viz.1 +1 -1
- data/bundler/lib/bundler/man/bundle.1 +1 -1
- data/bundler/lib/bundler/man/gemfile.5 +3 -3
- data/bundler/lib/bundler/man/gemfile.5.ronn +2 -2
- data/bundler/lib/bundler/plugin/installer.rb +5 -9
- data/bundler/lib/bundler/settings.rb +10 -7
- data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +4 -3
- data/bundler/lib/bundler/templates/newgem/rubocop.yml.tt +0 -5
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb +1 -0
- data/bundler/lib/bundler/vendored_net_http.rb +7 -3
- data/bundler/lib/bundler/vendored_timeout.rb +7 -3
- data/bundler/lib/bundler/version.rb +1 -1
- data/lib/rubygems/command.rb +1 -1
- data/lib/rubygems/command_manager.rb +1 -1
- data/lib/rubygems/commands/help_command.rb +2 -2
- data/lib/rubygems/commands/rdoc_command.rb +1 -8
- data/lib/rubygems/defaults.rb +4 -4
- data/lib/rubygems/dependency.rb +2 -2
- data/lib/rubygems/dependency_list.rb +1 -1
- data/lib/rubygems/ext/cargo_builder.rb +1 -1
- data/lib/rubygems/gemcutter_utilities.rb +1 -1
- data/lib/rubygems/remote_fetcher.rb +1 -1
- data/lib/rubygems/request.rb +1 -1
- data/lib/rubygems/request_set.rb +1 -1
- data/lib/rubygems/s3_uri_signer.rb +1 -1
- data/lib/rubygems/safe_yaml.rb +10 -1
- data/lib/rubygems/security.rb +1 -1
- data/lib/rubygems/specification.rb +1 -1
- data/lib/rubygems/specification_policy.rb +9 -1
- data/lib/rubygems/util/licenses.rb +43 -0
- data/lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph.rb +1 -1
- data/lib/rubygems/vendored_net_http.rb +5 -0
- data/lib/rubygems/vendored_timeout.rb +5 -0
- data/lib/rubygems.rb +2 -2
- data/rubygems-update.gemspec +1 -1
- metadata +7 -7
- data/lib/rubygems/net/http.rb +0 -3
- data/lib/rubygems/timeout.rb +0 -3
- /data/lib/rubygems/{optparse.rb → vendored_optparse.rb} +0 -0
- /data/lib/rubygems/{tsort.rb → vendored_tsort.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b83feaa9b9fd7b87e8ac6fcbff33eb461f17e32f59cdcf4825825944fb2e206
|
4
|
+
data.tar.gz: 5edabd88afc0a9efb93f1cc664071cef09a2869b1ab84e2eb627ed2d88b949b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 882690618a686f258f5d6bd0d194c142129a8fa79643c6d12668c33e681cc2d5c55c31c6e7e5ec652893262270a25e99692ea2193d2305598be9f10c2b336036
|
7
|
+
data.tar.gz: e87beb2867ef8be9387914bad8c7fa760619ea5b76b3c0195dc5a0b56d284e500466ffdf71389c5fba19d5d8adcf895e8be36ec953af008cf25522040a8b0a80
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,31 @@
|
|
1
|
+
# 3.5.7 / 2024-03-22
|
2
|
+
|
3
|
+
## Enhancements:
|
4
|
+
|
5
|
+
* Warn on empty or open required_ruby_version specification attribute.
|
6
|
+
Pull request [#5010](https://github.com/rubygems/rubygems/pull/5010) by
|
7
|
+
simi
|
8
|
+
* Control whether YAML aliases are enabled in Gem::SafeYAML.safe_load via
|
9
|
+
attribute. Pull request
|
10
|
+
[#7464](https://github.com/rubygems/rubygems/pull/7464) by segiddins
|
11
|
+
* Update SPDX license list as of 2024-02-08. Pull request
|
12
|
+
[#7468](https://github.com/rubygems/rubygems/pull/7468) by
|
13
|
+
github-actions[bot]
|
14
|
+
* Installs bundler 2.5.7 as a default gem.
|
15
|
+
|
16
|
+
## Bug fixes:
|
17
|
+
|
18
|
+
* Allow prerelease activation (even if requirement is not explicit about
|
19
|
+
it) when it's the only possibility. Pull request
|
20
|
+
[#7428](https://github.com/rubygems/rubygems/pull/7428) by kimesf
|
21
|
+
|
22
|
+
## Documentation:
|
23
|
+
|
24
|
+
* Fix a typo. Pull request
|
25
|
+
[#7505](https://github.com/rubygems/rubygems/pull/7505) by hsbt
|
26
|
+
* Use https instead of http in documentation links. Pull request
|
27
|
+
[#7481](https://github.com/rubygems/rubygems/pull/7481) by hsbt
|
28
|
+
|
1
29
|
# 3.5.6 / 2024-02-06
|
2
30
|
|
3
31
|
## Enhancements:
|
data/Manifest.txt
CHANGED
@@ -431,9 +431,7 @@ lib/rubygems/installer.rb
|
|
431
431
|
lib/rubygems/installer_uninstaller_utils.rb
|
432
432
|
lib/rubygems/local_remote_options.rb
|
433
433
|
lib/rubygems/name_tuple.rb
|
434
|
-
lib/rubygems/net/http.rb
|
435
434
|
lib/rubygems/openssl.rb
|
436
|
-
lib/rubygems/optparse.rb
|
437
435
|
lib/rubygems/package.rb
|
438
436
|
lib/rubygems/package/digest_io.rb
|
439
437
|
lib/rubygems/package/file_source.rb
|
@@ -519,8 +517,6 @@ lib/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA.pem
|
|
519
517
|
lib/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem
|
520
518
|
lib/rubygems/stub_specification.rb
|
521
519
|
lib/rubygems/text.rb
|
522
|
-
lib/rubygems/timeout.rb
|
523
|
-
lib/rubygems/tsort.rb
|
524
520
|
lib/rubygems/uninstaller.rb
|
525
521
|
lib/rubygems/unknown_command_spell_checker.rb
|
526
522
|
lib/rubygems/update_suggestion.rb
|
@@ -608,6 +604,10 @@ lib/rubygems/vendor/uri/lib/uri/version.rb
|
|
608
604
|
lib/rubygems/vendor/uri/lib/uri/ws.rb
|
609
605
|
lib/rubygems/vendor/uri/lib/uri/wss.rb
|
610
606
|
lib/rubygems/vendored_molinillo.rb
|
607
|
+
lib/rubygems/vendored_net_http.rb
|
608
|
+
lib/rubygems/vendored_optparse.rb
|
609
|
+
lib/rubygems/vendored_timeout.rb
|
610
|
+
lib/rubygems/vendored_tsort.rb
|
611
611
|
lib/rubygems/version.rb
|
612
612
|
lib/rubygems/version_option.rb
|
613
613
|
lib/rubygems/yaml_serializer.rb
|
data/bundler/CHANGELOG.md
CHANGED
@@ -1,3 +1,21 @@
|
|
1
|
+
# 2.5.7 (March 22, 2024)
|
2
|
+
|
3
|
+
## Deprecations:
|
4
|
+
|
5
|
+
- Deprecate `bundle plugin install --local-git=` [#7048](https://github.com/rubygems/rubygems/pull/7048)
|
6
|
+
|
7
|
+
## Enhancements:
|
8
|
+
|
9
|
+
- Ignore commented out keys in config file [#7514](https://github.com/rubygems/rubygems/pull/7514)
|
10
|
+
- Fix exclusion of `.gemspec` file itself in `bundle gem` generated gemspec file [#7488](https://github.com/rubygems/rubygems/pull/7488)
|
11
|
+
- Remove redundant configs from `bundle gem` generated rubocop configuration [#7478](https://github.com/rubygems/rubygems/pull/7478)
|
12
|
+
- Add `gitlab:` git source shorthand [#7449](https://github.com/rubygems/rubygems/pull/7449)
|
13
|
+
- Use full path for `instance_eval` in `Bundler::DSL#eval_gemfile` [#7471](https://github.com/rubygems/rubygems/pull/7471)
|
14
|
+
|
15
|
+
## Documentation:
|
16
|
+
|
17
|
+
- Use https instead of http in documentation links [#7481](https://github.com/rubygems/rubygems/pull/7481)
|
18
|
+
|
1
19
|
# 2.5.6 (February 6, 2024)
|
2
20
|
|
3
21
|
## Deprecations:
|
@@ -4,8 +4,8 @@ module Bundler
|
|
4
4
|
# Represents metadata from when the Bundler gem was built.
|
5
5
|
module BuildMetadata
|
6
6
|
# begin ivars
|
7
|
-
@built_at = "2024-
|
8
|
-
@git_commit_sha = "
|
7
|
+
@built_at = "2024-03-22".freeze
|
8
|
+
@git_commit_sha = "199531f621".freeze
|
9
9
|
@release = true
|
10
10
|
# end ivars
|
11
11
|
|
@@ -45,7 +45,7 @@ module Bundler
|
|
45
45
|
next
|
46
46
|
end
|
47
47
|
|
48
|
-
Bundler.settings.temporary(path:
|
48
|
+
Bundler.settings.temporary(path: Bundler.settings[:path] || Bundler.root) do
|
49
49
|
installer.generate_standalone_bundler_executable_stubs(spec, installer_opts)
|
50
50
|
end
|
51
51
|
else
|
@@ -5,12 +5,12 @@ module Bundler
|
|
5
5
|
class CLI::Plugin < Thor
|
6
6
|
desc "install PLUGINS", "Install the plugin from the source"
|
7
7
|
long_desc <<-D
|
8
|
-
Install plugins either from the rubygems source provided (with --source option) or from a git source provided with --git
|
8
|
+
Install plugins either from the rubygems source provided (with --source option) or from a git source provided with --git. If no sources are provided, it uses Gem.sources
|
9
9
|
D
|
10
10
|
method_option "source", type: :string, default: nil, banner: "URL of the RubyGems source to fetch the plugin from"
|
11
11
|
method_option "version", type: :string, default: nil, banner: "The version of the plugin to fetch"
|
12
12
|
method_option "git", type: :string, default: nil, banner: "URL of the git repo to fetch from"
|
13
|
-
method_option "local_git", type: :string, default: nil, banner: "Path of the local git repo to fetch from"
|
13
|
+
method_option "local_git", type: :string, default: nil, banner: "Path of the local git repo to fetch from (deprecated)"
|
14
14
|
method_option "branch", type: :string, default: nil, banner: "The git branch to checkout"
|
15
15
|
method_option "ref", type: :string, default: nil, banner: "The git revision to check out"
|
16
16
|
def install(*plugins)
|
data/bundler/lib/bundler/cli.rb
CHANGED
@@ -620,7 +620,7 @@ module Bundler
|
|
620
620
|
method_option "major", type: :boolean, banner: "If updating, prefer updating to next major version (default)"
|
621
621
|
method_option "pre", type: :boolean, banner: "If updating, always choose the highest allowed version, regardless of prerelease status"
|
622
622
|
method_option "strict", type: :boolean, banner: "If updating, do not allow any gem to be updated past latest --patch | --minor | --major"
|
623
|
-
method_option "conservative", type: :boolean, banner:
|
623
|
+
method_option "conservative", type: :boolean, banner: "If updating, use bundle install conservative update behavior and do not allow shared dependencies to be updated"
|
624
624
|
method_option "bundler", type: :string, lazy_default: "> 0.a", banner: "Update the locked version of bundler"
|
625
625
|
def lock
|
626
626
|
require_relative "cli/lock"
|
data/bundler/lib/bundler/dsl.rb
CHANGED
@@ -19,6 +19,7 @@ module Bundler
|
|
19
19
|
platform platforms type source install_if gemfile force_ruby_platform].freeze
|
20
20
|
|
21
21
|
GITHUB_PULL_REQUEST_URL = %r{\Ahttps://github\.com/([A-Za-z0-9_\-\.]+/[A-Za-z0-9_\-\.]+)/pull/(\d+)\z}
|
22
|
+
GITLAB_MERGE_REQUEST_URL = %r{\Ahttps://gitlab\.com/([A-Za-z0-9_\-\./]+)/-/merge_requests/(\d+)\z}
|
22
23
|
|
23
24
|
attr_reader :gemspecs, :gemfile
|
24
25
|
attr_accessor :dependencies
|
@@ -46,7 +47,7 @@ module Bundler
|
|
46
47
|
@gemfile = expanded_gemfile_path
|
47
48
|
@gemfiles << expanded_gemfile_path
|
48
49
|
contents ||= Bundler.read_file(@gemfile.to_s)
|
49
|
-
instance_eval(contents, gemfile.to_s, 1)
|
50
|
+
instance_eval(contents, @gemfile.to_s, 1)
|
50
51
|
rescue Exception => e # rubocop:disable Lint/RescueException
|
51
52
|
message = "There was an error " \
|
52
53
|
"#{e.is_a?(GemfileEvalError) ? "evaluating" : "parsing"} " \
|
@@ -308,6 +309,20 @@ module Bundler
|
|
308
309
|
repo_name ||= user_name
|
309
310
|
"https://#{user_name}@bitbucket.org/#{user_name}/#{repo_name}.git"
|
310
311
|
end
|
312
|
+
|
313
|
+
git_source(:gitlab) do |repo_name|
|
314
|
+
if repo_name =~ GITLAB_MERGE_REQUEST_URL
|
315
|
+
{
|
316
|
+
"git" => "https://gitlab.com/#{$1}.git",
|
317
|
+
"branch" => nil,
|
318
|
+
"ref" => "refs/merge-requests/#{$2}/head",
|
319
|
+
"tag" => nil,
|
320
|
+
}
|
321
|
+
else
|
322
|
+
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
|
323
|
+
"https://gitlab.com/#{repo_name}.git"
|
324
|
+
end
|
325
|
+
end
|
311
326
|
end
|
312
327
|
|
313
328
|
def with_source(source)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-BINSTUBS" "1" "
|
3
|
+
.TH "BUNDLE\-BINSTUBS" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-binstubs\fR \- Install the binstubs of the listed gems
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-CACHE" "1" "
|
3
|
+
.TH "BUNDLE\-CACHE" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-cache\fR \- Package your needed \fB\.gem\fR files into your application
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-CHECK" "1" "
|
3
|
+
.TH "BUNDLE\-CHECK" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-check\fR \- Verifies if dependencies are satisfied by installed gems
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-CLEAN" "1" "
|
3
|
+
.TH "BUNDLE\-CLEAN" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-clean\fR \- Cleans up unused gems in your bundler directory
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-CONSOLE" "1" "
|
3
|
+
.TH "BUNDLE\-CONSOLE" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-console\fR \- Deprecated way to open an IRB session with the bundle pre\-loaded
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-DOCTOR" "1" "
|
3
|
+
.TH "BUNDLE\-DOCTOR" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-doctor\fR \- Checks the bundle for common problems
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-EXEC" "1" "
|
3
|
+
.TH "BUNDLE\-EXEC" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-exec\fR \- Execute a command in the context of the bundle
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-GEM" "1" "
|
3
|
+
.TH "BUNDLE\-GEM" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-gem\fR \- Generate a project skeleton for creating a rubygem
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-INFO" "1" "
|
3
|
+
.TH "BUNDLE\-INFO" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-info\fR \- Show information for the given gem in your bundle
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-INIT" "1" "
|
3
|
+
.TH "BUNDLE\-INIT" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-init\fR \- Generates a Gemfile into the current working directory
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-INJECT" "1" "
|
3
|
+
.TH "BUNDLE\-INJECT" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-inject\fR \- Add named gem(s) with version requirements to Gemfile
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-INSTALL" "1" "
|
3
|
+
.TH "BUNDLE\-INSTALL" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-install\fR \- Install the dependencies specified in your Gemfile
|
6
6
|
.SH "SYNOPSIS"
|
@@ -208,8 +208,8 @@ To explicitly update \fBactionpack\fR, including its dependencies which other ge
|
|
208
208
|
\fBSummary\fR: In general, after making a change to the Gemfile(5) , you should first try to run \fBbundle install\fR, which will guarantee that no other gem in the Gemfile(5) is impacted by the change\. If that does not work, run bundle update(1) \fIbundle\-update\.1\.html\fR\.
|
209
209
|
.SH "SEE ALSO"
|
210
210
|
.IP "\(bu" 4
|
211
|
-
Gem install docs \
|
211
|
+
Gem install docs \fIhttps://guides\.rubygems\.org/rubygems\-basics/#installing\-gems\fR
|
212
212
|
.IP "\(bu" 4
|
213
|
-
Rubygems signing docs \
|
213
|
+
Rubygems signing docs \fIhttps://guides\.rubygems\.org/security/\fR
|
214
214
|
.IP "" 0
|
215
215
|
|
@@ -379,5 +379,5 @@ does not work, run [bundle update(1)](bundle-update.1.html).
|
|
379
379
|
|
380
380
|
## SEE ALSO
|
381
381
|
|
382
|
-
* [Gem install docs](
|
383
|
-
* [Rubygems signing docs](
|
382
|
+
* [Gem install docs](https://guides.rubygems.org/rubygems-basics/#installing-gems)
|
383
|
+
* [Rubygems signing docs](https://guides.rubygems.org/security/)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-LOCK" "1" "
|
3
|
+
.TH "BUNDLE\-LOCK" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-lock\fR \- Creates / Updates a lockfile without installing
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-OPEN" "1" "
|
3
|
+
.TH "BUNDLE\-OPEN" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-open\fR \- Opens the source directory for a gem in your bundle
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-OUTDATED" "1" "
|
3
|
+
.TH "BUNDLE\-OUTDATED" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-outdated\fR \- List installed gems with newer versions available
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-PLATFORM" "1" "
|
3
|
+
.TH "BUNDLE\-PLATFORM" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-platform\fR \- Displays platform compatibility information
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-PLUGIN" "1" "
|
3
|
+
.TH "BUNDLE\-PLUGIN" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-plugin\fR \- Manage Bundler plugins
|
6
6
|
.SH "SYNOPSIS"
|
7
|
-
\fBbundle plugin\fR install PLUGINS [\-\-source=\fISOURCE\fR] [\-\-version=\fIversion\fR] [\-\-git
|
7
|
+
\fBbundle plugin\fR install PLUGINS [\-\-source=\fISOURCE\fR] [\-\-version=\fIversion\fR] [\-\-git=\fIgit\-url\fR] [\-\-branch=\fIbranch\fR|\-\-ref=\fIrev\fR]
|
8
8
|
.br
|
9
9
|
\fBbundle plugin\fR uninstall PLUGINS
|
10
10
|
.br
|
@@ -27,7 +27,7 @@ Install bundler\-graph gem from example\.com\. The global source, specified in s
|
|
27
27
|
You can specify the version of the gem via \fB\-\-version\fR\.
|
28
28
|
.TP
|
29
29
|
\fBbundle plugin install bundler\-graph \-\-git https://github\.com/rubygems/bundler\-graph\fR
|
30
|
-
Install bundler\-graph gem from Git repository\.
|
30
|
+
Install bundler\-graph gem from Git repository\. You can use standard Git URLs like:
|
31
31
|
.IP
|
32
32
|
\fBssh://[user@]host\.xz[:port]/path/to/repo\.git\fR
|
33
33
|
.br
|
@@ -37,7 +37,7 @@ Install bundler\-graph gem from Git repository\. \fB\-\-git\fR can be replaced w
|
|
37
37
|
.br
|
38
38
|
\fBfile:///path/to/repo\fR
|
39
39
|
.IP
|
40
|
-
When you specify \fB\-\-git\fR
|
40
|
+
When you specify \fB\-\-git\fR, you can use \fB\-\-branch\fR or \fB\-\-ref\fR to specify any branch, tag, or commit hash (revision) to use\. When you specify both, only the latter is used\.
|
41
41
|
.SS "uninstall"
|
42
42
|
Uninstall the plugin(s) specified in PLUGINS\.
|
43
43
|
.SS "list"
|
@@ -4,7 +4,7 @@ bundle-plugin(1) -- Manage Bundler plugins
|
|
4
4
|
## SYNOPSIS
|
5
5
|
|
6
6
|
`bundle plugin` install PLUGINS [--source=<SOURCE>] [--version=<version>]
|
7
|
-
[--git
|
7
|
+
[--git=<git-url>] [--branch=<branch>|--ref=<rev>]<br>
|
8
8
|
`bundle plugin` uninstall PLUGINS<br>
|
9
9
|
`bundle plugin` list<br>
|
10
10
|
`bundle plugin` help [COMMAND]
|
@@ -29,14 +29,14 @@ Install the given plugin(s).
|
|
29
29
|
You can specify the version of the gem via `--version`.
|
30
30
|
|
31
31
|
* `bundle plugin install bundler-graph --git https://github.com/rubygems/bundler-graph`:
|
32
|
-
Install bundler-graph gem from Git repository.
|
32
|
+
Install bundler-graph gem from Git repository. You can use standard Git URLs like:
|
33
33
|
|
34
34
|
`ssh://[user@]host.xz[:port]/path/to/repo.git`<br>
|
35
35
|
`http[s]://host.xz[:port]/path/to/repo.git`<br>
|
36
36
|
`/path/to/repo`<br>
|
37
37
|
`file:///path/to/repo`
|
38
38
|
|
39
|
-
When you specify `--git
|
39
|
+
When you specify `--git`, you can use `--branch` or `--ref` to specify any branch, tag, or commit hash (revision) to use. When you specify both, only the latter is used.
|
40
40
|
|
41
41
|
### uninstall
|
42
42
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-PRISTINE" "1" "
|
3
|
+
.TH "BUNDLE\-PRISTINE" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-pristine\fR \- Restores installed gems to their pristine condition
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-SHOW" "1" "
|
3
|
+
.TH "BUNDLE\-SHOW" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-show\fR \- Shows all the gems in your bundle, or the path to a gem
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-UPDATE" "1" "
|
3
|
+
.TH "BUNDLE\-UPDATE" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-update\fR \- Update your gems to the latest available versions
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-VERSION" "1" "
|
3
|
+
.TH "BUNDLE\-VERSION" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-version\fR \- Prints Bundler version information
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "BUNDLE\-VIZ" "1" "
|
3
|
+
.TH "BUNDLE\-VIZ" "1" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBbundle\-viz\fR \- Generates a visual dependency graph for your Gemfile
|
6
6
|
.SH "SYNOPSIS"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" generated with nRonn/v0.11.1
|
2
2
|
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
3
|
-
.TH "GEMFILE" "5" "
|
3
|
+
.TH "GEMFILE" "5" "February 2024" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBGemfile\fR \- A format for describing gem dependencies for Ruby programs
|
6
6
|
.SH "SYNOPSIS"
|
@@ -72,7 +72,7 @@ A Ruby engine is an implementation of the Ruby language\.
|
|
72
72
|
.IP "\(bu" 4
|
73
73
|
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\.
|
74
74
|
.IP "\(bu" 4
|
75
|
-
Other implementations \fIhttps://www\.ruby\-lang\.org/en/about/\fR of Ruby exist\. Some of the more well\-known implementations include JRuby \
|
75
|
+
Other implementations \fIhttps://www\.ruby\-lang\.org/en/about/\fR of Ruby exist\. Some of the more well\-known implementations include JRuby \fIhttps://www\.jruby\.org/\fR and TruffleRuby \fIhttps://www\.graalvm\.org/ruby/\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\. TruffleRuby is a Ruby implementation on the GraalVM, a language toolkit built on the JVM\.
|
76
76
|
.IP "" 0
|
77
77
|
.SS "ENGINE VERSION"
|
78
78
|
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\.
|
@@ -449,7 +449,7 @@ end
|
|
449
449
|
.fi
|
450
450
|
.IP "" 0
|
451
451
|
.SH "GEMSPEC"
|
452
|
-
The \fB\.gemspec\fR \
|
452
|
+
The \fB\.gemspec\fR \fIhttps://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\.
|
453
453
|
.P
|
454
454
|
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\.
|
455
455
|
.P
|
@@ -96,7 +96,7 @@ What exactly is an Engine?
|
|
96
96
|
|
97
97
|
- [Other implementations](https://www.ruby-lang.org/en/about/) of Ruby exist.
|
98
98
|
Some of the more well-known implementations include
|
99
|
-
[JRuby](
|
99
|
+
[JRuby](https://www.jruby.org/) and [TruffleRuby](https://www.graalvm.org/ruby/).
|
100
100
|
Rubinius is an alternative implementation of Ruby written in Ruby.
|
101
101
|
JRuby is an implementation of Ruby on the JVM, short for Java Virtual Machine.
|
102
102
|
TruffleRuby is a Ruby implementation on the GraalVM, a language toolkit built on the JVM.
|
@@ -509,7 +509,7 @@ software is installed or some other conditions are met.
|
|
509
509
|
|
510
510
|
## GEMSPEC
|
511
511
|
|
512
|
-
The [`.gemspec`](
|
512
|
+
The [`.gemspec`](https://guides.rubygems.org/specification-reference/) file is where
|
513
513
|
you provide metadata about your gem to Rubygems. Some required Gemspec
|
514
514
|
attributes include the name, description, and homepage of your gem. This is
|
515
515
|
also where you specify the dependencies your gem needs to run.
|
@@ -18,8 +18,6 @@ module Bundler
|
|
18
18
|
|
19
19
|
if options[:git]
|
20
20
|
install_git(names, version, options)
|
21
|
-
elsif options[:local_git]
|
22
|
-
install_local_git(names, version, options)
|
23
21
|
else
|
24
22
|
sources = options[:source] || Gem.sources
|
25
23
|
install_rubygems(names, version, sources)
|
@@ -45,6 +43,11 @@ module Bundler
|
|
45
43
|
if options.key?(:git) && options.key?(:local_git)
|
46
44
|
raise InvalidOption, "Remote and local plugin git sources can't be both specified"
|
47
45
|
end
|
46
|
+
# back-compat; local_git is an alias for git
|
47
|
+
if options.key?(:local_git)
|
48
|
+
Bundler::SharedHelpers.major_deprecation(2, "--local_git is deprecated, use --git")
|
49
|
+
options[:git] = options.delete(:local_git)
|
50
|
+
end
|
48
51
|
end
|
49
52
|
|
50
53
|
def install_git(names, version, options)
|
@@ -54,13 +57,6 @@ module Bundler
|
|
54
57
|
install_all_sources(names, version, options, options[:source])
|
55
58
|
end
|
56
59
|
|
57
|
-
def install_local_git(names, version, options)
|
58
|
-
uri = options.delete(:local_git)
|
59
|
-
options["uri"] = uri
|
60
|
-
|
61
|
-
install_all_sources(names, version, options, options[:source])
|
62
|
-
end
|
63
|
-
|
64
60
|
# Installs the plugin from rubygems source and returns the path where the
|
65
61
|
# plugin was installed
|
66
62
|
#
|
@@ -492,16 +492,19 @@ module Bundler
|
|
492
492
|
valid_file = file.exist? && !file.size.zero?
|
493
493
|
return {} unless valid_file
|
494
494
|
serializer_class.load(file.read).inject({}) do |config, (k, v)|
|
495
|
-
|
496
|
-
|
497
|
-
"
|
498
|
-
|
495
|
+
unless k.start_with?("#")
|
496
|
+
if k.include?("-")
|
497
|
+
Bundler.ui.warn "Your #{file} config includes `#{k}`, which contains the dash character (`-`).\n" \
|
498
|
+
"This is deprecated, because configuration through `ENV` should be possible, but `ENV` keys cannot include dashes.\n" \
|
499
|
+
"Please edit #{file} and replace any dashes in configuration keys with a triple underscore (`___`)."
|
499
500
|
|
500
|
-
|
501
|
-
|
501
|
+
# string hash keys are frozen
|
502
|
+
k = k.gsub("-", "___")
|
503
|
+
end
|
504
|
+
|
505
|
+
config[k] = v
|
502
506
|
end
|
503
507
|
|
504
|
-
config[k] = v
|
505
508
|
config
|
506
509
|
end
|
507
510
|
end
|