kodi_client 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/kodi_client.gemspec +1 -1
  3. data/lib/kodi_client/Chainable.rb +0 -2
  4. data/lib/kodi_client/kodi_module.rb +0 -7
  5. data/lib/kodi_client/method/addons.rb +1 -5
  6. data/lib/kodi_client/method/application.rb +1 -4
  7. data/lib/kodi_client/method/audio_library.rb +1 -4
  8. data/lib/kodi_client/method/favourites.rb +1 -4
  9. data/lib/kodi_client/method/files.rb +1 -5
  10. data/lib/kodi_client/method/gui.rb +1 -4
  11. data/lib/kodi_client/method/input.rb +1 -5
  12. data/lib/kodi_client/method/player.rb +1 -6
  13. data/lib/kodi_client/method/profiles.rb +1 -4
  14. data/lib/kodi_client/method/system.rb +1 -5
  15. data/lib/kodi_client/{global_types → types}/addon_types.rb +2 -5
  16. data/lib/kodi_client/{global_types → types}/application_types.rb +0 -4
  17. data/lib/kodi_client/{global_types → types}/audio_types.rb +0 -5
  18. data/lib/kodi_client/{global_types → types}/favourites_types.rb +0 -5
  19. data/lib/kodi_client/{global_types → types}/files_types.rb +0 -5
  20. data/lib/kodi_client/{global_types → types}/global_types.rb +0 -4
  21. data/lib/kodi_client/{global_types → types}/gui_types.rb +0 -5
  22. data/lib/kodi_client/{global_types → types}/input_types.rb +0 -2
  23. data/lib/kodi_client/{global_types → types}/item_types.rb +0 -0
  24. data/lib/kodi_client/{global_types → types}/list_types.rb +0 -6
  25. data/lib/kodi_client/{global_types → types}/media_types.rb +0 -5
  26. data/lib/kodi_client/{global_types → types}/player_type.rb +0 -6
  27. data/lib/kodi_client/{global_types → types}/profiles_types.rb +0 -5
  28. data/lib/kodi_client/{global_types → types}/pvr_type.rb +0 -2
  29. data/lib/kodi_client/{global_types → types}/system_types.rb +0 -4
  30. data/lib/kodi_client/{global_types → types}/video_types.rb +0 -5
  31. data/lib/kodi_client.rb +34 -10
  32. metadata +17 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55af2b109bf693f6b075bb970df32dd482a1121926fe49be441b8a2d66c261f3
4
- data.tar.gz: a452bd1c62c4e08dcac98f5a1a6ad87ac7ae9cf7c3f38932fc2c470ab0d065ed
3
+ metadata.gz: 23953ca4422d697b3b13a223f63b339acc5d4d4fdb8c7accccdc5f0b7f85f9cb
4
+ data.tar.gz: 92e3d514686cdddddcc16a1be9046ba56a8d31e039316fb98ab98dca45a864db
5
5
  SHA512:
6
- metadata.gz: 8c93a1b6fe7ec129f2e3bf900f8e45431d8e8393111cb01c935d1c682204ec205cbae26d701d20bfac28db976566d942fe0d9ca178afb43720ea22bb6101191c
7
- data.tar.gz: b190ebfb0aa383686cc76503cc8b234f3730cc7bd230e36c0cc4ed226db400566ebd90db14ffeafcb481284d1ac39bc35ea2471a742c27799aa67e6d7824a871
6
+ metadata.gz: 734b5574d16a2deac4a88f81f6d3b94f4a5cd9c769fbda34034a6f3b614c4a03b5c44f40060ad100d24e1a2e032de8ceb35107f6922a51fdc396d19db4207204
7
+ data.tar.gz: 1cbb33466f364232765025183bb4336c03913ff1f1ff9887a18cd7f221b4cd5fac2640671a3213e2049533888044b551b5a4738ce7c2f0219b1fe21b6c15d3b6
data/kodi_client.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'kodi_client'
5
- spec.version = '0.6.2'
5
+ spec.version = '0.6.3'
6
6
  spec.authors = ['Christian Feier']
7
7
  spec.email = ['christian.feier@gmail.com']
8
8
 
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/options'
4
-
5
3
  module KodiClient
6
4
  # Offers methods like connect, auth and tls to be chained together
7
5
  module Chainable
@@ -1,8 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'http'
4
- require 'kodi_client/util/comparable'
5
-
6
3
  module KodiClient
7
4
 
