ticketmaster-teambox 0.1.3 → 0.1.4

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.
@@ -11,37 +11,38 @@ GEM
11
11
  activesupport (3.0.9)
12
12
  addressable (2.2.6)
13
13
  builder (2.1.2)
14
- faraday (0.6.1)
15
- addressable (~> 2.2.4)
14
+ faraday (0.7.4)
15
+ addressable (~> 2.2.6)
16
16
  multipart-post (~> 1.1.0)
17
- rack (< 2, >= 1.1.0)
17
+ rack (>= 1.1.0, < 2)
18
18
  git (1.2.5)
19
19
  hashie (1.0.0)
20
20
  i18n (0.5.0)
21
- jeweler (1.5.1)
21
+ jeweler (1.5.2)
22
22
  bundler (~> 1.0.0)
23
23
  git (>= 1.2.5)
24
24
  rake
25
25
  multi_json (1.0.3)
26
- multipart-post (1.1.1)
27
- oauth2 (0.4.1)
28
- faraday (~> 0.6.1)
29
- multi_json (>= 0.0.5)
30
- rack (1.3.0)
31
- rake (0.8.7)
32
- rcov (0.9.9)
26
+ multipart-post (1.1.3)
27
+ oauth2 (0.5.0)
28
+ faraday (>= 0.6.1, < 0.8)
29
+ multi_json (~> 1.0.0)
30
+ rack (1.3.2)
31
+ rake (0.9.2)
32
+ rcov (0.9.10)
33
33
  rspec (1.2.9)
34
34
  ticketmaster (0.6.6)
35
35
  activeresource
36
36
  activeresource (>= 2.3.2)
37
- activesupport (>= 2.3.2)
38
37
  activesupport
39
- hashie
38
+ activesupport (>= 2.3.2)
40
39
  hashie (= 1.0.0)
40
+ hashie
41
41
  jeweler
42
42
 
43
43
  PLATFORMS
44
44
  ruby
45
+ x86-mingw32
45
46
 
46
47
  DEPENDENCIES
47
48
  bundler (~> 1.0.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -30,24 +30,13 @@ module TeamboxAPI
30
30
  @auth_url = '/oauth/token'
31
31
  consumer = OAuth2::Client.new(master.client_id,
32
32
  master.client_secret,
33
- {:site =>
34
- {:url => master.site,
35
- :ssl => {:verify => OpenSSL::SSL::VERIFY_NONE,
36
- :ca_file => nil
37
- }
38
- },
39
- :authorize_url => @auth_url,
40
- :parse_json => true})
41
-
42
- response = consumer.request(:post, @auth_url, {:grant_type => 'password',
43
- :client_id => master.client_id,
44
- :client_secret => master.client_secret,
45
- :username => master.username,
46
- :password => master.password,
47
- :scope => 'read_projects write_projects'})
48
-
49
- OAuth2::AccessToken.new(consumer, response['access_token']).token
50
-
33
+ {:site => master.site})
34
+
35
+ begin
36
+ consumer.password.get_token(master.username, master.password, {:scope => 'read_projects write_projects'}).token
37
+ rescue
38
+ warn "There was an error trying to retrieve OAuth token from teambox"
39
+ end
51
40
  end
52
41
 
53
42
  def token=(value)
@@ -56,7 +45,7 @@ module TeamboxAPI
56
45
  end
57
46
  @token = value
58
47
  end
59
-
48
+
60
49
  def resources
61
50
  @resources ||= []
62
51
  end
@@ -99,13 +88,13 @@ module TeamboxAPI
99
88
  class Project < Base
100
89
 
101
90
  def self.collection_path(organization_path, prefix_options = {}, query_options = nil)
102
- prefix_options, query_options = split_options(prefix_options) if query_options.nil?
103
- "#{prefix(prefix_options)}#{organization_path}#{collection_name}.#{format.extension}#{query_string(query_options)}"
91
+ prefix_options, query_options = split_options(prefix_options) if query_options.nil?
92
+ "#{prefix(prefix_options)}#{organization_path}#{collection_name}.#{format.extension}#{query_string(query_options)}"
104
93
  end
105
-
94
+
106
95
  def collection_path(options = nil)
107
- organization_path = "organizations/#{attributes[:organization_id].to_s}/"
108
- self.class.collection_path(organization_path, options || prefix_options)
96
+ organization_path = "organizations/#{attributes[:organization_id].to_s}/"
97
+ self.class.collection_path(organization_path, options || prefix_options)
109
98
  end
