planvine 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/planvine/builders/categories_builder.rb +7 -3
- 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: a943b083005e4fdf31f7c6ebc4c89b1d970b9006
|
4
|
+
data.tar.gz: 185e402109c060b9c068087d81b2526ed4815766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 700fb3ac05aaf99105b37d3636dea88143d18d8164c92c27ea2b20dbc0ec0d1b56350653d3f2fe0265daded496472117da895702dc436328fd8ee25fa051e69b
|
7
|
+
data.tar.gz: 1cc40bc23735726d415b3de303caac26fd635324d9e100c1facfdc6f3244fe3795a1dae5c16e8141646da6cf8f5dfca718531600cdaf94963b5865ac9856951e
|
@@ -18,11 +18,15 @@ module Planvine
|
|
18
18
|
|
19
19
|
def events
|
20
20
|
return [] if api.category_events(id).nil?
|
21
|
-
api.category_events(id).map do |
|
22
|
-
|
23
|
-
events.map do |event|
|
21
|
+
api.category_events(id).map do |event|
|
22
|
+
begin
|
24
23
|
full_event = api.event(event["id"])
|
25
24
|
EventsBuilder.build(full_event)
|
25
|
+
rescue
|
26
|
+
event.map do |event|
|
27
|
+
full_event = api.event(event["id"])
|
28
|
+
EventsBuilder.build(full_event)
|
29
|
+
end
|
26
30
|
end
|
27
31
|
end.flatten
|
28
32
|
end
|
data/lib/planvine/version.rb
CHANGED