Skip to content

Commit

Permalink
⚠️ calling URI.open via Kernel#open is deprecated, call URI.open dire…
Browse files Browse the repository at this point in the history
…ctly
  • Loading branch information
amatsuda committed Aug 16, 2019
1 parent 5d43e92 commit d16f39d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions activesupport/test/multibyte_test_helpers.rb
@@ -1,7 +1,6 @@
# frozen_string_literal: true

require "fileutils"
require "open-uri"
require "tmpdir"

module MultibyteTestHelpers
Expand All @@ -11,7 +10,7 @@ def self.download(from, to)
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
Expand Down

0 comments on commit d16f39d

Please sign in to comment.