rubygems-update 3.3.13 → 3.3.14
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 +6 -0
- data/bundler/CHANGELOG.md +16 -0
- data/bundler/lib/bundler/build_metadata.rb +2 -2
- data/bundler/lib/bundler/cli/common.rb +1 -1
- data/bundler/lib/bundler/definition.rb +2 -2
- data/bundler/lib/bundler/dsl.rb +1 -1
- data/bundler/lib/bundler/gem_helpers.rb +1 -1
- data/bundler/lib/bundler/installer/gem_installer.rb +14 -1
- data/bundler/lib/bundler/installer.rb +1 -1
- data/bundler/lib/bundler/lazy_specification.rb +1 -1
- data/bundler/lib/bundler/man/bundle-add.1 +7 -3
- data/bundler/lib/bundler/man/bundle-add.1.ronn +5 -2
- 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-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-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 +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-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-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/plugin/installer/git.rb +0 -4
- data/bundler/lib/bundler/plugin/installer/rubygems.rb +0 -4
- data/bundler/lib/bundler/resolver.rb +1 -1
- data/bundler/lib/bundler/rubygems_ext.rb +1 -1
- data/bundler/lib/bundler/shared_helpers.rb +5 -5
- data/bundler/lib/bundler/source/git.rb +2 -2
- data/bundler/lib/bundler/source/path.rb +1 -1
- data/bundler/lib/bundler/source/rubygems.rb +13 -10
- data/bundler/lib/bundler/source.rb +3 -4
- data/bundler/lib/bundler/spec_set.rb +5 -3
- data/bundler/lib/bundler/version.rb +1 -1
- data/bundler/lib/bundler.rb +1 -1
- data/lib/rubygems/commands/pristine_command.rb +1 -1
- data/lib/rubygems/commands/setup_command.rb +1 -1
- data/lib/rubygems/commands/specification_command.rb +1 -1
- data/lib/rubygems/installer.rb +2 -2
- data/lib/rubygems/local_remote_options.rb +1 -1
- data/lib/rubygems/query_utils.rb +1 -1
- data/lib/rubygems/spec_fetcher.rb +2 -2
- data/lib/rubygems/specification.rb +1 -1
- data/lib/rubygems.rb +2 -2
- data/rubygems-update.gemspec +1 -1
- data/test/rubygems/helper.rb +1 -1
- data/test/rubygems/package/tar_test_case.rb +1 -1
- data/test/rubygems/test_gem.rb +1 -1
- data/test/rubygems/test_gem_commands_contents_command.rb +1 -1
- data/test/rubygems/test_gem_commands_install_command.rb +2 -2
- data/test/rubygems/test_gem_request_set_lockfile_parser.rb +1 -1
- data/test/rubygems/test_gem_resolver_installer_set.rb +1 -1
- data/test/rubygems/test_gem_specification.rb +6 -6
- data/test/rubygems/test_require.rb +2 -2
- data/test/rubygems/test_rubygems.rb +1 -1
- 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: 52a5488d06e43628daedcaca933ff49a5ba653ce05b1ec00b1995648f2ed5e3e
|
|
4
|
+
data.tar.gz: d29d6a1465b98d4ce61a1a507e9ec063b5a5b0788090be53578a62c85bc01a75
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f3a0e464abd62978adc54bcef238b6e100e70432625db8b5cb7c1416b52f98e67194189ba98bc3f7b2b2d559f2725d1634a22b0d11d949b927b93bf09c8e23b
|
|
7
|
+
data.tar.gz: 17a6265f067e9c63876fde29b9054ce59dc08ae4f4ea1558ef4fc92e595db788b54467c816db3b9a154ad6aa8f3c31dd5e647c9e87e125bfd7f03185fb6b826e
|
data/CHANGELOG.md
CHANGED
data/bundler/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# 2.3.14 (May 18, 2022)
|
|
2
|
+
|
|
3
|
+
## Bug fixes:
|
|
4
|
+
|
|
5
|
+
- Fix confusing inline mode install output [#5530](https://github.com/rubygems/rubygems/pull/5530)
|
|
6
|
+
- Fix error message when locked version of a gem does not support running Ruby [#5525](https://github.com/rubygems/rubygems/pull/5525)
|
|
7
|
+
|
|
8
|
+
## Performance:
|
|
9
|
+
|
|
10
|
+
- Improve `bundler/setup` performance again by not deduplicating intermediate results [#5533](https://github.com/rubygems/rubygems/pull/5533)
|
|
11
|
+
|
|
12
|
+
## Documentation:
|
|
13
|
+
|
|
14
|
+
- Fix typo in documentation [#5514](https://github.com/rubygems/rubygems/pull/5514)
|
|
15
|
+
- Update man page for `require` option in `bundle add` command [#5513](https://github.com/rubygems/rubygems/pull/5513)
|
|
16
|
+
|
|
1
17
|
# 2.3.13 (May 4, 2022)
|
|
2
18
|
|
|
3
19
|
## Bug fixes:
|
|
@@ -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 = "2022-05-
|
|
8
|
-
@git_commit_sha = "
|
|
7
|
+
@built_at = "2022-05-18".freeze
|
|
8
|
+
@git_commit_sha = "467ad58a7c".freeze
|
|
9
9
|
@release = true
|
|
10
10
|
# end ivars
|
|
11
11
|
|
|
@@ -40,7 +40,7 @@ module Bundler
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def self.verbalize_groups(groups)
|
|
43
|
-
groups.map!{|g| "'#{g}'" }
|
|
43
|
+
groups.map! {|g| "'#{g}'" }
|
|
44
44
|
group_list = [groups[0...-1].join(", "), groups[-1..-1]].
|
|
45
45
|
reject {|s| s.to_s.empty? }.join(" and ")
|
|
46
46
|
group_str = groups.size == 1 ? "group" : "groups"
|
|
@@ -261,7 +261,7 @@ module Bundler
|
|
|
261
261
|
@locked_specs
|
|
262
262
|
elsif !unlocking? && nothing_changed?
|
|
263
263
|
Bundler.ui.debug("Found no changes, using resolution from the lockfile")
|
|
264
|
-
SpecSet.new(filter_specs(@locked_specs, @dependencies.select{|dep| @locked_specs[dep].any? }))
|
|
264
|
+
SpecSet.new(filter_specs(@locked_specs, @dependencies.select {|dep| @locked_specs[dep].any? }))
|
|
265
265
|
else
|
|
266
266
|
last_resolve = converge_locked_specs
|
|
267
267
|
# Run a resolve against the locally available gems
|
|
@@ -731,7 +731,7 @@ module Bundler
|
|
|
731
731
|
end
|
|
732
732
|
end
|
|
733
733
|
|
|
734
|
-
SpecSet.new(filter_specs(converged, deps).reject{|s| @unlock[:gems].include?(s.name) })
|
|
734
|
+
SpecSet.new(filter_specs(converged, deps).reject {|s| @unlock[:gems].include?(s.name) })
|
|
735
735
|
end
|
|
736
736
|
|
|
737
737
|
def metadata_dependencies
|
data/bundler/lib/bundler/dsl.rb
CHANGED
|
@@ -46,7 +46,7 @@ module Bundler
|
|
|
46
46
|
@gemfile = expanded_gemfile_path
|
|
47
47
|
@gemfiles << expanded_gemfile_path
|
|
48
48
|
contents ||= Bundler.read_file(@gemfile.to_s)
|
|
49
|
-
instance_eval(contents.dup.tap{|x| x.untaint if RUBY_VERSION < "2.7" }, gemfile.to_s, 1)
|
|
49
|
+
instance_eval(contents.dup.tap {|x| x.untaint if RUBY_VERSION < "2.7" }, gemfile.to_s, 1)
|
|
50
50
|
rescue Exception => e # rubocop:disable Lint/RescueException
|
|
51
51
|
message = "There was an error " \
|
|
52
52
|
"#{e.is_a?(GemfileEvalError) ? "evaluating" : "parsing"} " \
|
|
@@ -48,7 +48,7 @@ module Bundler
|
|
|
48
48
|
sorted_matching = matching.sort_by {|spec| platform_specificity_match(spec.platform, platform) }
|
|
49
49
|
exemplary_spec = sorted_matching.first
|
|
50
50
|
|
|
51
|
-
sorted_matching.take_while{|spec| same_specificity(platform, spec, exemplary_spec) && same_deps(spec, exemplary_spec) }
|
|
51
|
+
sorted_matching.take_while {|spec| same_specificity(platform, spec, exemplary_spec) && same_deps(spec, exemplary_spec) }
|
|
52
52
|
end
|
|
53
53
|
module_function :select_best_platform_match
|
|
54
54
|
|
|
@@ -51,7 +51,20 @@ module Bundler
|
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
def install
|
|
54
|
-
spec.source.install(
|
|
54
|
+
spec.source.install(
|
|
55
|
+
spec,
|
|
56
|
+
:force => force,
|
|
57
|
+
:ensure_builtin_gems_cached => standalone,
|
|
58
|
+
:build_args => Array(spec_settings),
|
|
59
|
+
:previous_spec => previous_spec,
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def previous_spec
|
|
64
|
+
locked_gems = installer.definition.locked_gems
|
|
65
|
+
return unless locked_gems
|
|
66
|
+
|
|
67
|
+
locked_gems.specs.find {|s| s.name == spec.name }
|
|
55
68
|
end
|
|
56
69
|
|
|
57
70
|
def out_of_space_message
|
|
@@ -13,7 +13,7 @@ module Bundler
|
|
|
13
13
|
Installer.ambiguous_gems = []
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
attr_reader :post_install_messages
|
|
16
|
+
attr_reader :post_install_messages, :definition
|
|
17
17
|
|
|
18
18
|
# Begins the installation process for Bundler.
|
|
19
19
|
# For more information see the #run method on this class.
|
|
@@ -94,7 +94,7 @@ module Bundler
|
|
|
94
94
|
(spec.required_ruby_version.satisfied_by?(Gem.ruby_version) &&
|
|
95
95
|
spec.required_rubygems_version.satisfied_by?(Gem.rubygems_version))
|
|
96
96
|
end
|
|
97
|
-
search = installable_candidates.last
|
|
97
|
+
search = installable_candidates.last || same_platform_candidates.last
|
|
98
98
|
search.dependencies = dependencies if search && (search.is_a?(RemoteSpecification) || search.is_a?(EndpointSpecification))
|
|
99
99
|
search
|
|
100
100
|
end
|
|
@@ -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\-ADD" "1" "
|
|
4
|
+
.TH "BUNDLE\-ADD" "1" "May 2022" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-add\fR \- Add gem to the Gemfile and run bundle install
|
|
@@ -45,6 +45,10 @@ Specify the group(s) for the added gem\. Multiple groups should be separated by
|
|
|
45
45
|
Specify the source for the added gem\.
|
|
46
46
|
.
|
|
47
47
|
.TP
|
|
48
|
+
\fB\-\-require\fR, \fB\-r\fR
|
|
49
|
+
Adds require path to gem\. Provide false, or a path as a string\.
|
|
50
|
+
.
|
|
51
|
+
.TP
|
|
48
52
|
\fB\-\-git\fR
|
|
49
53
|
Specify the git source for the added gem\.
|
|
50
54
|
.
|
|
@@ -66,9 +70,9 @@ Adds the gem to the Gemfile but does not install it\.
|
|
|
66
70
|
.
|
|
67
71
|
.TP
|
|
68
72
|
\fB\-\-optimistic\fR
|
|
69
|
-
Adds optimistic declaration of version
|
|
73
|
+
Adds optimistic declaration of version\.
|
|
70
74
|
.
|
|
71
75
|
.TP
|
|
72
76
|
\fB\-\-strict\fR
|
|
73
|
-
Adds strict declaration of version
|
|
77
|
+
Adds strict declaration of version\.
|
|
74
78
|
|
|
@@ -30,6 +30,9 @@ bundle add rails --group "development, test"
|
|
|
30
30
|
* `--source`, , `-s`:
|
|
31
31
|
Specify the source for the added gem.
|
|
32
32
|
|
|
33
|
+
* `--require`, `-r`:
|
|
34
|
+
Adds require path to gem. Provide false, or a path as a string.
|
|
35
|
+
|
|
33
36
|
* `--git`:
|
|
34
37
|
Specify the git source for the added gem.
|
|
35
38
|
|
|
@@ -46,7 +49,7 @@ bundle add rails --group "development, test"
|
|
|
46
49
|
Adds the gem to the Gemfile but does not install it.
|
|
47
50
|
|
|
48
51
|
* `--optimistic`:
|
|
49
|
-
Adds optimistic declaration of version
|
|
52
|
+
Adds optimistic declaration of version.
|
|
50
53
|
|
|
51
54
|
* `--strict`:
|
|
52
|
-
Adds strict declaration of version
|
|
55
|
+
Adds strict declaration of version.
|
|
@@ -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" "May 2022" "" ""
|
|
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" "May 2022" "" ""
|
|
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\-INJECT" "1" "
|
|
4
|
+
.TH "BUNDLE\-INJECT" "1" "May 2022" "" ""
|
|
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" "May 2022" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-install\fR \- Install the dependencies specified in your 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\-OUTDATED" "1" "
|
|
4
|
+
.TH "BUNDLE\-OUTDATED" "1" "May 2022" "" ""
|
|
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" "May 2022" "" ""
|
|
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" "May 2022" "" ""
|
|
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" "May 2022" "" ""
|
|
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" "May 2022" "" ""
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBbundle\-update\fR \- Update your gems to the latest available versions
|
|
@@ -21,7 +21,7 @@ module Bundler
|
|
|
21
21
|
base = SpecSet.new(base) unless base.is_a?(SpecSet)
|
|
22
22
|
resolver = new(source_requirements, base, gem_version_promoter, additional_base_requirements, platforms)
|
|
23
23
|
result = resolver.start(requirements)
|
|
24
|
-
SpecSet.new(SpecSet.new(result).for(requirements.reject{|dep| dep.name.end_with?("\0") }))
|
|
24
|
+
SpecSet.new(SpecSet.new(result).for(requirements.reject {|dep| dep.name.end_with?("\0") }))
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def initialize(source_requirements, base, gem_version_promoter, additional_base_requirements, platforms)
|
|
@@ -34,7 +34,7 @@ module Gem
|
|
|
34
34
|
|
|
35
35
|
def full_gem_path
|
|
36
36
|
if source.respond_to?(:root)
|
|
37
|
-
Pathname.new(loaded_from).dirname.expand_path(source.root).to_s.tap{|x| x.untaint if RUBY_VERSION < "2.7" }
|
|
37
|
+
Pathname.new(loaded_from).dirname.expand_path(source.root).to_s.tap {|x| x.untaint if RUBY_VERSION < "2.7" }
|
|
38
38
|
else
|
|
39
39
|
rg_full_gem_path
|
|
40
40
|
end
|
|
@@ -13,13 +13,13 @@ module Bundler
|
|
|
13
13
|
def root
|
|
14
14
|
gemfile = find_gemfile
|
|
15
15
|
raise GemfileNotFound, "Could not locate Gemfile" unless gemfile
|
|
16
|
-
Pathname.new(gemfile).tap{|x| x.untaint if RUBY_VERSION < "2.7" }.expand_path.parent
|
|
16
|
+
Pathname.new(gemfile).tap {|x| x.untaint if RUBY_VERSION < "2.7" }.expand_path.parent
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def default_gemfile
|
|
20
20
|
gemfile = find_gemfile
|
|
21
21
|
raise GemfileNotFound, "Could not locate Gemfile" unless gemfile
|
|
22
|
-
Pathname.new(gemfile).tap{|x| x.untaint if RUBY_VERSION < "2.7" }.expand_path
|
|
22
|
+
Pathname.new(gemfile).tap {|x| x.untaint if RUBY_VERSION < "2.7" }.expand_path
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def default_lockfile
|
|
@@ -28,7 +28,7 @@ module Bundler
|
|
|
28
28
|
case gemfile.basename.to_s
|
|
29
29
|
when "gems.rb" then Pathname.new(gemfile.sub(/.rb$/, ".locked"))
|
|
30
30
|
else Pathname.new("#{gemfile}.lock")
|
|
31
|
-
end.tap{|x| x.untaint if RUBY_VERSION < "2.7" }
|
|
31
|
+
end.tap {|x| x.untaint if RUBY_VERSION < "2.7" }
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def default_bundle_dir
|
|
@@ -100,7 +100,7 @@ module Bundler
|
|
|
100
100
|
#
|
|
101
101
|
# @see {Bundler::PermissionError}
|
|
102
102
|
def filesystem_access(path, action = :write, &block)
|
|
103
|
-
yield(path.dup.tap{|x| x.untaint if RUBY_VERSION < "2.7" })
|
|
103
|
+
yield(path.dup.tap {|x| x.untaint if RUBY_VERSION < "2.7" })
|
|
104
104
|
rescue Errno::EACCES
|
|
105
105
|
raise PermissionError.new(path, action)
|
|
106
106
|
rescue Errno::EAGAIN
|
|
@@ -236,7 +236,7 @@ module Bundler
|
|
|
236
236
|
|
|
237
237
|
def search_up(*names)
|
|
238
238
|
previous = nil
|
|
239
|
-
current = File.expand_path(SharedHelpers.pwd).tap{|x| x.untaint if RUBY_VERSION < "2.7" }
|
|
239
|
+
current = File.expand_path(SharedHelpers.pwd).tap {|x| x.untaint if RUBY_VERSION < "2.7" }
|
|
240
240
|
|
|
241
241
|
until !File.directory?(current) || current == previous
|
|
242
242
|
if ENV["BUNDLER_SPEC_RUN"]
|
|
@@ -181,7 +181,7 @@ module Bundler
|
|
|
181
181
|
def install(spec, options = {})
|
|
182
182
|
force = options[:force]
|
|
183
183
|
|
|
184
|
-
print_using_message "Using #{version_message(spec)} from #{self}"
|
|
184
|
+
print_using_message "Using #{version_message(spec, options[:previous_spec])} from #{self}"
|
|
185
185
|
|
|
186
186
|
if (requires_checkout? && !@copied) || force
|
|
187
187
|
Bundler.ui.debug " * Checking out revision: #{ref}"
|
|
@@ -336,7 +336,7 @@ module Bundler
|
|
|
336
336
|
|
|
337
337
|
def load_gemspec(file)
|
|
338
338
|
stub = Gem::StubSpecification.gemspec_stub(file, install_path.parent, install_path.parent)
|
|
339
|
-
stub.full_gem_path = Pathname.new(file).dirname.expand_path(root).to_s.tap{|x| x.untaint if RUBY_VERSION < "2.7" }
|
|
339
|
+
stub.full_gem_path = Pathname.new(file).dirname.expand_path(root).to_s.tap {|x| x.untaint if RUBY_VERSION < "2.7" }
|
|
340
340
|
StubSpecification.from_stub(stub)
|
|
341
341
|
end
|
|
342
342
|
|
|
@@ -82,7 +82,7 @@ module Bundler
|
|
|
82
82
|
end
|
|
83
83
|
|
|
84
84
|
def install(spec, options = {})
|
|
85
|
-
using_message = "Using #{version_message(spec)} from #{self}"
|
|
85
|
+
using_message = "Using #{version_message(spec, options[:previous_spec])} from #{self}"
|
|
86
86
|
using_message += " and installing its executables" unless spec.executables.empty?
|
|
87
87
|
print_using_message using_message
|
|
88
88
|
generate_bin(spec, :disable_extensions => true)
|
|
@@ -135,9 +135,9 @@ module Bundler
|
|
|
135
135
|
end
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
def install(spec,
|
|
139
|
-
force =
|
|
140
|
-
ensure_builtin_gems_cached =
|
|
138
|
+
def install(spec, options = {})
|
|
139
|
+
force = options[:force]
|
|
140
|
+
ensure_builtin_gems_cached = options[:ensure_builtin_gems_cached]
|
|
141
141
|
|
|
142
142
|
if ensure_builtin_gems_cached && spec.default_gem?
|
|
143
143
|
if !cached_path(spec)
|
|
@@ -162,7 +162,7 @@ module Bundler
|
|
|
162
162
|
uris.uniq!
|
|
163
163
|
Installer.ambiguous_gems << [spec.name, *uris] if uris.length > 1
|
|
164
164
|
|
|
165
|
-
path = fetch_gem(spec)
|
|
165
|
+
path = fetch_gem(spec, options[:previous_spec])
|
|
166
166
|
begin
|
|
167
167
|
s = Bundler.rubygems.spec_from_gem(path, Bundler.settings["trust-policy"])
|
|
168
168
|
spec.__swap__(s)
|
|
@@ -173,7 +173,7 @@ module Bundler
|
|
|
173
173
|
end
|
|
174
174
|
|
|
175
175
|
unless Bundler.settings[:no_install]
|
|
176
|
-
message = "Installing #{version_message(spec)}"
|
|
176
|
+
message = "Installing #{version_message(spec, options[:previous_spec])}"
|
|
177
177
|
message += " with native extensions" if spec.extensions.any?
|
|
178
178
|
Bundler.ui.confirm message
|
|
179
179
|
|
|
@@ -198,7 +198,7 @@ module Bundler
|
|
|
198
198
|
:ignore_dependencies => true,
|
|
199
199
|
:wrappers => true,
|
|
200
200
|
:env_shebang => true,
|
|
201
|
-
:build_args =>
|
|
201
|
+
:build_args => options[:build_args],
|
|
202
202
|
:bundler_expected_checksum => spec.respond_to?(:checksum) && spec.checksum,
|
|
203
203
|
:bundler_extension_cache_path => extension_cache_path(spec)
|
|
204
204
|
).install
|
|
@@ -458,7 +458,7 @@ module Bundler
|
|
|
458
458
|
end
|
|
459
459
|
end
|
|
460
460
|
|
|
461
|
-
def fetch_gem(spec)
|
|
461
|
+
def fetch_gem(spec, previous_spec = nil)
|
|
462
462
|
return false unless spec.remote
|
|
463
463
|
|
|
464
464
|
spec.fetch_platform
|
|
@@ -476,7 +476,7 @@ module Bundler
|
|
|
476
476
|
SharedHelpers.filesystem_access(download_cache_path) do |p|
|
|
477
477
|
FileUtils.mkdir_p(p)
|
|
478
478
|
end
|
|
479
|
-
download_gem(spec, download_cache_path)
|
|
479
|
+
download_gem(spec, download_cache_path, previous_spec)
|
|
480
480
|
|
|
481
481
|
if requires_sudo?
|
|
482
482
|
SharedHelpers.filesystem_access(cache_path) do |p|
|
|
@@ -521,9 +521,12 @@ module Bundler
|
|
|
521
521
|
# @param [String] download_cache_path
|
|
522
522
|
# the local directory the .gem will end up in.
|
|
523
523
|
#
|
|
524
|
-
|
|
524
|
+
# @param [Specification] previous_spec
|
|
525
|
+
# the spec previously locked
|
|
526
|
+
#
|
|
527
|
+
def download_gem(spec, download_cache_path, previous_spec = nil)
|
|
525
528
|
uri = spec.remote.uri
|
|
526
|
-
Bundler.ui.confirm("Fetching #{version_message(spec)}")
|
|
529
|
+
Bundler.ui.confirm("Fetching #{version_message(spec, previous_spec)}")
|
|
527
530
|
Bundler.rubygems.download_gem(spec, uri, download_cache_path)
|
|
528
531
|
end
|
|
529
532
|
|
|
@@ -15,13 +15,12 @@ module Bundler
|
|
|
15
15
|
specs.unmet_dependency_names
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
def version_message(spec)
|
|
18
|
+
def version_message(spec, locked_spec = nil)
|
|
19
19
|
message = "#{spec.name} #{spec.version}"
|
|
20
20
|
message += " (#{spec.platform})" if spec.platform != Gem::Platform::RUBY && !spec.platform.nil?
|
|
21
21
|
|
|
22
|
-
if
|
|
23
|
-
|
|
24
|
-
locked_spec_version = locked_spec.version if locked_spec
|
|
22
|
+
if locked_spec
|
|
23
|
+
locked_spec_version = locked_spec.version
|
|
25
24
|
if locked_spec_version && spec.version != locked_spec_version
|
|
26
25
|
message += Bundler.ui.add_color(" (was #{locked_spec_version})", version_color(spec.version, locked_spec_version))
|
|
27
26
|
end
|
|
@@ -18,13 +18,13 @@ module Bundler
|
|
|
18
18
|
|
|
19
19
|
loop do
|
|
20
20
|
break unless dep = deps.shift
|
|
21
|
-
next if handled.any?{|d| d.name == dep.name && (match_current_platform || d.__platform == dep.__platform) } || dep.name == "bundler"
|
|
21
|
+
next if handled.any? {|d| d.name == dep.name && (match_current_platform || d.__platform == dep.__platform) } || dep.name == "bundler"
|
|
22
22
|
|
|
23
23
|
handled << dep
|
|
24
24
|
|
|
25
25
|
specs_for_dep = spec_for_dependency(dep, match_current_platform)
|
|
26
26
|
if specs_for_dep.any?
|
|
27
|
-
|
|
27
|
+
specs.concat(specs_for_dep)
|
|
28
28
|
|
|
29
29
|
specs_for_dep.first.dependencies.each do |d|
|
|
30
30
|
next if d.type == :development
|
|
@@ -40,6 +40,8 @@ module Bundler
|
|
|
40
40
|
specs << spec
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
specs.uniq! unless match_current_platform
|
|
44
|
+
|
|
43
45
|
check ? true : specs
|
|
44
46
|
end
|
|
45
47
|
|
|
@@ -172,7 +174,7 @@ module Bundler
|
|
|
172
174
|
def spec_for_dependency(dep, match_current_platform)
|
|
173
175
|
specs_for_platforms = lookup[dep.name]
|
|
174
176
|
if match_current_platform
|
|
175
|
-
GemHelpers.select_best_platform_match(specs_for_platforms.select{|s| Gem::Platform.match_spec?(s) }, Bundler.local_platform)
|
|
177
|
+
GemHelpers.select_best_platform_match(specs_for_platforms.select {|s| Gem::Platform.match_spec?(s) }, Bundler.local_platform)
|
|
176
178
|
else
|
|
177
179
|
GemHelpers.select_best_platform_match(specs_for_platforms, dep.__platform)
|
|
178
180
|
end
|
data/bundler/lib/bundler.rb
CHANGED
|
@@ -19,7 +19,7 @@ require_relative "bundler/build_metadata"
|
|
|
19
19
|
#
|
|
20
20
|
# Since Ruby 2.6, Bundler is a part of Ruby's standard library.
|
|
21
21
|
#
|
|
22
|
-
#
|
|
22
|
+
# Bundler is used by creating _gemfiles_ listing all the project dependencies
|
|
23
23
|
# and (optionally) their versions and then using
|
|
24
24
|
#
|
|
25
25
|
# require 'bundler/setup'
|
|
@@ -113,7 +113,7 @@ extensions will be restored.
|
|
|
113
113
|
end.flatten
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
-
specs = specs.select{|spec| RUBY_ENGINE == spec.platform || Gem::Platform.local === spec.platform || spec.platform == Gem::Platform::RUBY }
|
|
116
|
+
specs = specs.select {|spec| RUBY_ENGINE == spec.platform || Gem::Platform.local === spec.platform || spec.platform == Gem::Platform::RUBY }
|
|
117
117
|
|
|
118
118
|
if specs.to_a.empty?
|
|
119
119
|
raise Gem::Exception,
|
|
@@ -129,7 +129,7 @@ Specific fields in the specification can be extracted in YAML format:
|
|
|
129
129
|
platform = get_platform_from_requirements(options)
|
|
130
130
|
|
|
131
131
|
if platform
|
|
132
|
-
specs = specs.select{|s| s.platform.to_s == platform }
|
|
132
|
+
specs = specs.select {|s| s.platform.to_s == platform }
|
|
133
133
|
end
|
|
134
134
|
|
|
135
135
|
unless options[:all]
|
data/lib/rubygems/installer.rb
CHANGED
|
@@ -725,11 +725,11 @@ class Gem::Installer
|
|
|
725
725
|
raise Gem::InstallError, "#{spec} has an invalid name"
|
|
726
726
|
end
|
|
727
727
|
|
|
728
|
-
if spec.raw_require_paths.any?{|path| path =~ /\R/ }
|
|
728
|
+
if spec.raw_require_paths.any? {|path| path =~ /\R/ }
|
|
729
729
|
raise Gem::InstallError, "#{spec} has an invalid require_paths"
|
|
730
730
|
end
|
|
731
731
|
|
|
732
|
-
if spec.extensions.any?{|ext| ext =~ /\R/ }
|
|
732
|
+
if spec.extensions.any? {|ext| ext =~ /\R/ }
|
|
733
733
|
raise Gem::InstallError, "#{spec} has an invalid extensions"
|
|
734
734
|
end
|
|
735
735
|
|
|
@@ -26,7 +26,7 @@ module Gem::LocalRemoteOptions
|
|
|
26
26
|
|
|
27
27
|
valid_uri_schemes = ["http", "https", "file", "s3"]
|
|
28
28
|
unless valid_uri_schemes.include?(uri.scheme)
|
|
29
|
-
msg = "Invalid uri scheme for #{value}\nPreface URLs with one of #{valid_uri_schemes.map{|s| "#{s}://" }}"
|
|
29
|
+
msg = "Invalid uri scheme for #{value}\nPreface URLs with one of #{valid_uri_schemes.map {|s| "#{s}://" }}"
|
|
30
30
|
raise ArgumentError, msg
|
|
31
31
|
end
|
|
32
32
|
|
data/lib/rubygems/query_utils.rb
CHANGED
|
@@ -61,7 +61,7 @@ module Gem::QueryUtils
|
|
|
61
61
|
gem_names = if args.empty?
|
|
62
62
|
[options[:name]]
|
|
63
63
|
else
|
|
64
|
-
options[:exact] ? args.map{|arg| /\A#{Regexp.escape(arg)}\Z/ } : args.map{|arg| /#{arg}/i }
|
|
64
|
+
options[:exact] ? args.map {|arg| /\A#{Regexp.escape(arg)}\Z/ } : args.map {|arg| /#{arg}/i }
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
terminate_interaction(check_installed_gems(gem_names)) if check_installed_gems?
|
|
@@ -91,8 +91,8 @@ class Gem::SpecFetcher
|
|
|
91
91
|
|
|
92
92
|
list.each do |source, specs|
|
|
93
93
|
if dependency.name.is_a?(String) && specs.respond_to?(:bsearch)
|
|
94
|
-
start_index = (0 ... specs.length).bsearch{|i| specs[i].name >= dependency.name }
|
|
95
|
-
end_index = (0 ... specs.length).bsearch{|i| specs[i].name > dependency.name }
|
|
94
|
+
start_index = (0 ... specs.length).bsearch {|i| specs[i].name >= dependency.name }
|
|
95
|
+
end_index = (0 ... specs.length).bsearch {|i| specs[i].name > dependency.name }
|
|
96
96
|
specs = specs[start_index ... end_index] if start_index && end_index
|
|
97
97
|
end
|
|
98
98
|
|
data/lib/rubygems.rb
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
require 'rbconfig'
|
|
9
9
|
|
|
10
10
|
module Gem
|
|
11
|
-
VERSION = "3.3.
|
|
11
|
+
VERSION = "3.3.14".freeze
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
# Must be first since it unloads the prelude from 1.9.2
|
|
@@ -117,7 +117,7 @@ module Gem
|
|
|
117
117
|
# Taint support is deprecated in Ruby 2.7.
|
|
118
118
|
# This allows switching ".untaint" to ".tap(&Gem::UNTAINT)",
|
|
119
119
|
# to avoid deprecation warnings in Ruby 2.7.
|
|
120
|
-
UNTAINT = RUBY_VERSION < '2.7' ? :untaint.to_sym : proc{}
|
|
120
|
+
UNTAINT = RUBY_VERSION < '2.7' ? :untaint.to_sym : proc {}
|
|
121
121
|
|
|
122
122
|
# When https://bugs.ruby-lang.org/issues/17259 is available, there is no need to override Kernel#warn
|
|
123
123
|
KERNEL_WARN_IGNORES_INTERNAL_ENTRIES = RUBY_ENGINE == "truffleruby" ||
|
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.3.
|
|
5
|
+
s.version = "3.3.14"
|
|
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
|
|
data/test/rubygems/helper.rb
CHANGED
|
@@ -1294,7 +1294,7 @@ Also, a list:
|
|
|
1294
1294
|
end
|
|
1295
1295
|
|
|
1296
1296
|
def rubygems_path
|
|
1297
|
-
$LOAD_PATH.find{|p| p == File.dirname($LOADED_FEATURES.find{|f| f.end_with?("/rubygems.rb") }) }
|
|
1297
|
+
$LOAD_PATH.find {|p| p == File.dirname($LOADED_FEATURES.find {|f| f.end_with?("/rubygems.rb") }) }
|
|
1298
1298
|
end
|
|
1299
1299
|
|
|
1300
1300
|
def with_clean_path_to_ruby
|
data/test/rubygems/test_gem.rb
CHANGED
|
@@ -1061,7 +1061,7 @@ class TestGem < Gem::TestCase
|
|
|
1061
1061
|
|
|
1062
1062
|
Gem.refresh
|
|
1063
1063
|
|
|
1064
|
-
Gem::Specification.each{|spec| assert spec.activated? if spec == s }
|
|
1064
|
+
Gem::Specification.each {|spec| assert spec.activated? if spec == s }
|
|
1065
1065
|
|
|
1066
1066
|
Gem.loaded_specs.delete(s)
|
|
1067
1067
|
Gem.refresh
|
|
@@ -239,7 +239,7 @@ lib/foo.rb
|
|
|
239
239
|
[RbConfig::CONFIG['bindir'], 'default_command'],
|
|
240
240
|
[RbConfig::CONFIG['rubylibdir'], 'default/gem.rb'],
|
|
241
241
|
[RbConfig::CONFIG['archdir'], 'default_gem.so'],
|
|
242
|
-
].sort.map{|a|File.join a }.join "\n"
|
|
242
|
+
].sort.map {|a|File.join a }.join "\n"
|
|
243
243
|
|
|
244
244
|
assert_equal expected, @ui.output.chomp
|
|
245
245
|
assert_equal "", @ui.error
|
|
@@ -521,7 +521,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
|
521
521
|
end
|
|
522
522
|
|
|
523
523
|
def test_execute_required_ruby_version
|
|
524
|
-
next_ruby = Gem.ruby_version.segments.map.with_index{|n, i| i == 1 ? n + 1 : n }.join(".")
|
|
524
|
+
next_ruby = Gem.ruby_version.segments.map.with_index {|n, i| i == 1 ? n + 1 : n }.join(".")
|
|
525
525
|
|
|
526
526
|
local = Gem::Platform.local
|
|
527
527
|
spec_fetcher do |fetcher|
|
|
@@ -610,7 +610,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
|
610
610
|
end
|
|
611
611
|
|
|
612
612
|
def test_execute_required_ruby_version_specific_prerelease_not_met
|
|
613
|
-
next_ruby_pre = Gem.ruby_version.segments.map.with_index{|n, i| i == 1 ? n + 1 : n }.join(".") + ".a"
|
|
613
|
+
next_ruby_pre = Gem.ruby_version.segments.map.with_index {|n, i| i == 1 ? n + 1 : n }.join(".") + ".a"
|
|
614
614
|
|
|
615
615
|
spec_fetcher do |fetcher|
|
|
616
616
|
fetcher.gem 'a', '1.0' do |s|
|
|
@@ -248,7 +248,7 @@ DEPENDENCIES
|
|
|
248
248
|
assert_equal %w[a-2], lockfile_set.specs.map {|s| s.full_name }
|
|
249
249
|
|
|
250
250
|
assert_equal %w[https://gems.example/ https://other.example/],
|
|
251
|
-
lockfile_set.specs.flat_map {|s| s.sources.map{|src| src.uri.to_s } }
|
|
251
|
+
lockfile_set.specs.flat_map {|s| s.sources.map {|src| src.uri.to_s } }
|
|
252
252
|
end
|
|
253
253
|
|
|
254
254
|
def test_parse_GIT
|
|
@@ -210,7 +210,7 @@ class TestGemResolverInstallerSet < Gem::TestCase
|
|
|
210
210
|
def (set.remote_set).prefetch(_)
|
|
211
211
|
raise "called"
|
|
212
212
|
end
|
|
213
|
-
assert_raise(RuntimeError){ set.prefetch(nil) }
|
|
213
|
+
assert_raise(RuntimeError) { set.prefetch(nil) }
|
|
214
214
|
|
|
215
215
|
set = Gem::Resolver::InstallerSet.new :local
|
|
216
216
|
def (set.remote_set).prefetch(_)
|
|
@@ -992,8 +992,8 @@ dependencies: []
|
|
|
992
992
|
|
|
993
993
|
dir_standard_specs = File.join Gem.dir, 'specifications'
|
|
994
994
|
|
|
995
|
-
save_gemspec('a-1', '1', dir_standard_specs){|s| s.name = 'a' }
|
|
996
|
-
save_gemspec('b-1', '1', dir_standard_specs){|s| s.name = 'b' }
|
|
995
|
+
save_gemspec('a-1', '1', dir_standard_specs) {|s| s.name = 'a' }
|
|
996
|
+
save_gemspec('b-1', '1', dir_standard_specs) {|s| s.name = 'b' }
|
|
997
997
|
|
|
998
998
|
assert_equal ['a-1'], Gem::Specification.stubs_for('a').map {|s| s.full_name }
|
|
999
999
|
assert_equal 1, Gem::Specification.class_variable_get(:@@stubs_by_name).length
|
|
@@ -1013,7 +1013,7 @@ dependencies: []
|
|
|
1013
1013
|
def test_self_stubs_for_no_lazy_loading_after_all_specs_setup
|
|
1014
1014
|
Gem::Specification.all = [util_spec('a', '1')]
|
|
1015
1015
|
|
|
1016
|
-
save_gemspec('b-1', '1', File.join(Gem.dir, 'specifications')){|s| s.name = 'b' }
|
|
1016
|
+
save_gemspec('b-1', '1', File.join(Gem.dir, 'specifications')) {|s| s.name = 'b' }
|
|
1017
1017
|
|
|
1018
1018
|
assert_equal [], Gem::Specification.stubs_for('b').map {|s| s.full_name }
|
|
1019
1019
|
end
|
|
@@ -1060,9 +1060,9 @@ dependencies: []
|
|
|
1060
1060
|
def test_self_stubs_returns_only_specified_named_specs
|
|
1061
1061
|
dir_standard_specs = File.join Gem.dir, 'specifications'
|
|
1062
1062
|
|
|
1063
|
-
save_gemspec('a-1', '1', dir_standard_specs){|s| s.name = 'a' }
|
|
1064
|
-
save_gemspec('a-2', '2', dir_standard_specs){|s| s.name = 'a' }
|
|
1065
|
-
save_gemspec('a-a', '3', dir_standard_specs){|s| s.name = 'a-a' }
|
|
1063
|
+
save_gemspec('a-1', '1', dir_standard_specs) {|s| s.name = 'a' }
|
|
1064
|
+
save_gemspec('a-2', '2', dir_standard_specs) {|s| s.name = 'a' }
|
|
1065
|
+
save_gemspec('a-a', '3', dir_standard_specs) {|s| s.name = 'a-a' }
|
|
1066
1066
|
|
|
1067
1067
|
assert_equal ['a-1', 'a-2'], Gem::Specification.stubs_for('a').map(&:full_name).sort
|
|
1068
1068
|
end
|
|
@@ -152,8 +152,8 @@ class TestGemRequire < Gem::TestCase
|
|
|
152
152
|
|
|
153
153
|
install_specs a1, b1
|
|
154
154
|
|
|
155
|
-
t1 = create_sync_thread{ assert_require "a#{$$}" }
|
|
156
|
-
t2 = create_sync_thread{ assert_require "b#{$$}" }
|
|
155
|
+
t1 = create_sync_thread { assert_require "a#{$$}" }
|
|
156
|
+
t2 = create_sync_thread { assert_require "b#{$$}" }
|
|
157
157
|
|
|
158
158
|
# wait until both files are waiting on the exit latch
|
|
159
159
|
FILE_ENTERED_LATCH.await
|
|
@@ -66,6 +66,6 @@ class GemTest < Gem::TestCase
|
|
|
66
66
|
end
|
|
67
67
|
|
|
68
68
|
def ruby_with_rubygems_and_fake_operating_system_in_load_path(operating_system_path)
|
|
69
|
-
[Gem.ruby, "-I", operating_system_path, "-I" , $LOAD_PATH.find{|p| p == File.dirname($LOADED_FEATURES.find{|f| f.end_with?("/rubygems.rb") }) }]
|
|
69
|
+
[Gem.ruby, "-I", operating_system_path, "-I" , $LOAD_PATH.find {|p| p == File.dirname($LOADED_FEATURES.find {|f| f.end_with?("/rubygems.rb") }) }]
|
|
70
70
|
end
|
|
71
71
|
end
|
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.3.
|
|
4
|
+
version: 3.3.14
|
|
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: 2022-05-
|
|
19
|
+
date: 2022-05-18 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
|
|
@@ -817,7 +817,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
817
817
|
- !ruby/object:Gem::Version
|
|
818
818
|
version: '0'
|
|
819
819
|
requirements: []
|
|
820
|
-
rubygems_version: 3.3.
|
|
820
|
+
rubygems_version: 3.3.14
|
|
821
821
|
signing_key:
|
|
822
822
|
specification_version: 4
|
|
823
823
|
summary: RubyGems is a package management framework for Ruby.
|