seatgeek 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0417f52b7a1ee59a497f30206bc19bf2aa09df1e
4
+ data.tar.gz: d08f67022f031051b7d1f875ff1e299d16c433d0
5
+ SHA512:
6
+ metadata.gz: 5a7c01abfa900e5ca64a52c363517a15c3be9b2eef708f6201269c1fc1afe3b8f7b64dc0a3bee8d88ee8d2918f73f6ca595e33d91937849c8b4c4b438d82e664
7
+ data.tar.gz: 1f73bbb1e4f7dacd26c2b35d47358b1a8129223b897706cbc31ce33f1d91201ccfefa8ccc2b078511b37e9bd52ee8d04bc7d88eaea1b799907a8fd6e466c21b9
@@ -0,0 +1 @@
1
+ 2.1.0
@@ -10,14 +10,9 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- archive-tar-minitar (0.5.2)
14
- awesome_print (1.0.2)
15
- columnize (0.3.6)
16
13
  diff-lcs (1.1.3)
17
14
  faraday (0.8.0)
18
15
  multipart-post (~> 1.1)
19
- linecache19 (0.5.12)
20
- ruby_core_source (>= 0.1.4)
21
16
  multi_json (1.3.5)
22
17
  multipart-post (1.1.5)
23
18
  rake (0.9.2.2)
@@ -29,27 +24,15 @@ GEM
29
24
  rspec-expectations (2.10.0)
30
25
  diff-lcs (~> 1.1.3)
31
26
  rspec-mocks (2.10.1)
32
- ruby-debug-base19 (0.11.25)
33
- columnize (>= 0.3.1)
34
- linecache19 (>= 0.5.11)
35
- ruby_core_source (>= 0.1.4)
36
- ruby-debug19 (0.11.6)
37
- columnize (>= 0.3.1)
38
- linecache19 (>= 0.5.11)
39
- ruby-debug-base19 (>= 0.11.19)
40
- ruby_core_source (0.1.5)
41
- archive-tar-minitar (>= 0.5.2)
42
27
  yajl-ruby (1.1.0)
43
28
 
44
29
  PLATFORMS
45
30
  ruby
46
31
 
47
32
  DEPENDENCIES
48
- awesome_print
49
33
  faraday
50
34
  multi_json
51
35
  rake
52
36
  rspec
53
- ruby-debug19
54
37
  seatgeek!
55
38
  yajl-ruby