110
99
 
111
100
  def self.instantiate_collection(collection, prefix_options = {})
@@ -130,9 +119,9 @@ module TeamboxAPI
130
119
  end
131
120
 
132
121
  def update
133
- connection.put(element_path(prefix_options) + '?' + encode, nil, self.class.headers).tap do |response|
134
- load_attributes_from_response(response)
135
- end
122
+ connection.put(element_path(prefix_options) + '?' + encode, nil, self.class.headers).tap do |response|
123
+ load_attributes_from_response(response)
124
+ end
136
125
  end
137
126
 
138
127
  def create
@@ -146,27 +135,27 @@ module TeamboxAPI
146
135
  attributes[:organization_id]
147
136
  end
148
137
 
149
-
138
+
150
139
  def self.find_every(options)
151
- #add :count => 0 in order to retrieve objects with no limits. Default is 20 objects per request.
152
- options.merge!(:params => {:count => 0})
153
- begin
154
- case from = options[:from]
155
- when Symbol
156
- self.instantiate_collection(get(from, options[:params]))
157
- when String
158
- path = "#{from}#{query_string(options[:params])}"
159
- self.instantiate_collection(connection.get(path, headers) || [])
160
- else
161
- prefix_options, query_options = split_options(options[:params])
162
- path = self.collection_path(nil, prefix_options, query_options)
163
- self.instantiate_collection( (connection.get(path, headers) || []), prefix_options )
164
- end
165
- rescue ActiveResource::ResourceNotFound
166
- # Swallowing ResourceNotFound exceptions and return nil - as per
167
- # ActiveRecord.
168
- nil
169
- end
140
+ #add :count => 0 in order to retrieve objects with no limits. Default is 20 objects per request.
141
+ options.merge!(:params => {:count => 0})
142
+ begin
143
+ case from = options[:from]
144
+ when Symbol
145
+ self.instantiate_collection(get(from, options[:params]))
146
+ when String
147
+ path = "#{from}#{query_string(options[:params])}"
148
+ self.instantiate_collection(connection.get(path, headers) || [])
149
+ else
150
+ prefix_options, query_options = split_options(options[:params])
151
+ path = self.collection_path(nil, prefix_options, query_options)
152
+ self.instantiate_collection( (connection.get(path, headers) || []), prefix_options )
153
+ end
154
+ rescue ActiveResource::ResourceNotFound
155
+ # Swallowing ResourceNotFound exceptions and return nil - as per
156
+ # ActiveRecord.
157
+ nil
158
+ end
170
159
  end
171
160
 
172
161
 
@@ -187,18 +176,18 @@ module TeamboxAPI
187
176
  self.site += 'projects/:project_id/'
188
177
 
189
178
  def self.collection_path(task_list_path, prefix_options = {}, query_options = nil)
190
- prefix_options, query_options = split_options(prefix_options) if query_options.nil?
191
- "#{prefix(prefix_options)}#{task_list_path}#{collection_name}.#{format.extension}#{query_string(query_options)}"
179
+ prefix_options, query_options = split_options(prefix_options) if query_options.nil?
180
+ "#{prefix(prefix_options)}#{task_list_path}#{collection_name}.#{format.extension}#{query_string(query_options)}"
192
181
  end
193
182
 
194
183
  def collection_path(options = nil)
195
- task_list_path = "task_lists/#{attributes[:task_list_id]}/"
196
- self.class.collection_path(task_list_path, options || prefix_options)
184
+ task_list_path = "task_lists/#{attributes[:task_list_id]}/"
185
+ self.class.collection_path(task_list_path, options || prefix_options)
197
186
  end
198
187
 
199
188
  def self.instantiate_collection(collection, prefix_options = {})
200
- objects = collection["objects"]
201
- objects.collect! { |record| instantiate_record(record, prefix_options) }
189
+ objects = collection["objects"]
190
+ objects.collect! { |record| instantiate_record(record, prefix_options) }
202
191
  end
203
192
 
204
193
  def encode(options={})
@@ -210,11 +199,11 @@ module TeamboxAPI
210
199
  end
211
200
 
212
201
  def update
213
- connection.put(element_path(prefix_options) + '?' + encode, nil, self.class.headers).tap do |response|
214
- load_attributes_from_response(response)
215
- end
202
+ connection.put(element_path(prefix_options) + '?' + encode, nil, self.class.headers).tap do |response|
203
+ load_attributes_from_response(response)
204
+ end
216
205
  end
217
-
206
+
218
207
  def create
219
208
  connection.post(collection_path + '?' + encode, nil, self.class.headers).tap do |response|
220
209
  self.id = id_from_response(response)
@@ -223,25 +212,25 @@ module TeamboxAPI
223
212
  end
224
213
 
225
214
  def self.find_every(options)
226
- #add :count => 0 in order to retrieve objects with no limits. Default is 20 objects per request.
227
- options[:params].merge!(:count => 0)
228
- begin
229
- case from = options[:from]
230
- when Symbol
231
- self.instantiate_collection(get(from, options[:params]))
232
- when String
233
- path = "#{from}#{query_string(options[:params])}"
234
- self.instantiate_collection(connection.get(path, headers) || [])
235
- else
236
- prefix_options, query_options = split_options(options[:params])
237
- path = self.collection_path(nil, prefix_options, query_options)
238
- self.instantiate_collection( (connection.get(path, headers) || []), prefix_options )
239
- end
240
- rescue ActiveResource::ResourceNotFound
241
- # Swallowing ResourceNotFound exceptions and return nil - as per
242
- # ActiveRecord.
243
- nil
244
- end
215
+ #add :count => 0 in order to retrieve objects with no limits. Default is 20 objects per request.
216
+ options[:params].merge!(:count => 0)
217
+ begin
218
+ case from = options[:from]
219
+ when Symbol
220
+ self.instantiate_collection(get(from, options[:params]))
221
+ when String
222
+ path = "#{from}#{query_string(options[:params])}"
223
+ self.instantiate_collection(connection.get(path, headers) || [])
224
+ else
225
+ prefix_options, query_options = split_options(options[:params])
226
+ path = self.collection_path(nil, prefix_options, query_options)
227
+ self.instantiate_collection( (connection.get(path, headers) || []), prefix_options )
228
+ end
229
+ rescue ActiveResource::ResourceNotFound
230
+ # Swallowing ResourceNotFound exceptions and return nil - as per
231
+ # ActiveRecord.
232
+ nil
233
+ end
245
234
  end
246
235
 
247
236
  end
@@ -250,8 +239,8 @@ module TeamboxAPI
250
239
  self.site += 'projects/:project_id/tasks/:task_id/'
251
240
 
252
241
  def self.instantiate_collection(collection, prefix_options = {})
253
- objects = collection["objects"]
254
- objects.collect! { |record| instantiate_record(record, prefix_options) }
242
+ objects = collection["objects"]
243
+ objects.collect! { |record| instantiate_record(record, prefix_options) }
255
244
  end
256
245
 
257
246
  def create
@@ -1,51 +1,51 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
3
  describe "Ticketmaster::Provider::Teambox::Comment" do
4
- before(:all) do
5
- headers_get = {'Authorization' => 'OAuth 01234567890abcdef', 'Accept' => 'application/json'}
6
- headers = {'Authorization' => 'OAuth 01234567890abcdef', 'Content-Type' => 'application/json'}
7
- ActiveResource::HttpMock.respond_to do |mock|
8
- mock.get '/api/1/projects/23216.json', headers_get, fixture_for('projects/23216'), 200
9
- mock.get '/api/1/projects/23216/tasks.json?count=0', headers_get, fixture_for('tasks'), 200
10
- mock.get '/api/1/projects/23216/tasks/85915.json', headers_get, fixture_for('tasks/85915'), 200
11
- mock.get '/api/1/projects/23216/tasks/85915/comments.json?count=0', headers_get, fixture_for('comments'), 200
12
- mock.post '/api/1/projects/23216/tasks/85915/comments.json?body=New%20comment%20created.', headers, fixture_for('comments/create'), 200
13
- end
14
- @project_id = 23216
15
- @task_id = 85915
4
+ before(:each) do
5
+ headers_get = {'Authorization' => 'OAuth ', 'Accept' => 'application/json'}
6
+ headers = {'Authorization' => 'OAuth ', 'Content-Type' => 'application/json'}
7
+ ActiveResource::HttpMock.respond_to do |mock|
8
+ mock.get '/api/1/projects/23216.json', headers_get, fixture_for('projects/23216'), 200
9
+ mock.get '/api/1/projects/23216/tasks.json?count=0', headers_get, fixture_for('tasks'), 200
10
+ mock.get '/api/1/projects/23216/tasks/85915.json', headers_get, fixture_for('tasks/85915'), 200
11
+ mock.get '/api/1/projects/23216/tasks/85915/comments.json?count=0', headers_get, fixture_for('comments'), 200
12
+ mock.post '/api/1/projects/23216/tasks/85915/comments.json?body=New%20comment%20created.', headers, fixture_for('comments/create'), 200
13
+ end
14
+ @project_id = 23216
15
+ @task_id = 85915
16
16
 
