summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-02-21 21:21:14 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-02-21 21:21:14 +0900
commit9cb1ffaa5c3a4b6921eaf748ffdef5dbd1c07877 (patch)
treeffca3f9ceb7b0a56fd546a7b62780f98011a8265 /tool/sync_default_gems.rb
parenta294ec162235cb9a0ed62ede0bbf9d2f11b30592 (diff)
Promote net-http to the default gems.
test/net/http/test_https.rb: rename fixture methods to read_fixture because it conflicts with test-unit gem.
Diffstat (limited to 'tool/sync_default_gems.rb')
-rw-r--r--tool/sync_default_gems.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 6d374a19e3..1794e017dc 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -62,6 +62,7 @@
# * https://github.com/ruby/net-protocol
# * https://github.com/ruby/net-imap
# * https://github.com/ruby/net-ftp
+# * https://github.com/ruby/net-http
#
require 'fileutils'
@@ -122,6 +123,7 @@ $repositories = {
"net-protocol": "ruby/net-protocol",
"net-imap": "ruby/net-imap",
"net-ftp": "ruby/net-ftp",
+ "net-http": "ruby/net-http",
}
def sync_default_gems(gem)
@@ -289,6 +291,12 @@ def sync_default_gems(gem)
when "net-ftp"
sync_lib "net-ftp"
mv "lib/net-ftp.gemspec", "lib/net/ftp"
+ when "net-http"
+ rm_rf(%w[lib/net/http.rb lib/net/http test/net/http])
+ cp_r("#{upstream}/lib/net/http.rb", "lib/net")
+ cp_r("#{upstream}/lib/net/http", "lib/net")
+ cp_r("#{upstream}/test/net/http", "test/net")
+ cp_r("#{upstream}/net-http.gemspec", "lib/net/http")
when "readline-ext"
rm_rf(%w[ext/readline test/readline])
cp_r("#{upstream}/ext/readline", "ext")