X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/34d0bf15a6f4009de376ceed1d7d5cca24a8dfe7..7b40d722ef984b45528010ef27a271349e798c09:/doc/Lyricli.html diff --git a/doc/Lyricli.html b/doc/Lyricli.html index 8a09e7f..cb95933 100644 --- a/doc/Lyricli.html +++ b/doc/Lyricli.html @@ -80,7 +80,7 @@
Defined in:
lib/lyricli.rb,
- lib/lyricli/util.rb,
lib/lyricli/lyricli.rb,
lib/lyricli/sources/rdio.rb,
lib/lyricli/lyrics_engine.rb,
lib/lyricli/configuration.rb,
lib/lyricli/sources/itunes.rb,
lib/lyricli/source_manager.rb,
lib/lyricli/sources/arguments.rb
+ lib/lyricli/util.rb,
lib/lyricli/sources.rb,
lib/lyricli/lyricli.rb,
lib/lyricli/exceptions.rb,
lib/lyricli/sources/rdio.rb,
lib/lyricli/configuration.rb,
lib/lyricli/lyrics_engine.rb,
lib/lyricli/sources/itunes.rb,
lib/lyricli/source_manager.rb,
lib/lyricli/sources/arguments.rb,
lib/lyricli/exceptions/reset_source_error.rb,
lib/lyricli/exceptions/start_source_error.rb,
lib/lyricli/exceptions/enable_source_error.rb,
lib/lyricli/exceptions/unknown_source_error.rb,
lib/lyricli/exceptions/invalid_lyrics_error.rb,
lib/lyricli/exceptions/disable_source_error.rb,
lib/lyricli/exceptions/lyrics_not_found_error.rb,
lib/lyricli/exceptions/source_configuration_error.rb
@@ -103,7 +103,7 @@ song and artist data from diverse sources.

- Modules: Sources, Util + Modules: Exceptions, Sources, Util @@ -313,17 +313,25 @@ Disables a source via the Source Manager

 
 
-56
-57
-58
-59
+70 +71 +72 +73 +74 +75 +76 +77 -
# File 'lib/lyricli.rb', line 56
+      
# File 'lib/lyricli.rb', line 70
 
 def self.disable(source_name)
   source_manager = SourceManager.new
-  source_manager.disable(source_name)
+  begin
+    source_manager.disable(source_name)
+  rescue Exceptions::UnknownSourceError
+    "There is no such Source"
+  end
 end
@@ -357,17 +365,25 @@ Enables a source via the Source Manager
 
 
-50
-51
-52
-53
+60 +61 +62 +63 +64 +65 +66 +67
-
# File 'lib/lyricli.rb', line 50
+      
# File 'lib/lyricli.rb', line 60
 
 def self.enable(source_name)
   source_manager = SourceManager.new
-  source_manager.enable(source_name)
+  begin
+    source_manager.enable(source_name)
+  rescue Exceptions::UnknownSourceError
+    "There is no such Source"
+  end
 end
@@ -421,13 +437,13 @@ the fetched lyrics
 
 
-30
-31
-32
-33
+40 +41 +42 +43
-
# File 'lib/lyricli.rb', line 30
+      
# File 'lib/lyricli.rb', line 40
 
 def self.lyrics
   @lyricli = Lyricli.new
@@ -465,17 +481,25 @@ Resets all configuration for a source via the Source Manager
       
 
 
-62
-63
-64
-65
+80 +81 +82 +83 +84 +85 +86 +87
-
# File 'lib/lyricli.rb', line 62
+      
# File 'lib/lyricli.rb', line 80
 
 def self.reset(source_name)
   source_manager = SourceManager.new
-  source_manager.reset(source_name)
+  begin
+    source_manager.reset(source_name)
+  rescue Exceptions::UnknownSourceError
+    "There is no such Source"
+  end
 end
@@ -528,13 +552,13 @@ the list of available sources. Enabled sources have a star appended.
 
 
-44
-45
-46
-47
+54 +55 +56 +57
-
# File 'lib/lyricli.rb', line 44
+      
# File 'lib/lyricli.rb', line 54
 
 def self.sources
   source_manager = SourceManager.new
@@ -591,12 +615,12 @@ the version
       
 
 
-37
-38
-39
+47 +48 +49
-
# File 'lib/lyricli.rb', line 37
+      
# File 'lib/lyricli.rb', line 47
 
 def self.version
   Gem.loaded_specs["lyricli"].version
@@ -611,7 +635,7 @@ the version