8
5
  # the client that stores
@@ -79,9 +76,5 @@ module KodiClient
79
76
  def error?
80
77
  !@error.nil?
81
78
  end
82
-
83
- def ==(other)
84
- compare(self, other)
85
- end
86
79
  end
87
80
  end
@@ -1,11 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/kodi_module'
4
- require 'kodi_client/global_types/addon_types'
5
- require 'kodi_client/global_types/list_types'
6
-
7
3
  module KodiClient
8
- module Modules
4
+ module Method
9
5
  # contains all Kodi Application methods
10
6
  class Addons < KodiModule
11
7
 
@@ -1,10 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/kodi_module'
4
- require 'kodi_client/global_types/application_types'
5
-
6
3
  module KodiClient
7
- module Modules
4
+ module Method
8
5
  # contains all Kodi Application methods
9
6
  class Application < KodiModule
10
7
 
@@ -1,10 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/kodi_module'
4
- require 'kodi_client/global_types/application_types'
5
-
6
3
  module KodiClient
7
- module Modules
4
+ module Method
8
5
  # contains all Kodi Application methods
9
6
  class AudioLibrary < KodiModule
10
7
 
@@ -1,10 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/kodi_module'
4
- require 'kodi_client/global_types/favourites_types'
5
-
6
3
  module KodiClient
7
- module Modules
4
+ module Method
8
5
  # contains all Kodi Application methods
9
6
  class Favourites < KodiModule
10
7
 
@@ -1,11 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/kodi_module'
4
- require 'kodi_client/global_types/files_types'
5
- require 'kodi_client/global_types/list_types'
6
-
7
3
  module KodiClient
8
- module Modules
4
+ module Method
9
5
  # contains all Kodi Application methods
10
6
  class Files < KodiModule
11
7
 
@@ -1,10 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/global_types/gui_types'
4
- require 'kodi_client/kodi_module'
5
-
6
3
  module KodiClient
7
- module Modules
4
+ module Method
8
5
  # contains all Kodi GUI methods
9
6
  class GUI < KodiModule
10
7
 
@@ -1,11 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/global_types/gui_types'
4
- require 'kodi_client/kodi_module'
5
- require 'kodi_client/global_types/input_types'
6
-
7
3
  module KodiClient
8
- module Modules
4
+ module Method
9
5
  # contains all Kodi Input methods
10
6
  class Input < KodiModule
11
7
 
@@ -1,12 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/kodi_module'
4
- require 'kodi_client/global_types/addon_types'
5
- require 'kodi_client/global_types/list_types'
6
- require 'kodi_client/global_types/player_type'
7
-
8
3
  module KodiClient
9
- module Modules
4
+ module Method
10
5
  # contains all Kodi Application methods
11
6
  class Player < KodiModule
12
7
 
@@ -1,10 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/kodi_module'
4
- require 'kodi_client/global_types/profiles_types'
5
-
6
3
  module KodiClient
7
- module Modules
4
+ module Method
8
5
  # contains all Kodi Application methods
9
6
  class Profiles < KodiModule
10
7
 
@@ -1,11 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/global_types/gui_types'
4
- require 'kodi_client/kodi_module'
5
- require 'kodi_client/global_types/system_types'
6
-
7
3
  module KodiClient
8
- module Modules
4
+ module Method
9
5
  # contains all Kodi System methods
10
6
  class System < KodiModule
11
7
 
@@ -1,10 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/global_types/item_types'
4
- require 'kodi_client/global_types/list_types'
5
- require 'kodi_client/util/comparable'
6
- require 'kodi_client/util/iterable'
7
- require 'kodi_client/util/creatable'
3
+ require 'kodi_client/types/item_types'
4
+ require 'kodi_client/types/list_types'
8
5
 
9
6
  module KodiClient
10
7
  module Types
@@ -1,9 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/util/comparable'
4
- require 'kodi_client/util/iterable'
5
- require 'kodi_client/util/creatable'
6
-
7
3
  module KodiClient
8
4
  module Types
9
5
  module Application
@@ -1,10 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/global_types/media_types'
4
- require 'kodi_client/util/comparable'
5
- require 'kodi_client/util/iterable'
6
- require 'kodi_client/util/creatable'
7
-
8
3
  module KodiClient
9
4
  module Types
10
5
  module Audio
@@ -1,10 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/util/comparable'
4
- require 'kodi_client/util/iterable'
5
- require 'kodi_client/util/creatable'
6
- require 'kodi_client/global_types/list_types'
7
-
8
3
  module KodiClient
