Skip to content

Commit 67afaa3

Browse files
authored
Add missing require (#13)
To fix the following error: ```console $ rake /Users/zzz/.rbenv/versions/3.4.2/bin/ruby test/run-test.rb Loaded suite test Started F ======================================================================== Failure: test: too many redirection(DownloaderTest::#download) /Users/zzz/src/github.com/red-data-tools/red-remote-input/test/test-downloader.rb:61:in 'block (2 levels) in <class:DownloaderTest>' 58: raise RemoteInput::Downloader::TooManyRedirects, "too many redirections: #{last_url}" 59: end 60: => 61: assert_raise(RemoteInput::Downloader::TooManyRedirects.new(expected_message)) do 62: downloader.download(output_path) 63: end 64: end <RemoteInput::Downloader::TooManyRedirects(<too many redirections: https://example.com/file .. https://example.com/last_redirection>)> expected but was <NameError(<uninitialized constant RemoteInput::Downloader::VERSION>) (snip) ```
1 parent e292914 commit 67afaa3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/remote_input/downloader.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
require "pathname"
88

99
require_relative "error"
10+
require_relative "version"
1011

1112
module RemoteInput
1213
class Downloader

0 commit comments

Comments
 (0)