zvents 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +4 -0
- data/.travis.yml +7 -0
- data/CHANGELOG.rdoc +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +84 -0
- data/Rakefile +6 -0
- data/lib/zvents/configuration.rb +13 -0
- data/lib/zvents/connection.rb +10 -0
- data/lib/zvents/errors.rb +10 -0
- data/lib/zvents/event.rb +50 -0
- data/lib/zvents/search_results.rb +20 -0
- data/lib/zvents/venue.rb +40 -0
- data/lib/zvents/version.rb +3 -0
- data/lib/zvents.rb +61 -0
- data/spec/configuration_spec.rb +6 -0
- data/spec/event_spec.rb +39 -0
- data/spec/search_results_spec.rb +8 -0
- data/spec/search_spec.rb +17 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/venue_spec.rb +24 -0
- data/zvents.gemspec +27 -0
- metadata +159 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 18b57a5c9e9a710a1827b877d1a9815348ee801e
|
4
|
+
data.tar.gz: 77900949e0f5d0b7d1d29123fb7f709cbb609421
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a29ae1efa37cca7e5f97dbfa14745a2584e3d9ec1f4b16e99fb0b726ee34f746ff07c3f9260154bd4a2f9718fdf91ec526d86c8610507ed7d42d8f3fcabf932f
|
7
|
+
data.tar.gz: 6a7fbd23d3ab397253d327e31c99aa14cad44134ecdb5762a8090419c907f3d156587b40288b8a6e0b711227911eb484f6709ee43f8dc1d652c304897c0c1d74
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.rdoc
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Austin Fonacier
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Zvents
|
2
|
+
|
3
|
+
[![Code Climate](https://codeclimate.com/github/austinrfnd/zvents.png)](https://codeclimate.com/github/austinrfnd/zvents)
|
4
|
+
|
5
|
+
This is a ruby wrapper around the Zvents API. This is a replacement for the old Zvents-Gem.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
gem 'zvents'
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install zvents
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
|
26
|
+
# set api key
|
27
|
+
Zvents::Event.api_key '123'
|
28
|
+
|
29
|
+
# Finding an event
|
30
|
+
event = Zvents::Event.find('event_id')
|
31
|
+
|
32
|
+
# Finding the venue of an eventt
|
33
|
+
event = Zvents::Event.find('event_id')
|
34
|
+
venue = event.venue
|
35
|
+
|
36
|
+
# Finding a venue
|
37
|
+
venue = Zvents::Venue.find('venue_id')
|
38
|
+
|
39
|
+
# Searching
|
40
|
+
search_results = Zvents.search('search parameters')
|
41
|
+
### search parameters are what, where, when, radius, limit, offset, spn_limit,
|
42
|
+
### cat, has_kids, city, neighborhood. trim. has_ticket, sequence
|
43
|
+
ex:
|
44
|
+
search_results = Zvents.search({where: "San Francisco"})
|
45
|
+
events = search_results.events
|
46
|
+
venues = search_results.venues
|
47
|
+
|
48
|
+
# what = parameters[:what] e.g. "parade"
|
49
|
+
# where = parameters[:where] e.g. "San Francisco", "94131",
|
50
|
+
# "-74.0BY:40.9" (Latitude by longitude), "California"
|
51
|
+
# when = parameters[:when] e.g. "monday to thursday",
|
52
|
+
# "10/30/2007 to 11/4/2007"
|
53
|
+
# radius = parameters[:radius]
|
54
|
+
# (number of miles around where field to search)
|
55
|
+
# limit = parameters[:limit] (max number of items to return)
|
56
|
+
# offset = parameters[:offset] (number of items to skip from
|
57
|
+
# beginning of the search results)
|
58
|
+
# spn_limit = parameters[:spn_limit] (max number of sponsored
|
59
|
+
# items to return)
|
60
|
+
# cat = parameters[:cat] (restrict your search to a specific
|
61
|
+
# category)
|
62
|
+
# has_kids = parameters[:has_kids] (1 or 0.
|
63
|
+
# 1 means kid friendly. Events only)
|
64
|
+
# city = parameters[:city]
|
65
|
+
# neighborhood = parameters[:neighborhood]
|
66
|
+
# trim = parameters[:trim] (0 or 1. 1 trims repeat events.
|
67
|
+
# default = 1)
|
68
|
+
# has_tickets = parameters[:has_tickets] (0 or 1. 1 retuns
|
69
|
+
# only events with tickets for sale)
|
70
|
+
# sequence = parameters[:sequence] (restrict search to events
|
71
|
+
# within a sequence. Multiple sequence ids can be provided
|
72
|
+
# separated by a comma)
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
```
|
77
|
+
|
78
|
+
## Contributing
|
79
|
+
|
80
|
+
1. Fork it ( http://github.com/<my-github-username>/zvents/fork )
|
81
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
82
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
83
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
84
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
module Zvents
|
2
|
+
def self.connection
|
3
|
+
@connection ||= Faraday.new(url: 'http://www.zvents.com/') do |faraday|
|
4
|
+
faraday.request :url_encoded # form-encode POST params
|
5
|
+
faraday.response :logger # log requests to STDOUT
|
6
|
+
faraday.adapter Faraday.default_adapter # make requests with Net::HTTP
|
7
|
+
faraday.response :json
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
data/lib/zvents/event.rb
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
module Zvents
|
2
|
+
class Event
|
3
|
+
require 'zvents/venue'
|
4
|
+
include Virtus.model
|
5
|
+
|
6
|
+
RESOURCE_URL = '/partner_rest/event'
|
7
|
+
|
8
|
+
attribute :avg_ratings, Array
|
9
|
+
attribute :categories, Array
|
10
|
+
attribute :creator, String
|
11
|
+
attribute :description, String
|
12
|
+
attribute :endtime, String
|
13
|
+
attribute :external_urls, Array
|
14
|
+
attribute :id, Integer
|
15
|
+
attribute :images, Array
|
16
|
+
attribute :link, String
|
17
|
+
attribute :name, String
|
18
|
+
attribute :parent_id, Integer
|
19
|
+
attribute :performers, Array
|
20
|
+
attribute :phone, String
|
21
|
+
attribute :price, String
|
22
|
+
attribute :recurrences, Array
|
23
|
+
attribute :sponsored_data, Array
|
24
|
+
attribute :starttime, String
|
25
|
+
attribute :summary, String
|
26
|
+
attribute :tags, Array
|
27
|
+
attribute :url, String
|
28
|
+
attribute :venue, Venue
|
29
|
+
attribute :venue_id, Integer
|
30
|
+
|
31
|
+
# Zvent::Event.find('123123') => an instance of an event
|
32
|
+
#
|
33
|
+
def self.find(id)
|
34
|
+
parameters = {id: id}
|
35
|
+
response = Zvents.find(RESOURCE_URL, parameters)
|
36
|
+
|
37
|
+
if response.body['rsp']['status'] != 'ok'
|
38
|
+
raise Zvents::EventNotFoundError.new("could not find event with id #{id}")
|
39
|
+
end
|
40
|
+
venue_hash = {venue: response.body['rsp']['content']['venues'].first}
|
41
|
+
self.new(response.body['rsp']['content']['events'].first.merge(venue_hash))
|
42
|
+
end
|
43
|
+
|
44
|
+
# venue() => an instance of the venue where the event takes place
|
45
|
+
#
|
46
|
+
def venue
|
47
|
+
@venue ||= Zvents::Venue.find(@venue_id)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Zvents
|
2
|
+
class SearchResults
|
3
|
+
require 'zvents/event'
|
4
|
+
require 'zvents/venue'
|
5
|
+
include Virtus.model
|
6
|
+
|
7
|
+
attribute :events, Array[Event]
|
8
|
+
attribute :venues, Array[Venue]
|
9
|
+
|
10
|
+
def events
|
11
|
+
unless @venues_initialized
|
12
|
+
@events.each do |event|
|
13
|
+
event.venue = @venues.detect{|venue| venue.id == event.venue_id}
|
14
|
+
end
|
15
|
+
end
|
16
|
+
@venues_initialized = true
|
17
|
+
@events
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/zvents/venue.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
module Zvents
|
2
|
+
class Venue
|
3
|
+
include Virtus.model
|
4
|
+
|
5
|
+
RESOURCE_URL = '/partner_rest/venue'
|
6
|
+
|
7
|
+
attribute :address, String
|
8
|
+
attribute :avg_ratings, Array
|
9
|
+
attribute :city, String
|
10
|
+
attribute :country, String
|
11
|
+
attribute :creator, String
|
12
|
+
attribute :description, String
|
13
|
+
attribute :external_urls, Array
|
14
|
+
attribute :id, Integer
|
15
|
+
attribute :images, Array
|
16
|
+
attribute :latitude, Float
|
17
|
+
attribute :link, String
|
18
|
+
attribute :longitude
|
19
|
+
attribute :name, String
|
20
|
+
attribute :neighborhood, String
|
21
|
+
attribute :parent_id, Integer
|
22
|
+
attribute :phone, String
|
23
|
+
attribute :state, String
|
24
|
+
attribute :tags, Array
|
25
|
+
attribute :url, String
|
26
|
+
attribute :zipcode, String
|
27
|
+
|
28
|
+
# Zvent::Venue.find('123123') => an instance of a venue
|
29
|
+
#
|
30
|
+
def self.find(id)
|
31
|
+
parameters = {id: id}
|
32
|
+
response = Zvents.find(RESOURCE_URL, parameters)
|
33
|
+
|
34
|
+
if response.body['rsp']['status'] != 'ok'
|
35
|
+
raise Zvents::VenueNotFoundError.new("could not find venue with id #{id}")
|
36
|
+
end
|
37
|
+
self.new(response.body['rsp']['content']['venues'].first)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/lib/zvents.rb
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
require "zvents/version"
|
2
|
+
require "zvents/configuration"
|
3
|
+
require 'zvents/connection'
|
4
|
+
require 'zvents/errors'
|
5
|
+
require 'virtus'
|
6
|
+
require 'faraday'
|
7
|
+
require 'faraday_middleware'
|
8
|
+
require 'zvents/event'
|
9
|
+
require 'zvents/venue'
|
10
|
+
require 'zvents/search_results'
|
11
|
+
|
12
|
+
module Zvents
|
13
|
+
# Zvents.search(parameters) => an instance of SearchResults
|
14
|
+
#
|
15
|
+
# can search by these parameters
|
16
|
+
# what = parameters[:what] e.g. "parade"
|
17
|
+
# where = parameters[:where] e.g. "San Francisco", "94131",
|
18
|
+
# "-74.0BY:40.9" (Latitude by longitude), "California"
|
19
|
+
# when = parameters[:when] e.g. "monday to thursday",
|
20
|
+
# "10/30/2007 to 11/4/2007"
|
21
|
+
# radius = parameters[:radius]
|
22
|
+
# (number of miles around where field to search)
|
23
|
+
# limit = parameters[:limit] (max number of items to return)
|
24
|
+
# offset = parameters[:offset] (number of items to skip from
|
25
|
+
# beginning of the search results)
|
26
|
+
# spn_limit = parameters[:spn_limit] (max number of sponsored
|
27
|
+
# items to return)
|
28
|
+
# cat = parameters[:cat] (restrict your search to a specific
|
29
|
+
# category)
|
30
|
+
# has_kids = parameters[:has_kids] (1 or 0.
|
31
|
+
# 1 means kid friendly. Events only)
|
32
|
+
# city = parameters[:city]
|
33
|
+
# neighborhood = parameters[:neighborhood]
|
34
|
+
# trim = parameters[:trim] (0 or 1. 1 trims repeat events.
|
35
|
+
# default = 1)
|
36
|
+
# has_tickets = parameters[:has_tickets] (0 or 1. 1 retuns
|
37
|
+
# only events with tickets for sale)
|
38
|
+
# sequence = parameters[:sequence] (restrict search to events
|
39
|
+
# within a sequence. Multiple sequence ids can be provided
|
40
|
+
# separated by a comma)
|
41
|
+
|
42
|
+
def self.search(parameters = {})
|
43
|
+
resource_url = "/partner_rest/search"
|
44
|
+
response = find(resource_url, parameters)
|
45
|
+
if response.body['rsp']['status'] != 'ok'
|
46
|
+
raise Zvents::SearchError.new("search failed")
|
47
|
+
end
|
48
|
+
search_hash = response.body['rsp']['content']
|
49
|
+
SearchResults.new(search_hash)
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
def self.find(url, parameters = {})
|
54
|
+
connection.get do |req|
|
55
|
+
req.url url
|
56
|
+
req.params['key'] = api_key
|
57
|
+
req.params['format'] = 'json'
|
58
|
+
req.params.merge!(parameters)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
data/spec/event_spec.rb
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
describe "Event" do
|
2
|
+
describe "initialize" do
|
3
|
+
it "should initialize with some attributes" do
|
4
|
+
event = Zvents::Event.new({creator: 'Austin Fonacier'})
|
5
|
+
expect(event.creator).to eql("Austin Fonacier")
|
6
|
+
end # rake
|
7
|
+
it "should be able to create a venue for the event" do
|
8
|
+
event = Zvents::Event.new({id: '123', name: 'my_event', venue_id: "1",
|
9
|
+
venue: {id: '1', name: 'venue_name'}})
|
10
|
+
expect(event.venue).to be_kind_of(Zvents::Venue)
|
11
|
+
expect(event.venue.id).to eq(1)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe 'self.find' do
|
16
|
+
before :each do
|
17
|
+
Zvents.api_key = ENV['ZVENT_API_KEY']
|
18
|
+
end
|
19
|
+
it "should return a new event instance" do
|
20
|
+
event = Zvents::Event.find(370741694)
|
21
|
+
expect(event).to be_kind_of(Zvents::Event)
|
22
|
+
end
|
23
|
+
|
24
|
+
it "should throw an error if no event can be found" do
|
25
|
+
expect {
|
26
|
+
Zvents::Event.find('bad_id')
|
27
|
+
}.to raise_error(Zvents::EventNotFoundError)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
describe 'venue' do
|
31
|
+
before :each do
|
32
|
+
Zvents.api_key = ENV['ZVENT_API_KEY']
|
33
|
+
end
|
34
|
+
it "should return a new event instance" do
|
35
|
+
event = Zvents::Event.find(370741694)
|
36
|
+
expect(event.venue).to be_kind_of(Zvents::Venue)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
describe "SearchResults" do
|
2
|
+
describe "initialize" do
|
3
|
+
it "should initialize with some attributes" do
|
4
|
+
search_results = Zvents::SearchResults.new({events: [{creator: 'Austin Fonacier'}]})
|
5
|
+
expect(search_results.events.first.creator).to eql("Austin Fonacier")
|
6
|
+
end # rake
|
7
|
+
end
|
8
|
+
end
|
data/spec/search_spec.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
describe "Search" do
|
2
|
+
describe "search" do
|
3
|
+
before :each do
|
4
|
+
Zvents.api_key = ENV['ZVENT_API_KEY']
|
5
|
+
end
|
6
|
+
it "should search by some parameters and return a new search results instance" do
|
7
|
+
search = Zvents.search({where: 'San Franciso'})
|
8
|
+
expect(search).to be_kind_of(Zvents::SearchResults)
|
9
|
+
end # rake
|
10
|
+
it "should initialize the venues for the events if it can" do
|
11
|
+
search = Zvents.search({where: 'San Francisco'})
|
12
|
+
search.events.each do |event|
|
13
|
+
expect(event.venue.id).to eq(event.venue_id)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/spec/spec_helper.rb
ADDED
data/spec/venue_spec.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
describe "Venue" do
|
2
|
+
describe "initialize" do
|
3
|
+
it "should initialize with some attributes" do
|
4
|
+
venue = Zvents::Venue.new({creator: 'Austin Fonacier'})
|
5
|
+
expect(venue.creator).to eql("Austin Fonacier")
|
6
|
+
end # rake
|
7
|
+
end
|
8
|
+
|
9
|
+
describe 'self.find' do
|
10
|
+
before :each do
|
11
|
+
Zvents.api_key = ENV['ZVENT_API_KEY']
|
12
|
+
end
|
13
|
+
it "should return a new venue instance" do
|
14
|
+
venue = Zvents::Venue.find(17369152)
|
15
|
+
expect(venue).to be_kind_of(Zvents::Venue)
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should throw an error if no venue can be found" do
|
19
|
+
expect {
|
20
|
+
Zvents::Venue.find('bad_id')
|
21
|
+
}.to raise_error(Zvents::VenueNotFoundError)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/zvents.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'zvents/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "zvents"
|
8
|
+
spec.version = Zvents::VERSION
|
9
|
+
spec.authors = ["Austin Fonacier", 'Eric Kuecks']
|
10
|
+
spec.email = ["austinrf@gmail.com", 'ekuecks@ucla.edu']
|
11
|
+
spec.summary = "Ruby wrapper for the Zvents API"
|
12
|
+
spec.description = "Ruby wrapper for the Zvents API"
|
13
|
+
spec.homepage = "http://github.com/austinrfnd/zvents"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.5"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency 'rspec', '~> 3.0.0.beta2'
|
24
|
+
spec.add_dependency 'faraday', '~> 0.9.0'
|
25
|
+
spec.add_dependency 'virtus', '~> 1.0.2'
|
26
|
+
spec.add_dependency 'faraday_middleware'
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,159 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: zvents
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Austin Fonacier
|
8
|
+
- Eric Kuecks
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-07-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.5'
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.5'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rspec
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 3.0.0.beta2
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 3.0.0.beta2
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: faraday
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 0.9.0
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.9.0
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: virtus
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 1.0.2
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 1.0.2
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: faraday_middleware
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :runtime
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
description: Ruby wrapper for the Zvents API
|
99
|
+
email:
|
100
|
+
- austinrf@gmail.com
|
101
|
+
- ekuecks@ucla.edu
|
102
|
+
executables: []
|
103
|
+
extensions: []
|
104
|
+
extra_rdoc_files: []
|
105
|
+
files:
|
106
|
+
- ".gitignore"
|
107
|
+
- ".rspec"
|
108
|
+
- ".travis.yml"
|
109
|
+
- CHANGELOG.rdoc
|
110
|
+
- Gemfile
|
111
|
+
- LICENSE.txt
|
112
|
+
- README.md
|
113
|
+
- Rakefile
|
114
|
+
- lib/zvents.rb
|
115
|
+
- lib/zvents/configuration.rb
|
116
|
+
- lib/zvents/connection.rb
|
117
|
+
- lib/zvents/errors.rb
|
118
|
+
- lib/zvents/event.rb
|
119
|
+
- lib/zvents/search_results.rb
|
120
|
+
- lib/zvents/venue.rb
|
121
|
+
- lib/zvents/version.rb
|
122
|
+
- spec/configuration_spec.rb
|
123
|
+
- spec/event_spec.rb
|
124
|
+
- spec/search_results_spec.rb
|
125
|
+
- spec/search_spec.rb
|
126
|
+
- spec/spec_helper.rb
|
127
|
+
- spec/venue_spec.rb
|
128
|
+
- zvents.gemspec
|
129
|
+
homepage: http://github.com/austinrfnd/zvents
|
130
|
+
licenses:
|
131
|
+
- MIT
|
132
|
+
metadata: {}
|
133
|
+
post_install_message:
|
134
|
+
rdoc_options: []
|
135
|
+
require_paths:
|
136
|
+
- lib
|
137
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
requirements: []
|
148
|
+
rubyforge_project:
|
149
|
+
rubygems_version: 2.2.2
|
150
|
+
signing_key:
|
151
|
+
specification_version: 4
|
152
|
+
summary: Ruby wrapper for the Zvents API
|
153
|
+
test_files:
|
154
|
+
- spec/configuration_spec.rb
|
155
|
+
- spec/event_spec.rb
|
156
|
+
- spec/search_results_spec.rb
|
157
|
+
- spec/search_spec.rb
|
158
|
+
- spec/spec_helper.rb
|
159
|
+
- spec/venue_spec.rb
|