diff --git a/gemrc b/gemrc new file mode 100644 index 0000000000000000000000000000000000000000..a7c4c76c63d0748165a0502b0dfe607841bfdb05 --- /dev/null +++ b/gemrc @@ -0,0 +1,2 @@ +sources: +- https://mirrors.aliyun.com/rubygems/ diff --git a/ruby-3.1.3-Fix-for-tzdata-2022g.patch b/ruby-3.1.3-Fix-for-tzdata-2022g.patch deleted file mode 100644 index a8a16055ff596524b88e81e24e23c51d3dd2e6ac..0000000000000000000000000000000000000000 --- a/ruby-3.1.3-Fix-for-tzdata-2022g.patch +++ /dev/null @@ -1,70 +0,0 @@ -From a1124dc162810f86cb0bff58cde24064cfc561bc Mon Sep 17 00:00:00 2001 -From: nagachika -Date: Fri, 9 Dec 2022 21:11:47 +0900 -Subject: [PATCH] merge revision(s) 58cc3c9f387dcf8f820b43e043b540fa06248da3: - [Backport #19187] - - [Bug #19187] Fix for tzdata-2022g - - --- - test/ruby/test_time_tz.rb | 21 +++++++++++++++------ - 1 file changed, 15 insertions(+), 6 deletions(-) ---- - test/ruby/test_time_tz.rb | 21 +++++++++++++++------ - 1 files changed, 15 insertions(+), 6 deletions(-) - -diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb -index b6785f336028d..939f218ed4d10 100644 ---- a/test/ruby/test_time_tz.rb -+++ b/test/ruby/test_time_tz.rb -@@ -7,9 +7,9 @@ class TestTimeTZ < Test::Unit::TestCase - has_lisbon_tz = true - force_tz_test = ENV["RUBY_FORCE_TIME_TZ_TEST"] == "yes" - case RUBY_PLATFORM -- when /linux/ -+ when /darwin|linux/ - force_tz_test = true -- when /darwin|freebsd|openbsd/ -+ when /freebsd|openbsd/ - has_lisbon_tz = false - force_tz_test = true - end -@@ -95,6 +95,9 @@ def group_by(e, &block) - CORRECT_KIRITIMATI_SKIP_1994 = with_tz("Pacific/Kiritimati") { - Time.local(1994, 12, 31, 0, 0, 0).year == 1995 - } -+ CORRECT_SINGAPORE_1982 = with_tz("Asia/Singapore") { -+ "2022g" if Time.local(1981, 12, 31, 23, 59, 59).utc_offset == 8*3600 -+ } - - def time_to_s(t) - t.to_s -@@ -140,9 +143,12 @@ def test_america_managua - - def test_asia_singapore - with_tz(tz="Asia/Singapore") { -- assert_time_constructor(tz, "1981-12-31 23:59:59 +0730", :local, [1981,12,31,23,59,59]) -- assert_time_constructor(tz, "1982-01-01 00:30:00 +0800", :local, [1982,1,1,0,0,0]) -- assert_time_constructor(tz, "1982-01-01 00:59:59 +0800", :local, [1982,1,1,0,29,59]) -+ assert_time_constructor(tz, "1981-12-31 23:29:59 +0730", :local, [1981,12,31,23,29,59]) -+ if CORRECT_SINGAPORE_1982 -+ assert_time_constructor(tz, "1982-01-01 00:00:00 +0800", :local, [1981,12,31,23,30,00]) -+ assert_time_constructor(tz, "1982-01-01 00:00:00 +0800", :local, [1982,1,1,0,0,0]) -+ assert_time_constructor(tz, "1982-01-01 00:29:59 +0800", :local, [1982,1,1,0,29,59]) -+ end - assert_time_constructor(tz, "1982-01-01 00:30:00 +0800", :local, [1982,1,1,0,30,0]) - } - end -@@ -450,8 +456,11 @@ def self.gen_zdump_test(data) - America/Managua Wed Jan 1 04:59:59 1997 UTC = Tue Dec 31 23:59:59 1996 EST isdst=0 gmtoff=-18000 - America/Managua Wed Jan 1 05:00:00 1997 UTC = Tue Dec 31 23:00:00 1996 CST isdst=0 gmtoff=-21600 - Asia/Singapore Sun Aug 8 16:30:00 1965 UTC = Mon Aug 9 00:00:00 1965 SGT isdst=0 gmtoff=27000 --Asia/Singapore Thu Dec 31 16:29:59 1981 UTC = Thu Dec 31 23:59:59 1981 SGT isdst=0 gmtoff=27000 -+Asia/Singapore Thu Dec 31 15:59:59 1981 UTC = Thu Dec 31 23:29:59 1981 SGT isdst=0 gmtoff=27000 - Asia/Singapore Thu Dec 31 16:30:00 1981 UTC = Fri Jan 1 00:30:00 1982 SGT isdst=0 gmtoff=28800 -+End -+ gen_zdump_test <<'End' if CORRECT_SINGAPORE_1982 -+Asia/Singapore Thu Dec 31 16:00:00 1981 UTC = Fri Jan 1 00:00:00 1982 SGT isdst=0 gmtoff=28800 - End - gen_zdump_test CORRECT_TOKYO_DST_1951 ? <<'End' + (CORRECT_TOKYO_DST_1951 < "2018f" ? <<'2018e' : <<'2018f') : <<'End' - Asia/Tokyo Sat May 5 14:59:59 1951 UTC = Sat May 5 23:59:59 1951 JST isdst=0 gmtoff=32400 diff --git a/ruby-3.1.3.tar.xz b/ruby-3.1.4.tar.xz similarity index 64% rename from ruby-3.1.3.tar.xz rename to ruby-3.1.4.tar.xz index cc45963a623ff2fde2f424796e9cbdf1c15353dd..dfcab374f47928d8a5f445710817c81ff4cad7ae 100644 Binary files a/ruby-3.1.3.tar.xz and b/ruby-3.1.4.tar.xz differ diff --git a/ruby-3.2.0-ruby-cgi-Fix-test_cgi_cookie_new_with_domain-to-pass.patch b/ruby-3.2.0-ruby-cgi-Fix-test_cgi_cookie_new_with_domain-to-pass.patch deleted file mode 100644 index 21579c5b77f7ca07d8f91782648dc3efc8676170..0000000000000000000000000000000000000000 --- a/ruby-3.2.0-ruby-cgi-Fix-test_cgi_cookie_new_with_domain-to-pass.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 656f25987cf2885104d5b13c8d3f5b7d32f1b333 Mon Sep 17 00:00:00 2001 -From: Jean Boussier -Date: Wed, 23 Nov 2022 12:10:36 +0100 -Subject: [PATCH] [ruby/cgi] Fix test_cgi_cookie_new_with_domain to pass on - older rubies - -https://github.com/ruby/cgi/commit/05f0c58048 ---- - test/cgi/test_cgi_cookie.rb | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/test/cgi/test_cgi_cookie.rb b/test/cgi/test_cgi_cookie.rb -index e3ec4bea5286..6d31932d321a 100644 ---- a/test/cgi/test_cgi_cookie.rb -+++ b/test/cgi/test_cgi_cookie.rb -@@ -62,18 +62,18 @@ def test_cgi_cookie_new_complex - - def test_cgi_cookie_new_with_domain - h = {'name'=>'name1', 'value'=>'value1'} -- cookie = CGI::Cookie.new('domain'=>'a.example.com', **h) -+ cookie = CGI::Cookie.new(h.merge('domain'=>'a.example.com')) - assert_equal('a.example.com', cookie.domain) - -- cookie = CGI::Cookie.new('domain'=>'1.example.com', **h) -+ cookie = CGI::Cookie.new(h.merge('domain'=>'1.example.com')) - assert_equal('1.example.com', cookie.domain, 'enhanced by RFC 1123') - - assert_raise(ArgumentError) { -- CGI::Cookie.new('domain'=>'-a.example.com', **h) -+ CGI::Cookie.new(h.merge('domain'=>'-a.example.com')) - } - - assert_raise(ArgumentError) { -- CGI::Cookie.new('domain'=>'a-.example.com', **h) -+ CGI::Cookie.new(h.merge('domain'=>'a-.example.com')) - } - end - diff --git a/ruby-3.2.0-ruby-cgi-Loosen-the-domain-regex-to-accept.patch b/ruby-3.2.0-ruby-cgi-Loosen-the-domain-regex-to-accept.patch deleted file mode 100644 index f2172814a78c580390fa55520badd1ecfa7ae923..0000000000000000000000000000000000000000 --- a/ruby-3.2.0-ruby-cgi-Loosen-the-domain-regex-to-accept.patch +++ /dev/null @@ -1,44 +0,0 @@ -From 745dcf5326ea2c8e2047a3bddeb0fbb7e7d07649 Mon Sep 17 00:00:00 2001 -From: Xenor Chang -Date: Mon, 28 Nov 2022 12:34:06 +0800 -Subject: [PATCH] [ruby/cgi] Loosen the domain regex to accept '.' - (https://github.com/ruby/cgi/pull/29) - -* Loosen the domain regex to accept '.' - -Co-authored-by: Nobuyoshi Nakada - -https://github.com/ruby/cgi/commit/5e09d632f3 -Co-authored-by: Hiroshi SHIBATA ---- - lib/cgi/cookie.rb | 2 +- - test/cgi/test_cgi_cookie.rb | 3 +++ - 2 files changed, 4 insertions(+), 1 deletion(-) - -diff --git a/lib/cgi/cookie.rb b/lib/cgi/cookie.rb -index 1a9c1a82c123..9498e2f9faf9 100644 ---- a/lib/cgi/cookie.rb -+++ b/lib/cgi/cookie.rb -@@ -42,7 +42,7 @@ class Cookie < Array - - TOKEN_RE = %r"\A[[!-~]&&[^()<>@,;:\\\"/?=\[\]{}]]+\z" - PATH_VALUE_RE = %r"\A[[ -~]&&[^;]]*\z" -- DOMAIN_VALUE_RE = %r"\A(?