summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-10-04 14:36:45 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-10-09 13:55:45 +0900
commitfc2efc2bdb5e8f48b83757d8de1ae90750150e84 (patch)
tree0719f20747925302851880a5bca3f188f859f6af
parent3e98abc49dce62bb6a9ba009d8ecc0c551993d49 (diff)
Added win32-registry
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11791
-rwxr-xr-xtool/sync_default_gems.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 4a7a2dcb80..a7ad331c99 100755
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -18,6 +18,7 @@ module SyncDefaultGems
"net-http": "ruby/net-http",
"net-protocol": "ruby/net-protocol",
"open-uri": "ruby/open-uri",
+ "win32-registry": "ruby/win32-registry",
English: "ruby/English",
benchmark: "ruby/benchmark",
cgi: "ruby/cgi",
@@ -396,6 +397,11 @@ module SyncDefaultGems
rm_rf("ext/win32/resolv/lib") # Clean up empty directory
cp_r("#{upstream}/test/resolv", "test")
`git checkout ext/win32/resolv/depend`
+ when "win32-registry"
+ rm_rf(%w[ext/win32/lib/win32/registry.rb test/win32/test_registry.rb])
+ cp_r("#{upstream}/lib/win32/registry.rb", "ext/win32/lib/win32")
+ cp_r("#{upstream}/test/win32/test_registry.rb", "test/win32")
+ cp_r("#{upstream}/win32-registry.gemspec", "ext/win32")
else
sync_lib gem, upstream
end
@@ -426,6 +432,7 @@ module SyncDefaultGems
"ext/#{gem}/#{gem}.gemspec",
"ext/#{gem.split("-").join("/")}/#{gem}.gemspec",
"lib/#{gem.split("-").first}/#{gem}.gemspec",
+ "ext/#{gem.split("-").first}/#{gem}.gemspec",
"lib/#{gem.split("-").join("/")}/#{gem}.gemspec",
].find{|gemspec| File.exist?(gemspec)}
spec = Gem::Specification.load(gemspec)