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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ee9c171bd51ea8952ccc2f634fee9813679531b
4
- data.tar.gz: 0e83adfd5e447e01f9768224912dbaf018a93bf9
3
+ metadata.gz: a943b083005e4fdf31f7c6ebc4c89b1d970b9006
4
+ data.tar.gz: 185e402109c060b9c068087d81b2526ed4815766
5
5
  SHA512:
6
- metadata.gz: a6490c0e1417aba78438a239b3376bb8f6d219c3bdc2ab4ed357858e8017106e9956a5a047338f1d62d7225aedc9013ff323e9feb97bf98be2e4cedb3f70467a
7
- data.tar.gz: 802a7f811a98ebb01c27a371ff02624aacabe71987268e1f3df7835a6c9de959e6bde8834963f79d1dce7b6d28bb4ee19ac8486c2ac25d4ae5df9294705b57af
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 |events|
22
- return [] if events.nil?
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
@@ -1,3 +1,3 @@
1
1
  module Planvine
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: planvine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Patching