rubygems-update 3.4.1 → 3.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -4
- data/bundler/CHANGELOG.md +29 -1
- data/bundler/UPGRADING.md +1 -1
- data/bundler/lib/bundler/build_metadata.rb +2 -2
- data/bundler/lib/bundler/cli/open.rb +6 -4
- data/bundler/lib/bundler/cli.rb +1 -0
- data/bundler/lib/bundler/definition.rb +8 -3
- data/bundler/lib/bundler/dsl.rb +2 -2
- data/bundler/lib/bundler/lazy_specification.rb +28 -33
- 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 +2 -2
- data/bundler/lib/bundler/man/bundle-config.1.ronn +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 +1 -1
- 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 +22 -2
- data/bundler/lib/bundler/man/bundle-open.1.ronn +9 -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 +1 -1
- 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 +1 -1
- data/bundler/lib/bundler/resolver/candidate.rb +12 -7
- data/bundler/lib/bundler/resolver.rb +6 -5
- data/bundler/lib/bundler/templates/newgem/Cargo.toml.tt +1 -1
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/version_constraint.rb +4 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb +1 -1
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/version_union.rb +1 -1
- data/bundler/lib/bundler/version.rb +1 -1
- data/lib/rubygems/command.rb +5 -1
- data/lib/rubygems/command_manager.rb +17 -4
- data/lib/rubygems/commands/build_command.rb +3 -0
- data/lib/rubygems/commands/owner_command.rb +1 -1
- data/lib/rubygems/ext/cargo_builder.rb +1 -1
- data/lib/rubygems/platform.rb +1 -1
- data/lib/rubygems.rb +1 -1
- data/rubygems-update.gemspec +1 -1
- data/test/rubygems/test_gem_command_manager.rb +40 -0
- data/test/rubygems/test_gem_commands_build_command.rb +10 -0
- data/test/rubygems/test_gem_installer.rb +1 -1
- data/test/rubygems/test_gem_request_set_lockfile_parser.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea0dc92a8c2b9c77f350a299c75d894d9cf62dcd841bdceb82990cf0c3173089
|
|
4
|
+
data.tar.gz: bd630bc8ee7e8453efc849359fed24af280b88602207ba0e1e05d8ed2802d4a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9bf62a3e6d05b1f03bfb5e93781eb1e0ba0fb9c3d6b32692bbb96aa62119b8407e13646afb3f91a0bb170ddc7a8974799611299f12d94bc162b28f07acd010b
|
|
7
|
+
data.tar.gz: 66041a9e9a6f7a3bd2ac6a6da9934ad3d9af90ab50668b028b1ee758608f884493c1bed46af996583fb7cee15d2c0f11094d068429c0a618b90da9721314dfcf
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
# 3.4.3 / 2023-01-06
|
|
2
|
+
|
|
3
|
+
## Enhancements:
|
|
4
|
+
|
|
5
|
+
* Installs bundler 2.4.3 as a default gem.
|
|
6
|
+
|
|
7
|
+
## Documentation:
|
|
8
|
+
|
|
9
|
+
* Fix several typos. Pull request #6224 by jdufresne
|
|
10
|
+
|
|
11
|
+
# 3.4.2 / 2023-01-01
|
|
12
|
+
|
|
13
|
+
## Enhancements:
|
|
14
|
+
|
|
15
|
+
* Add global flag (`-C`) to change execution directory. Pull request #6180
|
|
16
|
+
by gustavothecoder
|
|
17
|
+
* Installs bundler 2.4.2 as a default gem.
|
|
18
|
+
|
|
1
19
|
# 3.4.1 / 2022-12-24
|
|
2
20
|
|
|
3
21
|
## Enhancements:
|
|
@@ -629,7 +647,7 @@
|
|
|
629
647
|
|
|
630
648
|
## Security fixes:
|
|
631
649
|
|
|
632
|
-
* Verify
|
|
650
|
+
* Verify platform before installing to avoid potential remote code
|
|
633
651
|
execution. Pull request #4667 by sonalkr132
|
|
634
652
|
|
|
635
653
|
## Enhancements:
|
|
@@ -4261,7 +4279,7 @@ work focused on moving functionality out of Gem::SourceIndex and
|
|
|
4261
4279
|
Gem::GemPathSearcher into Gem::Specification where it belongs.
|
|
4262
4280
|
|
|
4263
4281
|
After installing RubyGems 1.8.0 you will see deprecations when loading your
|
|
4264
|
-
|
|
4282
|
+
existing gems. Run `gem pristine --all --no-extensions` to regenerate your
|
|
4265
4283
|
gem specifications safely.
|
|
4266
4284
|
|
|
4267
4285
|
Currently RubyGems does not save the build arguments used to build gems with
|
|
@@ -4788,8 +4806,8 @@ http://gems.rubyforge.org will continue to work for the foreseeable future.
|
|
|
4788
4806
|
Steve Purcell.
|
|
4789
4807
|
* `gem generate_index`
|
|
4790
4808
|
* Can now generate an RSS feed.
|
|
4791
|
-
* Modern
|
|
4792
|
-
* Legacy
|
|
4809
|
+
* Modern indices can now be updated incrementally.
|
|
4810
|
+
* Legacy indices can be updated separately from modern.
|
|
4793
4811
|
|
|
4794
4812
|
## Bug fixes:
|
|
4795
4813
|
|
data/bundler/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
# 2.4.3 (January 6, 2023)
|
|
2
|
+
|
|
3
|
+
## Enhancements:
|
|
4
|
+
|
|
5
|
+
- Enhance `bundle open` command to allow opening subdir/file of gem [#6146](https://github.com/rubygems/rubygems/pull/6146)
|
|
6
|
+
|
|
7
|
+
## Bug fixes:
|
|
8
|
+
|
|
9
|
+
- Fix pointing GitHub sources to PRs [#6241](https://github.com/rubygems/rubygems/pull/6241)
|
|
10
|
+
- Fix version ranges incorrectly handling platforms [#6240](https://github.com/rubygems/rubygems/pull/6240)
|
|
11
|
+
- Cleanup unnecessary gems when removing lockfile platforms [#6234](https://github.com/rubygems/rubygems/pull/6234)
|
|
12
|
+
- When auto-removing RUBY platform don't add specific platform if not needed [#6233](https://github.com/rubygems/rubygems/pull/6233)
|
|
13
|
+
- Fallback to selecting installable candidates if possible when materializing specs [#6225](https://github.com/rubygems/rubygems/pull/6225)
|
|
14
|
+
|
|
15
|
+
## Documentation:
|
|
16
|
+
|
|
17
|
+
- Fix several typos [#6224](https://github.com/rubygems/rubygems/pull/6224)
|
|
18
|
+
|
|
19
|
+
# 2.4.2 (January 1, 2023)
|
|
20
|
+
|
|
21
|
+
## Performance:
|
|
22
|
+
|
|
23
|
+
- Speed up resolution by properly merging incompatibility ranges [#6215](https://github.com/rubygems/rubygems/pull/6215)
|
|
24
|
+
|
|
25
|
+
## Documentation:
|
|
26
|
+
|
|
27
|
+
- Remove stray word in `bundle config` man page [#6220](https://github.com/rubygems/rubygems/pull/6220)
|
|
28
|
+
|
|
1
29
|
# 2.4.1 (December 24, 2022)
|
|
2
30
|
|
|
3
31
|
## Enhancements:
|
|
@@ -1508,7 +1536,7 @@ Changes
|
|
|
1508
1536
|
|
|
1509
1537
|
- avoid new RubyGems warning about unsafe YAML loading (to keep output consistent) (@segiddins)
|
|
1510
1538
|
- load digest subclasses in a thread-safe manner (@segiddins, @colby-swandale)
|
|
1511
|
-
- avoid
|
|
1539
|
+
- avoid unused variable warnings under ruby 2.5 (@amatsuda)
|
|
1512
1540
|
- fix printing the same message twice in verbose mode ([#6028](https://github.com/rubygems/bundler/issues/6028), @akhramov)
|
|
1513
1541
|
- allow `SignalException`s to bubble up to the interpreter during `bundle exec` ([#6090](https://github.com/rubygems/bundler/issues/6090), @dekellum)
|
|
1514
1542
|
- avoid activating stdlib digest under Ruby 2.5 (@segiddins)
|
data/bundler/UPGRADING.md
CHANGED
|
@@ -103,7 +103,7 @@ in the upcoming 3 version.
|
|
|
103
103
|
|
|
104
104
|
#### Cancelled CLI deprecations
|
|
105
105
|
|
|
106
|
-
These deprecations have been
|
|
106
|
+
These deprecations have been initially announced before, but the deprecations
|
|
107
107
|
were cancelled before the release of Bundler 2.1.0 in [rubygems/bundler#7475](https://github.com/rubygems/bundler/pull/7475).
|
|
108
108
|
|
|
109
109
|
* ~The `bundle update` command will no longer update all gems, you'll need to pass `--all` to it.~ (postponed)
|
|
@@ -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 = "
|
|
8
|
-
@git_commit_sha = "
|
|
7
|
+
@built_at = "2023-01-06".freeze
|
|
8
|
+
@git_commit_sha = "ed1f27f75c".freeze
|
|
9
9
|
@release = true
|
|
10
10
|
# end ivars
|
|
11
11
|
|
|
@@ -2,23 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
module Bundler
|
|
4
4
|
class CLI::Open
|
|
5
|
-
attr_reader :options, :name
|
|
5
|
+
attr_reader :options, :name, :path
|
|
6
6
|
def initialize(options, name)
|
|
7
7
|
@options = options
|
|
8
8
|
@name = name
|
|
9
|
+
@path = options[:path] unless options[:path].nil?
|
|
9
10
|
end
|
|
10
11
|
|
|
11
12
|
def run
|
|
13
|
+
raise InvalidOption, "Cannot specify `--path` option without a value" if !@path.nil? && @path.empty?
|
|
12
14
|
editor = [ENV["BUNDLER_EDITOR"], ENV["VISUAL"], ENV["EDITOR"]].find {|e| !e.nil? && !e.empty? }
|
|
13
15
|
return Bundler.ui.info("To open a bundled gem, set $EDITOR or $BUNDLER_EDITOR") unless editor
|
|
14
16
|
return unless spec = Bundler::CLI::Common.select_spec(name, :regex_match)
|
|
15
17
|
if spec.default_gem?
|
|
16
18
|
Bundler.ui.info "Unable to open #{name} because it's a default gem, so the directory it would normally be installed to does not exist."
|
|
17
19
|
else
|
|
18
|
-
|
|
19
|
-
Dir.chdir(
|
|
20
|
+
root_path = spec.full_gem_path
|
|
21
|
+
Dir.chdir(root_path) do
|
|
20
22
|
require "shellwords"
|
|
21
|
-
command = Shellwords.split(editor)
|
|
23
|
+
command = Shellwords.split(editor) << File.join([root_path, path].compact)
|
|
22
24
|
Bundler.with_original_env do
|
|
23
25
|
system(*command)
|
|
24
26
|
end || Bundler.ui.info("Could not run '#{command.join(" ")}'")
|
data/bundler/lib/bundler/cli.rb
CHANGED
|
@@ -509,6 +509,7 @@ module Bundler
|
|
|
509
509
|
subcommand "config", Config
|
|
510
510
|
|
|
511
511
|
desc "open GEM", "Opens the source directory of the given bundled gem"
|
|
512
|
+
method_option "path", :type => :string, :lazy_default => "", :banner => "Open relative path of the gem source."
|
|
512
513
|
def open(name)
|
|
513
514
|
require_relative "cli/open"
|
|
514
515
|
Open.new(options, name).run
|
|
@@ -79,6 +79,7 @@ module Bundler
|
|
|
79
79
|
@locked_bundler_version = nil
|
|
80
80
|
@locked_ruby_version = nil
|
|
81
81
|
@new_platform = nil
|
|
82
|
+
@removed_platform = nil
|
|
82
83
|
|
|
83
84
|
if lockfile && File.exist?(lockfile)
|
|
84
85
|
@lockfile_contents = Bundler.read_file(lockfile)
|
|
@@ -129,7 +130,7 @@ module Bundler
|
|
|
129
130
|
end
|
|
130
131
|
@unlocking ||= @unlock[:ruby] ||= (!@locked_ruby_version ^ !@ruby_version)
|
|
131
132
|
|
|
132
|
-
add_current_platform unless
|
|
133
|
+
add_current_platform unless Bundler.frozen_bundle?
|
|
133
134
|
|
|
134
135
|
converge_path_sources_to_gemspec_sources
|
|
135
136
|
@path_changes = converge_paths
|
|
@@ -267,7 +268,7 @@ module Bundler
|
|
|
267
268
|
SpecSet.new(filter_specs(@locked_specs, @dependencies - deleted_deps))
|
|
268
269
|
else
|
|
269
270
|
Bundler.ui.debug "Found no changes, using resolution from the lockfile"
|
|
270
|
-
if @locked_gems.may_include_redundant_platform_specific_gems?
|
|
271
|
+
if @removed_platform || @locked_gems.may_include_redundant_platform_specific_gems?
|
|
271
272
|
SpecSet.new(filter_specs(@locked_specs, @dependencies))
|
|
272
273
|
else
|
|
273
274
|
@locked_specs
|
|
@@ -446,7 +447,9 @@ module Bundler
|
|
|
446
447
|
end
|
|
447
448
|
|
|
448
449
|
def remove_platform(platform)
|
|
449
|
-
|
|
450
|
+
removed_platform = @platforms.delete(Gem::Platform.new(platform))
|
|
451
|
+
@removed_platform ||= removed_platform
|
|
452
|
+
return if removed_platform
|
|
450
453
|
raise InvalidOption, "Unable to remove the platform `#{platform}` since the only platforms are #{@platforms.join ", "}"
|
|
451
454
|
end
|
|
452
455
|
|
|
@@ -584,6 +587,8 @@ module Bundler
|
|
|
584
587
|
end
|
|
585
588
|
|
|
586
589
|
def add_current_platform
|
|
590
|
+
return if current_ruby_platform_locked?
|
|
591
|
+
|
|
587
592
|
add_platform(local_platform)
|
|
588
593
|
end
|
|
589
594
|
|
data/bundler/lib/bundler/dsl.rb
CHANGED
|
@@ -277,8 +277,8 @@ module Bundler
|
|
|
277
277
|
if repo_name =~ GITHUB_PULL_REQUEST_URL
|
|
278
278
|
{
|
|
279
279
|
"git" => "https://github.com/#{$1}.git",
|
|
280
|
-
"branch" =>
|
|
281
|
-
"ref" =>
|
|
280
|
+
"branch" => nil,
|
|
281
|
+
"ref" => "refs/pull/#{$2}/head",
|
|
282
282
|
"tag" => nil,
|
|
283
283
|
}
|
|
284
284
|
else
|
|
@@ -16,7 +16,6 @@ module Bundler
|
|
|
16
16
|
@dependencies = []
|
|
17
17
|
@platform = platform || Gem::Platform::RUBY
|
|
18
18
|
@source = source
|
|
19
|
-
@specification = nil
|
|
20
19
|
@force_ruby_platform = default_force_ruby_platform
|
|
21
20
|
end
|
|
22
21
|
|
|
@@ -80,37 +79,41 @@ module Bundler
|
|
|
80
79
|
def materialize_for_installation
|
|
81
80
|
source.local!
|
|
82
81
|
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
matching_specs = source.specs.search(use_exact_resolved_specifications? ? self : [name, version])
|
|
83
|
+
return self if matching_specs.empty?
|
|
85
84
|
|
|
86
|
-
|
|
85
|
+
candidates = if use_exact_resolved_specifications?
|
|
86
|
+
matching_specs
|
|
87
87
|
else
|
|
88
|
-
|
|
89
|
-
end
|
|
88
|
+
target_platform = ruby_platform_materializes_to_ruby_platform? ? platform : local_platform
|
|
90
89
|
|
|
91
|
-
|
|
90
|
+
installable_candidates = GemHelpers.select_best_platform_match(matching_specs, target_platform)
|
|
92
91
|
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
specification = __materialize__(installable_candidates)
|
|
93
|
+
return specification unless specification.nil?
|
|
95
94
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
search = candidates.reverse.find do |spec|
|
|
99
|
-
spec.is_a?(StubSpecification) ||
|
|
100
|
-
(spec.matches_current_ruby? &&
|
|
101
|
-
spec.matches_current_rubygems?)
|
|
102
|
-
end
|
|
103
|
-
if search.nil? && Bundler.frozen_bundle?
|
|
104
|
-
search = candidates.last
|
|
105
|
-
else
|
|
106
|
-
search.dependencies = dependencies if search && search.full_name == full_name && (search.is_a?(RemoteSpecification) || search.is_a?(EndpointSpecification))
|
|
95
|
+
if target_platform != platform
|
|
96
|
+
installable_candidates = GemHelpers.select_best_platform_match(matching_specs, platform)
|
|
107
97
|
end
|
|
108
|
-
|
|
98
|
+
|
|
99
|
+
installable_candidates
|
|
109
100
|
end
|
|
101
|
+
|
|
102
|
+
__materialize__(candidates)
|
|
110
103
|
end
|
|
111
104
|
|
|
112
|
-
def
|
|
113
|
-
|
|
105
|
+
def __materialize__(candidates)
|
|
106
|
+
search = candidates.reverse.find do |spec|
|
|
107
|
+
spec.is_a?(StubSpecification) ||
|
|
108
|
+
(spec.matches_current_ruby? &&
|
|
109
|
+
spec.matches_current_rubygems?)
|
|
110
|
+
end
|
|
111
|
+
if search.nil? && Bundler.frozen_bundle?
|
|
112
|
+
search = candidates.last
|
|
113
|
+
else
|
|
114
|
+
search.dependencies = dependencies if search && search.full_name == full_name && (search.is_a?(RemoteSpecification) || search.is_a?(EndpointSpecification))
|
|
115
|
+
end
|
|
116
|
+
search
|
|
114
117
|
end
|
|
115
118
|
|
|
116
119
|
def to_s
|
|
@@ -132,16 +135,8 @@ module Bundler
|
|
|
132
135
|
|
|
133
136
|
private
|
|
134
137
|
|
|
135
|
-
def
|
|
136
|
-
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
def method_missing(method, *args, &blk)
|
|
140
|
-
raise "LazySpecification has not been materialized yet (calling :#{method} #{args.inspect})" unless @specification
|
|
141
|
-
|
|
142
|
-
return super unless respond_to?(method)
|
|
143
|
-
|
|
144
|
-
@specification.send(method, *args, &blk)
|
|
138
|
+
def use_exact_resolved_specifications?
|
|
139
|
+
@use_exact_resolved_specifications ||= !source.is_a?(Source::Path) && ruby_platform_materializes_to_ruby_platform?
|
|
145
140
|
end
|
|
146
141
|
|
|
147
142
|
#
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-BINSTUBS" "1" "
|
|
4
|
+
.TH "BUNDLE\-BINSTUBS" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-binstubs\fR \- Install the binstubs of the listed gems
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-CACHE" "1" "
|
|
4
|
+
.TH "BUNDLE\-CACHE" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-cache\fR \- Package your needed \fB\.gem\fR files into your application
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-CHECK" "1" "
|
|
4
|
+
.TH "BUNDLE\-CHECK" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-check\fR \- Verifies if dependencies are satisfied by installed gems
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-CLEAN" "1" "
|
|
4
|
+
.TH "BUNDLE\-CLEAN" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-clean\fR \- Cleans up unused gems in your bundler directory
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-CONFIG" "1" "
|
|
4
|
+
.TH "BUNDLE\-CONFIG" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-config\fR \- Set bundler configuration options
|
|
@@ -39,7 +39,7 @@ Bundler default config
|
|
|
39
39
|
.IP "" 0
|
|
40
40
|
.
|
|
41
41
|
.P
|
|
42
|
-
Executing \fBbundle config list\fR
|
|
42
|
+
Executing \fBbundle config list\fR will print a list of all bundler configuration for the current bundle, and where that configuration was set\.
|
|
43
43
|
.
|
|
44
44
|
.P
|
|
45
45
|
Executing \fBbundle config get <name>\fR will print the value of that configuration setting, and where it was set\.
|
|
@@ -19,7 +19,7 @@ Bundler loads configuration settings in this order:
|
|
|
19
19
|
3. Global config (`~/.bundle/config`)
|
|
20
20
|
4. Bundler default config
|
|
21
21
|
|
|
22
|
-
Executing `bundle config list`
|
|
22
|
+
Executing `bundle config list` will print a list of all bundler
|
|
23
23
|
configuration for the current bundle, and where that configuration
|
|
24
24
|
was set.
|
|
25
25
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-CONSOLE" "1" "
|
|
4
|
+
.TH "BUNDLE\-CONSOLE" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-console\fR \- Deprecated way to open an IRB session with the bundle pre\-loaded
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-INFO" "1" "
|
|
4
|
+
.TH "BUNDLE\-INFO" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-info\fR \- Show information for the given gem in your bundle
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-INIT" "1" "
|
|
4
|
+
.TH "BUNDLE\-INIT" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-init\fR \- Generates a Gemfile into the current working directory
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-INJECT" "1" "
|
|
4
|
+
.TH "BUNDLE\-INJECT" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-inject\fR \- Add named gem(s) with version requirements to Gemfile
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-INSTALL" "1" "
|
|
4
|
+
.TH "BUNDLE\-INSTALL" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-install\fR \- Install the dependencies specified in your Gemfile
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-OPEN" "1" "
|
|
4
|
+
.TH "BUNDLE\-OPEN" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-open\fR \- Opens the source directory for a gem in your bundle
|
|
8
8
|
.
|
|
9
9
|
.SH "SYNOPSIS"
|
|
10
|
-
\fBbundle open\fR [GEM]
|
|
10
|
+
\fBbundle open\fR [GEM] [\-\-path=PATH]
|
|
11
11
|
.
|
|
12
12
|
.SH "DESCRIPTION"
|
|
13
13
|
Opens the source directory of the provided GEM in your editor\.
|
|
@@ -30,3 +30,23 @@ bundle open \'rack\'
|
|
|
30
30
|
.
|
|
31
31
|
.P
|
|
32
32
|
Will open the source directory for the \'rack\' gem in your bundle\.
|
|
33
|
+
.
|
|
34
|
+
.IP "" 4
|
|
35
|
+
.
|
|
36
|
+
.nf
|
|
37
|
+
|
|
38
|
+
bundle open \'rack\' \-\-path \'README\.md\'
|
|
39
|
+
.
|
|
40
|
+
.fi
|
|
41
|
+
.
|
|
42
|
+
.IP "" 0
|
|
43
|
+
.
|
|
44
|
+
.P
|
|
45
|
+
Will open the README\.md file of the \'rack\' gem source in your bundle\.
|
|
46
|
+
.
|
|
47
|
+
.SH "OPTIONS"
|
|
48
|
+
.
|
|
49
|
+
.TP
|
|
50
|
+
\fB\-\-path\fR
|
|
51
|
+
Specify GEM source relative path to open\.
|
|
52
|
+
|
|
@@ -3,7 +3,7 @@ bundle-open(1) -- Opens the source directory for a gem in your bundle
|
|
|
3
3
|
|
|
4
4
|
## SYNOPSIS
|
|
5
5
|
|
|
6
|
-
`bundle open` [GEM]
|
|
6
|
+
`bundle open` [GEM] [--path=PATH]
|
|
7
7
|
|
|
8
8
|
## DESCRIPTION
|
|
9
9
|
|
|
@@ -17,3 +17,11 @@ Example:
|
|
|
17
17
|
bundle open 'rack'
|
|
18
18
|
|
|
19
19
|
Will open the source directory for the 'rack' gem in your bundle.
|
|
20
|
+
|
|
21
|
+
bundle open 'rack' --path 'README.md'
|
|
22
|
+
|
|
23
|
+
Will open the README.md file of the 'rack' gem source in your bundle.
|
|
24
|
+
|
|
25
|
+
## OPTIONS
|
|
26
|
+
* `--path`:
|
|
27
|
+
Specify GEM source relative path to open.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-OUTDATED" "1" "
|
|
4
|
+
.TH "BUNDLE\-OUTDATED" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-outdated\fR \- List installed gems with newer versions available
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-PLATFORM" "1" "
|
|
4
|
+
.TH "BUNDLE\-PLATFORM" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-platform\fR \- Displays platform compatibility information
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-PRISTINE" "1" "
|
|
4
|
+
.TH "BUNDLE\-PRISTINE" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-pristine\fR \- Restores installed gems to their pristine condition
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-SHOW" "1" "
|
|
4
|
+
.TH "BUNDLE\-SHOW" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-show\fR \- Shows all the gems in your bundle, or the path to a gem
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-UPDATE" "1" "
|
|
4
|
+
.TH "BUNDLE\-UPDATE" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-update\fR \- Update your gems to the latest available versions
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "BUNDLE\-VIZ" "1" "
|
|
4
|
+
.TH "BUNDLE\-VIZ" "1" "January 2023" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-viz\fR \- Generates a visual dependency graph for your Gemfile
|
|
@@ -41,6 +41,18 @@ module Bundler
|
|
|
41
41
|
@spec_group.to_specs(package.force_ruby_platform?)
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
def generic!
|
|
45
|
+
@ruby_only = true
|
|
46
|
+
|
|
47
|
+
self
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def platform_specific!
|
|
51
|
+
@ruby_only = false
|
|
52
|
+
|
|
53
|
+
self
|
|
54
|
+
end
|
|
55
|
+
|
|
44
56
|
def prerelease?
|
|
45
57
|
@version.prerelease?
|
|
46
58
|
end
|
|
@@ -53,27 +65,20 @@ module Bundler
|
|
|
53
65
|
[@version, @ruby_only ? -1 : 1]
|
|
54
66
|
end
|
|
55
67
|
|
|
56
|
-
def canonical?
|
|
57
|
-
!@spec_group.empty?
|
|
58
|
-
end
|
|
59
|
-
|
|
60
68
|
def <=>(other)
|
|
61
69
|
return unless other.is_a?(self.class)
|
|
62
|
-
return @version <=> other.version unless canonical? && other.canonical?
|
|
63
70
|
|
|
64
71
|
sort_obj <=> other.sort_obj
|
|
65
72
|
end
|
|
66
73
|
|
|
67
74
|
def ==(other)
|
|
68
75
|
return unless other.is_a?(self.class)
|
|
69
|
-
return @version == other.version unless canonical? && other.canonical?
|
|
70
76
|
|
|
71
77
|
sort_obj == other.sort_obj
|
|
72
78
|
end
|
|
73
79
|
|
|
74
80
|
def eql?(other)
|
|
75
81
|
return unless other.is_a?(self.class)
|
|
76
|
-
return @version.eql?(other.version) unless canonical? || other.canonical?
|
|
77
82
|
|
|
78
83
|
sort_obj.eql?(other.sort_obj)
|
|
79
84
|
end
|
|
@@ -337,7 +337,8 @@ module Bundler
|
|
|
337
337
|
|
|
338
338
|
def requirement_to_range(requirement)
|
|
339
339
|
ranges = requirement.requirements.map do |(op, version)|
|
|
340
|
-
ver = Resolver::Candidate.new(version)
|
|
340
|
+
ver = Resolver::Candidate.new(version).generic!
|
|
341
|
+
platform_ver = Resolver::Candidate.new(version).platform_specific!
|
|
341
342
|
|
|
342
343
|
case op
|
|
343
344
|
when "~>"
|
|
@@ -345,17 +346,17 @@ module Bundler
|
|
|
345
346
|
bump = Resolver::Candidate.new(version.bump.to_s + ".A")
|
|
346
347
|
PubGrub::VersionRange.new(:name => name, :min => ver, :max => bump, :include_min => true)
|
|
347
348
|
when ">"
|
|
348
|
-
PubGrub::VersionRange.new(:min =>
|
|
349
|
+
PubGrub::VersionRange.new(:min => platform_ver)
|
|
349
350
|
when ">="
|
|
350
351
|
PubGrub::VersionRange.new(:min => ver, :include_min => true)
|
|
351
352
|
when "<"
|
|
352
353
|
PubGrub::VersionRange.new(:max => ver)
|
|
353
354
|
when "<="
|
|
354
|
-
PubGrub::VersionRange.new(:max =>
|
|
355
|
+
PubGrub::VersionRange.new(:max => platform_ver, :include_max => true)
|
|
355
356
|
when "="
|
|
356
|
-
PubGrub::VersionRange.new(:min => ver, :max =>
|
|
357
|
+
PubGrub::VersionRange.new(:min => ver, :max => platform_ver, :include_min => true, :include_max => true)
|
|
357
358
|
when "!="
|
|
358
|
-
PubGrub::VersionRange.new(:min => ver, :max =>
|
|
359
|
+
PubGrub::VersionRange.new(:min => ver, :max => platform_ver, :include_min => true, :include_max => true).invert
|
|
359
360
|
else
|
|
360
361
|
raise "bad version specifier: #{op}"
|
|
361
362
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This Cargo.toml is here to let externals tools (IDEs, etc.) know that this is
|
|
2
|
-
# a Rust project. Your extensions
|
|
2
|
+
# a Rust project. Your extensions dependencies should be added to the Cargo.toml
|
|
3
3
|
# in the ext/ directory.
|
|
4
4
|
|
|
5
5
|
[workspace]
|
|
@@ -20,6 +20,10 @@ module Bundler::PubGrub
|
|
|
20
20
|
range.eql?(other.range)
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
+
def ==(other)
|
|
24
|
+
package == other.package && range == other.range
|
|
25
|
+
end
|
|
26
|
+
|
|
23
27
|
class << self
|
|
24
28
|
def exact(package, version)
|
|
25
29
|
range = VersionRange.new(min: version, max: version, include_min: true, include_max: true)
|
|
@@ -148,7 +148,7 @@ module Bundler::PubGrub
|
|
|
148
148
|
while !ranges.empty?
|
|
149
149
|
ne = []
|
|
150
150
|
range = ranges.shift
|
|
151
|
-
while !ranges.empty? && ranges[0].min == range.max
|
|
151
|
+
while !ranges.empty? && ranges[0].min.to_s == range.max.to_s
|
|
152
152
|
ne << range.max
|
|
153
153
|
range = range.span(ranges.shift)
|
|
154
154
|
end
|
data/lib/rubygems/command.rb
CHANGED
|
@@ -630,7 +630,11 @@ RubyGems is a package manager for Ruby.
|
|
|
630
630
|
Usage:
|
|
631
631
|
gem -h/--help
|
|
632
632
|
gem -v/--version
|
|
633
|
-
gem command [arguments...] [options...]
|
|
633
|
+
gem [global options...] command [arguments...] [options...]
|
|
634
|
+
|
|
635
|
+
Global options:
|
|
636
|
+
-C PATH run as if gem was started in <PATH>
|
|
637
|
+
instead of the current working directory
|
|
634
638
|
|
|
635
639
|
Examples:
|
|
636
640
|
gem install rake
|
|
@@ -175,14 +175,20 @@ class Gem::CommandManager
|
|
|
175
175
|
when "-v", "--version" then
|
|
176
176
|
say Gem::VERSION
|
|
177
177
|
terminate_interaction 0
|
|
178
|
+
when "-C" then
|
|
179
|
+
args.shift
|
|
180
|
+
start_point = args.shift
|
|
181
|
+
if Dir.exist?(start_point)
|
|
182
|
+
Dir.chdir(start_point) { invoke_command(args, build_args) }
|
|
183
|
+
else
|
|
184
|
+
alert_error clean_text("#{start_point} isn't a directory.")
|
|
185
|
+
terminate_interaction 1
|
|
186
|
+
end
|
|
178
187
|
when /^-/ then
|
|
179
188
|
alert_error clean_text("Invalid option: #{args.first}. See 'gem --help'.")
|
|
180
189
|
terminate_interaction 1
|
|
181
190
|
else
|
|
182
|
-
|
|
183
|
-
cmd = find_command cmd_name
|
|
184
|
-
cmd.deprecation_warning if cmd.deprecated?
|
|
185
|
-
cmd.invoke_with_build_args args, build_args
|
|
191
|
+
invoke_command(args, build_args)
|
|
186
192
|
end
|
|
187
193
|
end
|
|
188
194
|
|
|
@@ -237,4 +243,11 @@ class Gem::CommandManager
|
|
|
237
243
|
ui.backtrace e
|
|
238
244
|
end
|
|
239
245
|
end
|
|
246
|
+
|
|
247
|
+
def invoke_command(args, build_args)
|
|
248
|
+
cmd_name = args.shift.downcase
|
|
249
|
+
cmd = find_command cmd_name
|
|
250
|
+
cmd.deprecation_warning if cmd.deprecated?
|
|
251
|
+
cmd.invoke_with_build_args args, build_args
|
|
252
|
+
end
|
|
240
253
|
end
|
|
@@ -26,6 +26,9 @@ class Gem::Commands::BuildCommand < Gem::Command
|
|
|
26
26
|
add_option "-C PATH", "Run as if gem build was started in <PATH> instead of the current working directory." do |value, options|
|
|
27
27
|
options[:build_path] = value
|
|
28
28
|
end
|
|
29
|
+
deprecate_option "-C",
|
|
30
|
+
version: "4.0",
|
|
31
|
+
extra_msg: "-C is a global flag now. Use `gem -C PATH build GEMSPEC_FILE [options]` instead"
|
|
29
32
|
end
|
|
30
33
|
|
|
31
34
|
def arguments # :nodoc:
|
|
@@ -15,7 +15,7 @@ The owner command lets you add and remove owners of a gem on a push
|
|
|
15
15
|
server (the default is https://rubygems.org). Multiple owners can be
|
|
16
16
|
added or removed at the same time, if the flag is given multiple times.
|
|
17
17
|
|
|
18
|
-
The supported user identifiers are
|
|
18
|
+
The supported user identifiers are dependent on the push server.
|
|
19
19
|
For rubygems.org, both e-mail and handle are supported, even though the
|
|
20
20
|
user identifier field is called "email".
|
|
21
21
|
|
|
@@ -203,7 +203,7 @@ class Gem::Ext::CargoBuilder < Gem::Ext::Builder
|
|
|
203
203
|
!!Gem::WIN_PATTERNS.find {|r| target_platform =~ r }
|
|
204
204
|
end
|
|
205
205
|
|
|
206
|
-
# Interpolate
|
|
206
|
+
# Interpolate substitution vars in the arg (i.e. $(DEFFILE))
|
|
207
207
|
def maybe_resolve_ldflag_variable(input_arg, dest_dir)
|
|
208
208
|
var_matches = input_arg.match(/\$\((\w+)\)/)
|
|
209
209
|
|
data/lib/rubygems/platform.rb
CHANGED
|
@@ -158,7 +158,7 @@ class Gem::Platform
|
|
|
158
158
|
# Of note, this method is not commutative. Indeed the OS 'linux' has a
|
|
159
159
|
# special case: the version is the libc name, yet while "no version" stands
|
|
160
160
|
# as a wildcard for a binary gem platform (as for other OSes), for the
|
|
161
|
-
# runtime platform "no version" stands for 'gnu'. To be able to
|
|
161
|
+
# runtime platform "no version" stands for 'gnu'. To be able to distinguish
|
|
162
162
|
# these, the method receiver is the gem platform, while the argument is
|
|
163
163
|
# the runtime platform.
|
|
164
164
|
#
|
data/lib/rubygems.rb
CHANGED
data/rubygems-update.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = "rubygems-update"
|
|
5
|
-
s.version = "3.4.
|
|
5
|
+
s.version = "3.4.3"
|
|
6
6
|
s.authors = ["Jim Weirich", "Chad Fowler", "Eric Hodel", "Luis Lavena", "Aaron Patterson", "Samuel Giddins", "André Arko", "Evan Phoenix", "Hiroshi SHIBATA"]
|
|
7
7
|
s.email = ["", "", "drbrain@segment7.net", "luislavena@gmail.com", "aaron@tenderlovemaking.com", "segiddins@segiddins.me", "andre@arko.net", "evan@phx.io", "hsbt@ruby-lang.org"]
|
|
8
8
|
|
|
@@ -126,6 +126,46 @@ class TestGemCommandManager < Gem::TestCase
|
|
|
126
126
|
@command_manager.unregister_command :crash
|
|
127
127
|
end
|
|
128
128
|
|
|
129
|
+
def test_process_args_with_c_flag
|
|
130
|
+
custom_start_point = File.join @tempdir, "nice_folder"
|
|
131
|
+
FileUtils.mkdir_p custom_start_point
|
|
132
|
+
|
|
133
|
+
execution_path = nil
|
|
134
|
+
use_ui @ui do
|
|
135
|
+
@command_manager[:install].when_invoked do
|
|
136
|
+
execution_path = Dir.pwd
|
|
137
|
+
true
|
|
138
|
+
end
|
|
139
|
+
@command_manager.process_args %W[-C #{custom_start_point} install net-scp-4.0.0.gem --local]
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
assert_equal custom_start_point, execution_path
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
def test_process_args_with_c_flag_without_path
|
|
146
|
+
use_ui @ui do
|
|
147
|
+
assert_raise Gem::MockGemUi::TermError do
|
|
148
|
+
@command_manager.process_args %w[-C install net-scp-4.0.0.gem --local]
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
assert_match(/install isn't a directory./i, @ui.error)
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
def test_process_args_with_c_flag_path_not_found
|
|
156
|
+
custom_start_point = File.join @tempdir, "nice_folder"
|
|
157
|
+
FileUtils.mkdir_p custom_start_point
|
|
158
|
+
custom_start_point.tr!("_", "-")
|
|
159
|
+
|
|
160
|
+
use_ui @ui do
|
|
161
|
+
assert_raise Gem::MockGemUi::TermError do
|
|
162
|
+
@command_manager.process_args %W[-C #{custom_start_point} install net-scp-4.0.0.gem --local]
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
assert_match(/#{custom_start_point} isn't a directory./i, @ui.error)
|
|
167
|
+
end
|
|
168
|
+
|
|
129
169
|
def test_process_args_bad_arg
|
|
130
170
|
use_ui @ui do
|
|
131
171
|
assert_raise Gem::MockGemUi::TermError do
|
|
@@ -41,6 +41,16 @@ class TestGemCommandsBuildCommand < Gem::TestCase
|
|
|
41
41
|
assert_includes Gem.platforms, Gem::Platform.local
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
def test_handle_deprecated_options
|
|
45
|
+
use_ui @ui do
|
|
46
|
+
@cmd.handle_options %w[-C ./test/dir]
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
assert_equal "WARNING: The \"-C\" option has been deprecated and will be removed in Rubygems 4.0. " \
|
|
50
|
+
"-C is a global flag now. Use `gem -C PATH build GEMSPEC_FILE [options]` instead\n",
|
|
51
|
+
@ui.error
|
|
52
|
+
end
|
|
53
|
+
|
|
44
54
|
def test_options_filename
|
|
45
55
|
gemspec_file = File.join(@tempdir, @gem.spec_name)
|
|
46
56
|
|
|
@@ -275,7 +275,7 @@ DEPENDENCIES
|
|
|
275
275
|
Gem::Resolver::LockSet === set
|
|
276
276
|
end
|
|
277
277
|
|
|
278
|
-
refute lockfile_set, "
|
|
278
|
+
refute lockfile_set, "found a LockSet"
|
|
279
279
|
|
|
280
280
|
git_set = @set.sets.find do |set|
|
|
281
281
|
Gem::Resolver::GitSet === set
|
|
@@ -318,7 +318,7 @@ DEPENDENCIES
|
|
|
318
318
|
Gem::Resolver::LockSet === set
|
|
319
319
|
end
|
|
320
320
|
|
|
321
|
-
refute lockfile_set, "
|
|
321
|
+
refute lockfile_set, "found a LockSet"
|
|
322
322
|
|
|
323
323
|
git_set = @set.sets.find do |set|
|
|
324
324
|
Gem::Resolver::GitSet === set
|
|
@@ -355,7 +355,7 @@ DEPENDENCIES
|
|
|
355
355
|
Gem::Resolver::LockSet === set
|
|
356
356
|
end
|
|
357
357
|
|
|
358
|
-
refute lockfile_set, "
|
|
358
|
+
refute lockfile_set, "found a LockSet"
|
|
359
359
|
|
|
360
360
|
git_set = @set.sets.find do |set|
|
|
361
361
|
Gem::Resolver::GitSet === set
|
|
@@ -392,7 +392,7 @@ DEPENDENCIES
|
|
|
392
392
|
Gem::Resolver::LockSet === set
|
|
393
393
|
end
|
|
394
394
|
|
|
395
|
-
refute lockfile_set, "
|
|
395
|
+
refute lockfile_set, "found a LockSet"
|
|
396
396
|
|
|
397
397
|
git_set = @set.sets.find do |set|
|
|
398
398
|
Gem::Resolver::GitSet === set
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubygems-update
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.4.
|
|
4
|
+
version: 3.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jim Weirich
|
|
@@ -16,7 +16,7 @@ authors:
|
|
|
16
16
|
autorequire:
|
|
17
17
|
bindir: bin
|
|
18
18
|
cert_chain: []
|
|
19
|
-
date:
|
|
19
|
+
date: 2023-01-06 00:00:00.000000000 Z
|
|
20
20
|
dependencies: []
|
|
21
21
|
description: |-
|
|
22
22
|
A package (also known as a library) contains a set of functionality
|
|
@@ -834,7 +834,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
834
834
|
- !ruby/object:Gem::Version
|
|
835
835
|
version: '0'
|
|
836
836
|
requirements: []
|
|
837
|
-
rubygems_version: 3.4.
|
|
837
|
+
rubygems_version: 3.4.3
|
|
838
838
|
signing_key:
|
|
839
839
|
specification_version: 4
|
|
840
840
|
summary: RubyGems is a package management framework for Ruby.
|