From d16f39ded273a3c019e78bca52e8e196e5214cc9 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Fri, 16 Aug 2019 22:29:03 +0900 Subject: [PATCH] :warning: calling URI.open via Kernel#open is deprecated, call URI.open directly --- activesupport/test/multibyte_test_helpers.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/activesupport/test/multibyte_test_helpers.rb b/activesupport/test/multibyte_test_helpers.rb index 7565655f25..3866eca72f 100644 --- a/activesupport/test/multibyte_test_helpers.rb +++ b/activesupport/test/multibyte_test_helpers.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true require "fileutils" -require "open-uri" require "tmpdir" module MultibyteTestHelpers @@ -11,7 +10,7 @@ module MultibyteTestHelpers unless File.exist?(File.dirname(to)) system "mkdir -p #{File.dirname(to)}" end - open(from) do |source| + URI.open(from) do |source| File.open(to, "w") do |target| source.each_line do |l| target.write l