planvine 0.0.10 → 0.0.11
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 +6 -3
- data/lib/planvine/planvine_api.rb +4 -0
- data/lib/planvine/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ee9c171bd51ea8952ccc2f634fee9813679531b
|
4
|
+
data.tar.gz: 0e83adfd5e447e01f9768224912dbaf018a93bf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6490c0e1417aba78438a239b3376bb8f6d219c3bdc2ab4ed357858e8017106e9956a5a047338f1d62d7225aedc9013ff323e9feb97bf98be2e4cedb3f70467a
|
7
|
+
data.tar.gz: 802a7f811a98ebb01c27a371ff02624aacabe71987268e1f3df7835a6c9de959e6bde8834963f79d1dce7b6d28bb4ee19ac8486c2ac25d4ae5df9294705b57af
|
@@ -18,9 +18,12 @@ 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
|
-
return [] if
|
23
|
-
|
21
|
+
api.category_events(id).map do |events|
|
22
|
+
return [] if events.nil?
|
23
|
+
events.map do |event|
|
24
|
+
full_event = api.event(event["id"])
|
25
|
+
EventsBuilder.build(full_event)
|
26
|
+
end
|
24
27
|
end.flatten
|
25
28
|
end
|
26
29
|
|
data/lib/planvine/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: planvine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Patching
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.0.
|
126
|
+
rubygems_version: 2.0.2
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Ruby lib that wraps the planvine API
|
@@ -131,4 +131,3 @@ test_files:
|
|
131
131
|
- spec/lib/builders/events_builder_spec.rb
|
132
132
|
- spec/lib/planvine_spec.rb
|
133
133
|
- spec/spec_helper.rb
|
134
|
-
has_rdoc:
|