17
- stubs = Faraday::Adapter::Test::Stubs.new do |stub|
18
- ACCESS_TOKEN = { "access_token" => "01234567890abcdef", "username" => "anymoto" }
19
- stub.post('/oauth/token') { [200, {}, ACCESS_TOKEN.to_json] }
20
- end
17
+ stubs = Faraday::Adapter::Test::Stubs.new do |stub|
18
+ ACCESS_TOKEN = { "access_token" => "01234567890abcdef", "username" => "anymoto" }
19
+ stub.post('/oauth/token') { [200, {}, ACCESS_TOKEN.to_json] }
20
+ end
21
21
 
22
- new_method = Faraday::Connection.method(:new)
23
- Faraday::Connection.stub(:new) do |*args|
24
- connection = new_method.call(*args) do |builder|
25
- builder.adapter :test, stubs
26
- end
22
+ new_method = Faraday::Connection.method(:new)
23
+ Faraday::Connection.stub(:new) do |*args|
24
+ connection = new_method.call(*args) do |builder|
25
+ builder.adapter :test, stubs
27
26
  end
27
+ end
28
28
 
29
- @ticketmaster = TicketMaster.new(:teambox, {:username => "anymoto",
30
- :password => "000000",
31
- :client_id => 'abcdef000000',
32
- :client_secret => 'ghijk11111'})
33
- @klass = TicketMaster::Provider::Teambox::Comment
34
- @project = @ticketmaster.project(@project_id)
35
- @ticket = @project.ticket(@task_id)
36
- @ticket.project_id = @project.id
29
+ @ticketmaster = TicketMaster.new(:teambox, {:username => "anymoto",
30
+ :password => "000000",
31
+ :client_id => 'abcdef000000',
32
+ :client_secret => 'ghijk11111'})
33
+ @klass = TicketMaster::Provider::Teambox::Comment
34
+ @project = @ticketmaster.project(@project_id)
35
+ @ticket = @project.ticket(@task_id)
36
+ @ticket.project_id = @project.id
37
37
  end
38
-
38
+
39
39
  it "should be able to load all comments" do
40
40
  @comments = @ticket.comments
41
41
  @comments.should be_an_instance_of(Array)
42
42
  @comments.first.should be_an_instance_of(@klass)
43
43
  end
44
-
44
+
45
45
  it "should return the class" do
46
46
  @ticket.comment.should == @klass
47
47
  end
48
-
48
+
49
49
  it "should be able to create a comment" do
50
50
  @comment = @ticket.comment!(:body => 'New comment created.')
51
51
  @comment.should be_an_instance_of(@klass)
@@ -1,28 +1,16 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
3
  describe "Ticketmaster::Provider::Teambox::Project" do
4
- before(:all) do
5
- headers_get = {'Authorization' => 'OAuth 01234567890abcdef', 'Accept' => 'application/json'}
6
- headers = {'Authorization' => 'OAuth 01234567890abcdef', 'Content-Type' => 'application/json'}
7
- @project_id = 23216
8
- ActiveResource::HttpMock.respond_to do |mock|
9
- mock.get '/api/1/projects.json?count=0', headers_get, fixture_for('projects'), 200
10
- mock.get '/api/1/projects/23216.json', headers_get, fixture_for('projects/23216'), 200
11
- mock.post '/api/1/organizations/56789/projects.json?name=New%20Project&permalink=new-project&organization_id=56789', headers, '', 201
12
- mock.put '/api/1/projects/23216.json?name=some%20new%20name&permalink=teambox-api-example-project&created_at=2010-07-30%2020:16:55%20+0000&updated_at=2010-08-28%2014:20:35%20+0000', headers, '', 200
13
- end
14
-
15
- #stubs = Faraday::Adapter::Test::Stubs.new do |stub|
16
- # ACCESS_TOKEN = { "access_token" => "01234567890abcdef", "username" => "anymoto" }
17
- # stub.post('/oauth/token') { [200, {}, ACCESS_TOKEN.to_json] }
18
- #end
19
-
20
- #new_method = Faraday::Connection.method(:new)
21
- #Faraday::Connection.stub(:new) do |*args|
22
- # connection = new_method.call(*args) do |builder|
23
- # builder.adapter :test, stubs
24
- # end
25
- #end
4
+ before(:each) do
5
+ headers_get = {'Authorization' => 'OAuth ', 'Accept' => 'application/json'}
6
+ headers = {'Authorization' => 'OAuth ', 'Content-Type' => 'application/json'}
7
+ @project_id = 23216
8
+ ActiveResource::HttpMock.respond_to do |mock|
9
+ mock.get '/api/1/projects.json?count=0', headers_get, fixture_for('projects'), 200
10
+ mock.get '/api/1/projects/23216.json', headers_get, fixture_for('projects/23216'), 200
11
+ mock.post '/api/1/organizations/56789/projects.json?name=New%20Project&permalink=new-project&organization_id=56789', headers, '', 201
12
+ mock.put '/api/1/projects/23216.json?name=some%20new%20name&permalink=teambox-api-example-project&created_at=2010-07-30%2020:16:55%20+0000&updated_at=2010-08-28%2014:20:35%20+0000', headers, '', 200
13
+ end
26
14
 
