planvine 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/planvine/planvine_api.rb +5 -1
- data/lib/planvine/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5569005852f8eec172c1b2b4a6121079ea29220
|
4
|
+
data.tar.gz: 9be44488c53e8dad1d08395b9fa0a8ebc623c0da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f93e50b8da278ee7fd08d929fd2567261a974dcb420ab9a299ee0e8f8b70c49f1ae29be4b7aa52fb1e59e85e7c38de5ca1741811d0a116a77c59bfeb4edb8225
|
7
|
+
data.tar.gz: f36754ab99c9f6fc279c25f8ea03fd2cc87445880ea010ceb228c0abebebe820babba7e26465f867c443f4c67ca7f091b04d371042dd03f163ff94ac5aa7c246
|
@@ -22,7 +22,11 @@ module Planvine
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def category_events(id)
|
25
|
-
|
25
|
+
begin
|
26
|
+
number_of_pages = self.class.get("/category/#{id}/events?api_key=#{@api_key}")["_metadata"]["total_pages"]
|
27
|
+
rescue
|
28
|
+
number_of_pages = 1
|
29
|
+
end
|
26
30
|
events = [self.class.get("/category/#{id}/events?api_key=#{@api_key}")["data"]]
|
27
31
|
return events if number_of_pages == 1
|
28
32
|
|
data/lib/planvine/version.rb
CHANGED