mangadex 5.3.3.3 → 5.3.3.4
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 +2 -2
- data/lib/mangadex/api/response.rb +22 -0
- data/lib/mangadex/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: 903ed335a6c351b7b953d9324fc5b49f4e0a1a83668e7f35b9c32a20051a1e4b
|
|
4
|
+
data.tar.gz: 404efdef00911d0fccffdc5e17425be7d7bed641207f3c5e2fb400cc03d0a7e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a16a37051b34693c278657d40b071444344247bab1deac3c9ba568e028fcbe80c04dacc20a85a5a4cc4593a88a6d46fc0b7d31f4b8aa4dcf7116f1a715be0b4
|
|
7
|
+
data.tar.gz: 5d12be35cfb8241170c19992e4e87d7df2b1496bcbbe6f072bbb61878233013441c1f6c8cc42c94caaf12ce1bb9eb66a3640101258822731ede84ebca79d10d3
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
mangadex (5.3.3.
|
|
4
|
+
mangadex (5.3.3.4)
|
|
5
5
|
activesupport (~> 6.1)
|
|
6
6
|
psych (~> 4.0.1)
|
|
7
7
|
rest-client (~> 2.1)
|
|
@@ -82,7 +82,7 @@ GEM
|
|
|
82
82
|
smart_properties (1.16.3)
|
|
83
83
|
sorbet (0.5.9152)
|
|
84
84
|
sorbet-static (= 0.5.9152)
|
|
85
|
-
sorbet-runtime (0.5.
|
|
85
|
+
sorbet-runtime (0.5.9211)
|
|
86
86
|
sorbet-static (0.5.9152-universal-darwin-20)
|
|
87
87
|
sorbet-static (0.5.9152-x86_64-linux)
|
|
88
88
|
tilt (2.0.10)
|
|
@@ -48,6 +48,28 @@ module Mangadex
|
|
|
48
48
|
errors.select { |error| error.status.to_s == status.to_s }.any?
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
+
def more_results?
|
|
52
|
+
return unless data.is_a?(Array)
|
|
53
|
+
|
|
54
|
+
total > data.count
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def count
|
|
58
|
+
data.is_a?(Array) ? data.count : nil
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
def each(&block)
|
|
62
|
+
if data.is_a?(Array)
|
|
63
|
+
data.each(&block)
|
|
64
|
+
else
|
|
65
|
+
raise ArgumentError, "Expect data to be Array, but got #{data.class}"
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
def to_a
|
|
70
|
+
each.to_a
|
|
71
|
+
end
|
|
72
|
+
|
|
51
73
|
def as_json(*)
|
|
52
74
|
Hash(raw_data)
|
|
53
75
|
end
|
data/lib/mangadex/version.rb
CHANGED