mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
⚠️ calling URI.open via Kernel#open is deprecated, call URI.open directly
This commit is contained in:
parent
5d43e9279a
commit
d16f39ded2
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "fileutils"
|
require "fileutils"
|
||||||
require "open-uri"
|
|
||||||
require "tmpdir"
|
require "tmpdir"
|
||||||
|
|
||||||
module MultibyteTestHelpers
|
module MultibyteTestHelpers
|
||||||
|
@ -11,7 +10,7 @@ module MultibyteTestHelpers
|
||||||
unless File.exist?(File.dirname(to))
|
unless File.exist?(File.dirname(to))
|
||||||
system "mkdir -p #{File.dirname(to)}"
|
system "mkdir -p #{File.dirname(to)}"
|
||||||
end
|
end
|
||||||
open(from) do |source|
|
URI.open(from) do |source|
|
||||||
File.open(to, "w") do |target|
|
File.open(to, "w") do |target|
|
||||||
source.each_line do |l|
|
source.each_line do |l|
|
||||||
target.write l
|
target.write l
|
||||||
|
|
Loading…
Reference in a new issue