ticketmaster-kanbanpad 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/provider/ticket.rb +1 -1
- data/spec/fixtures/tasks/4dc31c4c9bd0ff6c3700004e.json +1 -0
- data/spec/tickets_spec.rb +7 -0
- data/ticketmaster-kanbanpad.gemspec +3 -2
- metadata +5 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.3
|
data/lib/provider/ticket.rb
CHANGED
@@ -0,0 +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}
|
data/spec/tickets_spec.rb
CHANGED
@@ -11,9 +11,11 @@ describe "Ticketmaster::Provider::Kanbanpad::Ticket" do
|
|
11
11
|
mock.get '/api/v1/projects/be74b643b64e3dc79aa0/tasks.json?backlog=yes&finished=yes', wheaders, fixture_for('tasks'), 200
|
12
12
|
mock.get '/api/v1/projects/be74b643b64e3dc79aa0/tasks/4cd428c496f0734eef000007.json', wheaders, fixture_for('tasks/4cd428c496f0734eef000007'), 200
|
13
13
|
mock.get '/api/v1/projects/be74b643b64e3dc79aa0/steps/4dc312f49bd0ff6c37000040.json', wheaders, fixture_for('steps/4dc312f49bd0ff6c37000040'), 200
|
14
|
+
mock.get '/api/v1/projects/be74b643b64e3dc79aa0/tasks/4dc31c4c9bd0ff6c3700004e.json', wheaders, fixture_for('tasks/4dc31c4c9bd0ff6c3700004e'), 200
|
14
15
|
end
|
15
16
|
@project_id = 'be74b643b64e3dc79aa0'
|
16
17
|
@ticket_id = '4cd428c496f0734eef000007'
|
18
|
+
@ticket_id_without_assignee = '4dc31c4c9bd0ff6c3700004e'
|
17
19
|
end
|
18
20
|
|
19
21
|
before(:each) do
|
@@ -58,4 +60,9 @@ describe "Ticketmaster::Provider::Kanbanpad::Ticket" do
|
|
58
60
|
@ticket.id.should == @ticket_id
|
59
61
|
end
|
60
62
|
|
63
|
+
it "should return nobody as assignee for an empty assignee from the api" do
|
64
|
+
@ticket = @project.ticket(@ticket_id_without_assignee)
|
65
|
+
@ticket.assignee.should == 'Nobody'
|
66
|
+
end
|
67
|
+
|
61
68
|
end
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ticketmaster-kanbanpad}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.3"
|
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 = %q{2011-05-
|
12
|
+
s.date = %q{2011-05-06}
|
13
13
|
s.description = %q{Allows ticketmaster to interact with kanbanpad.}
|
14
14
|
s.email = %q{sonia@hybridgroup.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -42,6 +42,7 @@ Gem::Specification.new do |s|
|
|
42
42
|
"spec/fixtures/tasks/4cd428c496f0734eef000007.xml",
|
43
43
|
"spec/fixtures/tasks/4cd428c496f0734eef000008.json",
|
44
44
|
"spec/fixtures/tasks/4cd428c496f0734eef000008.xml",
|
45
|
+
"spec/fixtures/tasks/4dc31c4c9bd0ff6c3700004e.json",
|
45
46
|
"spec/fixtures/tasks/create.xml",
|
46
47
|
"spec/projects_spec.rb",
|
47
48
|
"spec/spec.opts",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ticketmaster-kanbanpad
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- HybridGroup
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-06 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- spec/fixtures/tasks/4cd428c496f0734eef000007.xml
|
70
70
|
- spec/fixtures/tasks/4cd428c496f0734eef000008.json
|
71
71
|
- spec/fixtures/tasks/4cd428c496f0734eef000008.xml
|
72
|
+
- spec/fixtures/tasks/4dc31c4c9bd0ff6c3700004e.json
|
72
73
|
- spec/fixtures/tasks/create.xml
|
73
74
|
- spec/projects_spec.rb
|
74
75
|
- spec/spec.opts
|