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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5569005852f8eec172c1b2b4a6121079ea29220
4
- data.tar.gz: 9be44488c53e8dad1d08395b9fa0a8ebc623c0da
3
+ metadata.gz: 5ee9c171bd51ea8952ccc2f634fee9813679531b
4
+ data.tar.gz: 0e83adfd5e447e01f9768224912dbaf018a93bf9
5
5
  SHA512:
6
- metadata.gz: f93e50b8da278ee7fd08d929fd2567261a974dcb420ab9a299ee0e8f8b70c49f1ae29be4b7aa52fb1e59e85e7c38de5ca1741811d0a116a77c59bfeb4edb8225
7
- data.tar.gz: f36754ab99c9f6fc279c25f8ea03fd2cc87445880ea010ceb228c0abebebe820babba7e26465f867c443f4c67ca7f091b04d371042dd03f163ff94ac5aa7c246
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 |event|
22
- return [] if event.nil?
23
- EventsBuilder.build(event)
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
 
@@ -37,6 +37,10 @@ module Planvine
37
37
  events.flatten
38
38
  end
39
39
 
40
+ def event(id)
41
+ self.class.get("/event/#{id}?api_key=#{@api_key}")["data"]
42
+ end
43
+
40
44
  def venue(id)
41
45
  Venue.new(self.class.get("/venue/#{id}?api_key=#{@api_key}")["data"])
42
46
  end
@@ -1,3 +1,3 @@
1
1
  module Planvine
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
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.10
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-16 00:00:00.000000000 Z
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.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: