ruby-changes:70856
From: Kazuhiro <ko1@a...>
Date: Fri, 14 Jan 2022 08:16:53 +0900 (JST)
Subject: [ruby-changes:70856] b9b6377401 (master): [ruby/net-http] Fix unescaped `.` in Regexp
https://git.ruby-lang.org/ruby.git/commit/?id=b9b6377401 From b9b63774018870e69b8f81274c8326e9b1628597 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Thu, 13 Jan 2022 19:46:27 +0900 Subject: [ruby/net-http] Fix unescaped `.` in Regexp Use `include?` instead. https://github.com/ruby/net-http/commit/05022744a9 --- test/net/http/test_https.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb index 1593c91df0c..603d6ecc1ab 100644 --- a/test/net/http/test_https.rb +++ b/test/net/http/test_https.rb @@ -137,7 +137,7 @@ class TestNetHTTPS < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/http/test_https.rb#L137 def test_session_reuse # FIXME: The new_session_cb is known broken for clients in OpenSSL 1.1.0h. # See https://github.com/openssl/openssl/pull/5967 for details. - omit if OpenSSL::OPENSSL_LIBRARY_VERSION =~ /OpenSSL 1.1.0h/ + omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 1.1.0h') http = Net::HTTP.new(HOST, config("port")) http.use_ssl = true @@ -164,7 +164,7 @@ class TestNetHTTPS < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/http/test_https.rb#L164 def test_session_reuse_but_expire # FIXME: The new_session_cb is known broken for clients in OpenSSL 1.1.0h. - omit if OpenSSL::OPENSSL_LIBRARY_VERSION =~ /OpenSSL 1.1.0h/ + omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 1.1.0h') http = Net::HTTP.new(HOST, config("port")) http.use_ssl = true -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/