ticketmaster-bugherd 0.0.2 → 0.0.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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -14,7 +14,7 @@ module TicketMaster::Provider
14
14
  end
15
15
 
16
16
  def priority
17
- PRIORITY[self[:priority_id]]
17
+ self[:priority_id].nil? ? "" : PRIORITY[self[:priority_id]]
18
18
  end
19
19
 
20
20
  def assignee
@@ -47,5 +47,7 @@ describe "TicketMaster::Provider::Bugherd::Comment" do
47
47
  comment.id.should == 9760
48
48
  comment.ticket_id.should == 4950
49
49
  comment.project_id.should == 1458
50
+ comment.updated_at.should_not be_nil
51
+ comment.created_at.should_not be_nil
50
52
  end
51
53
  end
@@ -1,7 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <comment>
3
3
  <id type="integer">9760</id>
4
- <created-at type="datetime">2011-08-18T19:57:56Z</created-at>
5
4
  <text>I'm working on this already</text>
6
5
  <user-id type="integer">1798</user-id>
6
+ <created-at type="datetime">2011-08-18T19:57:56Z</created-at>
7
+ <updated-at type="datetime">2011-08-18T19:57:56Z</updated-at>
7
8
  </comment>
@@ -3,12 +3,8 @@
3
3
  <id type="integer">1458</id>
4
4
  <name>clutchapptest</name>
5
5
  <devurl>http://clutchapptest.ticketmaster.com</devurl>
6
- <users type="array">
7
- <user>
8
- <id type="integer">1798</id>
9
- <email>george.rafael@gmail.com</email>
10
- <name>Rafael</name>
11
- <surname>George</surname>
12
- </user>
13
- </users>
6
+ <api-key>6f416a76-7ce1-463e-92d7-5f21f9b77dd9</api-key>
7
+ <created-at type="datetime">2011-08-17T20:07:07Z</created-at>
8
+ <updated-at type="datetime">2011-08-18T19:56:58Z</updated-at>
9
+ <is-active type="boolean">true</is-active>
14
10
  </project>
@@ -3,14 +3,8 @@
3
3
  <id type="integer">4950</id>
4
4
  <description>Now this one should be green not red</description>
5
5
  <status-id type="integer">2</status-id>
6
- <priority-id type="integer" nil="true">1</priority-id>
6
+ <priority-id type="integer" nil="true"></priority-id>
7
7
  <assigned-to-id type="integer">1798</assigned-to-id>
8
- <comments type="array">
9
- <comment>
10
- <id type="integer">9760</id>
11
- <created-at type="datetime">2011-08-18T19:57:56Z</created-at>
12
- <text>I'm working on this already</text>
13
- <user-id type="integer">1798</user-id>
14
- </comment>
15
- </comments>
8
+ <created-at type="datetime">2011-08-18T19:57:35Z</created-at>
9
+ <updated-at type="datetime">2011-08-18T19:57:40Z</updated-at>
16
10
  </task>
@@ -54,5 +54,7 @@ describe "TicketMaster::Provider::Bugherd::Project" do
54
54
  project = @tm.project(@project_id)
55
55
  project.id.should == 1458
56
56
  project.name.should == 'clutchapptest'
57
+ project.created_at.should_not be_nil
58
+ project.updated_at.should_not be_nil
57
59
  end
58
60
  end
data/spec/tickets_spec.rb CHANGED
@@ -53,11 +53,11 @@ describe "TicketMaster::Provider::Bugherd::Ticket" do
53
53
  ticket = @project.ticket(4950)
54
54
  ticket.id.should == 4950
55
55
  ticket.status.should == 'active'
56
- ticket.priority.should == 'critical'
56
+ ticket.priority.should == ''
57
57
  ticket.title.should be_nil
58
58
  ticket.resolution.should be_nil
59
- ticket.created_at.should be_nil
60
- ticket.updated_at.should be_nil
59
+ ticket.created_at.should_not be_nil
60
+ ticket.updated_at.should_not be_nil
61
61
  ticket.description.should == 'Now this one should be green not red'
62
62
  ticket.assignee.should == 'Rafael George'
63
63
  ticket.requestor.should be_nil
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-bugherd}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rafael George"]
12
- s.date = %q{2011-08-29}
12
+ s.date = %q{2011-08-30}
13
13
  s.description = %q{Ticketmaster provider for Bugherd}
14
14
  s.email = %q{george.rafael@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-bugherd
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rafael George
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-29 00:00:00 -04:00
18
+ date: 2011-08-30 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency