ticketevolution-ruby 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.minimum.versions.gemfile +9 -0
- data/.travis.yml +3 -11
- data/README.markdown +10 -7
- data/Rakefile +4 -1
- data/lib/docs/endpoints.markdown +4 -6
- data/lib/docs/license.markdown +4 -0
- data/lib/ticket_evolution/core/connection.rb +1 -1
- data/lib/ticket_evolution/version.rb +1 -1
- data/spec/lib/ticket_evolution/core/connection_spec.rb +6 -0
- metadata +25 -23
data/.travis.yml
CHANGED
@@ -4,14 +4,6 @@ rvm:
|
|
4
4
|
- ree
|
5
5
|
- 1.8.7
|
6
6
|
- 1.9.2
|
7
|
-
|
8
|
-
-
|
9
|
-
-
|
10
|
-
- 'curb=0.7.8'
|
11
|
-
- 'curb=master'
|
12
|
-
- 'yajl-ruby=0.7.7'
|
13
|
-
- 'yajl-ruby=master'
|
14
|
-
- 'multi_json=0.0.4'
|
15
|
-
- 'multi_json=master'
|
16
|
-
- 'nokogiri=1.4.3'
|
17
|
-
- 'nokogiri=master'
|
7
|
+
gemfile:
|
8
|
+
- Gemfile
|
9
|
+
- .minimum.versions.gemfile
|
data/README.markdown
CHANGED
@@ -74,21 +74,20 @@ Alias methods
|
|
74
74
|
-------------
|
75
75
|
To more directly match ActiveRecord style, the following aliases exist and can be called on endpoints which include thier equivalent method:
|
76
76
|
|
77
|
-
|
77
|
+
**#find aliases #show**
|
78
78
|
|
79
79
|
@connection.brokerages.find(1)
|
80
80
|
# is the same as calling
|
81
81
|
@connection.brokerages.show(1)
|
82
82
|
|
83
|
-
|
84
|
-
_A call to #update_attributes will update the attributes on the instance as well as calling #update on the endpoint._
|
83
|
+
**#update_attributes indirectly aliases #update** - A call to #update_attributes will update the attributes on the instance as well as calling #update on the endpoint.
|
85
84
|
|
86
85
|
@brokerage = @connection.brokerages.find(1)
|
87
86
|
@brokerage.update_attributes(params)
|
88
87
|
# is an easy way to call
|
89
88
|
TicketEvolution::Brokerages.new({:connection => @connection, :id => 1}).update(params)
|
90
89
|
|
91
|
-
|
90
|
+
**#save indirectly aliases #update**
|
92
91
|
|
93
92
|
@brokerage = @connection.brokerages.find(1)
|
94
93
|
@brokerage.attributes = params
|
@@ -96,8 +95,7 @@ _A call to #update_attributes will update the attributes on the instance as well
|
|
96
95
|
# is an easy way to call
|
97
96
|
TicketEvolution::Brokerages.new({:connection => @connection, :id => 1}).update(params)
|
98
97
|
|
99
|
-
|
100
|
-
_If you use this, be aware that the list endpoints max out at 100 results, so #all defaultly has the following defined parameter - :limit => 100_
|
98
|
+
**#all aliases #list** - If you use this, be aware that #list maxes out at 100 results, so #all defaultly has the following defined parameter - :limit => 100
|
101
99
|
|
102
100
|
@connection.brokerages.all
|
103
101
|
# is the same as calling
|
@@ -234,4 +232,9 @@ Click on the links next to each endpoint for more detail.
|
|
234
232
|
@venue = @connection.venues.show(id)
|
235
233
|
|
236
234
|
|
237
|
-
######ticketevolution-ruby v0.5.
|
235
|
+
######ticketevolution-ruby v0.5.2
|
236
|
+
|
237
|
+
License
|
238
|
+
-------
|
239
|
+
|
240
|
+
See LICENSE file for licensing information.
|
data/Rakefile
CHANGED
@@ -45,7 +45,10 @@ namespace :documentation do
|
|
45
45
|
end
|
46
46
|
contents << "
|
47
47
|
|
48
|
-
######ticketevolution-ruby v#{TicketEvolution::VERSION}
|
48
|
+
######ticketevolution-ruby v#{TicketEvolution::VERSION}
|
49
|
+
|
50
|
+
"
|
51
|
+
contents << load_doc('license')
|
49
52
|
contents.rewind
|
50
53
|
File.open(TicketEvolution.root + '../../README.markdown', 'w+') do |f|
|
51
54
|
f.write contents.read
|
data/lib/docs/endpoints.markdown
CHANGED
@@ -13,21 +13,20 @@ Alias methods
|
|
13
13
|
-------------
|
14
14
|
To more directly match ActiveRecord style, the following aliases exist and can be called on endpoints which include thier equivalent method:
|
15
15
|
|
16
|
-
|
16
|
+
**#find aliases #show**
|
17
17
|
|
18
18
|
@connection.brokerages.find(1)
|
19
19
|
# is the same as calling
|
20
20
|
@connection.brokerages.show(1)
|
21
21
|
|
22
|
-
|
23
|
-
_A call to #update_attributes will update the attributes on the instance as well as calling #update on the endpoint._
|
22
|
+
**#update_attributes indirectly aliases #update** - A call to #update_attributes will update the attributes on the instance as well as calling #update on the endpoint.
|
24
23
|
|
25
24
|
@brokerage = @connection.brokerages.find(1)
|
26
25
|
@brokerage.update_attributes(params)
|
27
26
|
# is an easy way to call
|
28
27
|
TicketEvolution::Brokerages.new({:connection => @connection, :id => 1}).update(params)
|
29
28
|
|
30
|
-
|
29
|
+
**#save indirectly aliases #update**
|
31
30
|
|
32
31
|
@brokerage = @connection.brokerages.find(1)
|
33
32
|
@brokerage.attributes = params
|
@@ -35,8 +34,7 @@ _A call to #update_attributes will update the attributes on the instance as well
|
|
35
34
|
# is an easy way to call
|
36
35
|
TicketEvolution::Brokerages.new({:connection => @connection, :id => 1}).update(params)
|
37
36
|
|
38
|
-
|
39
|
-
_If you use this, be aware that the list endpoints max out at 100 results, so #all defaultly has the following defined parameter - :limit => 100_
|
37
|
+
**#all aliases #list** - If you use this, be aware that #list maxes out at 100 results, so #all defaultly has the following defined parameter - :limit => 100
|
40
38
|
|
41
39
|
@connection.brokerages.all
|
42
40
|
# is the same as calling
|
@@ -40,7 +40,7 @@ module TicketEvolution
|
|
40
40
|
@url ||= [].tap do |parts|
|
41
41
|
parts << TicketEvolution::Connection.protocol
|
42
42
|
parts << "://api."
|
43
|
-
parts << "#{@config[:mode]}."
|
43
|
+
parts << "#{@config[:mode]}." if @config[:mode].present? && @config[:mode].to_sym != :production
|
44
44
|
parts << TicketEvolution::Connection.url_base
|
45
45
|
end.join
|
46
46
|
end
|
@@ -122,6 +122,12 @@ describe TicketEvolution::Connection do
|
|
122
122
|
end
|
123
123
|
|
124
124
|
describe "#url" do
|
125
|
+
context "mode is blank" do
|
126
|
+
subject { klass.new(valid_options.merge({:mode => nil}))}
|
127
|
+
|
128
|
+
its(:url) { should == "https://api.ticketevolution.com" }
|
129
|
+
end
|
130
|
+
|
125
131
|
context "production" do
|
126
132
|
subject { klass.new(valid_options.merge({:mode => :production}))}
|
127
133
|
|
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.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
12
|
+
date: 2012-02-07 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
|
-
requirement: &
|
16
|
+
requirement: &70364391173660 !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: *70364391173660
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: curb
|
27
|
-
requirement: &
|
27
|
+
requirement: &70364391172940 !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: *70364391172940
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: yajl-ruby
|
38
|
-
requirement: &
|
38
|
+
requirement: &70364391169880 !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: *70364391169880
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: multi_json
|
49
|
-
requirement: &
|
49
|
+
requirement: &70364391169120 !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: *70364391169120
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: nokogiri
|
60
|
-
requirement: &
|
60
|
+
requirement: &70364391168300 !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: *70364391168300
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
|
-
requirement: &
|
71
|
+
requirement: &70364391167500 !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: *70364391167500
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: vcr
|
82
|
-
requirement: &
|
82
|
+
requirement: &70364391166920 !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: *70364391166920
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: webmock
|
93
|
-
requirement: &
|
93
|
+
requirement: &70364391166220 !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: *70364391166220
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: awesome_print
|
104
|
-
requirement: &
|
104
|
+
requirement: &70364391165560 !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: *70364391165560
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: rake
|
115
|
-
requirement: &
|
115
|
+
requirement: &70364391165000 !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: *70364391165000
|
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:
|
@@ -130,6 +130,7 @@ extensions: []
|
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
132
|
- .gitignore
|
133
|
+
- .minimum.versions.gemfile
|
133
134
|
- .rdebugrc
|
134
135
|
- .rspec
|
135
136
|
- .travis.yml
|
@@ -141,6 +142,7 @@ files:
|
|
141
142
|
- lib/docs/endpoints.markdown
|
142
143
|
- lib/docs/installation.markdown
|
143
144
|
- lib/docs/introduction.markdown
|
145
|
+
- lib/docs/license.markdown
|
144
146
|
- lib/docs/objects.markdown
|
145
147
|
- lib/ticket_evolution.rb
|
146
148
|
- lib/ticket_evolution/account.rb
|
@@ -288,7 +290,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
288
290
|
version: '0'
|
289
291
|
segments:
|
290
292
|
- 0
|
291
|
-
hash: -
|
293
|
+
hash: -2517017158810192931
|
292
294
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
293
295
|
none: false
|
294
296
|
requirements:
|