taskmapper-lighthouse 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,42 @@
1
+ require 'lighthouse-api'
2
+
3
+ # Monkey Patch - remove when the lighthouse gem gets updated.
4
+ # texel's changes got merged, but looks like a new gem didn't get released. ugh!
5
+ module Lighthouse
6
+
7
+ class << self
8
+ def account=(value)
9
+ @account = value
10
+ resources.each do |resource|
11
+ update_site(resource)
12
+ end
13
+ end
14
+ end
15
+
16
+ class Ticket
17
+ protected
18
+ def cleanup_tags(tags)
19
+ tags.tap do |tag|
20
+ tag.collect! do |t|
21
+ unless tag.blank?
22
+ t = Tag.new(t,prefix_options[:project_id])
23
+ t.downcase!
24
+ t.gsub! /(^')|('$)/, ''
25
+ t.gsub! /[^a-z0-9 \-_@\!']/, ''
26
+ t.strip!
27
+ t.prefix_options = prefix_options
28
+ t
29
+ end
30
+ end
31
+ tag.compact!
32
+ tag.uniq!
33
+ end
34
+ end
35
+
36
+ end
37
+ end
38
+
39
+ %w{ lighthouse ticket project comment }.each do |f|
40
+ require File.dirname(__FILE__) + '/provider/' + f + '.rb';
41
+ end
42
+
@@ -0,0 +1,65 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe TaskMapper::Provider::Lighthouse::Comment do
4
+ before(:all) do
5
+ headers = {'X-LighthouseToken' => '000000'}
6
+ wheaders = headers.merge('Content-Type' => 'application/json')
7
+ ActiveResource::HttpMock.respond_to do |mock|
8
+ mock.get '/projects/54448.json', headers, fixture_for('projects/54448'), 200
9
+ mock.get '/projects/54448/tickets.json', headers, fixture_for('tickets'), 200
10
+ mock.get '/projects/54448/tickets/2.json', headers, fixture_for('tickets/2'), 200
11
+ mock.put '/projects/54448/tickets/2.json', wheaders, '', 200
12
+ end
13
+ @project_id = 54448
14
+ end
15
+
16
+ before(:each) do
17
+ @taskmapper = TaskMapper.new(:lighthouse, :account => 'taskmapper', :token => '000000')
18
+ @project = @taskmapper.project(@project_id)
19
+ @ticket = @project.ticket(2)
20
+ @klass = TaskMapper::Provider::Lighthouse::Comment
21
+ end
22
+
23
+ it "should be able to load all comments" do
24
+ @comments = @ticket.comments
25
+ @comments.should be_an_instance_of(Array)
26
+ @comments.first.should be_an_instance_of(@klass)
27
+ end
28
+
29
+ it "should be able to load all comments based on 'id's" do # lighthouse comments don't have ids, so we're faking them
30
+ @comments = @ticket.comments([0,2,3])
31
+ @comments.should be_an_instance_of(Array)
32
+ @comments.first.id.should == 0
33
+ @comments.last.id.should == 3
34
+ @comments[1].should be_an_instance_of(@klass)
35
+ end
36
+
37
+ it "should be able to load all comments based on attributes" do
38
+ @comments = @ticket.comments(:number => @ticket.id)
39
+ @comments.should be_an_instance_of(Array)
40
+ @comments.first.should be_an_instance_of(@klass)
41
+ end
42
+
43
+ it "should be able to load a comment based on id" do
44
+ @comment = @ticket.comment(3)
45
+ @comment.should be_an_instance_of(@klass)
46
+ @comment.id.should == 3
47
+ end
48
+
49
+ it "should be able to load a comment based on attributes" do
50
+ @comment = @ticket.comment(:number => @ticket.id)
51
+ @comment.should be_an_instance_of(@klass)
52
+ end
53
+
54
+ it "should return the class" do
55
+ @ticket.comment.should == @klass
56
+ end
57
+
58
+ it "should be able to create a comment" do # which as mentioned before is technically a ticket update
59
+ pending
60
+ @test = @klass.find_by_id(54448, 2, 10)
61
+ @klass.should_receive(:find_by_id).with(54448, 2, 11).and_return(@test)
62
+ @comment = @ticket.comment!(:body => 'hello there boys and girls')
63
+ @comment.should be_an_instance_of(@klass)
64
+ end
65
+ end
@@ -0,0 +1 @@
1
+ {"projects":[{"created_at":"Tue Jun 15 00:44:27 UTC 2010","description":"This is a test project created in order to test the taskmapper-lighthouse gem.","send_changesets_to_events":true,"hidden":false,"license":null,"name":"lh-test","closed_states":"resolved/6A0 # You can customize colors\nhold/EB0 # with 3 or 6 character hex codes\ninvalid/A30 # 'A30' expands to 'AA3300'","default_milestone_id":null,"description_html":"<div><p>This is a test project created in order to test the\ntaskmapper-lighthouse gem.</p></div>","closed_states_list":"resolved,hold,invalid","open_tickets_count":11,"permalink":"lh-test","archived":false,"default_assigned_user_id":null,"default_ticket_text":null,"open_states":"new/f17 # You can add comments here\nopen/aaa # if you want to.","public":true,"updated_at":"Tue Jul 06 22:00:38 UTC 2010","open_states_list":"new,open","id":54448}]}
@@ -0,0 +1 @@
1
+ {"project":{"open_states":"new/f17 # You can add comments here\nopen/aaa # if you want to.","default_ticket_text":null,"description":"This is a test project created in order to test the taskmapper-lighthouse gem.","hidden":false,"created_at":"Tue Jun 15 00:44:27 UTC 2010","name":"lh-test","default_assigned_user_id":null,"id":54448,"closed_states_list":"resolved,hold,invalid","open_states_list":"new,open","archived":false,"description_html":"<div><p>This is a test project created in order to test the\ntaskmapper-lighthouse gem.</p></div>","permalink":"lh-test","send_changesets_to_events":true,"open_tickets_count":11,"public":true,"closed_states":"resolved/6A0 # You can customize colors\nhold/EB0 # with 3 or 6 character hex codes\ninvalid/A30 # 'A30' expands to 'AA3300'","default_milestone_id":null,"license":null,"updated_at":"Tue Jul 06 22:00:38 UTC 2010"}}
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project>
3
+ <archived type="boolean">false</archived>
4
+ <created-at type="datetime">2010-06-15T00:44:27Z</created-at>
5
+ <default-assigned-user-id type="integer" nil="true"></default-assigned-user-id>
6
+ <default-milestone-id type="integer" nil="true"></default-milestone-id>
7
+ <default-ticket-text nil="true"></default-ticket-text>
8
+ <description>This is a test project created in order to test the taskmapper-lighthouse gem.</description>
9
+ <description-html>&lt;div&gt;&lt;p&gt;This is a test project created in order to test the
10
+ taskmapper-lighthouse gem.&lt;/p&gt;&lt;/div&gt;</description-html>
11
+ <hidden type="boolean">false</hidden>
12
+ <id type="integer">54448</id>
13
+ <license nil="true"></license>
14
+ <name>lh-test</name>
15
+ <open-tickets-count type="integer">11</open-tickets-count>
16
+ <permalink>lh-test</permalink>
17
+ <public type="boolean">true</public>
18
+ <send-changesets-to-events type="boolean">true</send-changesets-to-events>
19
+ <updated-at type="datetime">2010-07-06T22:00:38Z</updated-at>
20
+ <open-states-list>new,open</open-states-list>
21
+ <closed-states-list>resolved,hold,invalid</closed-states-list>
22
+ <open-states>new/f17 # You can add comments here
23
+ open/aaa # if you want to.</open-states>
24
+ <closed-states>resolved/6A0 # You can customize colors
25
+ hold/EB0 # with 3 or 6 character hex codes
26
+ invalid/A30 # 'A30' expands to 'AA3300'</closed-states>
27
+ </project>
@@ -0,0 +1 @@
1
+ {"project":{"closed_states":"resolved/6A0 # You can customize colors\nhold/EB0 # with 3 or 6 character hex codes\ninvalid/A30 # 'A30' expands to 'AA3300'","open_states":"new/f17 # You can add comments here\nopen/aaa # if you want to.","description_html":null,"hidden":false,"open_tickets_count":0,"public":false,"archived":false,"created_at":"Wed Jul 07 18:06:46 UTC 2010","license":null,"open_states_list":"new,open","closed_states_list":"resolved,hold,invalid","name":"Project #1","updated_at":"Wed Jul 07 18:06:46 UTC 2010","id":55789,"default_assigned_user_id":null,"default_milestone_id":null,"send_changesets_to_events":true,"default_ticket_text":null,"description":null,"permalink":"project-1"}}
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project>
3
+ <archived type="boolean">false</archived>
4
+ <created-at type="datetime">2010-07-07T18:06:46Z</created-at>
5
+ <default-assigned-user-id type="integer" nil="true"></default-assigned-user-id>
6
+ <default-milestone-id type="integer" nil="true"></default-milestone-id>
7
+ <default-ticket-text nil="true"></default-ticket-text>
8
+ <description nil="true"></description>
9
+ <description-html></description-html>
10
+ <hidden type="boolean">false</hidden>
11
+ <id type="integer">55789</id>
12
+ <license nil="true"></license>
13
+ <name>Project #1</name>
14
+ <open-tickets-count type="integer">0</open-tickets-count>
15
+ <permalink>project-1</permalink>
16
+ <public type="boolean">false</public>
17
+ <send-changesets-to-events type="boolean">true</send-changesets-to-events>
18
+ <updated-at type="datetime">2010-07-07T18:06:46Z</updated-at>
19
+ <open-states-list>new,open</open-states-list>
20
+ <closed-states-list>resolved,hold,invalid</closed-states-list>
21
+ <open-states>new/f17 # You can add comments here
22
+ open/aaa # if you want to.</open-states>
23
+ <closed-states>resolved/6A0 # You can customize colors
24
+ hold/EB0 # with 3 or 6 character hex codes
25
+ invalid/A30 # 'A30' expands to 'AA3300'</closed-states>
26
+ </project>
@@ -0,0 +1 @@
1
+ {"tickets":[{"project_id":54448,"updated_at":"Sat Jul 03 05:01:51 UTC 2010","closed":false,"creator_id":67916,"creator_name":"Kia Kroas","url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/5","created_at":"Sat Jul 03 05:01:48 UTC 2010","state":"new","user_id":67916,"assigned_user_id":null,"raw_data":{"type":"binary","encoding":"base64"},"attachments_count":0,"priority":3,"tag":null,"user_name":"Kia Kroas","milestone_due_on":null,"number":5,"title":"tehantuehn","original_body":"cheuasoht atesuhn","latest_body":"cheuasoht atesuhn","original_body_html":"<div><p>cheuasoht atesuhn</p></div>","milestone_id":null,"permalink":"tehantuehn"},{"project_id":54448,"updated_at":"Sat Jul 03 05:00:48 UTC 2010","closed":false,"creator_id":67916,"creator_name":"Kia Kroas","url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/4","created_at":"Sat Jul 03 05:00:48 UTC 2010","state":"new","user_id":67916,"assigned_user_id":null,"raw_data":{"type":"binary","encoding":"base64"},"attachments_count":0,"priority":2,"tag":null,"user_name":"Kia Kroas","milestone_due_on":null,"number":4,"title":"tehantuehn","original_body":null,"latest_body":null,"original_body_html":null,"milestone_id":null,"permalink":"tehantuehn"},{"project_id":54448,"updated_at":"Fri Jul 02 23:14:06 UTC 2010","closed":false,"creator_id":67916,"creator_name":"Kia Kroas","url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/2","created_at":"Fri Jul 02 23:13:29 UTC 2010","state":"new","user_id":67916,"assigned_user_id":67916,"raw_data":{"type":"binary","encoding":"base64"},"attachments_count":0,"priority":2,"tag":"choom heh pers \"tag1 tagster\" \"wha wha waa\"","user_name":"Kia Kroas","milestone_due_on":null,"number":2,"title":"Cheese cakes","original_body":"nt.,hntHOETUHAONTUHANOSTEUHANTOU","latest_body":"nt.,hntHOETUHAONTUHANOSTEUHANTOU","original_body_html":"<div><p>nt.,hntHOETUHAONTUHANOSTEUHANTOU</p></div>","milestone_id":null,"permalink":"test-ticket","assigned_user_name":"Kia Kroas"}]}
@@ -0,0 +1 @@
1
+ {"ticket":{"user_id":67916,"tag":"choom heh pers \"tag1 tagster\" \"wha wha waa\"","closed":false,"raw_data":{"type":"binary","encoding":"base64"},"user_name":"Kia Kroas","permalink":"test-ticket","title":"Cheese cakes","original_body_html":"<div><p>nt.,hntHOETUHAONTUHANOSTEUHANTOU</p></div>","creator_id":67916,"milestone_id":null,"state":"new","assigned_user_name":"Kia Kroas","milestone_due_on":null,"assigned_user_id":67916,"attachments_count":0,"number":2,"priority":2,"project_id":54448,"creator_name":"Kia Kroas","url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/2","original_body":"nt.,hntHOETUHAONTUHANOSTEUHANTOU","versions":[{"user_id":67916,"tag":null,"type":"Ticket::Version","body":"nt.,hntHOETUHAONTUHANOSTEUHANTOU","closed":false,"user_name":"Kia Kroas","permalink":"test-ticket","title":"Test ticket","creator_id":67916,"diffable_attributes":{},"milestone_id":null,"state":"new","assigned_user_name":null,"assigned_user_id":null,"attachments_count":0,"number":2,"priority":0,"project_id":54448,"creator_name":"Kia Kroas","body_html":"<div><p>nt.,hntHOETUHAONTUHANOSTEUHANTOU</p></div>","url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/2","created_at":"Tue Jun 15 00:50:22 UTC 2010","updated_at":"Tue Jun 29 22:36:01 UTC 2010"},{"user_id":67916,"tag":null,"type":"Ticket::Version","body":null,"closed":false,"user_name":"Kia Kroas","permalink":"test-ticket","title":"Cheese cakes","creator_id":67916,"diffable_attributes":{"title":"Test ticket"},"milestone_id":null,"state":"new","assigned_user_name":null,"assigned_user_id":null,"attachments_count":0,"number":2,"priority":0,"project_id":54448,"creator_name":"Kia Kroas","body_html":null,"url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/2","created_at":"Tue Jun 15 01:39:36 UTC 2010","updated_at":"Tue Jun 15 01:39:40 UTC 2010"},{"user_id":67916,"tag":"\"tag1 tagster\"","type":"Ticket::Version","body":"Rokatoo","closed":false,"user_name":"Kia Kroas","permalink":"test-ticket","title":"Cheese cakes","creator_id":67916,"diffable_attributes":{"tag":null,"assigned_user":null,"priority":0},"milestone_id":null,"state":"new","assigned_user_name":"Kia Kroas","assigned_user_id":67916,"attachments_count":0,"number":2,"priority":2,"project_id":54448,"creator_name":"Kia Kroas","body_html":"<div><p>Rokatoo</p></div>","url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/2","created_at":"Tue Jun 29 22:35:37 UTC 2010","updated_at":"Tue Jun 29 22:35:39 UTC 2010"},{"user_id":67916,"tag":"\"tag1 tagster\"","type":"Ticket::Version","body":"This is a ticket set from tm console","closed":false,"user_name":"Kia Kroas","permalink":"test-ticket","title":"Cheese cakes","creator_id":67916,"diffable_attributes":{},"milestone_id":null,"state":"new","assigned_user_name":"Kia Kroas","assigned_user_id":67916,"attachments_count":0,"number":2,"priority":2,"project_id":54448,"creator_name":"Kia Kroas","body_html":"<div><p>This is a ticket set from tm console</p></div>","url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/2","created_at":"Fri Jul 02 05:32:19 UTC 2010","updated_at":"Fri Jul 02 05:32:20 UTC 2010"},{"user_id":67916,"tag":"\"tag1 tagster\"","type":"Ticket::Version","body":"What the hey?","closed":false,"user_name":"Kia Kroas","permalink":"test-ticket","title":"Cheese cakes","creator_id":67916,"diffable_attributes":{},"milestone_id":null,"state":"new","assigned_user_name":"Kia Kroas","assigned_user_id":67916,"attachments_count":0,"number":2,"priority":2,"project_id":54448,"creator_name":"Kia Kroas","body_html":"<div><p>What the hey?</p></div>","url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/2","created_at":"Fri Jul 02 05:32:49 UTC 2010","updated_at":"Fri Jul 02 05:32:51 UTC 2010"},{"user_id":67916,"tag":"\"tag1 tagster\"","type":"Ticket::Version","body":"What the hey?","closed":false,"user_name":"Kia Kroas","permalink":"test-ticket","title":"Cheese cakes","creator_id":67916,"diffable_attributes":{},"milestone_id":null,"state":"new","assigned_user_name":"Kia Kroas","assigned_user_id":67916,"attachments_count":0,"number":2,"priority":2,"project_id":54448,"creator_name":"Kia Kroas","body_html":"<div><p>What the hey?</p></div>","url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/2","created_at":"Fri Jul 02 05:34:24 UTC 2010","updated_at":"Fri Jul 02 05:34:27 UTC 2010"},{"user_id":67916,"tag":"\"tag1 tagster\" \"wha wha waa\"","type":"Ticket::Version","body":null,"closed":false,"user_name":"Kia Kroas","permalink":"test-ticket","title":"Cheese cakes","creator_id":67916,"diffable_attributes":{"tag":"\"tag1 tagster\""},"milestone_id":null,"state":"new","assigned_user_name":"Kia Kroas","assigned_user_id":67916,"attachments_count":0,"number":2,"priority":2,"project_id":54448,"creator_name":"Kia Kroas","body_html":null,"url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/2","created_at":"Fri Jul 02 05:39:37 UTC 2010","updated_at":"Fri Jul 02 05:39:40 UTC 2010"},{"user_id":67916,"tag":"choom heh pers \"tag1 tagster\" \"wha wha waa\"","type":"Ticket::Version","body":null,"closed":false,"user_name":"Kia Kroas","permalink":"test-ticket","title":"Cheese cakes","creator_id":67916,"diffable_attributes":{"tag":"\"tag1 tagster\" \"wha wha waa\""},"milestone_id":null,"state":"new","assigned_user_name":"Kia Kroas","assigned_user_id":67916,"attachments_count":0,"number":2,"priority":2,"project_id":54448,"creator_name":"Kia Kroas","body_html":null,"url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/2","created_at":"Fri Jul 02 05:40:03 UTC 2010","updated_at":"Fri Jul 02 05:40:04 UTC 2010"},{"user_id":67916,"tag":"choom heh pers \"tag1 tagster\" \"wha wha waa\"","type":"Ticket::Version","body":"taoh natht aehu sa utaohe nsahu saeho nsahoeunsau '","closed":false,"user_name":"Kia Kroas","permalink":"test-ticket","title":"Cheese cakes","creator_id":67916,"diffable_attributes":{},"milestone_id":null,"state":"new","assigned_user_name":"Kia Kroas","assigned_user_id":67916,"attachments_count":0,"number":2,"priority":2,"project_id":54448,"creator_name":"Kia Kroas","body_html":"<div><p>taoh natht aehu sa utaohe nsahu saeho nsahoeunsau '</p></div>","url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/2","created_at":"Fri Jul 02 06:11:06 UTC 2010","updated_at":"Fri Jul 02 06:11:06 UTC 2010"},{"user_id":67916,"tag":"choom heh pers \"tag1 tagster\" \"wha wha waa\"","type":"Ticket::Version","body":null,"closed":false,"user_name":"Kia Kroas","permalink":"test-ticket","title":"Cheese cakes","creator_id":67916,"diffable_attributes":{},"milestone_id":null,"state":"new","assigned_user_name":"Kia Kroas","assigned_user_id":67916,"attachments_count":0,"number":2,"priority":2,"project_id":54448,"creator_name":"Kia Kroas","body_html":null,"url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/2","created_at":"Fri Jul 02 20:01:33 UTC 2010","updated_at":"Fri Jul 02 20:01:36 UTC 2010"},{"user_id":67916,"tag":"choom heh pers \"tag1 tagster\" \"wha wha waa\"","type":"Ticket::Version","body":"tt","closed":false,"user_name":"Kia Kroas","permalink":"test-ticket","title":"Cheese cakes","creator_id":67916,"diffable_attributes":{},"milestone_id":null,"state":"new","assigned_user_name":"Kia Kroas","assigned_user_id":67916,"attachments_count":0,"number":2,"priority":2,"project_id":54448,"creator_name":"Kia Kroas","body_html":"<div><p>tt</p></div>","url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/2","created_at":"Fri Jul 02 20:02:25 UTC 2010","updated_at":"Fri Jul 02 23:14:04 UTC 2010"}],"created_at":"Fri Jul 02 23:13:29 UTC 2010","latest_body":"nt.,hntHOETUHAONTUHANOSTEUHANTOU","updated_at":"Fri Jul 02 23:14:06 UTC 2010"}}
@@ -0,0 +1,317 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ticket>
3
+ <assigned-user-id type="integer">67916</assigned-user-id>
4
+ <attachments-count type="integer">0</attachments-count>
5
+ <closed type="boolean">false</closed>
6
+ <created-at type="datetime">2010-07-02T23:13:29Z</created-at>
7
+ <creator-id type="integer">67916</creator-id>
8
+ <milestone-due-on type="datetime" nil="true"></milestone-due-on>
9
+ <milestone-id type="integer" nil="true"></milestone-id>
10
+ <number type="integer">2</number>
11
+ <permalink>test-ticket</permalink>
12
+ <priority type="integer">2</priority>
13
+ <project-id type="integer">54448</project-id>
14
+ <raw-data type="binary" encoding="base64" nil="true"></raw-data>
15
+ <state>new</state>
16
+ <tag>choom heh pers &quot;tag1 tagster&quot; &quot;wha wha waa&quot;</tag>
17
+ <title>Cheese cakes</title>
18
+ <updated-at type="datetime">2010-07-02T23:14:06Z</updated-at>
19
+ <user-id type="integer">67916</user-id>
20
+ <user-name>Kia Kroas</user-name>
21
+ <creator-name>Kia Kroas</creator-name>
22
+ <assigned-user-name>Kia Kroas</assigned-user-name>
23
+ <url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/2</url>
24
+ <original-body>nt.,hntHOETUHAONTUHANOSTEUHANTOU</original-body>
25
+ <latest-body>nt.,hntHOETUHAONTUHANOSTEUHANTOU</latest-body>
26
+ <original-body-html>&lt;div&gt;&lt;p&gt;nt.,hntHOETUHAONTUHANOSTEUHANTOU&lt;/p&gt;&lt;/div&gt;</original-body-html>
27
+ <versions type="array">
28
+ <version type="Ticket::Version">
29
+ <assigned-user-id type="integer" nil="true"></assigned-user-id>
30
+ <attachments-count type="integer">0</attachments-count>
31
+ <body>nt.,hntHOETUHAONTUHANOSTEUHANTOU</body>
32
+ <body-html>&lt;div&gt;&lt;p&gt;nt.,hntHOETUHAONTUHANOSTEUHANTOU&lt;/p&gt;&lt;/div&gt;</body-html>
33
+ <closed type="boolean">false</closed>
34
+ <created-at type="datetime">2010-06-15T00:50:22Z</created-at>
35
+ <creator-id type="integer">67916</creator-id>
36
+ <diffable-attributes type="yaml">--- {}
37
+
38
+ </diffable-attributes>
39
+ <milestone-id type="integer" nil="true"></milestone-id>
40
+ <number type="integer">2</number>
41
+ <permalink>test-ticket</permalink>
42
+ <priority type="integer">0</priority>
43
+ <project-id type="integer">54448</project-id>
44
+ <state>new</state>
45
+ <tag nil="true"></tag>
46
+ <title>Test ticket</title>
47
+ <updated-at type="datetime">2010-06-29T22:36:01Z</updated-at>
48
+ <user-id type="integer">67916</user-id>
49
+ <user-name>Kia Kroas</user-name>
50
+ <creator-name>Kia Kroas</creator-name>
51
+ <assigned-user-name nil="true"></assigned-user-name>
52
+ <url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/2</url>
53
+ </version>
54
+ <version type="Ticket::Version">
55
+ <assigned-user-id type="integer" nil="true"></assigned-user-id>
56
+ <attachments-count type="integer">0</attachments-count>
57
+ <body nil="true"></body>
58
+ <body-html nil="true"></body-html>
59
+ <closed type="boolean">false</closed>
60
+ <created-at type="datetime">2010-06-15T01:39:36Z</created-at>
61
+ <creator-id type="integer">67916</creator-id>
62
+ <diffable-attributes type="yaml">---
63
+ :title: Test ticket
64
+ </diffable-attributes>
65
+ <milestone-id type="integer" nil="true"></milestone-id>
66
+ <number type="integer">2</number>
67
+ <permalink>test-ticket</permalink>
68
+ <priority type="integer">0</priority>
69
+ <project-id type="integer">54448</project-id>
70
+ <state>new</state>
71
+ <tag nil="true"></tag>
72
+ <title>Cheese cakes</title>
73
+ <updated-at type="datetime">2010-06-15T01:39:40Z</updated-at>
74
+ <user-id type="integer">67916</user-id>
75
+ <user-name>Kia Kroas</user-name>
76
+ <creator-name>Kia Kroas</creator-name>
77
+ <assigned-user-name nil="true"></assigned-user-name>
78
+ <url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/2</url>
79
+ </version>
80
+ <version type="Ticket::Version">
81
+ <assigned-user-id type="integer">67916</assigned-user-id>
82
+ <attachments-count type="integer">0</attachments-count>
83
+ <body>Rokatoo</body>
84
+ <body-html>&lt;div&gt;&lt;p&gt;Rokatoo&lt;/p&gt;&lt;/div&gt;</body-html>
85
+ <closed type="boolean">false</closed>
86
+ <created-at type="datetime">2010-06-29T22:35:37Z</created-at>
87
+ <creator-id type="integer">67916</creator-id>
88
+ <diffable-attributes type="yaml">---
89
+ :assigned_user:
90
+ :priority: 0
91
+ :tag:
92
+ </diffable-attributes>
93
+ <milestone-id type="integer" nil="true"></milestone-id>
94
+ <number type="integer">2</number>
95
+ <permalink>test-ticket</permalink>
96
+ <priority type="integer">2</priority>
97
+ <project-id type="integer">54448</project-id>
98
+ <state>new</state>
99
+ <tag>&quot;tag1 tagster&quot;</tag>
100
+ <title>Cheese cakes</title>
101
+ <updated-at type="datetime">2010-06-29T22:35:39Z</updated-at>
102
+ <user-id type="integer">67916</user-id>
103
+ <user-name>Kia Kroas</user-name>
104
+ <creator-name>Kia Kroas</creator-name>
105
+ <assigned-user-name>Kia Kroas</assigned-user-name>
106
+ <url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/2</url>
107
+ </version>
108
+ <version type="Ticket::Version">
109
+ <assigned-user-id type="integer">67916</assigned-user-id>
110
+ <attachments-count type="integer">0</attachments-count>
111
+ <body>This is a ticket set from tm console</body>
112
+ <body-html>&lt;div&gt;&lt;p&gt;This is a ticket set from tm console&lt;/p&gt;&lt;/div&gt;</body-html>
113
+ <closed type="boolean">false</closed>
114
+ <created-at type="datetime">2010-07-02T05:32:19Z</created-at>
115
+ <creator-id type="integer">67916</creator-id>
116
+ <diffable-attributes type="yaml">--- {}
117
+
118
+ </diffable-attributes>
119
+ <milestone-id type="integer" nil="true"></milestone-id>
120
+ <number type="integer">2</number>
121
+ <permalink>test-ticket</permalink>
122
+ <priority type="integer">2</priority>
123
+ <project-id type="integer">54448</project-id>
124
+ <state>new</state>
125
+ <tag>&quot;tag1 tagster&quot;</tag>
126
+ <title>Cheese cakes</title>
127
+ <updated-at type="datetime">2010-07-02T05:32:20Z</updated-at>
128
+ <user-id type="integer">67916</user-id>
129
+ <user-name>Kia Kroas</user-name>
130
+ <creator-name>Kia Kroas</creator-name>
131
+ <assigned-user-name>Kia Kroas</assigned-user-name>
132
+ <url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/2</url>
133
+ </version>
134
+ <version type="Ticket::Version">
135
+ <assigned-user-id type="integer">67916</assigned-user-id>
136
+ <attachments-count type="integer">0</attachments-count>
137
+ <body>What the hey?</body>
138
+ <body-html>&lt;div&gt;&lt;p&gt;What the hey?&lt;/p&gt;&lt;/div&gt;</body-html>
139
+ <closed type="boolean">false</closed>
140
+ <created-at type="datetime">2010-07-02T05:32:49Z</created-at>
141
+ <creator-id type="integer">67916</creator-id>
142
+ <diffable-attributes type="yaml">--- {}
143
+
144
+ </diffable-attributes>
145
+ <milestone-id type="integer" nil="true"></milestone-id>
146
+ <number type="integer">2</number>
147
+ <permalink>test-ticket</permalink>
148
+ <priority type="integer">2</priority>
149
+ <project-id type="integer">54448</project-id>
150
+ <state>new</state>
151
+ <tag>&quot;tag1 tagster&quot;</tag>
152
+ <title>Cheese cakes</title>
153
+ <updated-at type="datetime">2010-07-02T05:32:51Z</updated-at>
154
+ <user-id type="integer">67916</user-id>
155
+ <user-name>Kia Kroas</user-name>
156
+ <creator-name>Kia Kroas</creator-name>
157
+ <assigned-user-name>Kia Kroas</assigned-user-name>
158
+ <url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/2</url>
159
+ </version>
160
+ <version type="Ticket::Version">
161
+ <assigned-user-id type="integer">67916</assigned-user-id>
162
+ <attachments-count type="integer">0</attachments-count>
163
+ <body>What the hey?</body>
164
+ <body-html>&lt;div&gt;&lt;p&gt;What the hey?&lt;/p&gt;&lt;/div&gt;</body-html>
165
+ <closed type="boolean">false</closed>
166
+ <created-at type="datetime">2010-07-02T05:34:24Z</created-at>
167
+ <creator-id type="integer">67916</creator-id>
168
+ <diffable-attributes type="yaml">--- {}
169
+
170
+ </diffable-attributes>
171
+ <milestone-id type="integer" nil="true"></milestone-id>
172
+ <number type="integer">2</number>
173
+ <permalink>test-ticket</permalink>
174
+ <priority type="integer">2</priority>
175
+ <project-id type="integer">54448</project-id>
176
+ <state>new</state>
177
+ <tag>&quot;tag1 tagster&quot;</tag>
178
+ <title>Cheese cakes</title>
179
+ <updated-at type="datetime">2010-07-02T05:34:27Z</updated-at>
180
+ <user-id type="integer">67916</user-id>
181
+ <user-name>Kia Kroas</user-name>
182
+ <creator-name>Kia Kroas</creator-name>
183
+ <assigned-user-name>Kia Kroas</assigned-user-name>
184
+ <url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/2</url>
185
+ </version>
186
+ <version type="Ticket::Version">
187
+ <assigned-user-id type="integer">67916</assigned-user-id>
188
+ <attachments-count type="integer">0</attachments-count>
189
+ <body></body>
190
+ <body-html></body-html>
191
+ <closed type="boolean">false</closed>
192
+ <created-at type="datetime">2010-07-02T05:39:37Z</created-at>
193
+ <creator-id type="integer">67916</creator-id>
194
+ <diffable-attributes type="yaml">---
195
+ :tag: &quot;\&quot;tag1 tagster\&quot;&quot;
196
+ </diffable-attributes>
197
+ <milestone-id type="integer" nil="true"></milestone-id>
198
+ <number type="integer">2</number>
199
+ <permalink>test-ticket</permalink>
200
+ <priority type="integer">2</priority>
201
+ <project-id type="integer">54448</project-id>
202
+ <state>new</state>
203
+ <tag>&quot;tag1 tagster&quot; &quot;wha wha waa&quot;</tag>
204
+ <title>Cheese cakes</title>
205
+ <updated-at type="datetime">2010-07-02T05:39:40Z</updated-at>
206
+ <user-id type="integer">67916</user-id>
207
+ <user-name>Kia Kroas</user-name>
208
+ <creator-name>Kia Kroas</creator-name>
209
+ <assigned-user-name>Kia Kroas</assigned-user-name>
210
+ <url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/2</url>
211
+ </version>
212
+ <version type="Ticket::Version">
213
+ <assigned-user-id type="integer">67916</assigned-user-id>
214
+ <attachments-count type="integer">0</attachments-count>
215
+ <body></body>
216
+ <body-html></body-html>
217
+ <closed type="boolean">false</closed>
218
+ <created-at type="datetime">2010-07-02T05:40:03Z</created-at>
219
+ <creator-id type="integer">67916</creator-id>
220
+ <diffable-attributes type="yaml">---
221
+ :tag: &quot;\&quot;tag1 tagster\&quot; \&quot;wha wha waa\&quot;&quot;
222
+ </diffable-attributes>
223
+ <milestone-id type="integer" nil="true"></milestone-id>
224
+ <number type="integer">2</number>
225
+ <permalink>test-ticket</permalink>
226
+ <priority type="integer">2</priority>
227
+ <project-id type="integer">54448</project-id>
228
+ <state>new</state>
229
+ <tag>choom heh pers &quot;tag1 tagster&quot; &quot;wha wha waa&quot;</tag>
230
+ <title>Cheese cakes</title>
231
+ <updated-at type="datetime">2010-07-02T05:40:04Z</updated-at>
232
+ <user-id type="integer">67916</user-id>
233
+ <user-name>Kia Kroas</user-name>
234
+ <creator-name>Kia Kroas</creator-name>
235
+ <assigned-user-name>Kia Kroas</assigned-user-name>
236
+ <url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/2</url>
237
+ </version>
238
+ <version type="Ticket::Version">
239
+ <assigned-user-id type="integer">67916</assigned-user-id>
240
+ <attachments-count type="integer">0</attachments-count>
241
+ <body>taoh natht aehu sa utaohe nsahu saeho nsahoeunsau '</body>
242
+ <body-html>&lt;div&gt;&lt;p&gt;taoh natht aehu sa utaohe nsahu saeho nsahoeunsau '&lt;/p&gt;&lt;/div&gt;</body-html>
243
+ <closed type="boolean">false</closed>
244
+ <created-at type="datetime">2010-07-02T06:11:06Z</created-at>
245
+ <creator-id type="integer">67916</creator-id>
246
+ <diffable-attributes type="yaml">--- {}
247
+
248
+ </diffable-attributes>
249
+ <milestone-id type="integer" nil="true"></milestone-id>
250
+ <number type="integer">2</number>
251
+ <permalink>test-ticket</permalink>
252
+ <priority type="integer">2</priority>
253
+ <project-id type="integer">54448</project-id>
254
+ <state>new</state>
255
+ <tag>choom heh pers &quot;tag1 tagster&quot; &quot;wha wha waa&quot;</tag>
256
+ <title>Cheese cakes</title>
257
+ <updated-at type="datetime">2010-07-02T06:11:06Z</updated-at>
258
+ <user-id type="integer">67916</user-id>
259
+ <user-name>Kia Kroas</user-name>
260
+ <creator-name>Kia Kroas</creator-name>
261
+ <assigned-user-name>Kia Kroas</assigned-user-name>
262
+ <url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/2</url>
263
+ </version>
264
+ <version type="Ticket::Version">
265
+ <assigned-user-id type="integer">67916</assigned-user-id>
266
+ <attachments-count type="integer">0</attachments-count>
267
+ <body nil="true"></body>
268
+ <body-html nil="true"></body-html>
269
+ <closed type="boolean">false</closed>
270
+ <created-at type="datetime">2010-07-02T20:01:33Z</created-at>
271
+ <creator-id type="integer">67916</creator-id>
272
+ <diffable-attributes type="yaml">--- {}
273
+
274
+ </diffable-attributes>
275
+ <milestone-id type="integer" nil="true"></milestone-id>
276
+ <number type="integer">2</number>
277
+ <permalink>test-ticket</permalink>
278
+ <priority type="integer">2</priority>
279
+ <project-id type="integer">54448</project-id>
280
+ <state>new</state>
281
+ <tag>choom heh pers &quot;tag1 tagster&quot; &quot;wha wha waa&quot;</tag>
282
+ <title>Cheese cakes</title>
283
+ <updated-at type="datetime">2010-07-02T20:01:36Z</updated-at>
284
+ <user-id type="integer">67916</user-id>
285
+ <user-name>Kia Kroas</user-name>
286
+ <creator-name>Kia Kroas</creator-name>
287
+ <assigned-user-name>Kia Kroas</assigned-user-name>
288
+ <url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/2</url>
289
+ </version>
290
+ <version type="Ticket::Version">
291
+ <assigned-user-id type="integer">67916</assigned-user-id>
292
+ <attachments-count type="integer">0</attachments-count>
293
+ <body>tt</body>
294
+ <body-html>&lt;div&gt;&lt;p&gt;tt&lt;/p&gt;&lt;/div&gt;</body-html>
295
+ <closed type="boolean">false</closed>
296
+ <created-at type="datetime">2010-07-02T20:02:25Z</created-at>
297
+ <creator-id type="integer">67916</creator-id>
298
+ <diffable-attributes type="yaml">--- {}
299
+
300
+ </diffable-attributes>
301
+ <milestone-id type="integer" nil="true"></milestone-id>
302
+ <number type="integer">2</number>
303
+ <permalink>test-ticket</permalink>
304
+ <priority type="integer">2</priority>
305
+ <project-id type="integer">54448</project-id>
306
+ <state>new</state>
307
+ <tag>choom heh pers &quot;tag1 tagster&quot; &quot;wha wha waa&quot;</tag>
308
+ <title>Cheese cakes</title>
309
+ <updated-at type="datetime">2010-07-02T23:14:04Z</updated-at>
310
+ <user-id type="integer">67916</user-id>
311
+ <user-name>Kia Kroas</user-name>
312
+ <creator-name>Kia Kroas</creator-name>
313
+ <assigned-user-name>Kia Kroas</assigned-user-name>
314
+ <url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/2</url>
315
+ </version>
316
+ </versions>
317
+ </ticket>