9
4
  module Types
10
5
  module Favourites
@@ -1,10 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/util/comparable'
4
- require 'kodi_client/util/iterable'
5
- require 'kodi_client/util/creatable'
6
- require 'kodi_client/global_types/list_types'
7
-
8
3
  module KodiClient
9
4
  module Types
10
5
  module Files
@@ -1,9 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/util/comparable'
4
- require 'kodi_client/util/iterable'
5
- require 'kodi_client/util/creatable'
6
-
7
3
  module KodiClient
8
4
  module Types
9
5
  module Global
@@ -1,10 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/global_types/global_types'
4
- require 'kodi_client/util/comparable'
5
- require 'kodi_client/util/iterable'
6
- require 'kodi_client/util/creatable'
7
-
8
3
  module KodiClient
9
4
  module Types
10
5
  module GUI
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/util/iterable'
4
-
5
3
  module KodiClient
6
4
  module Types
7
5
  module Input
@@ -1,11 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/util/comparable'
4
- require 'kodi_client/util/creatable'
5
- require 'kodi_client/util/iterable'
6
- require 'kodi_client/global_types/video_types'
7
- require 'kodi_client/global_types/audio_types'
8
-
9
3
  module KodiClient
10
4
  module Types
11
5
  module List
@@ -1,10 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/global_types/item_types'
4
- require 'kodi_client/util/comparable'
5
- require 'kodi_client/util/creatable'
6
- require 'kodi_client/util/iterable'
7
-
8
3
  module KodiClient
9
4
  module Types
10
5
  module Media
@@ -1,11 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/global_types/item_types'
4
- require 'kodi_client/global_types/global_types'
5
- require 'kodi_client/util/comparable'
6
- require 'kodi_client/util/iterable'
7
- require 'kodi_client/util/creatable'
8
-
9
3
  module KodiClient
10
4
  module Types
11
5
  module Player
@@ -1,10 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/util/comparable'
4
- require 'kodi_client/util/iterable'
5
- require 'kodi_client/util/creatable'
6
- require 'kodi_client/global_types/item_types'
7
-
8
3
  module KodiClient
9
4
  module Types
10
5
  module Profiles
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/util/iterable'
4
-
5
3
  module KodiClient
6
4
  module Types
7
5
  module PVR
@@ -1,9 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/util/iterable'
4
- require 'kodi_client/util/comparable'
5
- require 'kodi_client/util/creatable'
6
-
7
3
  module KodiClient
8
4
  module Types
9
5
  module System
@@ -1,10 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'kodi_client/global_types/media_types'
4
- require 'kodi_client/global_types/player_type'
5
- require 'kodi_client/util/comparable'
6
- require 'kodi_client/util/creatable'
7
-
8
3
  module KodiClient
9
4
  module Types
10
5
  module Video
data/lib/kodi_client.rb CHANGED
@@ -4,6 +4,14 @@ require 'http'
4
4
  require 'json'
5
5
 
6
6
  require 'kodi_client/Chainable'
7
+
8
+ require 'kodi_client/util/comparable'
9
+ require 'kodi_client/util/creatable'
10
+ require 'kodi_client/util/iterable'
11
+
12
+ require 'kodi_client/kodi_module'
13
+ require 'kodi_client/options'
14
+
7
15
  require 'kodi_client/method/addons'
8
16
  require 'kodi_client/method/audio_library'
9
17
  require 'kodi_client/method/application'
@@ -15,6 +23,22 @@ require 'kodi_client/method/player'
15
23
  require 'kodi_client/method/profiles'
16
24
  require 'kodi_client/method/system'
17
25
 
26
+ require 'kodi_client/types/global_types'
27
+ require 'kodi_client/types/item_types'
28
+ require 'kodi_client/types/media_types'
29
+ require 'kodi_client/types/player_type'
30
+ require 'kodi_client/types/pvr_type'
31
+ require 'kodi_client/types/audio_types'
32
+ require 'kodi_client/types/video_types'
33
+ require 'kodi_client/types/system_types'
34
+ require 'kodi_client/types/list_types'
35
+ require 'kodi_client/types/application_types'
36
+ require 'kodi_client/types/addon_types'
37
+ require 'kodi_client/types/gui_types'
38
+ require 'kodi_client/types/favourites_types'
39
+ require 'kodi_client/types/profiles_types'
40
+ require 'kodi_client/types/input_types'
41
+ require 'kodi_client/types/files_types'
18
42
 
