taskmapper-lighthouse 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.travis.yml +4 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +58 -0
- data/LICENSE +22 -0
- data/README.md +54 -0
- data/Rakefile +41 -0
- data/VERSION +1 -0
- data/lib/provider/comment.rb +85 -0
- data/lib/provider/lighthouse.rb +77 -0
- data/lib/provider/project.rb +28 -0
- data/lib/provider/ticket.rb +153 -0
- data/lib/taskmapper-lighthouse.rb +42 -0
- data/spec/comments_spec.rb +65 -0
- data/spec/fixtures/projects.json +1 -0
- data/spec/fixtures/projects/54448.json +1 -0
- data/spec/fixtures/projects/54448.xml +27 -0
- data/spec/fixtures/projects/create.json +1 -0
- data/spec/fixtures/projects/create.xml +26 -0
- data/spec/fixtures/tickets.json +1 -0
- data/spec/fixtures/tickets/2.json +1 -0
- data/spec/fixtures/tickets/2.xml +317 -0
- data/spec/fixtures/tickets/5.json +1 -0
- data/spec/fixtures/tickets/5.xml +78 -0
- data/spec/fixtures/tickets/create.json +1 -0
- data/spec/fixtures/tickets/create.xml +26 -0
- data/spec/projects_spec.rb +73 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +15 -0
- data/spec/taskmapper-lighthouse_spec.rb +22 -0
- data/spec/tickets_spec.rb +74 -0
- data/taskmapper-lighthouse.gemspec +91 -0
- metadata +166 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"ticket":{"creator_id":67916,"milestone_due_on":null,"attachments_count":0,"user_id":67916,"assigned_user_id":null,"state":"new","milestone_id":null,"permalink":"tehantuehn","project_id":54448,"original_body":"cheuasoht atesuhn","versions":[{"body":"cheuasoht atesuhn","creator_id":67916,"attachments_count":0,"user_id":67916,"assigned_user_id":null,"diffable_attributes":{},"state":"new","milestone_id":null,"permalink":"tehantuehn","project_id":54448,"type":"Ticket::Version","closed":false,"creator_name":"Kia Kroas","url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/5","number":5,"user_name":"Kia Kroas","title":"tehantuehn","updated_at":"Sat Jul 03 05:01:51 UTC 2010","body_html":"<div><p>cheuasoht atesuhn</p></div>","priority":3,"tag":null,"created_at":"Sat Jul 03 05:01:48 UTC 2010"},{"body":"New Body","creator_id":67916,"attachments_count":0,"user_id":67916,"assigned_user_id":null,"diffable_attributes":{},"state":"new","milestone_id":null,"permalink":"tehantuehn","project_id":54448,"type":"Ticket::Version","closed":false,"creator_name":"Kia Kroas","url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/5","number":5,"user_name":"Kia Kroas","title":"tehantuehn","updated_at":"Thu Jul 08 02:11:21 UTC 2010","body_html":"<div><p>New Body</p></div>","priority":3,"tag":null,"created_at":"Thu Jul 08 02:11:17 UTC 2010"}],"closed":false,"creator_name":"Kia Kroas","url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/5","number":5,"user_name":"Kia Kroas","latest_body":"cheuasoht atesuhn","original_body_html":"<div><p>cheuasoht atesuhn</p></div>","title":"tehantuehn","updated_at":"Thu Jul 08 02:11:21 UTC 2010","raw_data":{"type":"binary","encoding":"base64"},"priority":3,"tag":null,"created_at":"Sat Jul 03 05:01:48 UTC 2010"}}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ticket>
|
3
|
+
<assigned-user-id type="integer" nil="true"></assigned-user-id>
|
4
|
+
<attachments-count type="integer">0</attachments-count>
|
5
|
+
<closed type="boolean">false</closed>
|
6
|
+
<created-at type="datetime">2010-07-03T05:01:48Z</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">5</number>
|
11
|
+
<permalink>tehantuehn</permalink>
|
12
|
+
<priority type="integer">3</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 nil="true"></tag>
|
17
|
+
<title>tehantuehn</title>
|
18
|
+
<updated-at type="datetime">2010-07-08T02:11:21Z</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
|
+
<url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/5</url>
|
23
|
+
<original-body>cheuasoht atesuhn</original-body>
|
24
|
+
<latest-body>cheuasoht atesuhn</latest-body>
|
25
|
+
<original-body-html><div><p>cheuasoht atesuhn</p></div></original-body-html>
|
26
|
+
<versions type="array">
|
27
|
+
<version type="Ticket::Version">
|
28
|
+
<assigned-user-id type="integer" nil="true"></assigned-user-id>
|
29
|
+
<attachments-count type="integer">0</attachments-count>
|
30
|
+
<body>cheuasoht atesuhn</body>
|
31
|
+
<body-html><div><p>cheuasoht atesuhn</p></div></body-html>
|
32
|
+
<closed type="boolean">false</closed>
|
33
|
+
<created-at type="datetime">2010-07-03T05:01:48Z</created-at>
|
34
|
+
<creator-id type="integer">67916</creator-id>
|
35
|
+
<diffable-attributes type="yaml">--- {}
|
36
|
+
|
37
|
+
</diffable-attributes>
|
38
|
+
<milestone-id type="integer" nil="true"></milestone-id>
|
39
|
+
<number type="integer">5</number>
|
40
|
+
<permalink>tehantuehn</permalink>
|
41
|
+
<priority type="integer">3</priority>
|
42
|
+
<project-id type="integer">54448</project-id>
|
43
|
+
<state>new</state>
|
44
|
+
<tag nil="true"></tag>
|
45
|
+
<title>tehantuehn</title>
|
46
|
+
<updated-at type="datetime">2010-07-03T05:01:51Z</updated-at>
|
47
|
+
<user-id type="integer">67916</user-id>
|
48
|
+
<user-name>Kia Kroas</user-name>
|
49
|
+
<creator-name>Kia Kroas</creator-name>
|
50
|
+
<url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/5</url>
|
51
|
+
</version>
|
52
|
+
<version type="Ticket::Version">
|
53
|
+
<assigned-user-id type="integer" nil="true"></assigned-user-id>
|
54
|
+
<attachments-count type="integer">0</attachments-count>
|
55
|
+
<body>New Body</body>
|
56
|
+
<body-html><div><p>New Body</p></div></body-html>
|
57
|
+
<closed type="boolean">false</closed>
|
58
|
+
<created-at type="datetime">2010-07-08T02:11:17Z</created-at>
|
59
|
+
<creator-id type="integer">67916</creator-id>
|
60
|
+
<diffable-attributes type="yaml">--- {}
|
61
|
+
|
62
|
+
</diffable-attributes>
|
63
|
+
<milestone-id type="integer" nil="true"></milestone-id>
|
64
|
+
<number type="integer">5</number>
|
65
|
+
<permalink>tehantuehn</permalink>
|
66
|
+
<priority type="integer">3</priority>
|
67
|
+
<project-id type="integer">54448</project-id>
|
68
|
+
<state>new</state>
|
69
|
+
<tag nil="true"></tag>
|
70
|
+
<title>tehantuehn</title>
|
71
|
+
<updated-at type="datetime">2010-07-08T02:11:21Z</updated-at>
|
72
|
+
<user-id type="integer">67916</user-id>
|
73
|
+
<user-name>Kia Kroas</user-name>
|
74
|
+
<creator-name>Kia Kroas</creator-name>
|
75
|
+
<url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/5</url>
|
76
|
+
</version>
|
77
|
+
</versions>
|
78
|
+
</ticket>
|
@@ -0,0 +1 @@
|
|
1
|
+
{"ticket":{"original_body_html":"<div><p>Body</p></div>","creator_id":67916,"project_id":54448,"state":"new","title":"Ticket #12","url":"http://taskmapper.lighthouseapp.com/projects/54448/tickets/12","original_body":"Body","latest_body":"Body","priority":10,"user_name":"Kia Kroas","attachments_count":0,"permalink":"ticket-12","milestone_id":null,"number":12,"tag":null,"user_id":67916,"creator_name":"Kia Kroas","raw_data":{"encoding":"base64","type":"binary"},"closed":false,"updated_at":"Thu Jul 08 01:50:26 UTC 2010","assigned_user_id":null,"created_at":"Thu Jul 08 01:50:26 UTC 2010","milestone_due_on":null}}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ticket>
|
3
|
+
<assigned-user-id type="integer" nil="true"></assigned-user-id>
|
4
|
+
<attachments-count type="integer">0</attachments-count>
|
5
|
+
<closed type="boolean">false</closed>
|
6
|
+
<created-at type="datetime">2010-07-08T01:50:26Z</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">12</number>
|
11
|
+
<permalink>ticket-12</permalink>
|
12
|
+
<priority type="integer">10</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 nil="true"></tag>
|
17
|
+
<title>Ticket #12</title>
|
18
|
+
<updated-at type="datetime">2010-07-08T01:50:26Z</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
|
+
<url>http://taskmapper.lighthouseapp.com/projects/54448/tickets/12</url>
|
23
|
+
<original-body>Body</original-body>
|
24
|
+
<latest-body>Body</latest-body>
|
25
|
+
<original-body-html><div><p>Body</p></div></original-body-html>
|
26
|
+
</ticket>
|
@@ -0,0 +1,73 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
describe TaskMapper::Provider::Lighthouse::Project do
|
4
|
+
before(:all) do
|
5
|
+
headers = {'X-LighthouseToken' => '000000'}
|
6
|
+
wheaders = headers.merge('Content-Type' => 'application/json')
|
7
|
+
@project_id = 54448
|
8
|
+
ActiveResource::HttpMock.respond_to do |mock|
|
9
|
+
mock.get '/projects.json', headers, fixture_for('projects'), 200
|
10
|
+
mock.get '/projects/54448.json', headers, fixture_for('projects/54448'), 200
|
11
|
+
mock.get '/projects/create.json', headers, fixture_for('projects/create'), 200
|
12
|
+
mock.delete '/projects/54448.json', headers, '', 200
|
13
|
+
mock.put '/projects/54448.json', wheaders, '', 200
|
14
|
+
mock.post '/projects.json', wheaders, '', 201, 'Location' => '/projects/create.json'
|
15
|
+
mock.get '/projects/54448/tickets.json', headers, fixture_for('tickets'), 200
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
before(:each) do
|
20
|
+
@taskmapper = TaskMapper.new(:lighthouse, :token => '000000', :account => 'taskmapper')
|
21
|
+
@klass = TaskMapper::Provider::Lighthouse::Project
|
22
|
+
end
|
23
|
+
|
24
|
+
it "should be able to load all projects" do
|
25
|
+
@taskmapper.projects.should be_an_instance_of(Array)
|
26
|
+
@taskmapper.projects.first.should be_an_instance_of(@klass)
|
27
|
+
end
|
28
|
+
|
29
|
+
it "should be able to load projects from an array of ids" do
|
30
|
+
@projects = @taskmapper.projects([@project_id])
|
31
|
+
@projects.should be_an_instance_of(Array)
|
32
|
+
@projects.first.should be_an_instance_of(@klass)
|
33
|
+
@projects.first.id.should == @project_id
|
34
|
+
end
|
35
|
+
|
36
|
+
it "should be able to load all projects from attributes" do
|
37
|
+
@projects = @taskmapper.projects(:id => @project_id)
|
38
|
+
@projects.should be_an_instance_of(Array)
|
39
|
+
@projects.first.should be_an_instance_of(@klass)
|
40
|
+
@projects.first.id.should == @project_id
|
41
|
+
end
|
42
|
+
|
43
|
+
it "should be able to find a project" do
|
44
|
+
@taskmapper.project.should == @klass
|
45
|
+
@taskmapper.project.find(@project_id).should be_an_instance_of(@klass)
|
46
|
+
end
|
47
|
+
|
48
|
+
it "should be able to find a project by id" do
|
49
|
+
@taskmapper.project(@project_id).should be_an_instance_of(@klass)
|
50
|
+
@taskmapper.project(@project_id).id.should == @project_id
|
51
|
+
end
|
52
|
+
|
53
|
+
it "should be able to find a project by attributes" do
|
54
|
+
@taskmapper.project(:id => @project_id).id.should == @project_id
|
55
|
+
@taskmapper.project(:id => @project_id).should be_an_instance_of(@klass)
|
56
|
+
end
|
57
|
+
|
58
|
+
it "should be able to update and save a project" do
|
59
|
+
pending
|
60
|
+
@project = @taskmapper.project(@project_id)
|
61
|
+
@project.save.should == nil
|
62
|
+
@project.update!(:name => 'some new name').should == true
|
63
|
+
@project.name = 'this is a change'
|
64
|
+
@project.save.should == true
|
65
|
+
end
|
66
|
+
|
67
|
+
it "should be able to create a project" do
|
68
|
+
pending
|
69
|
+
@project = @taskmapper.project.create(:name => 'Project #1')
|
70
|
+
@project.should be_an_instance_of(@klass)
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
data/spec/spec.opts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
+
require 'rubygems'
|
4
|
+
require 'taskmapper'
|
5
|
+
require 'taskmapper-lighthouse'
|
6
|
+
require 'active_resource/http_mock'
|
7
|
+
require 'rspec'
|
8
|
+
|
9
|
+
RSpec.configure do |config|
|
10
|
+
config.color_enabled = true
|
11
|
+
end
|
12
|
+
|
13
|
+
def fixture_for(name)
|
14
|
+
File.read(File.dirname(__FILE__) + '/fixtures/' + name + '.json')
|
15
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
describe "TaskMapper::Provider::Lighthouse" do
|
4
|
+
|
5
|
+
before(:each) do
|
6
|
+
@taskmapper = TaskMapper.new(:lighthouse, {:account => 'taskmapper', :token => '000000'})
|
7
|
+
headers = {'X-LighthouseToken' => '000000'}
|
8
|
+
ActiveResource::HttpMock.respond_to do |mock|
|
9
|
+
mock.get '/projects.json', headers, fixture_for('projects'), 200
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should be able to instantiate a new instance" do
|
14
|
+
@taskmapper.should be_an_instance_of(TaskMapper)
|
15
|
+
@taskmapper.should be_a_kind_of(TaskMapper::Provider::Lighthouse)
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should return true for a valid authentication" do
|
19
|
+
@taskmapper.valid?.should be_true
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
describe TaskMapper::Provider::Lighthouse::Ticket 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
|
+
1.upto(100) do |page|
|
11
|
+
mock.get "/projects/54448/tickets.json?limit=100&page=#{page}", headers, fixture_for('tickets'), 200
|
12
|
+
end
|
13
|
+
mock.get '/projects/54448/tickets/5.json', headers, fixture_for('tickets/5'), 200
|
14
|
+
mock.put '/projects/54448/tickets/5.json', wheaders, '', 200
|
15
|
+
mock.post '/projects/54448/tickets.json', wheaders, fixture_for('tickets/create'), 200
|
16
|
+
end
|
17
|
+
@project_id = 54448
|
18
|
+
end
|
19
|
+
|
20
|
+
before(:each) do
|
21
|
+
@taskmapper = TaskMapper.new(:lighthouse, :account => 'taskmapper', :token => '000000')
|
22
|
+
@project = @taskmapper.project(@project_id)
|
23
|
+
@klass = TaskMapper::Provider::Lighthouse::Ticket
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should be able to load all tickets" do
|
27
|
+
@project.tickets.should be_an_instance_of(Array)
|
28
|
+
@project.tickets.first.should be_an_instance_of(@klass)
|
29
|
+
end
|
30
|
+
|
31
|
+
it "should be able to load all tickets based on an array of ids" do
|
32
|
+
@tickets = @project.tickets([5])
|
33
|
+
@tickets.should be_an_instance_of(Array)
|
34
|
+
@tickets.first.should be_an_instance_of(@klass)
|
35
|
+
@tickets.first.id.should == 5
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should be able to load all tickets based on attributes" do
|
39
|
+
@tickets = @project.tickets(:id => 5)
|
40
|
+
@tickets.should be_an_instance_of(Array)
|
41
|
+
@tickets.first.should be_an_instance_of(@klass)
|
42
|
+
@tickets.first.id.should == 5
|
43
|
+
end
|
44
|
+
|
45
|
+
it "should return the ticket class" do
|
46
|
+
@project.ticket.should == @klass
|
47
|
+
end
|
48
|
+
|
49
|
+
it "should be able to load a single ticket" do
|
50
|
+
@ticket = @project.ticket(5)
|
51
|
+
@ticket.should be_an_instance_of(@klass)
|
52
|
+
@ticket.id.should == 5
|
53
|
+
end
|
54
|
+
|
55
|
+
it "should be able to load a single ticket based on attributes" do
|
56
|
+
@ticket = @project.ticket(:id => 5)
|
57
|
+
@ticket.should be_an_instance_of(@klass)
|
58
|
+
@ticket.id.should == 5
|
59
|
+
end
|
60
|
+
|
61
|
+
it "should be able to update and save a ticket" do
|
62
|
+
pending
|
63
|
+
@ticket = @project.ticket(5)
|
64
|
+
@ticket.save.should == nil
|
65
|
+
@ticket.description = 'hello'
|
66
|
+
@ticket.save.should be_true
|
67
|
+
end
|
68
|
+
|
69
|
+
it "should be able to create a ticket" do
|
70
|
+
@ticket = @project.ticket!(:title => 'Ticket #12', :description => 'Body')
|
71
|
+
@ticket.should be_an_instance_of(@klass)
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
@@ -0,0 +1,91 @@
|
|
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 = "taskmapper-lighthouse"
|
8
|
+
s.version = "0.9.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Hong"]
|
12
|
+
s.date = "2012-05-14"
|
13
|
+
s.description = "Allows taskmapper to interact with Lighthouse's issue tracking system."
|
14
|
+
s.email = "hong.quach@abigfisch.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".travis.yml",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE",
|
25
|
+
"README.md",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"lib/provider/comment.rb",
|
29
|
+
"lib/provider/lighthouse.rb",
|
30
|
+
"lib/provider/project.rb",
|
31
|
+
"lib/provider/ticket.rb",
|
32
|
+
"lib/taskmapper-lighthouse.rb",
|
33
|
+
"spec/comments_spec.rb",
|
34
|
+
"spec/fixtures/projects.json",
|
35
|
+
"spec/fixtures/projects/54448.json",
|
36
|
+
"spec/fixtures/projects/54448.xml",
|
37
|
+
"spec/fixtures/projects/create.json",
|
38
|
+
"spec/fixtures/projects/create.xml",
|
39
|
+
"spec/fixtures/tickets.json",
|
40
|
+
"spec/fixtures/tickets/2.json",
|
41
|
+
"spec/fixtures/tickets/2.xml",
|
42
|
+
"spec/fixtures/tickets/5.json",
|
43
|
+
"spec/fixtures/tickets/5.xml",
|
44
|
+
"spec/fixtures/tickets/create.json",
|
45
|
+
"spec/fixtures/tickets/create.xml",
|
46
|
+
"spec/projects_spec.rb",
|
47
|
+
"spec/spec.opts",
|
48
|
+
"spec/spec_helper.rb",
|
49
|
+
"spec/taskmapper-lighthouse_spec.rb",
|
50
|
+
"spec/tickets_spec.rb",
|
51
|
+
"taskmapper-lighthouse.gemspec"
|
52
|
+
]
|
53
|
+
s.homepage = "http://github.com/kiafaldorius/taskmapper-lighthouse"
|
54
|
+
s.require_paths = ["lib"]
|
55
|
+
s.rubygems_version = "1.8.15"
|
56
|
+
s.summary = "TaskMapper Provider for Lighthouse"
|
57
|
+
|
58
|
+
if s.respond_to? :specification_version then
|
59
|
+
s.specification_version = 3
|
60
|
+
|
61
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
62
|
+
s.add_runtime_dependency(%q<taskmapper>, ["~> 0.8"])
|
63
|
+
s.add_runtime_dependency(%q<xml-simple>, ["~> 1.1"])
|
64
|
+
s.add_runtime_dependency(%q<addressable>, ["~> 2.2"])
|
65
|
+
s.add_runtime_dependency(%q<lighthouse-api>, ["~> 2.0"])
|
66
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8"])
|
67
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6"])
|
68
|
+
s.add_development_dependency(%q<simplecov>, ["~> 0.5"])
|
69
|
+
s.add_development_dependency(%q<rcov>, ["~> 1.0"])
|
70
|
+
else
|
71
|
+
s.add_dependency(%q<taskmapper>, ["~> 0.8"])
|
72
|
+
s.add_dependency(%q<xml-simple>, ["~> 1.1"])
|
73
|
+
s.add_dependency(%q<addressable>, ["~> 2.2"])
|
74
|
+
s.add_dependency(%q<lighthouse-api>, ["~> 2.0"])
|
75
|
+
s.add_dependency(%q<rspec>, ["~> 2.8"])
|
76
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6"])
|
77
|
+
s.add_dependency(%q<simplecov>, ["~> 0.5"])
|
78
|
+
s.add_dependency(%q<rcov>, ["~> 1.0"])
|
79
|
+
end
|
80
|
+
else
|
81
|
+
s.add_dependency(%q<taskmapper>, ["~> 0.8"])
|
82
|
+
s.add_dependency(%q<xml-simple>, ["~> 1.1"])
|
83
|
+
s.add_dependency(%q<addressable>, ["~> 2.2"])
|
84
|
+
s.add_dependency(%q<lighthouse-api>, ["~> 2.0"])
|
85
|
+
s.add_dependency(%q<rspec>, ["~> 2.8"])
|
86
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6"])
|
87
|
+
s.add_dependency(%q<simplecov>, ["~> 0.5"])
|
88
|
+
s.add_dependency(%q<rcov>, ["~> 1.0"])
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
metadata
ADDED
@@ -0,0 +1,166 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: taskmapper-lighthouse
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Hong
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-05-14 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: taskmapper
|
16
|
+
requirement: &85632190 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0.8'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *85632190
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: xml-simple
|
27
|
+
requirement: &85631930 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.1'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *85631930
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: addressable
|
38
|
+
requirement: &85631660 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '2.2'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *85631660
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: lighthouse-api
|
49
|
+
requirement: &85631390 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *85631390
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rspec
|
60
|
+
requirement: &85631130 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '2.8'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *85631130
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: jeweler
|
71
|
+
requirement: &85630870 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '1.6'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *85630870
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: simplecov
|
82
|
+
requirement: &85630610 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ~>
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0.5'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *85630610
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: rcov
|
93
|
+
requirement: &85630310 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ~>
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '1.0'
|
99
|
+
type: :development
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: *85630310
|
102
|
+
description: Allows taskmapper to interact with Lighthouse's issue tracking system.
|
103
|
+
email: hong.quach@abigfisch.com
|
104
|
+
executables: []
|
105
|
+
extensions: []
|
106
|
+
extra_rdoc_files:
|
107
|
+
- LICENSE
|
108
|
+
- README.md
|
109
|
+
files:
|
110
|
+
- .document
|
111
|
+
- .travis.yml
|
112
|
+
- Gemfile
|
113
|
+
- Gemfile.lock
|
114
|
+
- LICENSE
|
115
|
+
- README.md
|
116
|
+
- Rakefile
|
117
|
+
- VERSION
|
118
|
+
- lib/provider/comment.rb
|
119
|
+
- lib/provider/lighthouse.rb
|
120
|
+
- lib/provider/project.rb
|
121
|
+
- lib/provider/ticket.rb
|
122
|
+
- lib/taskmapper-lighthouse.rb
|
123
|
+
- spec/comments_spec.rb
|
124
|
+
- spec/fixtures/projects.json
|
125
|
+
- spec/fixtures/projects/54448.json
|
126
|
+
- spec/fixtures/projects/54448.xml
|
127
|
+
- spec/fixtures/projects/create.json
|
128
|
+
- spec/fixtures/projects/create.xml
|
129
|
+
- spec/fixtures/tickets.json
|
130
|
+
- spec/fixtures/tickets/2.json
|
131
|
+
- spec/fixtures/tickets/2.xml
|
132
|
+
- spec/fixtures/tickets/5.json
|
133
|
+
- spec/fixtures/tickets/5.xml
|
134
|
+
- spec/fixtures/tickets/create.json
|
135
|
+
- spec/fixtures/tickets/create.xml
|
136
|
+
- spec/projects_spec.rb
|
137
|
+
- spec/spec.opts
|
138
|
+
- spec/spec_helper.rb
|
139
|
+
- spec/taskmapper-lighthouse_spec.rb
|
140
|
+
- spec/tickets_spec.rb
|
141
|
+
- taskmapper-lighthouse.gemspec
|
142
|
+
homepage: http://github.com/kiafaldorius/taskmapper-lighthouse
|
143
|
+
licenses: []
|
144
|
+
post_install_message:
|
145
|
+
rdoc_options: []
|
146
|
+
require_paths:
|
147
|
+
- lib
|
148
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
149
|
+
none: false
|
150
|
+
requirements:
|
151
|
+
- - ! '>='
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
|
+
none: false
|
156
|
+
requirements:
|
157
|
+
- - ! '>='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
requirements: []
|
161
|
+
rubyforge_project:
|
162
|
+
rubygems_version: 1.8.15
|
163
|
+
signing_key:
|
164
|
+
specification_version: 3
|
165
|
+
summary: TaskMapper Provider for Lighthouse
|
166
|
+
test_files: []
|