seatgeek 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seatgeek (0.1.0)
4
+ seatgeek (0.1.1)
5
5
  faraday
6
6
  multi_json
7
7
  rake
@@ -73,7 +73,7 @@ module SeatGeek
73
73
  def request(url, params)
74
74
  handle_response(Faraday.new(*builder(url, params.clone)) do |build|
75
75
  build.adapter adapter
76
- build.use Faraday::Response::VerboseLogger, logger if logger.present?
76
+ build.use Faraday::Response::VerboseLogger, logger unless logger.nil?
77
77
  end.get)
78
78
  end
79
79
 
@@ -1,3 +1,3 @@
1
1
  module SeatGeek
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/seatgeek.rb CHANGED
@@ -8,6 +8,11 @@ module SeatGeek
8
8
  end
9
9
 
10
10
  require 'seat_geek/connection'
11
+
12
+ unless Kernel.const_defined?(:SG)
13
+ class SG < SeatGeek::Connection; end
14
+ end
15
+
11
16
  require 'seat_geek/version'
12
17
 
13
18
  require 'faraday/response/verbose_logger'
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe SG do
4
+ it "should be a subclass of SeatGeek::Connection" do
5
+ SG.ancestors.should include SeatGeek::Connection
6
+ end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seatgeek
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-15 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
16
- requirement: &70300193146140 !ruby/object:Gem::Requirement
16
+ requirement: &70345881699200 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70300193146140
24
+ version_requirements: *70345881699200
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: multi_json
27
- requirement: &70300193145080 !ruby/object:Gem::Requirement
27
+ requirement: &70345881697820 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70300193145080
35
+ version_requirements: *70345881697820
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70300193143640 !ruby/object:Gem::Requirement
38
+ requirement: &70345881696440 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70300193143640
46
+ version_requirements: *70345881696440
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: yajl-ruby
49
- requirement: &70300193142460 !ruby/object:Gem::Requirement
49
+ requirement: &70345881695420 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70300193142460
57
+ version_requirements: *70345881695420
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec
60
- requirement: &70300193141520 !ruby/object:Gem::Requirement
60
+ requirement: &70345881693420 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70300193141520
68
+ version_requirements: *70345881693420
69
69
  description: This gem provides Ruby functionality around the SeatGeek Platform API
70
70
  (http://platform.seatgeek.com). It is designed to be framework agnostic and was
71
71
  originally developed for use in my day job at Ticket Evolution.
@@ -90,6 +90,7 @@ files:
90
90
  - seatgeek.gemspec
91
91
  - spec/lib/seat_geek/connection_spec.rb
92
92
  - spec/lib/seat_geek/version_spec.rb
93
+ - spec/lib/sg_spec.rb
93
94
  - spec/spec_helper.rb
94
95
  homepage: http://platform.seatgeek.com
95
96
  licenses: []
@@ -105,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
105
106
  version: '0'
106
107
  segments:
107
108
  - 0
108
- hash: -569337518630215415
109
+ hash: 2766271802599134346
109
110
  required_rubygems_version: !ruby/object:Gem::Requirement
110
111
  none: false
111
112
  requirements:
@@ -114,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
115
  version: '0'
115
116
  segments:
116
117
  - 0
117
- hash: -569337518630215415
118
+ hash: 2766271802599134346
118
119
  requirements: []
119
120
  rubyforge_project: seatgeek
120
121
  rubygems_version: 1.8.6
@@ -124,4 +125,5 @@ summary: A Ruby wrapper for the SeatGeek Platform API.
124
125
  test_files:
125
126
  - spec/lib/seat_geek/connection_spec.rb
126
127
  - spec/lib/seat_geek/version_spec.rb
128
+ - spec/lib/sg_spec.rb
127
129
  - spec/spec_helper.rb