anilibria-api-ruby 1.0.2 → 1.0.3
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/Gemfile.lock +1 -1
- data/lib/anilibria/api/types/title.rb +19 -17
- data/lib/anilibria/api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '028786323193407625b27994df9dd6386542f38e21b79f4356550820761687f0'
|
|
4
|
+
data.tar.gz: 753473973530bbd68be6d7427dd5460eec2c455f3938c39f65956734a33f31e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: adf4f3b6b6a29643f364475d32685ef1fc47c71735ffb1c26befc259fb817f122d45eec3614617963ee3e606753ec499f87122dfac8e3705f9e6224ec8a82b93
|
|
7
|
+
data.tar.gz: d80d1ca94d577e815ed8096c73d013bcf1476a46226b6d24c52f01a38840ade125f0196b8dd58cf15d9a0f2aa3a64b7671b5cf53c8514d1be306c9b2b8a3c6f1
|
data/Gemfile.lock
CHANGED
|
@@ -8,12 +8,23 @@ module Anilibria
|
|
|
8
8
|
attribute? :string, DryTypes::String.optional
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
class Posters < Base
|
|
12
|
+
class Poster < Base
|
|
13
|
+
attribute? :url, DryTypes::String.optional
|
|
14
|
+
attribute? :raw_base64_file, DryTypes::String.optional
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
%i[small medium original].each do |size|
|
|
18
|
+
attribute? size, Poster
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
11
22
|
class Player < Base
|
|
12
23
|
class Playlist < Base
|
|
13
24
|
attribute? :serie, DryTypes::Strict::Integer
|
|
14
25
|
attribute? :created_timestamp, DryTypes::Timestamp
|
|
15
26
|
|
|
16
|
-
attribute? :hls do
|
|
27
|
+
attribute? :hls, Base do
|
|
17
28
|
attribute? :fhd, DryTypes::String.optional
|
|
18
29
|
attribute? :hd, DryTypes::String.optional
|
|
19
30
|
attribute? :sd, DryTypes::String.optional
|
|
@@ -47,7 +58,6 @@ module Anilibria
|
|
|
47
58
|
attribute? :name, DryTypes::Strict::String
|
|
48
59
|
attribute? :announce, DryTypes::Array.of(DryTypes::Strict::String)
|
|
49
60
|
attribute? :created_timestamp, DryTypes::Timestamp
|
|
50
|
-
|
|
51
61
|
attribute? :files_list, DryTypes::Array.of(FilesList)
|
|
52
62
|
end
|
|
53
63
|
|
|
@@ -56,7 +66,7 @@ module Anilibria
|
|
|
56
66
|
attribute? :torrent_id, DryTypes::Strict::Integer
|
|
57
67
|
attribute? :series, Title::Series
|
|
58
68
|
|
|
59
|
-
attribute? :quality do
|
|
69
|
+
attribute? :quality, Base do
|
|
60
70
|
attribute? :string, DryTypes::Strict::String
|
|
61
71
|
attribute? :type, DryTypes::Strict::String
|
|
62
72
|
attribute? :resolution, DryTypes::Strict::Integer
|
|
@@ -82,7 +92,7 @@ module Anilibria
|
|
|
82
92
|
attribute? :id, DryTypes::Strict::Integer
|
|
83
93
|
attribute? :code, DryTypes::Strict::String
|
|
84
94
|
|
|
85
|
-
attribute? :names do
|
|
95
|
+
attribute? :names, Base do
|
|
86
96
|
attribute? :ru, DryTypes::String.optional
|
|
87
97
|
attribute? :en, DryTypes::String.optional
|
|
88
98
|
attribute? :alternative, DryTypes::String.optional
|
|
@@ -90,24 +100,16 @@ module Anilibria
|
|
|
90
100
|
|
|
91
101
|
attribute? :announce, DryTypes::String.optional
|
|
92
102
|
|
|
93
|
-
attribute? :status do
|
|
103
|
+
attribute? :status, Base do
|
|
94
104
|
attribute? :string, DryTypes::Strict::String
|
|
95
105
|
attribute? :code, DryTypes::Strict::Integer
|
|
96
106
|
end
|
|
97
107
|
|
|
98
|
-
attribute? :posters
|
|
99
|
-
%i[small medium original].each do |poster|
|
|
100
|
-
attribute? poster do
|
|
101
|
-
attribute? :url, DryTypes::String.optional
|
|
102
|
-
attribute? :raw_base64_file, DryTypes::String.optional
|
|
103
|
-
end
|
|
104
|
-
end
|
|
105
|
-
end
|
|
106
|
-
|
|
108
|
+
attribute? :posters, Posters
|
|
107
109
|
attribute? :updated, DryTypes::Timestamp.optional
|
|
108
110
|
attribute? :last_change, DryTypes::Timestamp.optional
|
|
109
111
|
|
|
110
|
-
attribute? :type do
|
|
112
|
+
attribute? :type, Base do
|
|
111
113
|
attribute? :full_string, DryTypes::String.optional
|
|
112
114
|
attribute? :string, DryTypes::String.optional
|
|
113
115
|
attribute? :length, DryTypes::String.optional
|
|
@@ -118,7 +120,7 @@ module Anilibria
|
|
|
118
120
|
attribute? :genres, DryTypes::Array.of(DryTypes::Strict::String)
|
|
119
121
|
attribute? :team, Types::Team
|
|
120
122
|
|
|
121
|
-
attribute? :season do
|
|
123
|
+
attribute? :season, Base do
|
|
122
124
|
attribute? :string, DryTypes::String.optional
|
|
123
125
|
attribute? :code, DryTypes::Integer.optional
|
|
124
126
|
attribute? :year, DryTypes::Integer.optional
|
|
@@ -128,7 +130,7 @@ module Anilibria
|
|
|
128
130
|
attribute? :description, DryTypes::String.optional
|
|
129
131
|
attribute? :in_favorites, DryTypes::Integer.optional
|
|
130
132
|
|
|
131
|
-
attribute? :blocked do
|
|
133
|
+
attribute? :blocked, Base do
|
|
132
134
|
attribute? :blocked, DryTypes::Strict::Bool
|
|
133
135
|
attribute? :bakanim, DryTypes::Strict::Bool
|
|
134
136
|
end
|