27
15
  @ticketmaster = TicketMaster.new(:teambox, {:username => "anymoto",
28
16
  :password => "000000",
@@ -1,36 +1,26 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
+ VERBS = [:get, :post, :put, :delete]
4
+
3
5
  describe "Ticketmaster::Provider::Teambox::Ticket" do
4
6
  before(:each) do
5
- headers_get = {'Authorization' => 'OAuth 01234567890abcdef', 'Accept' => 'application/json'}
6
- headers = {'Authorization' => 'OAuth 01234567890abcdef', 'Content-Type' => 'application/json'}
7
- @project_id = 23216
8
- ActiveResource::HttpMock.respond_to do |mock|
9
- mock.get '/api/1/projects.json', headers_get, fixture_for('projects'), 200
10
- mock.get '/api/1/projects/23216.json', headers_get, fixture_for('projects/23216'), 200
11
- mock.get '/api/1/projects/23216/tasks/85915.json', headers_get, fixture_for('tasks/85915'), 200
12
- mock.get '/api/1/projects/23216/tasks.json?count=0', headers_get, fixture_for('tasks'), 200
13
- mock.get '/api/1/projects/23216/tasks/85915.json', headers_get, fixture_for('tasks/85915'), 200
14
- mock.put '/api/1/projects/23216/tasks/85915.json?name=New%20ticket%20name&updated_at=2010-08-29%2020:16:56%20+0000', headers, '', 200
15
- mock.post '/api/1/projects/23216/task_lists/30232/tasks.json?name=Mobile%20App', headers, '', 200
16
- end
17
-
18
- #stubs = Faraday::Adapter::Test::Stubs.new do |stub|
19
- #ACCESS_TOKEN = { "access_token" => "01234567890abcdef", "refresh_token" => "01234567890abcdef", "username" => "anymoto" }
20
- # stub.post('/oauth/token') { [200, {}, ACCESS_TOKEN.to_json] }
21
- #end
22
-
23
- #new_method = Faraday::Connection.method(:new)
24
- #Faraday::Connection.stub(:new) do |*args|
25
- # connection = new_method.call(*args) do |builder|
26
- # builder.adapter :test, stubs
27
- # end
28
- #end
7
+ headers_get = {'Authorization' => 'OAuth ', 'Accept' => 'application/json'}
8
+ headers = {'Authorization' => 'OAuth ', 'Content-Type' => 'application/json'}
9
+ @project_id = 23216
10
+ ActiveResource::HttpMock.respond_to do |mock|
11
+ mock.get '/api/1/projects.json', headers_get, fixture_for('projects'), 200
12
+ mock.get '/api/1/projects/23216.json', headers_get, fixture_for('projects/23216'), 200
13
+ mock.get '/api/1/projects/23216/tasks/85915.json', headers_get, fixture_for('tasks/85915'), 200
14
+ mock.get '/api/1/projects/23216/tasks.json?count=0', headers_get, fixture_for('tasks'), 200
15
+ mock.get '/api/1/projects/23216/tasks/85915.json', headers_get, fixture_for('tasks/85915'), 200
16
+ mock.put '/api/1/projects/23216/tasks/85915.json?name=New%20ticket%20name&updated_at=2010-08-29%2020:16:56%20+0000', headers, '', 200
17
+ mock.post '/api/1/projects/23216/task_lists/30232/tasks.json?name=Mobile%20App', headers, '', 200
18
+ end
29
19
 
30
20
  @ticketmaster = TicketMaster.new(:teambox, {:username => "anymoto",
31
- :password => "000000",
32
- :client_id => 'abcdef000000',
33
- :client_secret => 'ghijk11111'})
21
+ :password => "000000",
22
+ :client_id => 'abcdef000000',
23
+ :client_secret => 'ghijk11111'})
34
24
  @project = @ticketmaster.project(@project_id)
