]> git.r.bdr.sh - rbdr/lyricli.rb/blobdiff - lib/lyricli/source_manager.rb
removing unused variable options, fixes warning in last ruby 1.9.3 branch
[rbdr/lyricli.rb] / lib / lyricli / source_manager.rb
index 020870d6c78cfd0bd804c180cb0163f1ff133960..e6004dff034b922c389f289d4471dd00c18934f8 100644 (file)
@@ -15,7 +15,7 @@ module Lyricli
           current_source = klass.new
           @enabled_sources << current_source
         else
           current_source = klass.new
           @enabled_sources << current_source
         else
-          raise StartSourceException
+          raise Exceptions::StartSourceError
         end
       end
     end
         end
       end
     end
@@ -33,10 +33,10 @@ module Lyricli
           @config["enabled_sources"].uniq!
           @config.save_config
         else
           @config["enabled_sources"].uniq!
           @config.save_config
         else
-          raise EnableSourceException
+          raise Exceptions::EnableSourceError
         end
       else
         end
       else
-        raise UnknownSourceException
+        raise Exceptions::UnknownSourceError
       end
     end
 
       end
     end
 
@@ -50,10 +50,10 @@ module Lyricli
           @config["enabled_sources"].delete(klass.name)
           @config.save_config
         else
           @config["enabled_sources"].delete(klass.name)
           @config.save_config
         else
-          raise DisableSourceException
+          raise Exceptions::DisableSourceError
         end
       else
         end
       else
-        raise UnknownSourceException
+        raise Exceptions::UnknownSourceError
       end
     end
 
       end
     end
 
@@ -67,10 +67,10 @@ module Lyricli
           klass.reset
           disable(source_name)
         else
           klass.reset
           disable(source_name)
         else
-          raise ResetSourceException
+          raise Exceptions::ResetSourceError
         end
       else
         end
       else
-        raise UnknownSourceException
+        raise Exceptions::UnknownSourceError
       end
     end
 
       end
     end
 
@@ -92,7 +92,7 @@ module Lyricli
             lock = true if source.class.name == "arguments"
           end
         rescue
             lock = true if source.class.name == "arguments"
           end
         rescue
-          raise SourceConfigurationException
+          raise Exceptions::SourceConfigurationError
         end
       end
       track
         end
       end
       track