From 9cb1ffaa5c3a4b6921eaf748ffdef5dbd1c07877 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 21 Feb 2020 21:21:14 +0900 Subject: 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. --- tool/sync_default_gems.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tool') 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") -- cgit v1.2.3