35
25
  @klass = TicketMaster::Provider::Teambox::Ticket
36
26
  end
@@ -1,95 +1,96 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{ticketmaster-teambox}
8
- s.version = "0.1.3"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Hybridgroup"]
12
- s.date = %q{2011-08-10}
13
- s.description = %q{Allows ticketmaster to interact with Teambox}
14
- s.email = %q{ana@hybridgroup.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE.txt",
17
- "README.md"
18
- ]
19
- s.files = [
20
- "Gemfile",
21
- "Gemfile.lock",
22
- "LICENSE.txt",
23
- "README.md",
24
- "Rakefile",
25
- "VERSION",
26
- "lib/provider/comment.rb",
27
- "lib/provider/project.rb",
28
- "lib/provider/teambox.rb",
29
- "lib/provider/ticket.rb",
30
- "lib/teambox/teambox-api.rb",
31
- "lib/ticketmaster-teambox.rb",
32
- "spec/comments_spec.rb",
33
- "spec/fixtures/comments.json",
34
- "spec/fixtures/comments/create.json",
35
- "spec/fixtures/projects.json",
36
- "spec/fixtures/projects/23216.json",
37
- "spec/fixtures/projects/23217.json",
38
- "spec/fixtures/projects/create.json",
39
- "spec/fixtures/tasks.json",
40
- "spec/fixtures/tasks/85915.json",
41
- "spec/fixtures/tasks/85916.json",
42
- "spec/fixtures/tasks/create.json",
43
- "spec/projects_spec.rb",
44
- "spec/spec.opts",
45
- "spec/spec_helper.rb",
46
- "spec/ticketmaster-teambox_spec.rb",
47
- "spec/tickets_spec.rb",
48
- "ticketmaster-teambox.gemspec"
49
- ]
50
- s.homepage = %q{http://ticketrb.com}
51
- s.require_paths = ["lib"]
52
- s.rubygems_version = %q{1.6.1}
53
- s.summary = %q{Ticketmaster Provider for Teambox}
54
- s.test_files = [
55
- "spec/comments_spec.rb",
56
- "spec/projects_spec.rb",
57
- "spec/spec_helper.rb",
58
- "spec/ticketmaster-teambox_spec.rb",
59
- "spec/tickets_spec.rb"
60
- ]
61
-
62
- if s.respond_to? :specification_version then
63
- s.specification_version = 3
64
-
65
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
66
- s.add_runtime_dependency(%q<ticketmaster>, ["= 0.6.6"])
67
- s.add_runtime_dependency(%q<oauth2>, [">= 0"])
68
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
69
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
70
- s.add_development_dependency(%q<rcov>, [">= 0"])
71
- s.add_development_dependency(%q<rspec>, ["= 1.2.9"])
72
- s.add_runtime_dependency(%q<activesupport>, [">= 3.0.4"])
73
- s.add_runtime_dependency(%q<activeresource>, [">= 3.0.4"])
74
- else
75
- s.add_dependency(%q<ticketmaster>, ["= 0.6.6"])
76
- s.add_dependency(%q<oauth2>, [">= 0"])
77
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
78
- s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
79
- s.add_dependency(%q<rcov>, [">= 0"])
80
- s.add_dependency(%q<rspec>, ["= 1.2.9"])
81
- s.add_dependency(%q<activesupport>, [">= 3.0.4"])
82
- s.add_dependency(%q<activeresource>, [">= 3.0.4"])
83
- end
84
- else
85
- s.add_dependency(%q<ticketmaster>, ["= 0.6.6"])
86
- s.add_dependency(%q<oauth2>, [">= 0"])
87
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
88
- s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
89
- s.add_dependency(%q<rcov>, [">= 0"])
90
- s.add_dependency(%q<rspec>, ["= 1.2.9"])
91
- s.add_dependency(%q<activesupport>, [">= 3.0.4"])
92
- s.add_dependency(%q<activeresource>, [">= 3.0.4"])
93
- end
94
- end
95
-
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{ticketmaster-teambox}
8
+ s.version = "0.1.4"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Hybridgroup"]
12
+ s.date = %q{2011-08-12}
13
+ s.description = %q{Allows ticketmaster to interact with Teambox}
14
+ s.email = %q{ana@hybridgroup.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ "Gemfile",
21
+ "Gemfile.lock",
22
+ "LICENSE.txt",
23
+ "README.md",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "lib/provider/comment.rb",
27
+ "lib/provider/project.rb",
28
+ "lib/provider/teambox.rb",
29
+ "lib/provider/ticket.rb",
30
+ "lib/teambox/teambox-api.rb",
31
+ "lib/ticketmaster-teambox.rb",
32
+ "spec/comments_spec.rb",
33
+ "spec/fixtures/comments.json",
34
+ "spec/fixtures/comments/create.json",
35
+ "spec/fixtures/projects.json",
36
+ "spec/fixtures/projects/23216.json",
37
+ "spec/fixtures/projects/23217.json",
38
+ "spec/fixtures/projects/create.json",
39
+ "spec/fixtures/tasks.json",
40
+ "spec/fixtures/tasks/85915.json",
41
+ "spec/fixtures/tasks/85916.json",
42
+ "spec/fixtures/tasks/create.json",
43
+ "spec/projects_spec.rb",
44
+ "spec/spec.opts",
45
+ "spec/spec_helper.rb",
46
+ "spec/ticketmaster-teambox_spec.rb",
47
+ "spec/tickets_spec.rb",
48
+ "ticketmaster-teambox.gemspec"
49
+ ]
50
+ s.homepage = %q{http://ticketrb.com}
51
+ s.require_paths = ["lib"]
52
+ s.rubygems_version = %q{1.3.7}
53
+ s.summary = %q{Ticketmaster Provider for Teambox}
54
+ s.test_files = [
55
+ "spec/comments_spec.rb",
56
+ "spec/projects_spec.rb",
57
+ "spec/spec_helper.rb",
58
+ "spec/ticketmaster-teambox_spec.rb",
59
+ "spec/tickets_spec.rb"
60
+ ]
61
+
62
+ if s.respond_to? :specification_version then
63
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
64
+ s.specification_version = 3
65
+
66
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
67
+ s.add_runtime_dependency(%q<ticketmaster>, ["= 0.6.6"])
68
+ s.add_runtime_dependency(%q<oauth2>, [">= 0"])
69
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
70
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
71
+ s.add_development_dependency(%q<rcov>, [">= 0"])
72
+ s.add_development_dependency(%q<rspec>, ["= 1.2.9"])
73
+ s.add_runtime_dependency(%q<activesupport>, [">= 3.0.4"])
74
+ s.add_runtime_dependency(%q<activeresource>, [">= 3.0.4"])
75
+ else
76
+ s.add_dependency(%q<ticketmaster>, ["= 0.6.6"])
77
+ s.add_dependency(%q<oauth2>, [">= 0"])
78
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
79
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
80
+ s.add_dependency(%q<rcov>, [">= 0"])
81
+ s.add_dependency(%q<rspec>, ["= 1.2.9"])
82
+ s.add_dependency(%q<activesupport>, [">= 3.0.4"])
83
+ s.add_dependency(%q<activeresource>, [">= 3.0.4"])
84
+ end
85
+ else
86
+ s.add_dependency(%q<ticketmaster>, ["= 0.6.6"])
87
+ s.add_dependency(%q<oauth2>, [">= 0"])
88
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
89
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
90
+ s.add_dependency(%q<rcov>, [">= 0"])
91
+ s.add_dependency(%q<rspec>, ["= 1.2.9"])
92
+ s.add_dependency(%q<activesupport>, [">= 3.0.4"])
93
+ s.add_dependency(%q<activeresource>, [">= 3.0.4"])
94
+ end
95
+ end
96
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-teambox
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease:
4
+ hash: 19
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Hybridgroup
@@ -15,12 +15,14 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-10 00:00:00 -04:00
18
+ date: 2011-08-12 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  type: :runtime
23
- requirement: &id001 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ name: ticketmaster
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
26
  none: false
25
27
  requirements:
26
28
  - - "="
@@ -31,12 +33,12 @@ dependencies:
31
33
  - 6
32
34
  - 6
33
35
  version: 0.6.6
34
- version_requirements: *id001
35
- name: ticketmaster
36
- prerelease: false
36
+ requirement: *id001
37
37
  - !ruby/object:Gem::Dependency
38
38
  type: :runtime
39
- requirement: &id002 !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ name: oauth2
41
+ version_requirements: &id002 !ruby/object:Gem::Requirement
40
42
  none: false
41
43
  requirements:
42
44
  - - ">="
@@ -45,12 +47,12 @@ dependencies:
45
47
  segments:
46
48
  - 0
47
49
  version: "0"
48
- version_requirements: *id002
49
- name: oauth2
50
- prerelease: false
50
+ requirement: *id002
51
51
  - !ruby/object:Gem::Dependency
52
52
  type: :development
53
- requirement: &id003 !ruby/object:Gem::Requirement
53
+ prerelease: false
54
+ name: bundler
55
+ version_requirements: &id003 !ruby/object:Gem::Requirement
54
56
  none: false
55
57
  requirements:
56
58
  - - ~>
@@ -61,12 +63,12 @@ dependencies:
61
63
  - 0
62
64
  - 0
63
65
  version: 1.0.0
64
- version_requirements: *id003
65
- name: bundler
66
- prerelease: false
66
+ requirement: *id003
67
67
  - !ruby/object:Gem::Dependency
68
68
  type: :development
69
- requirement: &id004 !ruby/object:Gem::Requirement
69
+ prerelease: false
70
+ name: jeweler
71
+ version_requirements: &id004 !ruby/object:Gem::Requirement
70
72
  none: false
71
73
  requirements:
72
74
  - - ~>
@@ -77,12 +79,12 @@ dependencies:
77
79
  - 5
78
80
  - 1
79
81
  version: 1.5.1
80
- version_requirements: *id004
81
- name: jeweler
82
- prerelease: false
82
+ requirement: *id004
83
83
  - !ruby/object:Gem::Dependency
84
84
  type: :development
85
- requirement: &id005 !ruby/object:Gem::Requirement
85
+ prerelease: false
86
+ name: rcov
87
+ version_requirements: &id005 !ruby/object:Gem::Requirement
86
88
  none: false
87
89
  requirements:
88
90
  - - ">="
@@ -91,12 +93,12 @@ dependencies:
91
93
  segments:
92
94
  - 0
93
95
  version: "0"
94
- version_requirements: *id005
95
- name: rcov
96
- prerelease: false
96
+ requirement: *id005
97
97
  - !ruby/object:Gem::Dependency
98
98
  type: :development
99
- requirement: &id006 !ruby/object:Gem::Requirement
99
+ prerelease: false
100
+ name: rspec
101
+ version_requirements: &id006 !ruby/object:Gem::Requirement
100
102
  none: false
101
103
  requirements:
102
104
  - - "="
@@ -107,12 +109,12 @@ dependencies:
107
109
  - 2
108
110
  - 9
109
111
  version: 1.2.9
110
- version_requirements: *id006
111
- name: rspec
112
- prerelease: false
112
+ requirement: *id006
113
113
  - !ruby/object:Gem::Dependency
114
114
  type: :runtime
115
- requirement: &id007 !ruby/object:Gem::Requirement
115
+ prerelease: false
116
+ name: activesupport
117
+ version_requirements: &id007 !ruby/object:Gem::Requirement
116
118
  none: false
117
119
  requirements:
118
120
  - - ">="
@@ -123,12 +125,12 @@ dependencies:
123
125
  - 0
124
126
  - 4
125
127
  version: 3.0.4
126
- version_requirements: *id007
127
- name: activesupport
128
- prerelease: false
128
+ requirement: *id007
129
129
  - !ruby/object:Gem::Dependency
130
130
  type: :runtime
131
- requirement: &id008 !ruby/object:Gem::Requirement
131
+ prerelease: false
132
+ name: activeresource
133
+ version_requirements: &id008 !ruby/object:Gem::Requirement
132
134
  none: false
133
135
  requirements:
134
136
  - - ">="
@@ -139,9 +141,7 @@ dependencies:
139
141
  - 0
140
142
  - 4
141
143
  version: 3.0.4
142
- version_requirements: *id008
143
- name: activeresource
144
- prerelease: false
144
+ requirement: *id008
145
145
  description: Allows ticketmaster to interact with Teambox
146
146
  email: ana@hybridgroup.com
147
147
  executables: []
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  requirements: []
212
212
 
213
213
  rubyforge_project:
214
- rubygems_version: 1.6.1
214
+ rubygems_version: 1.3.7
215
215
  signing_key:
216
216
  specification_version: 3
217
217
  summary: Ticketmaster Provider for Teambox