ticketevolution-ruby 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +24 -3
- data/lib/docs/installation.markdown +22 -1
- data/lib/docs/objects.markdown +1 -1
- data/lib/ticket_evolution.rb +2 -0
- data/lib/ticket_evolution/transaction.rb +4 -0
- data/lib/ticket_evolution/transactions.rb +6 -0
- data/lib/ticket_evolution/version.rb +1 -1
- data/spec/lib/ticket_evolution/transaction_spec.rb +7 -0
- data/spec/lib/ticket_evolution/transactions_spec.rb +14 -0
- metadata +28 -22
data/README.markdown
CHANGED
@@ -16,9 +16,30 @@ _WARNING: This gem is not ready for prime time. The transactions endpoint has no
|
|
16
16
|
|
17
17
|
Installation
|
18
18
|
============
|
19
|
-
|
19
|
+
|
20
|
+
Rails / Bundler
|
21
|
+
---------------
|
22
|
+
In your Gemfile, add the following line
|
23
|
+
|
20
24
|
gem 'ticketevolution-ruby', :require => 'ticket_evolution'
|
21
25
|
|
26
|
+
Ruby / IRB
|
27
|
+
----------
|
28
|
+
In bash / terminal
|
29
|
+
|
30
|
+
gem install ticketevolution-ruby
|
31
|
+
irb
|
32
|
+
|
33
|
+
Then
|
34
|
+
|
35
|
+
require 'rubygems'
|
36
|
+
require 'ticket_evolution'
|
37
|
+
@connection = TicketEvolution::Connection.new({
|
38
|
+
:token => '<YOUR TOKEN>',
|
39
|
+
:secret => '<YOUR SECRET>'
|
40
|
+
})
|
41
|
+
@connection.brokerages.list({:per_page => 1})
|
42
|
+
|
22
43
|
Objects
|
23
44
|
=======
|
24
45
|
There are four main object types:
|
@@ -38,7 +59,7 @@ Each set of API credentials can be combined with a mode and api version to creat
|
|
38
59
|
version at the time of this writing is 8
|
39
60
|
:logger => nil # => (optional) Object to use for logging requests and
|
40
61
|
# responses. Any object which responds to '<<'
|
41
|
-
# is valid.
|
62
|
+
# is valid. EX: Logger.new('log/te_api.log')
|
42
63
|
})
|
43
64
|
|
44
65
|
**Endpoint objects**
|
@@ -235,7 +256,7 @@ Click on the links next to each endpoint for more detail.
|
|
235
256
|
@venue = @connection.venues.show(id)
|
236
257
|
|
237
258
|
|
238
|
-
######ticketevolution-ruby v0.5.
|
259
|
+
######ticketevolution-ruby v0.5.8
|
239
260
|
|
240
261
|
License
|
241
262
|
-------
|
@@ -1,5 +1,26 @@
|
|
1
1
|
Installation
|
2
2
|
============
|
3
|
-
|
3
|
+
|
4
|
+
Rails / Bundler
|
5
|
+
---------------
|
6
|
+
In your Gemfile, add the following line
|
7
|
+
|
4
8
|
gem 'ticketevolution-ruby', :require => 'ticket_evolution'
|
5
9
|
|
10
|
+
Ruby / IRB
|
11
|
+
----------
|
12
|
+
In bash / terminal
|
13
|
+
|
14
|
+
gem install ticketevolution-ruby
|
15
|
+
irb
|
16
|
+
|
17
|
+
Then
|
18
|
+
|
19
|
+
require 'rubygems'
|
20
|
+
require 'ticket_evolution'
|
21
|
+
@connection = TicketEvolution::Connection.new({
|
22
|
+
:token => '<YOUR TOKEN>',
|
23
|
+
:secret => '<YOUR SECRET>'
|
24
|
+
})
|
25
|
+
@connection.brokerages.list({:per_page => 1})
|
26
|
+
|
data/lib/docs/objects.markdown
CHANGED
@@ -17,7 +17,7 @@ Each set of API credentials can be combined with a mode and api version to creat
|
|
17
17
|
version at the time of this writing is 8
|
18
18
|
:logger => nil # => (optional) Object to use for logging requests and
|
19
19
|
# responses. Any object which responds to '<<'
|
20
|
-
# is valid.
|
20
|
+
# is valid. EX: Logger.new('log/te_api.log')
|
21
21
|
})
|
22
22
|
|
23
23
|
**Endpoint objects**
|
data/lib/ticket_evolution.rb
CHANGED
@@ -93,6 +93,7 @@ i.req 'phone_number'
|
|
93
93
|
i.req 'quote'
|
94
94
|
i.req 'shipment'
|
95
95
|
i.req 'ticket_group'
|
96
|
+
i.req 'transaction'
|
96
97
|
i.req 'user'
|
97
98
|
i.req 'venue'
|
98
99
|
|
@@ -109,6 +110,7 @@ i.req 'performers'
|
|
109
110
|
i.req 'quotes'
|
110
111
|
i.req 'shipments'
|
111
112
|
i.req 'ticket_groups'
|
113
|
+
i.req 'transactions'
|
112
114
|
i.req 'users'
|
113
115
|
i.req 'venues'
|
114
116
|
i.req 'search'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe TicketEvolution::Transactions do
|
4
|
+
let(:klass) { TicketEvolution::Transactions }
|
5
|
+
let(:single_klass) { TicketEvolution::Transaction }
|
6
|
+
|
7
|
+
it_behaves_like 'a ticket_evolution endpoint class'
|
8
|
+
it_behaves_like 'a list endpoint'
|
9
|
+
it_behaves_like 'a show endpoint'
|
10
|
+
|
11
|
+
it "should have a base path of /transactions" do
|
12
|
+
klass.new({:parent => Fake.connection}).base_path.should == '/transactions'
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ticketevolution-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-13 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
|
-
requirement: &
|
16
|
+
requirement: &70224154619080 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70224154619080
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: curb
|
27
|
-
requirement: &
|
27
|
+
requirement: &70224154618280 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.7.8
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70224154618280
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: yajl-ruby
|
38
|
-
requirement: &
|
38
|
+
requirement: &70224154615240 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.7.7
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70224154615240
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: multi_json
|
49
|
-
requirement: &
|
49
|
+
requirement: &70224154614360 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.0.4
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70224154614360
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: nokogiri
|
60
|
-
requirement: &
|
60
|
+
requirement: &70224154613660 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.4.3
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70224154613660
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
|
-
requirement: &
|
71
|
+
requirement: &70224154612860 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 2.7.1
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70224154612860
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: vcr
|
82
|
-
requirement: &
|
82
|
+
requirement: &70224154612240 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70224154612240
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: webmock
|
93
|
-
requirement: &
|
93
|
+
requirement: &70224154611520 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70224154611520
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: awesome_print
|
104
|
-
requirement: &
|
104
|
+
requirement: &70224154610900 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70224154610900
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: rake
|
115
|
-
requirement: &
|
115
|
+
requirement: &70224154610320 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,7 +120,7 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70224154610320
|
124
124
|
description: Provides Ruby wrappers for the Ticket Evolution API (http://developer.ticketevolution.com).
|
125
125
|
Ticket Evolution is the industry leader in software for the Ticket Broker industry.
|
126
126
|
email:
|
@@ -201,6 +201,8 @@ files:
|
|
201
201
|
- lib/ticket_evolution/shipments.rb
|
202
202
|
- lib/ticket_evolution/ticket_group.rb
|
203
203
|
- lib/ticket_evolution/ticket_groups.rb
|
204
|
+
- lib/ticket_evolution/transaction.rb
|
205
|
+
- lib/ticket_evolution/transactions.rb
|
204
206
|
- lib/ticket_evolution/user.rb
|
205
207
|
- lib/ticket_evolution/users.rb
|
206
208
|
- lib/ticket_evolution/venue.rb
|
@@ -259,6 +261,8 @@ files:
|
|
259
261
|
- spec/lib/ticket_evolution/shipments_spec.rb
|
260
262
|
- spec/lib/ticket_evolution/ticket_group_spec.rb
|
261
263
|
- spec/lib/ticket_evolution/ticket_groups_spec.rb
|
264
|
+
- spec/lib/ticket_evolution/transaction_spec.rb
|
265
|
+
- spec/lib/ticket_evolution/transactions_spec.rb
|
262
266
|
- spec/lib/ticket_evolution/user_spec.rb
|
263
267
|
- spec/lib/ticket_evolution/users_spec.rb
|
264
268
|
- spec/lib/ticket_evolution/venue_spec.rb
|
@@ -291,7 +295,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
291
295
|
version: '0'
|
292
296
|
segments:
|
293
297
|
- 0
|
294
|
-
hash:
|
298
|
+
hash: 2698867447723096430
|
295
299
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
296
300
|
none: false
|
297
301
|
requirements:
|
@@ -358,6 +362,8 @@ test_files:
|
|
358
362
|
- spec/lib/ticket_evolution/shipments_spec.rb
|
359
363
|
- spec/lib/ticket_evolution/ticket_group_spec.rb
|
360
364
|
- spec/lib/ticket_evolution/ticket_groups_spec.rb
|
365
|
+
- spec/lib/ticket_evolution/transaction_spec.rb
|
366
|
+
- spec/lib/ticket_evolution/transactions_spec.rb
|
361
367
|
- spec/lib/ticket_evolution/user_spec.rb
|
362
368
|
- spec/lib/ticket_evolution/users_spec.rb
|
363
369
|
- spec/lib/ticket_evolution/venue_spec.rb
|