mangadex 5.3.3.3 → 5.3.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa7f120a4bf9d6aece81c094b3a3926d104f280cdc00f8d057e30511c66d6e0c
4
- data.tar.gz: 99f011001e634a143b8e186098f788b581f58e396e2e04b332ac8a896c5faaf4
3
+ metadata.gz: 903ed335a6c351b7b953d9324fc5b49f4e0a1a83668e7f35b9c32a20051a1e4b
4
+ data.tar.gz: 404efdef00911d0fccffdc5e17425be7d7bed641207f3c5e2fb400cc03d0a7e4
5
5
  SHA512:
6
- metadata.gz: '08679f0eb4fbaf40a0797db0ad7d8f42f329d5dcbdb121a48ce125a225258cb465de74e6b335204a05bf87817f6d8b4ab3c0db8efbb4980521c9d14a2b35079a'
7
- data.tar.gz: a977bc36cf961c1ebc320e4d8ca0a4c6d32fcf5aa058b6461d04d4420b0c89c279db5ecada7ea5f61fe24010e943cb293ff768ee4772d2d23c0a7a0b26dbdbdd
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.2)
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.9189)
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
@@ -4,7 +4,7 @@ module Mangadex
4
4
  MAJOR = "5"
5
5
  MINOR = "3"
6
6
  TINY = "3"
7
- PATCH = "3"
7
+ PATCH = "4"
8
8
 
9
9
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
10
10
  FULL = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mangadex
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.3.3
4
+ version: 5.3.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akinyele Cafe-Febrissy