rubygems-update 3.2.11 → 3.2.12
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 +7 -0
- data/Rakefile +6 -0
- data/bundler/CHANGELOG.md +7 -0
- data/bundler/lib/bundler/build_metadata.rb +2 -2
- data/bundler/lib/bundler/definition.rb +1 -1
- data/bundler/lib/bundler/installer.rb +2 -0
- data/bundler/lib/bundler/rubygems_gem_installer.rb +47 -0
- data/bundler/lib/bundler/stub_specification.rb +8 -0
- data/bundler/lib/bundler/version.rb +1 -1
- data/lib/rubygems.rb +1 -1
- data/rubygems-update.gemspec +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: d1f42e41887b87a2787222de88454c6fe46c91e52133145d44d6d1af5506252d
|
|
4
|
+
data.tar.gz: 6f30bb45a6ae5452b4899df880bafb667ffa19e1190035edb0311e84037944f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6131db8f14cd1ae89b011d14c4074fc1ee6b5ba9173aa023a1fb20baf5860a1dccec7916cc5650e02109d4c449b5300e01b4e15cd0cfa7572432025dc360cfc1
|
|
7
|
+
data.tar.gz: dd677ed5e9bc15e982ce9ce77793a25a638350568bcc4061f581a7d72a9ea95c982f1a89543c482bfaf6e701f6616541b60319eb4ba9ae6c5f551396ab760db6
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
|
@@ -15,6 +15,12 @@ task :update do |_, args|
|
|
|
15
15
|
sh "ruby", "bundler/bin/bundle", "update", *args, "--gemfile=dev_gems.rb"
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
desc "Update the locked bundler version in dev environment"
|
|
19
|
+
task :update_locked_bundler do |_, args|
|
|
20
|
+
sh "ruby", "bundler/bin/bundle", "update", "--bundler", "--gemfile=dev_gems.rb"
|
|
21
|
+
sh "ruby", "bundler/bin/bundle", "update", "--bundler", "--gemfile=bundler/test_gems.rb"
|
|
22
|
+
end
|
|
23
|
+
|
|
18
24
|
desc "Setup git hooks"
|
|
19
25
|
task :git_hooks do
|
|
20
26
|
sh "git config core.hooksPath .githooks"
|
data/bundler/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# 2.2.12 (March 1, 2021)
|
|
2
|
+
|
|
3
|
+
## Bug fixes:
|
|
4
|
+
|
|
5
|
+
- Fix sporadic warnings about `nil` gemspec on install/update and make those faster [#4409](https://github.com/rubygems/rubygems/pull/4409)
|
|
6
|
+
- Fix deployment install with duplicate path gems added to Gemfile [#4410](https://github.com/rubygems/rubygems/pull/4410)
|
|
7
|
+
|
|
1
8
|
# 2.2.11 (February 17, 2021)
|
|
2
9
|
|
|
3
10
|
## 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 = "2021-
|
|
8
|
-
@git_commit_sha = "
|
|
7
|
+
@built_at = "2021-03-01".freeze
|
|
8
|
+
@git_commit_sha = "1de3f8de73".freeze
|
|
9
9
|
@release = true
|
|
10
10
|
# end ivars
|
|
11
11
|
|
|
@@ -594,7 +594,7 @@ module Bundler
|
|
|
594
594
|
deps_for_source = @dependencies.select {|s| s.source == source }
|
|
595
595
|
locked_deps_for_source = @locked_deps.values.select {|dep| dep.source == locked_source }
|
|
596
596
|
|
|
597
|
-
deps_for_source.sort != locked_deps_for_source.sort
|
|
597
|
+
deps_for_source.uniq.sort != locked_deps_for_source.sort
|
|
598
598
|
end
|
|
599
599
|
|
|
600
600
|
def specs_for_source_changed?(source)
|
|
@@ -89,6 +89,8 @@ module Bundler
|
|
|
89
89
|
end
|
|
90
90
|
install(options)
|
|
91
91
|
|
|
92
|
+
Gem::Specification.reset # invalidate gem specification cache so that installed gems are immediately available
|
|
93
|
+
|
|
92
94
|
lock unless Bundler.frozen_bundle?
|
|
93
95
|
Standalone.new(options[:standalone], @definition).generate if options[:standalone]
|
|
94
96
|
end
|
|
@@ -8,6 +8,53 @@ module Bundler
|
|
|
8
8
|
# Bundler needs to install gems regardless of binstub overwriting
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
def install
|
|
12
|
+
pre_install_checks
|
|
13
|
+
|
|
14
|
+
run_pre_install_hooks
|
|
15
|
+
|
|
16
|
+
spec.loaded_from = spec_file
|
|
17
|
+
|
|
18
|
+
# Completely remove any previous gem files
|
|
19
|
+
FileUtils.rm_rf gem_dir
|
|
20
|
+
FileUtils.rm_rf spec.extension_dir
|
|
21
|
+
|
|
22
|
+
FileUtils.mkdir_p gem_dir, :mode => 0o755
|
|
23
|
+
|
|
24
|
+
extract_files
|
|
25
|
+
|
|
26
|
+
build_extensions
|
|
27
|
+
write_build_info_file
|
|
28
|
+
run_post_build_hooks
|
|
29
|
+
|
|
30
|
+
generate_bin
|
|
31
|
+
generate_plugins
|
|
32
|
+
|
|
33
|
+
write_spec
|
|
34
|
+
write_cache_file
|
|
35
|
+
|
|
36
|
+
say spec.post_install_message unless spec.post_install_message.nil?
|
|
37
|
+
|
|
38
|
+
run_post_install_hooks
|
|
39
|
+
|
|
40
|
+
spec
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def generate_plugins
|
|
44
|
+
return unless Gem::Installer.instance_methods(false).include?(:generate_plugins)
|
|
45
|
+
|
|
46
|
+
latest = Gem::Specification.stubs_for(spec.name).first
|
|
47
|
+
return if latest && latest.version > spec.version
|
|
48
|
+
|
|
49
|
+
ensure_writable_dir @plugins_dir
|
|
50
|
+
|
|
51
|
+
if spec.plugins.empty?
|
|
52
|
+
remove_plugins_for(spec, @plugins_dir)
|
|
53
|
+
else
|
|
54
|
+
regenerate_plugins_for(spec, @plugins_dir)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
11
58
|
def pre_install_checks
|
|
12
59
|
super && validate_bundler_checksum(options[:bundler_expected_checksum])
|
|
13
60
|
end
|
|
@@ -26,11 +26,19 @@ module Bundler
|
|
|
26
26
|
|
|
27
27
|
# @!group Stub Delegates
|
|
28
28
|
|
|
29
|
+
def manually_installed?
|
|
30
|
+
# This is for manually installed gems which are gems that were fixed in place after a
|
|
31
|
+
# failed installation. Once the issue was resolved, the user then manually created
|
|
32
|
+
# the gem specification using the instructions provided by `gem help install`
|
|
33
|
+
installed_by_version == Gem::Version.new(0)
|
|
34
|
+
end
|
|
35
|
+
|
|
29
36
|
# This is defined directly to avoid having to loading the full spec
|
|
30
37
|
def missing_extensions?
|
|
31
38
|
return false if default_gem?
|
|
32
39
|
return false if extensions.empty?
|
|
33
40
|
return false if File.exist? gem_build_complete_path
|
|
41
|
+
return false if manually_installed?
|
|
34
42
|
|
|
35
43
|
true
|
|
36
44
|
end
|
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.2.
|
|
5
|
+
s.version = "3.2.12"
|
|
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
|
|
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.2.
|
|
4
|
+
version: 3.2.12
|
|
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: 2021-
|
|
19
|
+
date: 2021-03-01 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
|
|
@@ -768,7 +768,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
768
768
|
- !ruby/object:Gem::Version
|
|
769
769
|
version: '0'
|
|
770
770
|
requirements: []
|
|
771
|
-
rubygems_version: 3.2.
|
|
771
|
+
rubygems_version: 3.2.12
|
|
772
772
|
signing_key:
|
|
773
773
|
specification_version: 4
|
|
774
774
|
summary: RubyGems is a package management framework for Ruby.
|