gem-repair 0.2.0 → 0.2.1
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/lib/rubygems/commands/repair_command.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8bde2dbf15a0a3121cb16b9cf9ce49a1b8da1968204c6cf2ab03b000b97b226d
|
|
4
|
+
data.tar.gz: 3695cccd7e32920fc394fde772e7be550a1af48db17ad953516706f6cf6b426b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19c1a1e960d933aa84ec923eda33586882fdfe915506be5fe919ab98c68351582a1235a2bd5537197f0dcdd1816db5c24c154dd35eaad8ce6a12cf282e61ee02
|
|
7
|
+
data.tar.gz: 8b90780d8c3a175c8806ae649a2dabd4bab177d6476b84e13c582c51a1695adc7b57d5d784efb13fe68895e4f3c77521d2f030a91c88143ebb8e21ff78f58975
|
|
@@ -101,7 +101,12 @@ Use -j to specify the number of parallel threads (default: 4).
|
|
|
101
101
|
|
|
102
102
|
# Use spec.cache_file if available and valid, otherwise the installer might re-download
|
|
103
103
|
# Forcing a specific installer might be needed if default behavior isn't right
|
|
104
|
-
installer = Gem::Installer.at
|
|
104
|
+
installer = if Gem::Installer.respond_to?(:at)
|
|
105
|
+
Gem::Installer.at(spec.cache_file, installer_options)
|
|
106
|
+
else
|
|
107
|
+
# Gem::Installer.at was added in RubyGems 2.5.0 (Ruby 2.3)
|
|
108
|
+
Gem::Installer.new(spec.cache_file, installer_options)
|
|
109
|
+
end
|
|
105
110
|
installer.install
|
|
106
111
|
say "Successfully repaired #{spec.full_name} to #{spec.base_dir}"
|
|
107
112
|
rescue Gem::Ext::BuildError, Gem::Package::FormatError, Gem::InstallError, Zlib::BufError, NameError => e
|