ticketmaster-kanbanpad 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.rbenv-gemsets +1 -0
- data/.rbenv-version +1 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +49 -0
- data/VERSION +1 -1
- data/lib/kanbanpad/kanbanpad-api.rb +10 -0
- data/lib/provider/comment.rb +27 -1
- data/lib/provider/kanbanpad.rb +1 -1
- data/lib/provider/project.rb +17 -0
- data/lib/provider/ticket.rb +23 -5
- data/rakefile +12 -15
- data/spec/comments_spec.rb +8 -1
- data/spec/fixtures/comments/4ef2719bf17365000110df9e.json +1 -0
- data/spec/fixtures/projects.json +2 -2
- data/spec/fixtures/projects/be74b643b64e3dc79aa0.json +1 -1
- data/spec/fixtures/projects/be74b643b64e3dc79aa0.xml +3 -1
- data/spec/fixtures/projects/create.json +1 -0
- data/spec/fixtures/projects/test.rb +7 -0
- data/spec/fixtures/tasks.json +7 -4
- data/spec/fixtures/tasks/4cd428c496f0734eef000007.json +1 -1
- data/spec/fixtures/tasks/4cd428c496f0734eef000008.json +3 -3
- data/spec/fixtures/tasks/4dc31c4c9bd0ff6c3700004e.json +1 -1
- data/spec/projects_spec.rb +6 -6
- data/spec/spec.opts +2 -0
- data/spec/spec_helper.rb +3 -5
- data/spec/tickets_spec.rb +1 -1
- data/ticketmaster-kanbanpad.gemspec +30 -15
- metadata +89 -56
data/.rbenv-gemsets
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ticketmaster-kanbanpad
|
data/.rbenv-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.9.3-rc1
|
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
gem "ticketmaster", "~> 0.6.0"
|
7
|
+
# Add dependencies to develop your gem here.
|
8
|
+
# Include everything needed to run rake, tests, features, etc.
|
9
|
+
group :development do
|
10
|
+
gem "rspec", "~> 2.3.0"
|
11
|
+
gem "bundler", "~> 1.0.0"
|
12
|
+
gem "jeweler", "~> 1.6.4"
|
13
|
+
gem "rcov", ">= 0"
|
14
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activemodel (3.1.3)
|
5
|
+
activesupport (= 3.1.3)
|
6
|
+
builder (~> 3.0.0)
|
7
|
+
i18n (~> 0.6)
|
8
|
+
activeresource (3.1.3)
|
9
|
+
activemodel (= 3.1.3)
|
10
|
+
activesupport (= 3.1.3)
|
11
|
+
activesupport (3.1.3)
|
12
|
+
multi_json (~> 1.0)
|
13
|
+
builder (3.0.0)
|
14
|
+
diff-lcs (1.1.3)
|
15
|
+
git (1.2.5)
|
16
|
+
hashie (1.2.0)
|
17
|
+
i18n (0.6.0)
|
18
|
+
jeweler (1.6.4)
|
19
|
+
bundler (~> 1.0)
|
20
|
+
git (>= 1.2.5)
|
21
|
+
rake
|
22
|
+
multi_json (1.0.4)
|
23
|
+
rake (0.9.2.2)
|
24
|
+
rcov (0.9.11)
|
25
|
+
rspec (2.3.0)
|
26
|
+
rspec-core (~> 2.3.0)
|
27
|
+
rspec-expectations (~> 2.3.0)
|
28
|
+
rspec-mocks (~> 2.3.0)
|
29
|
+
rspec-core (2.3.1)
|
30
|
+
rspec-expectations (2.3.0)
|
31
|
+
diff-lcs (~> 1.1.2)
|
32
|
+
rspec-mocks (2.3.0)
|
33
|
+
ticketmaster (0.6.7)
|
34
|
+
activeresource
|
35
|
+
activeresource (>= 2.3.2)
|
36
|
+
activesupport
|
37
|
+
activesupport (>= 2.3.2)
|
38
|
+
hashie (= 1.2.0)
|
39
|
+
jeweler
|
40
|
+
|
41
|
+
PLATFORMS
|
42
|
+
ruby
|
43
|
+
|
44
|
+
DEPENDENCIES
|
45
|
+
bundler (~> 1.0.0)
|
46
|
+
jeweler (~> 1.6.4)
|
47
|
+
rcov
|
48
|
+
rspec (~> 2.3.0)
|
49
|
+
ticketmaster (~> 0.6.0)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.4
|
@@ -107,4 +107,14 @@ module KanbanpadAPI
|
|
107
107
|
"#{prefix(prefix_options)}#{collection_name}.#{format.extension}#{query_string(query_options)}"
|
108
108
|
end
|
109
109
|
end
|
110
|
+
|
111
|
+
class TaskCommentCreator < Base
|
112
|
+
self.site += 'projects/:project_id/steps/:step_id/tasks/:task_id'
|
113
|
+
self.element_name = 'comment'
|
114
|
+
|
115
|
+
def self.element_path(id, prefix_options = {}, query_options = nil)
|
116
|
+
prefix_options, query_options = split_options(prefix_options) if query_options.nil?
|
117
|
+
"#{prefix(prefix_options)}#{collection_name}.#{format.extension}#{query_string(query_options)}"
|
118
|
+
end
|
119
|
+
end
|
110
120
|
end
|
data/lib/provider/comment.rb
CHANGED
@@ -10,6 +10,22 @@ module TicketMaster::Provider
|
|
10
10
|
# declare needed overloaded methods here
|
11
11
|
API = KanbanpadAPI::TaskComment
|
12
12
|
|
13
|
+
def initialize(*object)
|
14
|
+
if object.first
|
15
|
+
object = object.first
|
16
|
+
unless object.is_a? Hash
|
17
|
+
hash = {:id => object.id,
|
18
|
+
:author => object.author,
|
19
|
+
:body => object.body,
|
20
|
+
:created_at => object.created_at,
|
21
|
+
:updated_at => object.updated_at}
|
22
|
+
else
|
23
|
+
hash = object
|
24
|
+
end
|
25
|
+
super hash
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
13
29
|
def self.find_by_id(project_id, ticket_id, id)
|
14
30
|
self.search(project_id, ticket_id).select { |ticket| ticket.id == id }.first
|
15
31
|
end
|
@@ -37,7 +53,17 @@ module TicketMaster::Provider
|
|
37
53
|
self[:created_at]
|
38
54
|
end
|
39
55
|
end
|
40
|
-
|
56
|
+
|
57
|
+
def self.create(project_id, ticket_id, step_id, *options)
|
58
|
+
options.first.merge!(
|
59
|
+
:project_id => project_id,
|
60
|
+
:task_id => ticket_id,
|
61
|
+
:step_id => step_id)
|
62
|
+
task_comment = KanbanpadAPI::TaskCommentCreator.new(options.first)
|
63
|
+
task_comment.save
|
64
|
+
self.new task_comment
|
65
|
+
end
|
66
|
+
|
41
67
|
end
|
42
68
|
end
|
43
69
|
end
|
data/lib/provider/kanbanpad.rb
CHANGED
@@ -18,7 +18,7 @@ module TicketMaster::Provider
|
|
18
18
|
if (auth.username.blank? and auth.email.blank?) and (auth.token.blank? and auth.password.blank?)
|
19
19
|
raise "Please provide at least a set of username and password)"
|
20
20
|
end
|
21
|
-
|
21
|
+
KanbanpadAPI.authenticate((auth.username.blank? ? auth.email : auth.username), (auth.password.blank? ? auth.token : auth.password))
|
22
22
|
end
|
23
23
|
|
24
24
|
def valid?
|
data/lib/provider/project.rb
CHANGED
@@ -7,6 +7,23 @@ module TicketMaster::Provider
|
|
7
7
|
# declare needed overloaded methods here
|
8
8
|
API = KanbanpadAPI::Project
|
9
9
|
|
10
|
+
def initialize(*object)
|
11
|
+
if object.first
|
12
|
+
object = object.first
|
13
|
+
@system_data = {:client => object}
|
14
|
+
unless object.is_a? Hash
|
15
|
+
hash = {:id => object.slug,
|
16
|
+
:name => object.name,
|
17
|
+
:slug => object.slug,
|
18
|
+
:created_at => object.created_at,
|
19
|
+
:updated_at => object.updated_at}
|
20
|
+
else
|
21
|
+
hash = object
|
22
|
+
end
|
23
|
+
super hash
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
10
27
|
# copy from this.copy(that) copies that into this
|
11
28
|
def copy(project)
|
12
29
|
project.tickets.each do |ticket|
|
data/lib/provider/ticket.rb
CHANGED
@@ -6,6 +6,26 @@ module TicketMaster::Provider
|
|
6
6
|
API = KanbanpadAPI::Task
|
7
7
|
STEP_API = KanbanpadAPI::Step
|
8
8
|
|
9
|
+
def initialize(*object)
|
10
|
+
if object.first
|
11
|
+
object = object.first
|
12
|
+
unless object.is_? Hash
|
13
|
+
hash = {:id => object.id,
|
14
|
+
:description => object.note,
|
15
|
+
:finished => object.finished,
|
16
|
+
:backlog => object.backlog,
|
17
|
+
:wip => object.wip,
|
18
|
+
:created_at => object.created_at,
|
19
|
+
:updated_at => object.updated_at,
|
20
|
+
:project_slug => object.project_slug,
|
21
|
+
:step_id => object.step_id}
|
22
|
+
else
|
23
|
+
hash = object
|
24
|
+
end
|
25
|
+
super hash
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
9
29
|
def status
|
10
30
|
return "Finished" if self.finished
|
11
31
|
return "Backlog" if self.backlog
|
@@ -17,7 +37,7 @@ module TicketMaster::Provider
|
|
17
37
|
end
|
18
38
|
|
19
39
|
def assignee
|
20
|
-
self.assigned_to.
|
40
|
+
self.assigned_to.blank? ? 'Nobody' : self.assigned_to.first
|
21
41
|
end
|
22
42
|
|
23
43
|
def project_id
|
@@ -41,8 +61,8 @@ module TicketMaster::Provider
|
|
41
61
|
options.first.merge!(:assigned_to => options.first.delete('assignee'),
|
42
62
|
:note => options.first[:description])
|
43
63
|
task = API.new(options.first)
|
44
|
-
ticket = self.new task
|
45
64
|
task.save
|
65
|
+
ticket = self.new task
|
46
66
|
ticket
|
47
67
|
end
|
48
68
|
end
|
@@ -75,10 +95,8 @@ module TicketMaster::Provider
|
|
75
95
|
nil
|
76
96
|
end
|
77
97
|
|
78
|
-
#TODO? Exists...need to hook this up and test
|
79
98
|
def comment!
|
80
|
-
warn '
|
81
|
-
[]
|
99
|
+
warn 'Kanbanpad provider does not support comment creation yet'
|
82
100
|
end
|
83
101
|
|
84
102
|
private
|
data/rakefile
CHANGED
@@ -18,28 +18,25 @@ rescue LoadError
|
|
18
18
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
19
19
|
end
|
20
20
|
|
21
|
-
require '
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
require 'rspec/core'
|
22
|
+
require 'rspec/core/rake_task'
|
23
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
24
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
25
25
|
end
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
spec.rcov = true
|
27
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
28
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
29
|
+
spec.rcov = true
|
31
30
|
end
|
32
31
|
|
33
|
-
task :spec => :check_dependencies
|
34
|
-
|
35
32
|
task :default => :spec
|
36
33
|
|
37
34
|
require 'rake/rdoctask'
|
38
35
|
Rake::RDocTask.new do |rdoc|
|
39
|
-
|
36
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
40
37
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
38
|
+
rdoc.rdoc_dir = 'rdoc'
|
39
|
+
rdoc.title = "ticketmaster-kanbanpad#{version}"
|
40
|
+
rdoc.rdoc_files.include('README*')
|
41
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
45
42
|
end
|
data/spec/comments_spec.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe TicketMaster::Provider::Kanbanpad::Comment do
|
4
4
|
before(:all) do
|
5
5
|
headers = {'Authorization' => 'Basic YWJjQGcuY29tOmllODIzZDYzanM='}
|
6
6
|
wheaders = headers.merge('Accept' => 'application/json')
|
@@ -10,6 +10,7 @@ describe "Ticketmaster::Provider::Kanbanpad::Comment" do
|
|
10
10
|
mock.get '/api/v1/projects/be74b643b64e3dc79aa0/tasks.json?backlog=yes&finished=yes', wheaders, fixture_for('tasks'), 200
|
11
11
|
mock.get '/api/v1/projects/be74b643b64e3dc79aa0/tasks/4cd428c496f0734eef000007.json', wheaders, fixture_for('tasks/4cd428c496f0734eef000007'), 200
|
12
12
|
mock.get '/api/v1/projects/be74b643b64e3dc79aa0/tasks/4cd428c496f0734eef000007/comments.json', wheaders, fixture_for('comments'), 200
|
13
|
+
mock.post '/api/v1/projects/be74b643b64e3dc79aa0/steps/4dc312f49bd0ff6c37000040/tasks/4cd428c496f0734eef000007/comments.json', wheaders, fixture_for('comments/4ef2719bf17365000110df9e'), 200
|
13
14
|
end
|
14
15
|
@project_id = 'be74b643b64e3dc79aa0'
|
15
16
|
@ticket_id = '4cd428c496f0734eef000007'
|
@@ -41,4 +42,10 @@ describe "Ticketmaster::Provider::Kanbanpad::Comment" do
|
|
41
42
|
@comments.first.should be_an_instance_of(@klass)
|
42
43
|
end
|
43
44
|
|
45
|
+
it "should be able to create a comment for a given task" do
|
46
|
+
pending
|
47
|
+
@comment = @ticket.comment!(:body => "New Ticket")
|
48
|
+
@comment.should be_an_instance_of(@klass)
|
49
|
+
end
|
50
|
+
|
44
51
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
{"created_at":"2011-12-21T23:54:03Z","author":"Rafael George","body":"testing","updated_at":"2011-12-21T23:54:03Z","id":"4ef2719bf17365000110df9e","grav_id":"87f83a47ce04e7661ec3c9dfc33b35bc","user_id":"4d62b9acc26df8076000004c","author_email":"george.rafael@gmail.com"}h
|
data/spec/fixtures/projects.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
[
|
2
2
|
{"email":"sonia@g.com", "id":"7e2cad4b3cbe5954950c","slug":"7e2cad4b3cbe5954950c","name":"project1",
|
3
3
|
"wip_limit":"10", "organization_id":"4cd428da96f0734eef000008", "collaborator_ids":"4cd428da96f0734eef000009",
|
4
|
-
"privacy":"0"},
|
4
|
+
"privacy":"0", "created_at":"2011-09-16T12:56:26Z","updated_at":"2011-10-13T16:18:20Z"},
|
5
5
|
{"email":"jhon@g.com", "id":"be74b643b64e3dc79aa0","slug":"be74b643b64e3dc79aa0","name":"project2",
|
6
6
|
"wip_limit":"10", "organization_id":"4cd428da96f0734eef000008", "collaborator_ids":"4cd428da96f0734eef000009",
|
7
|
-
"privacy":"0"}
|
7
|
+
"privacy":"0", "created_at":"2011-09-16T12:56:26Z","updated_at":"2011-10-13T16:18:20Z"}
|
8
8
|
]
|
@@ -1,2 +1,2 @@
|
|
1
1
|
{"email":"crist@g.com", "id":"be74b643b64e3dc79aa0","slug":"be74b643b64e3dc79aa0","name":"Untitled",
|
2
|
-
"wip_limit":"10", "privacy":"0"}
|
2
|
+
"wip_limit":"10", "privacy":"0", "created_at":"2011-09-16T12:56:26Z","updated_at":"2011-10-13T16:18:20Z"}
|
@@ -3,9 +3,11 @@
|
|
3
3
|
<email>cris@g.com</email>
|
4
4
|
<id>be74b643b64e3dc79aa0</id>
|
5
5
|
<slug>be74b643b64e3dc79aa0</slug>
|
6
|
+
<created-at type="datetime">2011-03-29T13:10:09Z</created-at>
|
7
|
+
<updated-at type="datetime">2011-07-25T17:01:25Z</updated-at>
|
6
8
|
<name>Untitled</name>
|
7
9
|
<wip_limit>10</wip_limit>
|
8
10
|
<organization_id></organization_id>
|
9
11
|
<collaborator_ids></collaborator_ids>
|
10
12
|
<privacy>0</privacy>
|
11
|
-
</project>
|
13
|
+
</project>
|
@@ -0,0 +1 @@
|
|
1
|
+
|
data/spec/fixtures/tasks.json
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
[{"id":"4cd428c496f0734eef000007","title":"Configure app","assigned_to":"jhon",
|
2
|
-
"note":"","wip":"false","project_slug":"7e2cad4b3cbe5954950c",
|
3
|
-
"project_id":"7e2cad4b3cbe5954950c","backlog":"false","finished":"false"},
|
2
|
+
"note":"","wip":"false","project_slug":"7e2cad4b3cbe5954950c","step_id":"4dc312f49bd0ff6c37000044",
|
3
|
+
"project_id":"7e2cad4b3cbe5954950c","backlog":"false","finished":"false", "created_at":"2011-05-07T02:59:10Z","updated_at":"2011-12-17T00:45:07Z"},
|
4
4
|
{"id":"4cd428c496f0734eef000008","title":"Fix issue","assigned_to":"james",
|
5
|
-
"note":"","wip":"false","project_slug":"7e2cad4b3cbe5954950c",
|
6
|
-
"project_id":"7e2cad4b3cbe5954950c","backlog":"false","finished":"true"}
|
5
|
+
"note":"","wip":"false","project_slug":"7e2cad4b3cbe5954950c","step_id":"4dc312f49bd0ff6c37000044",
|
6
|
+
"project_id":"7e2cad4b3cbe5954950c","backlog":"false","finished":"true","created_at":"2011-05-07T02:59:10Z","updated_at":"2011-12-17T00:45:07Z"}
|
7
7
|
]
|
8
|
+
|
9
|
+
|
10
|
+
|
@@ -1,3 +1,3 @@
|
|
1
1
|
{"id":"4cd428c496f0734eef000007","title":"Fix UI detail","assigned_to":"jhon",
|
2
2
|
"note":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.","wip":"false","project_slug":"be74b643b64e3dc79aa0",
|
3
|
-
"project_id":"be74b643b64e3dc79aa0","backlog":"false","finished":"false", "step_id":"4dc312f49bd0ff6c37000040"}
|
3
|
+
"project_id":"be74b643b64e3dc79aa0","backlog":"false","finished":"false", "step_id":"4dc312f49bd0ff6c37000040", "created_at":"2011-05-07T02:59:10Z","updated_at":"2011-12-17T00:45:07Z"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
{"id":"4cd428c496f0734eef000008","title":"Fix bug","assigned_to":"chris",
|
2
|
-
"note":"","wip":"false","project_slug":"be74b643b64e3dc79aa0",
|
3
|
-
"project_id":"be74b643b64e3dc79aa0","backlog":"false","finished":"true"}
|
1
|
+
{"id":"4cd428c496f0734eef000008","title":"Fix bug","assigned_to":"chris", "step_id":"4dc312f49bd0ff6c37000044",
|
2
|
+
"note":"","wip":"false","project_slug":"be74b643b64e3dc79aa0","assigned_to":"james",
|
3
|
+
"project_id":"be74b643b64e3dc79aa0","backlog":"false","finished":"true", "created_at":"2011-05-07T02:59:10Z","updated_at":"2011-12-17T00:45:07Z"}
|
@@ -1 +1 @@
|
|
1
|
-
{"assigned_to":[],"created_at":"2011-05-05T21:53:16Z","title":"Task","updated_at":"2011-05-06T18:30:39Z","urgent":false,"id":"4dc31c4c9bd0ff6c3700004e","step_id":"4dc312f49bd0ff6c37000040","note":"","wip":false,"project_slug":"1c36637a4508065059b3","finished":false,"backlog":false}
|
1
|
+
{"assigned_to":[],"created_at":"2011-05-05T21:53:16Z","title":"Task","updated_at":"2011-05-06T18:30:39Z","urgent":false,"id":"4dc31c4c9bd0ff6c3700004e","step_id":"4dc312f49bd0ff6c37000040","note":"","wip":false,"project_slug":"1c36637a4508065059b3","finished":false,"backlog":false, "step_id":"4dc312f49bd0ff6c37000044"}
|
data/spec/projects_spec.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe TicketMaster::Provider::Kanbanpad::Project do
|
4
4
|
before(:all) do
|
5
5
|
headers = {'Authorization' => 'Basic YWJjQGcuY29tOmllODIzZDYzanM='}
|
6
6
|
wheaders = headers.merge('Accept' => 'application/json')
|
7
7
|
@project_id = 'be74b643b64e3dc79aa0'
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
ActiveResource::HttpMock.respond_to do |mock|
|
9
|
+
mock.get '/api/v1/projects.json', wheaders, fixture_for('projects'), 200
|
10
|
+
mock.get '/api/v1/projects/be74b643b64e3dc79aa0.json', wheaders, fixture_for('projects/be74b643b64e3dc79aa0'), 200
|
11
|
+
mock.get '/api/v1/projects/create.json', headers, fixture_for('projects/create'), 200
|
12
|
+
end
|
13
13
|
end
|
14
14
|
|
15
15
|
before(:each) do
|
data/spec/spec.opts
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -3,14 +3,12 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'ticketmaster'
|
5
5
|
require 'ticketmaster-kanbanpad'
|
6
|
-
require '
|
7
|
-
require 'spec/autorun'
|
6
|
+
require 'rspec'
|
8
7
|
|
9
|
-
|
10
|
-
|
8
|
+
RSpec.configure do |config|
|
9
|
+
config.color_enabled = true
|
11
10
|
end
|
12
11
|
|
13
12
|
def fixture_for(name)
|
14
13
|
File.read(File.dirname(__FILE__) + '/fixtures/' + name + '.json')
|
15
14
|
end
|
16
|
-
|
data/spec/tickets_spec.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe TicketMaster::Provider::Kanbanpad::Ticket do
|
4
4
|
before(:all) do
|
5
5
|
headers = {'Authorization' => 'Basic YWJjQGcuY29tOmllODIzZDYzanM='}
|
6
6
|
wheaders = headers.merge('Accept' => 'application/json')
|
@@ -4,20 +4,24 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.4.
|
7
|
+
s.name = "ticketmaster-kanbanpad"
|
8
|
+
s.version = "0.4.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["HybridGroup"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
12
|
+
s.date = "2011-12-26"
|
13
|
+
s.description = "Allows ticketmaster to interact with kanbanpad."
|
14
|
+
s.email = "sonia@hybridgroup.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
17
|
"README.md"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
+
".rbenv-gemsets",
|
22
|
+
".rbenv-version",
|
23
|
+
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
21
25
|
"LICENSE",
|
22
26
|
"README.md",
|
23
27
|
"VERSION",
|
@@ -30,11 +34,14 @@ Gem::Specification.new do |s|
|
|
30
34
|
"rakefile",
|
31
35
|
"spec/comments_spec.rb",
|
32
36
|
"spec/fixtures/comments.json",
|
37
|
+
"spec/fixtures/comments/4ef2719bf17365000110df9e.json",
|
33
38
|
"spec/fixtures/projects.json",
|
34
39
|
"spec/fixtures/projects.xml",
|
35
40
|
"spec/fixtures/projects/be74b643b64e3dc79aa0.json",
|
36
41
|
"spec/fixtures/projects/be74b643b64e3dc79aa0.xml",
|
42
|
+
"spec/fixtures/projects/create.json",
|
37
43
|
"spec/fixtures/projects/create.xml",
|
44
|
+
"spec/fixtures/projects/test.rb",
|
38
45
|
"spec/fixtures/steps/4dc312f49bd0ff6c37000040.json",
|
39
46
|
"spec/fixtures/tasks.json",
|
40
47
|
"spec/fixtures/tasks.xml",
|
@@ -51,27 +58,35 @@ Gem::Specification.new do |s|
|
|
51
58
|
"spec/tickets_spec.rb",
|
52
59
|
"ticketmaster-kanbanpad.gemspec"
|
53
60
|
]
|
54
|
-
s.homepage =
|
61
|
+
s.homepage = "http://github.com/hybridgroup/ticketmaster-kanbanpad"
|
55
62
|
s.require_paths = ["lib"]
|
56
|
-
s.rubygems_version =
|
57
|
-
s.summary =
|
58
|
-
s.test_files = [
|
59
|
-
"spec/comments_spec.rb",
|
60
|
-
"spec/projects_spec.rb",
|
61
|
-
"spec/spec_helper.rb",
|
62
|
-
"spec/ticketmaster-kanbanpad_spec.rb",
|
63
|
-
"spec/tickets_spec.rb"
|
64
|
-
]
|
63
|
+
s.rubygems_version = "1.8.10"
|
64
|
+
s.summary = "Ticketmaster Provider for Kanbanpad"
|
65
65
|
|
66
66
|
if s.respond_to? :specification_version then
|
67
67
|
s.specification_version = 3
|
68
68
|
|
69
69
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
70
|
+
s.add_runtime_dependency(%q<ticketmaster>, ["~> 0.6.0"])
|
71
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
72
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
73
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
74
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
70
75
|
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
71
76
|
else
|
77
|
+
s.add_dependency(%q<ticketmaster>, ["~> 0.6.0"])
|
78
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
79
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
80
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
81
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
72
82
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
73
83
|
end
|
74
84
|
else
|
85
|
+
s.add_dependency(%q<ticketmaster>, ["~> 0.6.0"])
|
86
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
87
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
88
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
89
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
75
90
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
76
91
|
end
|
77
92
|
end
|
metadata
CHANGED
@@ -1,50 +1,95 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ticketmaster-kanbanpad
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.4
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
- 3
|
10
|
-
version: 0.4.3
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- HybridGroup
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
12
|
+
date: 2011-12-26 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: ticketmaster
|
16
|
+
requirement: &85027060 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.6.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *85027060
|
25
|
+
- !ruby/object:Gem::Dependency
|
22
26
|
name: rspec
|
27
|
+
requirement: &85026810 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.3.0
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *85026810
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: bundler
|
38
|
+
requirement: &85026560 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.0.0
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *85026560
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: jeweler
|
49
|
+
requirement: &85026300 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.6.4
|
55
|
+
type: :development
|
23
56
|
prerelease: false
|
24
|
-
|
57
|
+
version_requirements: *85026300
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rcov
|
60
|
+
requirement: &85026050 !ruby/object:Gem::Requirement
|
25
61
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *85026050
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: &85025800 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
34
76
|
version: 1.2.9
|
35
77
|
type: :development
|
36
|
-
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *85025800
|
37
80
|
description: Allows ticketmaster to interact with kanbanpad.
|
38
81
|
email: sonia@hybridgroup.com
|
39
82
|
executables: []
|
40
|
-
|
41
83
|
extensions: []
|
42
|
-
|
43
|
-
extra_rdoc_files:
|
84
|
+
extra_rdoc_files:
|
44
85
|
- LICENSE
|
45
86
|
- README.md
|
46
|
-
files:
|
87
|
+
files:
|
47
88
|
- .document
|
89
|
+
- .rbenv-gemsets
|
90
|
+
- .rbenv-version
|
91
|
+
- Gemfile
|
92
|
+
- Gemfile.lock
|
48
93
|
- LICENSE
|
49
94
|
- README.md
|
50
95
|
- VERSION
|
@@ -57,11 +102,14 @@ files:
|
|
57
102
|
- rakefile
|
58
103
|
- spec/comments_spec.rb
|
59
104
|
- spec/fixtures/comments.json
|
105
|
+
- spec/fixtures/comments/4ef2719bf17365000110df9e.json
|
60
106
|
- spec/fixtures/projects.json
|
61
107
|
- spec/fixtures/projects.xml
|
62
108
|
- spec/fixtures/projects/be74b643b64e3dc79aa0.json
|
63
109
|
- spec/fixtures/projects/be74b643b64e3dc79aa0.xml
|
110
|
+
- spec/fixtures/projects/create.json
|
64
111
|
- spec/fixtures/projects/create.xml
|
112
|
+
- spec/fixtures/projects/test.rb
|
65
113
|
- spec/fixtures/steps/4dc312f49bd0ff6c37000040.json
|
66
114
|
- spec/fixtures/tasks.json
|
67
115
|
- spec/fixtures/tasks.xml
|
@@ -77,43 +125,28 @@ files:
|
|
77
125
|
- spec/ticketmaster-kanbanpad_spec.rb
|
78
126
|
- spec/tickets_spec.rb
|
79
127
|
- ticketmaster-kanbanpad.gemspec
|
80
|
-
has_rdoc: true
|
81
128
|
homepage: http://github.com/hybridgroup/ticketmaster-kanbanpad
|
82
129
|
licenses: []
|
83
|
-
|
84
130
|
post_install_message:
|
85
131
|
rdoc_options: []
|
86
|
-
|
87
|
-
require_paths:
|
132
|
+
require_paths:
|
88
133
|
- lib
|
89
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
90
135
|
none: false
|
91
|
-
requirements:
|
92
|
-
- -
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
|
95
|
-
|
96
|
-
- 0
|
97
|
-
version: "0"
|
98
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ! '>='
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
141
|
none: false
|
100
|
-
requirements:
|
101
|
-
- -
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
|
104
|
-
segments:
|
105
|
-
- 0
|
106
|
-
version: "0"
|
142
|
+
requirements:
|
143
|
+
- - ! '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
107
146
|
requirements: []
|
108
|
-
|
109
147
|
rubyforge_project:
|
110
|
-
rubygems_version: 1.
|
148
|
+
rubygems_version: 1.8.10
|
111
149
|
signing_key:
|
112
150
|
specification_version: 3
|
113
151
|
summary: Ticketmaster Provider for Kanbanpad
|
114
|
-
test_files:
|
115
|
-
- spec/comments_spec.rb
|
116
|
-
- spec/projects_spec.rb
|
117
|
-
- spec/spec_helper.rb
|
118
|
-
- spec/ticketmaster-kanbanpad_spec.rb
|
119
|
-
- spec/tickets_spec.rb
|
152
|
+
test_files: []
|