X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/34d0bf15a6f4009de376ceed1d7d5cca24a8dfe7..b2ac68932fa671151d3ab3115c565fa9ad06420c:/doc/Lyricli.html?ds=sidebyside 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 @@
- 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
-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
-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
-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