X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=lib%2Fwhatever-dl.rb;h=f3b8907081874ccfccebf1ddb84cd69658cb557b;hb=ba6846f883a41ed1ee8a79a036ba091d4b1fb9cb;hp=0f3915207a7bd4069f43b0366e8afd51d12e0528;hpb=873bf451b10441d763128dd0a758a15b58b15ae4;p=dead%2Fwhatever-dl.git diff --git a/lib/whatever-dl.rb b/lib/whatever-dl.rb index 0f39152..f3b8907 100644 --- a/lib/whatever-dl.rb +++ b/lib/whatever-dl.rb @@ -20,6 +20,8 @@ # Load everything the main script and tests will require. # +require 'logger' +require 'whatever-dl/exit_codes' require 'whatever-dl/configuration' require 'whatever-dl/downloader' @@ -32,7 +34,7 @@ my_path = Pathname.new(__FILE__).realpath.to_s # The Dir.glob that's coming up doesn't use the # Ruby library path so we need to tell it where to # look explicitly. -websites_pattern = File.dirname(my_path) + 'whatever-dl/websites/*.rb' +websites_pattern = File.dirname(my_path) + '/whatever-dl/websites/*.rb' # All of the website classes are located in one # directory, so we can 'require' them automatically.