zype 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/zype/models/apps.rb +2 -2
- data/lib/zype/models/categories.rb +2 -0
- data/lib/zype/models/device_categories.rb +13 -0
- data/lib/zype/models/devices.rb +13 -0
- data/lib/zype/models/encoders.rb +2 -0
- data/lib/zype/models/live_events.rb +2 -0
- data/lib/zype/models/playlists.rb +2 -0
- data/lib/zype/models/program_guides.rb +14 -0
- data/lib/zype/models/subtitle_playlists.rb +2 -1
- data/lib/zype/models/subtitles.rb +2 -1
- data/lib/zype/models/videos.rb +2 -0
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09cfcc47b3341133014a7a429983075668b0fa5aa494ae7b362e00c2317752ef'
|
4
|
+
data.tar.gz: 9d920a6dd3db7abe303a097e758778c724f12f5273c15527f4125dba33c7019f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77d68d2dde62271fc59abc8519392401e5f6bc70814824395cb302250b6c36e845476b4a313b0d29bfa55ca7b7994932eae7569caaf975c946ec3e8ee72271f1
|
7
|
+
data.tar.gz: 554d1bc2bdfa914881e75fa66d862e4dbdf3b9ba0c3bd17e7e6f6387cd464db052a6fcc4ce4b15818dee4c5f74ee6ba49b850713dc641f3e0858e371a4afa578
|
data/lib/zype/models/apps.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Zype
|
2
|
-
# This class does not support all, create, update or delete methods
|
3
|
-
#
|
2
|
+
# This class does not support all, create, update or delete methods.
|
3
|
+
# Read more at https://docs.zype.com/v1.0/reference#apps
|
4
4
|
#
|
5
5
|
# @since 0.6.0
|
6
6
|
class Apps < Zype::BaseModel
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Zype
|
2
|
+
# This class only supports all and find.
|
3
|
+
# Read more at https://docs.zype.com/v1.0/reference#device-categories
|
4
|
+
#
|
5
|
+
# @since 0.8.0
|
6
|
+
class DeviceCategories < Zype::BaseModel
|
7
|
+
%i[create update delete].each do |mtd|
|
8
|
+
send(:define_method, mtd) do
|
9
|
+
raise NoMethodError
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Zype
|
2
|
+
# This class only supports all and find.
|
3
|
+
# Read more at https://docs.zype.com/v1.0/reference#devices
|
4
|
+
#
|
5
|
+
# @since 0.8.0
|
6
|
+
class Devices < Zype::BaseModel
|
7
|
+
%i[create update delete].each do |mtd|
|
8
|
+
send(:define_method, mtd) do
|
9
|
+
raise NoMethodError
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/zype/models/encoders.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
module Zype
|
2
|
+
# Read more at https://docs.zype.com/v1.0/reference#program-guides
|
3
|
+
#
|
4
|
+
# @since 0.8.0
|
5
|
+
class ProgramGuides < Zype::BaseModel
|
6
|
+
# Returns the entries for the specified program guide
|
7
|
+
#
|
8
|
+
# @param id [String] the ID of the program guide
|
9
|
+
# @return [Array<Hash>] the program guide entries
|
10
|
+
def entries(id:)
|
11
|
+
client.execute(method: :get, path: "/#{path}/#{id}/entries")
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module Zype
|
2
2
|
# The Subtitle Playlists API allows users to integrate subtitles with HLS manifests from a Zype video source.
|
3
3
|
# It’s a simple way to add subtitles which will be supported in all platforms that implement the Apple HLS specification.
|
4
|
-
# This class does not support all, find and update methods
|
4
|
+
# This class does not support all, find and update methods.
|
5
|
+
# Read more at https://docs.zype.com/v1.0/reference#subtitle-playlists
|
5
6
|
#
|
6
7
|
# @since 0.7.0
|
7
8
|
class SubtitlePlaylists < Zype::BaseModel
|
data/lib/zype/models/videos.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zype
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zype
|
@@ -64,9 +64,12 @@ files:
|
|
64
64
|
- lib/zype/configuration.rb
|
65
65
|
- lib/zype/models/apps.rb
|
66
66
|
- lib/zype/models/categories.rb
|
67
|
+
- lib/zype/models/device_categories.rb
|
68
|
+
- lib/zype/models/devices.rb
|
67
69
|
- lib/zype/models/encoders.rb
|
68
70
|
- lib/zype/models/live_events.rb
|
69
71
|
- lib/zype/models/playlists.rb
|
72
|
+
- lib/zype/models/program_guides.rb
|
70
73
|
- lib/zype/models/subtitle_playlists.rb
|
71
74
|
- lib/zype/models/subtitles.rb
|
72
75
|
- lib/zype/models/videos.rb
|