19
43
  # client for Kodi rest api https://kodi.wiki/view/JSON-RPC_API/v12
20
44
  module KodiClient
@@ -27,16 +51,16 @@ module KodiClient
27
51
  attr_reader :audio_library, :addons, :application, :favourites, :files, :gui, :input, :player, :profiles, :system
28
52
 
29
53
  def initialize
30
- @addons = KodiClient::Modules::Addons.new
31
- @audio_library = KodiClient::Modules::AudioLibrary.new
32
- @application = KodiClient::Modules::Application.new
33
- @favourites = KodiClient::Modules::Favourites.new
34
- @files = KodiClient::Modules::Files.new
35
- @gui = KodiClient::Modules::GUI.new
36
- @input = KodiClient::Modules::Input.new
37
- @player = KodiClient::Modules::Player.new
38
- @profiles = KodiClient::Modules::Profiles.new
39
- @system = KodiClient::Modules::System.new
54
+ @addons = KodiClient::Method::Addons.new
55
+ @audio_library = KodiClient::Method::AudioLibrary.new
56
+ @application = KodiClient::Method::Application.new
57
+ @favourites = KodiClient::Method::Favourites.new
58
+ @files = KodiClient::Method::Files.new
59
+ @gui = KodiClient::Method::GUI.new
60
+ @input = KodiClient::Method::Input.new
61
+ @player = KodiClient::Method::Player.new
62
+ @profiles = KodiClient::Method::Profiles.new
63
+ @system = KodiClient::Method::System.new
40
64
  end
41
65
 
42
66
  def apply_options_to_methods(options)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kodi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Feier
@@ -43,22 +43,6 @@ files:
43
43
  - kodi_client.gemspec
44
44
  - lib/kodi_client.rb
45
45
  - lib/kodi_client/Chainable.rb
46
- - lib/kodi_client/global_types/addon_types.rb
47
- - lib/kodi_client/global_types/application_types.rb
48
- - lib/kodi_client/global_types/audio_types.rb
49
- - lib/kodi_client/global_types/favourites_types.rb
50
- - lib/kodi_client/global_types/files_types.rb
51
- - lib/kodi_client/global_types/global_types.rb
52
- - lib/kodi_client/global_types/gui_types.rb
53
- - lib/kodi_client/global_types/input_types.rb
54
- - lib/kodi_client/global_types/item_types.rb
55
- - lib/kodi_client/global_types/list_types.rb
56
- - lib/kodi_client/global_types/media_types.rb
57
- - lib/kodi_client/global_types/player_type.rb
58
- - lib/kodi_client/global_types/profiles_types.rb
59
- - lib/kodi_client/global_types/pvr_type.rb
60
- - lib/kodi_client/global_types/system_types.rb
61
- - lib/kodi_client/global_types/video_types.rb
62
46
  - lib/kodi_client/kodi_module.rb
63
47
  - lib/kodi_client/method/addons.rb
64
48
  - lib/kodi_client/method/application.rb
@@ -71,6 +55,22 @@ files:
71
55
  - lib/kodi_client/method/profiles.rb
72
56
  - lib/kodi_client/method/system.rb
73
57
  - lib/kodi_client/options.rb
58
+ - lib/kodi_client/types/addon_types.rb
59
+ - lib/kodi_client/types/application_types.rb
60
+ - lib/kodi_client/types/audio_types.rb
61
+ - lib/kodi_client/types/favourites_types.rb
62
+ - lib/kodi_client/types/files_types.rb
63
+ - lib/kodi_client/types/global_types.rb
64
+ - lib/kodi_client/types/gui_types.rb
65
+ - lib/kodi_client/types/input_types.rb
66
+ - lib/kodi_client/types/item_types.rb
67
+ - lib/kodi_client/types/list_types.rb
68
+ - lib/kodi_client/types/media_types.rb
69
+ - lib/kodi_client/types/player_type.rb
70
+ - lib/kodi_client/types/profiles_types.rb
71
+ - lib/kodi_client/types/pvr_type.rb
72
+ - lib/kodi_client/types/system_types.rb
73
+ - lib/kodi_client/types/video_types.rb
74
74
  - lib/kodi_client/util/comparable.rb
75
75
  - lib/kodi_client/util/creatable.rb
76
76
  - lib/kodi_client/util/iterable.rb