]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/blobdiff - bin/whatever-dl
Fix all Ruby 1.9 errors and warnings.
[dead/whatever-dl.git] / bin / whatever-dl
index 787e9dbb93c748ed5f949bce8e50052a15968081..146dbeca69cc48087eefb2914f0e065c7fe8322f 100755 (executable)
@@ -32,7 +32,7 @@ require 'getoptlong'
 # Thus, our require statements will work regardless of
 # how or from where the script was run.
 executable = Pathname.new(__FILE__).realpath.to_s
-$: << File.dirname(executable) + '/../'
+$LOAD_PATH << File.dirname(executable) + '/../'
 
 # Load our config file.
 require 'bin/configuration'
@@ -95,7 +95,7 @@ if (__FILE__ == $0) then
   end
 
   # Warn about nonsensical options.
-  if options[:continue] and not (Configuration::DOWNLOAD_METHOD == :wget)
+  if options[:continue] and not Configuration::DOWNLOAD_METHOD == :wget
     puts 'WARNING: The --continue flag does nothing unless DOWNLOAD_METHOD is :wget.'
   end