@@ -1,4 +1,4 @@
1
- SeatGeek [![Build Status](https://secure.travis-ci.org/bluefocus/seatgeek.png)](http://travis-ci.org/bluefocus/seatgeek)
1
+ SeatGeek [![Build Status](https://secure.travis-ci.org/seatshare/seatgeek.png)](http://travis-ci.org/seatshare/seatgeek)
2
2
  ========
3
3
  SeatGeek maintains a canonical directory of live events in the United States. The SeatGeek Platform makes it easy to construct applications that help users find and discover events by exposing the wealth of data and powerful search behind SeatGeek.com in an easy-to-consume format.
4
4
 
@@ -105,4 +105,3 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
105
105
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
106
106
 
107
107
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
108
-
@@ -24,7 +24,7 @@ module SeatGeek
24
24
 
25
25
  def performers(*args); new.performers(*args); end
26
26
 
27
- def protocol; @@protocol ||= :http; end
27
+ def protocol; @@protocol ||= :https; end
28
28
  def protocol=(input); @@protocol = input; end
29
29
 
30
30
  def response_format; @@response_format ||= :ruby; end
@@ -1,3 +1,3 @@
1
1
  module SeatGeek
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -49,7 +49,7 @@ describe SeatGeek::Connection do
49
49
  klass.options.should == {
50
50
  :adapter => :net_http,
51
51
  :logger => nil,
52
- :protocol => :http,
52
+ :protocol => :https,
53
53
  :response_format => :ruby,
54
54
  :url => "api.seatgeek.com",
55
55
  :version => 2
@@ -71,7 +71,7 @@ describe SeatGeek::Connection do
71
71
 
72
72
  describe ".protocol" do
73
73
  subject { klass.protocol }
74
- let(:default) { :http }
74
+ let(:default) { :https }
75
75
 
76
76
  it { should == default }
77
77
  it "should be writable" do
@@ -181,7 +181,7 @@ describe SeatGeek::Connection do
181
181
  context "when response_format is set to ruby" do
182
182
  context "and the request was successful" do
183
183
  let(:status) { 200 }
184
- let(:body) { "{\"meta\":{\"per_page\":1,\"total\":63188,\"page\":1,\"took\":4,\"geolocation\":null},\"events\":[{\"stats\":{\"listing_count\":0,\"average_price\":0,\"lowest_price\":null,\"highest_price\":null},\"relative_url\":\"/palm-beach-cardinals-at-jupiter-hammerheads-tickets/minor-league-baseball/2012-05-14/798459/\",\"title\":\"Palm Beach Cardinals at Jupiter Hammerheads\",\"url\":\"http://seatgeek.com/palm-beach-cardinals-at-jupiter-hammerheads-tickets/minor-league-baseball/2012-05-14/798459/\",\"datetime_local\":\"2012-05-14T10:35:00\",\"performers\":[{\"away_team\":true,\"name\":\"Palm Beach Cardinals\",\"url\":\"http://seatgeek.com/palm-beach-cardinals-tickets/\",\"image\":null,\"short_name\":\"Palm Beach Cardinals\",\"slug\":\"palm-beach-cardinals\",\"score\":0,\"images\":[],\"type\":\"minor_league_baseball\",\"id\":9420},{\"home_team\":true,\"name\":\"Jupiter Hammerheads\",\"url\":\"http://seatgeek.com/jupiter-hammerheads-tickets/\",\"image\":null,\"short_name\":\"Jupiter Hammerheads\",\"primary\":true,\"slug\":\"jupiter-hammerheads\",\"score\":0,\"images\":[],\"type\":\"minor_league_baseball\",\"id\":9421}],\"venue\":{\"city\":\"Jupiter\",\"name\":\"Roger Dean Stadium\",\"url\":\"http://seatgeek.com/roger-dean-stadium-tickets/\",\"country\":\"US\",\"state\":\"FL\",\"score\":16592,\"postal_code\":\"33468\",\"location\":{\"lat\":26.8936,\"lon\":-80.1156},\"extended_address\":null,\"address\":\"4751 Main St\",\"id\":3927},\"short_title\":\"Palm Beach Cardinals at Jupiter Hammerheads\",\"datetime_utc\":\"2012-05-14T14:35:00\",\"score\":0,\"taxonomies\":[{\"parent_id\":null,\"id\":1000000,\"name\":\"sports\"},{\"parent_id\":1000000,\"id\":1010000,\"name\":\"baseball\"},{\"parent_id\":1010000,\"id\":1010300,\"name\":\"minor_league_baseball\"}],\"type\":\"minor_league_baseball\",\"id\":798459}]}" }
184
+ let(:body) { "{\"meta\":{\"per_page\":1,\"total\":63188,\"page\":1,\"took\":4,\"geolocation\":null},\"events\":[{\"stats\":{\"listing_count\":0,\"average_price\":0,\"lowest_price\":null,\"highest_price\":null},\"relative_url\":\"/palm-beach-cardinals-at-jupiter-hammerheads-tickets/minor-league-baseball/2012-05-14/798459/\",\"title\":\"Palm Beach Cardinals at Jupiter Hammerheads\",\"url\":\"https://seatgeek.com/palm-beach-cardinals-at-jupiter-hammerheads-tickets/minor-league-baseball/2012-05-14/798459/\",\"datetime_local\":\"2012-05-14T10:35:00\",\"performers\":[{\"away_team\":true,\"name\":\"Palm Beach Cardinals\",\"url\":\"https://seatgeek.com/palm-beach-cardinals-tickets/\",\"image\":null,\"short_name\":\"Palm Beach Cardinals\",\"slug\":\"palm-beach-cardinals\",\"score\":0,\"images\":[],\"type\":\"minor_league_baseball\",\"id\":9420},{\"home_team\":true,\"name\":\"Jupiter Hammerheads\",\"url\":\"https://seatgeek.com/jupiter-hammerheads-tickets/\",\"image\":null,\"short_name\":\"Jupiter Hammerheads\",\"primary\":true,\"slug\":\"jupiter-hammerheads\",\"score\":0,\"images\":[],\"type\":\"minor_league_baseball\",\"id\":9421}],\"venue\":{\"city\":\"Jupiter\",\"name\":\"Roger Dean Stadium\",\"url\":\"https://seatgeek.com/roger-dean-stadium-tickets/\",\"country\":\"US\",\"state\":\"FL\",\"score\":16592,\"postal_code\":\"33468\",\"location\":{\"lat\":26.8936,\"lon\":-80.1156},\"extended_address\":null,\"address\":\"4751 Main St\",\"id\":3927},\"short_title\":\"Palm Beach Cardinals at Jupiter Hammerheads\",\"datetime_utc\":\"2012-05-14T14:35:00\",\"score\":0,\"taxonomies\":[{\"parent_id\":null,\"id\":1000000,\"name\":\"sports\"},{\"parent_id\":1000000,\"id\":1010000,\"name\":\"baseball\"},{\"parent_id\":1010000,\"id\":1010300,\"name\":\"minor_league_baseball\"}],\"type\":\"minor_league_baseball\",\"id\":798459}]}" }
185
185
 
186
186
  it "should parse the json returned and respond with a ruby object" do
187
187
  instance.handle_response(response).should == MultiJson.decode(body)
@@ -200,7 +200,7 @@ describe SeatGeek::Connection do
200
200
 
201
201
  context "when response format is not set to ruby" do
202
202
  let(:status) { 200 }
203
- let(:body) { "{\"meta\":{\"per_page\":1,\"total\":63188,\"page\":1,\"took\":4,\"geolocation\":null},\"events\":[{\"stats\":{\"listing_count\":0,\"average_price\":0,\"lowest_price\":null,\"highest_price\":null},\"relative_url\":\"/palm-beach-cardinals-at-jupiter-hammerheads-tickets/minor-league-baseball/2012-05-14/798459/\",\"title\":\"Palm Beach Cardinals at Jupiter Hammerheads\",\"url\":\"http://seatgeek.com/palm-beach-cardinals-at-jupiter-hammerheads-tickets/minor-league-baseball/2012-05-14/798459/\",\"datetime_local\":\"2012-05-14T10:35:00\",\"performers\":[{\"away_team\":true,\"name\":\"Palm Beach Cardinals\",\"url\":\"http://seatgeek.com/palm-beach-cardinals-tickets/\",\"image\":null,\"short_name\":\"Palm Beach Cardinals\",\"slug\":\"palm-beach-cardinals\",\"score\":0,\"images\":[],\"type\":\"minor_league_baseball\",\"id\":9420},{\"home_team\":true,\"name\":\"Jupiter Hammerheads\",\"url\":\"http://seatgeek.com/jupiter-hammerheads-tickets/\",\"image\":null,\"short_name\":\"Jupiter Hammerheads\",\"primary\":true,\"slug\":\"jupiter-hammerheads\",\"score\":0,\"images\":[],\"type\":\"minor_league_baseball\",\"id\":9421}],\"venue\":{\"city\":\"Jupiter\",\"name\":\"Roger Dean Stadium\",\"url\":\"http://seatgeek.com/roger-dean-stadium-tickets/\",\"country\":\"US\",\"state\":\"FL\",\"score\":16592,\"postal_code\":\"33468\",\"location\":{\"lat\":26.8936,\"lon\":-80.1156},\"extended_address\":null,\"address\":\"4751 Main St\",\"id\":3927},\"short_title\":\"Palm Beach Cardinals at Jupiter Hammerheads\",\"datetime_utc\":\"2012-05-14T14:35:00\",\"score\":0,\"taxonomies\":[{\"parent_id\":null,\"id\":1000000,\"name\":\"sports\"},{\"parent_id\":1000000,\"id\":1010000,\"name\":\"baseball\"},{\"parent_id\":1010000,\"id\":1010300,\"name\":\"minor_league_baseball\"}],\"type\":\"minor_league_baseball\",\"id\":798459}]}" }
203
+ let(:body) { "{\"meta\":{\"per_page\":1,\"total\":63188,\"page\":1,\"took\":4,\"geolocation\":null},\"events\":[{\"stats\":{\"listing_count\":0,\"average_price\":0,\"lowest_price\":null,\"highest_price\":null},\"relative_url\":\"/palm-beach-cardinals-at-jupiter-hammerheads-tickets/minor-league-baseball/2012-05-14/798459/\",\"title\":\"Palm Beach Cardinals at Jupiter Hammerheads\",\"url\":\"https://seatgeek.com/palm-beach-cardinals-at-jupiter-hammerheads-tickets/minor-league-baseball/2012-05-14/798459/\",\"datetime_local\":\"2012-05-14T10:35:00\",\"performers\":[{\"away_team\":true,\"name\":\"Palm Beach Cardinals\",\"url\":\"https://seatgeek.com/palm-beach-cardinals-tickets/\",\"image\":null,\"short_name\":\"Palm Beach Cardinals\",\"slug\":\"palm-beach-cardinals\",\"score\":0,\"images\":[],\"type\":\"minor_league_baseball\",\"id\":9420},{\"home_team\":true,\"name\":\"Jupiter Hammerheads\",\"url\":\"https://seatgeek.com/jupiter-hammerheads-tickets/\",\"image\":null,\"short_name\":\"Jupiter Hammerheads\",\"primary\":true,\"slug\":\"jupiter-hammerheads\",\"score\":0,\"images\":[],\"type\":\"minor_league_baseball\",\"id\":9421}],\"venue\":{\"city\":\"Jupiter\",\"name\":\"Roger Dean Stadium\",\"url\":\"https://seatgeek.com/roger-dean-stadium-tickets/\",\"country\":\"US\",\"state\":\"FL\",\"score\":16592,\"postal_code\":\"33468\",\"location\":{\"lat\":26.8936,\"lon\":-80.1156},\"extended_address\":null,\"address\":\"4751 Main St\",\"id\":3927},\"short_title\":\"Palm Beach Cardinals at Jupiter Hammerheads\",\"datetime_utc\":\"2012-05-14T14:35:00\",\"score\":0,\"taxonomies\":[{\"parent_id\":null,\"id\":1000000,\"name\":\"sports\"},{\"parent_id\":1000000,\"id\":1010000,\"name\":\"baseball\"},{\"parent_id\":1010000,\"id\":1010300,\"name\":\"minor_league_baseball\"}],\"type\":\"minor_league_baseball\",\"id\":798459}]}" }
204
204
 
205
205
  it "should return the status code and exact result body" do
206
206
  klass.new(:response_format => :json).\
@@ -221,7 +221,7 @@ describe SeatGeek::Connection do
221
221
 
222
222
  describe "#request" do
223
223
  let(:uri_segment) { '/venues' }
224
- let(:url) { "http://api.seatgeek.com/2#{uri_segment}" }
224
+ let(:url) { "https://api.seatgeek.com/2#{uri_segment}" }
225
225
  let(:params) { {} }
226
226
  let(:faraday) { mock(:faraday, :get => OpenStruct.new({:status => 200, :body => "[]"})) }
227
227
 
@@ -268,7 +268,7 @@ describe SeatGeek::Connection do
268
268
 
269
269
  describe "#uri" do
270
270
  it "should take in a path and combine it with protocol, url and version" do
271
- instance.uri('/events').should == "http://api.seatgeek.com/2/events"
271
+ instance.uri('/events').should == "https://api.seatgeek.com/2/events"
272
272
  end
273
273
  end
274
274
 
metadata CHANGED
@@ -1,71 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seatgeek
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 0.1.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dan Matthews
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-05-15 00:00:00.000000000Z
11
+ date: 2016-03-19 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: faraday
16
- requirement: &70113496285860 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70113496285860
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: multi_json
27
- requirement: &70113496284680 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - ">="
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *70113496284680
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: rake
38
- requirement: &70113496283200 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - ">="
42
46
  - !ruby/object:Gem::Version
43
47
  version: '0'
44
48
  type: :runtime
45
49
  prerelease: false
46
- version_requirements: *70113496283200
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: yajl-ruby
49
- requirement: &70113496282160 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ! '>='
59
+ - - ">="
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  type: :runtime
56
63
  prerelease: false
57
- version_requirements: *70113496282160
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: rspec
60
- requirement: &70113496280220 !ruby/object:Gem::Requirement
61
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
62
72
  requirements:
63
- - - ! '>='
73
+ - - ">="
64
74
  - !ruby/object:Gem::Version
65
75
  version: '0'
66
76
  type: :development
67
77
  prerelease: false
68
- version_requirements: *70113496280220
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  description: This gem provides Ruby functionality around the SeatGeek Platform API
70
84
  (http://platform.seatgeek.com). It is designed to be framework agnostic and was
71
85
  originally developed for use in my day job at Ticket Evolution.
@@ -75,13 +89,14 @@ executables: []
75
89
  extensions: []
76
90
  extra_rdoc_files: []
77
91
  files:
78
- - .gitignore
79
- - .rdebugrc
80
- - .rspec
81
- - .travis.yml
92
+ - ".gitignore"
93
+ - ".rdebugrc"
94
+ - ".rspec"
95
+ - ".ruby-version"
96
+ - ".travis.yml"
82
97
  - Gemfile
83
98
  - Gemfile.lock
84
- - README.markdown
99
+ - README.md
85
100
  - Rakefile
86
101
  - lib/faraday/response/verbose_logger.rb
87
102
  - lib/seat_geek/connection.rb
@@ -94,33 +109,26 @@ files:
94
109
  - spec/spec_helper.rb
95
110
  homepage: http://platform.seatgeek.com
96
111
  licenses: []
112
+ metadata: {}
97
113
  post_install_message:
98
114
  rdoc_options: []
99
115
  require_paths:
100
116
  - lib
101
117
  required_ruby_version: !ruby/object:Gem::Requirement
102
- none: false
103
118
  requirements:
104
- - - ! '>='
119
+ - - ">="
105
120
  - !ruby/object:Gem::Version
106
121
  version: '0'
107
- segments:
108
- - 0
109
- hash: -355504323308768320
110
122
  required_rubygems_version: !ruby/object:Gem::Requirement
111
- none: false
112
123
  requirements:
113
- - - ! '>='
124
+ - - ">="
114
125
  - !ruby/object:Gem::Version
115
126
  version: '0'
116
- segments:
117
- - 0
118
- hash: -355504323308768320
119
127
  requirements: []
120
128
  rubyforge_project: seatgeek
121
- rubygems_version: 1.8.6
129
+ rubygems_version: 2.2.0
122
130
  signing_key:
123
- specification_version: 3
131
+ specification_version: 4
124
132
  summary: A Ruby wrapper for the SeatGeek Platform API.
125
133
  test_files:
126
134
  - spec/lib/seat_geek/connection_spec.rb