taskmapper-mingle 0.2.0
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/.rvmrc +1 -0
- data/.travis.yml +4 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +54 -0
- data/LICENSE.txt +20 -0
- data/README.md +77 -0
- data/Rakefile +35 -0
- data/VERSION +1 -0
- data/lib/mingle/mingle-api.rb +228 -0
- data/lib/provider/comment.rb +47 -0
- data/lib/provider/mingle.rb +38 -0
- data/lib/provider/project.rb +62 -0
- data/lib/provider/ticket.rb +102 -0
- data/lib/taskmapper-mingle.rb +5 -0
- data/spec/comments_spec.rb +40 -0
- data/spec/fixtures/cards.xml +83 -0
- data/spec/fixtures/cards/42.xml +41 -0
- data/spec/fixtures/cards/43.xml +42 -0
- data/spec/fixtures/cards/create.xml +42 -0
- data/spec/fixtures/comments.xml +20 -0
- data/spec/fixtures/comments/create.xml +10 -0
- data/spec/fixtures/projects.xml +57 -0
- data/spec/fixtures/projects/another_project_.xml +29 -0
- data/spec/fixtures/projects/create.xml +29 -0
- data/spec/fixtures/projects/test_project.xml +29 -0
- data/spec/projects_spec.rb +56 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +14 -0
- data/spec/taskmapper-mingle_spec.rb +19 -0
- data/spec/tickets_spec.rb +72 -0
- data/taskmapper-mingle.gemspec +81 -0
- metadata +160 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<card_comments type="array">
|
3
|
+
<comment>
|
4
|
+
<content>Hi</content>
|
5
|
+
<created_by url="http://localhost:8080/api/v2/users/21.xml">
|
6
|
+
<name>Jeff</name>
|
7
|
+
<login>j</login>
|
8
|
+
</created_by>
|
9
|
+
<created_at type="datetime">2010-03-10T21:16:39Z</created_at>
|
10
|
+
</comment>
|
11
|
+
<comment>
|
12
|
+
<content>hello there</content>
|
13
|
+
<created_by url="http://localhost:8080/api/v2/users/1.xml">
|
14
|
+
<name>bonna</name>
|
15
|
+
<login>bonna</login>
|
16
|
+
</created_by>
|
17
|
+
<created_at type="datetime">2010-03-10T21:16:02Z</created_at>
|
18
|
+
</comment>
|
19
|
+
</card_comments>
|
20
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<comment>
|
3
|
+
<content>a new comment</content>
|
4
|
+
<created_by url="http://localhost:8080/api/v2/users/1.xml">
|
5
|
+
<name>bonna</name>
|
6
|
+
<login>bonna</login>
|
7
|
+
</created_by>
|
8
|
+
<created_at type="datetime">2010-04-11T20:18:02Z</created_at>
|
9
|
+
</comment>
|
10
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<projects type="array">
|
3
|
+
<project>
|
4
|
+
<name>Test Project</name>
|
5
|
+
<identifier>test_project</identifier>
|
6
|
+
<description>Test Project description</description>
|
7
|
+
<created_at type="datetime">2009-10-20T10:37:52Z></created_at>
|
8
|
+
<updated_at type="datetime">2009-10-21T00:47:55Z></updated_at>
|
9
|
+
<created_by url="http://localhost:8080/api/v2/users/8.xml">
|
10
|
+
<name>anne</name>
|
11
|
+
<login>anne</login>
|
12
|
+
</created_by>
|
13
|
+
<modified_by url="http://localhost:8080/api/v2/users/2.xml">
|
14
|
+
<name>bonna</name>
|
15
|
+
<login>bonna</login>
|
16
|
+
</modified_by>
|
17
|
+
<keywords>
|
18
|
+
<keyword>card</keyword>
|
19
|
+
<keyword>#</keyword>
|
20
|
+
</keywords>
|
21
|
+
<template type="boolean">false</template>
|
22
|
+
<email_address></email_address>
|
23
|
+
<email_sender_name></email_sender_name>
|
24
|
+
<date_format>%d %b %Y</date_format>
|
25
|
+
<time_zone>Beijing</time_zone>
|
26
|
+
<precision type="integer">2</precision>
|
27
|
+
<anonymous_accessible type="boolean">false</anonymous_accessible>
|
28
|
+
<auto_enroll_user_type nil="true"></auto_enroll_user_type>
|
29
|
+
</project>
|
30
|
+
<project>
|
31
|
+
<name>Another Project</name>
|
32
|
+
<identifier>another_project</identifier>
|
33
|
+
<description>Another Project description</description>
|
34
|
+
<created_at type="datetime">2010-11-20T10:37:52Z></created_at>
|
35
|
+
<updated_at type="datetime">2010-11-21T00:47:55Z></updated_at>
|
36
|
+
<created_by url="http://localhost:8080/api/v2/users/8.xml">
|
37
|
+
<name>anne</name>
|
38
|
+
<login>anne</login>
|
39
|
+
</created_by>
|
40
|
+
<modified_by url="http://localhost:8080/api/v2/users/2.xml">
|
41
|
+
<name>bonna</name>
|
42
|
+
<login>bonna</login>
|
43
|
+
</modified_by>
|
44
|
+
<keywords>
|
45
|
+
<keyword>card</keyword>
|
46
|
+
<keyword>#</keyword>
|
47
|
+
</keywords>
|
48
|
+
<template type="boolean">false</template>
|
49
|
+
<email_address></email_address>
|
50
|
+
<email_sender_name></email_sender_name>
|
51
|
+
<date_format>%d %b %Y</date_format>
|
52
|
+
<time_zone>Beijing</time_zone>
|
53
|
+
<precision type="integer">2</precision>
|
54
|
+
<anonymous_accessible type="boolean">false</anonymous_accessible>
|
55
|
+
<auto_enroll_user_type nil="true"></auto_enroll_user_type>
|
56
|
+
</project>
|
57
|
+
</projects>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project>
|
3
|
+
<name>Another Project</name>
|
4
|
+
<identifier>another_project</identifier>
|
5
|
+
<description>Another Project description</description>
|
6
|
+
<created_at type="datetime">2010-11-20T10:37:52Z></created_at>
|
7
|
+
<updated_at type="datetime">2010-11-21T00:47:55Z></updated_at>
|
8
|
+
<created_by url="http://localhost:8080/api/v2/users/8.xml">
|
9
|
+
<name>anne</name>
|
10
|
+
<login>anne</login>
|
11
|
+
</created_by>
|
12
|
+
<modified_by url="http://localhost:8080/api/v2/users/2.xml">
|
13
|
+
<name>bonna</name>
|
14
|
+
<login>bonna</login>
|
15
|
+
</modified_by>
|
16
|
+
<keywords>
|
17
|
+
<keyword>card</keyword>
|
18
|
+
<keyword>#</keyword>
|
19
|
+
</keywords>
|
20
|
+
<template type="boolean">false</template>
|
21
|
+
<email_address></email_address>
|
22
|
+
<email_sender_name></email_sender_name>
|
23
|
+
<date_format>%d %b %Y</date_format>
|
24
|
+
<time_zone>Beijing</time_zone>
|
25
|
+
<precision type="integer">2</precision>
|
26
|
+
<anonymous_accessible type="boolean">false</anonymous_accessible>
|
27
|
+
<auto_enroll_user_type nil="true"></auto_enroll_user_type>
|
28
|
+
</project>
|
29
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project>
|
3
|
+
<name>Dumb Project</name>
|
4
|
+
<identifier>dumb</identifier>
|
5
|
+
<description>Dumb project description</description>
|
6
|
+
<created_at type="datetime">2009-10-20T10:37:52Z></created_at>
|
7
|
+
<updated_at type="datetime">2009-10-21T00:47:55Z></updated_at>
|
8
|
+
<created_by url="http://myserver.com/api/v2/users/8.xml">
|
9
|
+
<name>anne</name>
|
10
|
+
<login>anne</login>
|
11
|
+
</created_by>
|
12
|
+
<modified_by url="http://myserver.com/api/v2/users/2.xml">
|
13
|
+
<name>bonna</name>
|
14
|
+
<login>bonna</login>
|
15
|
+
</modified_by>
|
16
|
+
<keywords>
|
17
|
+
<keyword>card</keyword>
|
18
|
+
<keyword>#</keyword>
|
19
|
+
</keywords>
|
20
|
+
<template type="boolean">false</template>
|
21
|
+
<email_address></email_address>
|
22
|
+
<email_sender_name></email_sender_name>
|
23
|
+
<date_format>%d %b %Y</date_format>
|
24
|
+
<time_zone>Beijing</time_zone>
|
25
|
+
<precision type="integer">2</precision>
|
26
|
+
<anonymous_accessible type="boolean">false</anonymous_accessible>
|
27
|
+
<auto_enroll_user_type nil="true"></auto_enroll_user_type>
|
28
|
+
</project>
|
29
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project>
|
3
|
+
<name>Test Project</name>
|
4
|
+
<identifier>test_project</identifier>
|
5
|
+
<description>Test Project description</description>
|
6
|
+
<created_at type="datetime">2009-10-20T10:37:52Z></created_at>
|
7
|
+
<updated_at type="datetime">2009-10-21T00:47:55Z></updated_at>
|
8
|
+
<created_by url="http://localhost:8080/api/v2/users/8.xml">
|
9
|
+
<name>anne</name>
|
10
|
+
<login>anne</login>
|
11
|
+
</created_by>
|
12
|
+
<modified_by url="http://localhost:8080/api/v2/users/2.xml">
|
13
|
+
<name>bonna</name>
|
14
|
+
<login>bonna</login>
|
15
|
+
</modified_by>
|
16
|
+
<keywords>
|
17
|
+
<keyword>card</keyword>
|
18
|
+
<keyword>#</keyword>
|
19
|
+
</keywords>
|
20
|
+
<template type="boolean">false</template>
|
21
|
+
<email_address></email_address>
|
22
|
+
<email_sender_name></email_sender_name>
|
23
|
+
<date_format>%d %b %Y</date_format>
|
24
|
+
<time_zone>Beijing</time_zone>
|
25
|
+
<precision type="integer">2</precision>
|
26
|
+
<anonymous_accessible type="boolean">false</anonymous_accessible>
|
27
|
+
<auto_enroll_user_type nil="true"></auto_enroll_user_type>
|
28
|
+
</project>
|
29
|
+
|
@@ -0,0 +1,56 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
describe "TaskMapper::Provider::Mingle::Project" do
|
4
|
+
before(:all) do
|
5
|
+
headers = {'Authorization' => 'Basic OjAwMDAwMA==', 'Accept' => 'application/xml'}
|
6
|
+
headers_post = {'Authorization' => 'Basic OjAwMDAwMA==', 'Content-Type' => 'application/xml'}
|
7
|
+
@identifier = 'test_project'
|
8
|
+
ActiveResource::HttpMock.respond_to do |mock|
|
9
|
+
mock.get '/api/v2/projects.xml', headers, fixture_for('projects'), 200
|
10
|
+
mock.get '/api/v2/projects/test_project.xml', headers, fixture_for('projects/test_project'), 200
|
11
|
+
mock.get '/api/v2/projects/dumb.xml', headers, fixture_for('projects/create'), 404
|
12
|
+
mock.post '/api/v2/projects.xml?project[name]=Another%20project&project[description]=This%20is%20a%20another%20project&project[identifier]=dumb', headers_post, '', 200, 'Location' => '/projects/dumb'
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
before(:each) do
|
17
|
+
@taskmapper = TaskMapper.new(:mingle, {:server => 'myserver.com', :username => 'anymoto', :password => '000000'})
|
18
|
+
@klass = TaskMapper::Provider::Mingle::Project
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should be able to load all projects" do
|
22
|
+
@taskmapper.projects.should be_an_instance_of(Array)
|
23
|
+
@taskmapper.projects.first.should be_an_instance_of(@klass)
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should be able to load projects from an array of id's" do
|
27
|
+
@projects = @taskmapper.projects([@identifier])
|
28
|
+
@projects.should be_an_instance_of(Array)
|
29
|
+
@projects.first.should be_an_instance_of(@klass)
|
30
|
+
@projects.first.identifier.should == @identifier
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should be able to load all projects from attributes" do
|
34
|
+
@projects = @taskmapper.projects(:identifier => 'test_project')
|
35
|
+
@projects.should be_an_instance_of(Array)
|
36
|
+
@projects.first.should be_an_instance_of(@klass)
|
37
|
+
@projects.first.identifier.should == 'test_project'
|
38
|
+
end
|
39
|
+
|
40
|
+
it "should be able to find a project" do
|
41
|
+
@taskmapper.project.should == @klass
|
42
|
+
@taskmapper.project.find(@identifier).should be_an_instance_of(@klass)
|
43
|
+
end
|
44
|
+
|
45
|
+
it "should be able to find a project by identifier" do
|
46
|
+
@taskmapper.project(@identifier).should be_an_instance_of(@klass)
|
47
|
+
@taskmapper.project(@identifier).identifier.should == @identifier
|
48
|
+
end
|
49
|
+
|
50
|
+
it "should be able to create a new project" do
|
51
|
+
pending
|
52
|
+
@project = @taskmapper.project!(:name => 'Another project', :identifier => 'dumb', :description => 'This is a another project').should be_an_instance_of(@klass)
|
53
|
+
end
|
54
|
+
|
55
|
+
|
56
|
+
end
|
data/spec/spec.opts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,14 @@
|
|
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-mingle'
|
6
|
+
require 'rspec'
|
7
|
+
|
8
|
+
RSpec.configure do |config|
|
9
|
+
config.color_enabled = true
|
10
|
+
end
|
11
|
+
|
12
|
+
def fixture_for(name)
|
13
|
+
File.read(File.dirname(__FILE__) + '/fixtures/' + name + '.xml')
|
14
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
describe "TaskMapper::Provider::Mingle" do
|
4
|
+
|
5
|
+
before(:all) do
|
6
|
+
@taskmapper = TaskMapper.new(:mingle, {:server => 'myserver.com', :username => 'anymoto', :password => '000000'})
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should be able to instantiate a new instance" do
|
10
|
+
@taskmapper.should be_an_instance_of(TaskMapper)
|
11
|
+
@taskmapper.should be_a_kind_of(TaskMapper::Provider::Mingle)
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should return true for a valid authentication" do
|
15
|
+
pendinZ
|
16
|
+
@taskmapper.valid?.should be_true
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
describe "TaskMapper::Provider::Mingle::Ticket" do
|
4
|
+
before(:all) do
|
5
|
+
headers = {'Authorization' => 'Basic OjAwMDAwMA==', 'Accept' => 'application/xml'}
|
6
|
+
headers_post_put = {'Authorization' => 'Basic OjAwMDAwMA==', 'Content-Type' => 'application/xml'}
|
7
|
+
@identifier = 'test_project'
|
8
|
+
ActiveResource::HttpMock.respond_to do |mock|
|
9
|
+
mock.get '/api/v2/projects.xml', headers, fixture_for('projects'), 200
|
10
|
+
mock.get '/api/v2/projects/test_project.xml', headers, fixture_for('projects/test_project'), 200
|
11
|
+
mock.get '/api/v2/projects/test_project/cards/42.xml', headers, fixture_for('cards/42'), 200
|
12
|
+
mock.get '/api/v2/projects/test_project/cards.xml', headers, fixture_for('cards'), 200
|
13
|
+
mock.get '/api/v2/projects/test_project/cards/42.xml', headers, fixture_for('cards/42'), 200
|
14
|
+
mock.put '/api/v2/projects/test_project/cards/42.xml?card[number]=42&card[name]=Ticket%201&card[created_on]=Wed%20Oct%2014%2009:14:54%20UTC%202009&card[id]=0&card[modified_on]=Wed%20Oct%2014%2009:14:54%20UTC%202009&card[description]=New%20card%20description', headers_post_put, '', 200
|
15
|
+
mock.post '/api/v2/projects/test_project/cards.xml?card[title]=Ticket%20%2312&card[description]=Body', headers_post_put, '', 200
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
before(:each) do
|
20
|
+
@taskmapper = TaskMapper.new(:mingle, {:server => 'myserver.com', :username => 'anymoto', :password => '000000'})
|
21
|
+
@project = @taskmapper.project(@identifier)
|
22
|
+
@klass = TaskMapper::Provider::Mingle::Ticket
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should be able to load all tickets" do
|
26
|
+
@project.tickets.should be_an_instance_of(Array)
|
27
|
+
@project.tickets.first.should be_an_instance_of(@klass)
|
28
|
+
end
|
29
|
+
|
30
|
+
it "should be able to load all tickets based on an array of id's" do
|
31
|
+
@tickets = @project.tickets([42])
|
32
|
+
@tickets.should be_an_instance_of(Array)
|
33
|
+
@tickets.first.should be_an_instance_of(@klass)
|
34
|
+
@tickets.first.name.should == 'Ticket 1'
|
35
|
+
end
|
36
|
+
|
37
|
+
it "should be able to load all tickets based on attributes" do
|
38
|
+
@tickets = @project.tickets(:number => 42)
|
39
|
+
@tickets.should be_an_instance_of(Array)
|
40
|
+
@tickets.first.should be_an_instance_of(@klass)
|
41
|
+
@tickets.first.name.should == 'Ticket 1'
|
42
|
+
end
|
43
|
+
|
44
|
+
it "should return the ticket class" do
|
45
|
+
@project.ticket.should == @klass
|
46
|
+
end
|
47
|
+
|
48
|
+
it "should be able to load a single ticket" do
|
49
|
+
@ticket = @project.ticket(42)
|
50
|
+
@ticket.should be_an_instance_of(@klass)
|
51
|
+
@ticket.name.should == 'Ticket 1'
|
52
|
+
end
|
53
|
+
|
54
|
+
it "shoule be able to load a single ticket based on attributes" do
|
55
|
+
@ticket = @project.ticket(:number => 42)
|
56
|
+
@ticket.should be_an_instance_of(@klass)
|
57
|
+
@ticket.name.should == 'Ticket 1'
|
58
|
+
end
|
59
|
+
|
60
|
+
it "should be able to update and save a ticket" do
|
61
|
+
pending
|
62
|
+
@ticket = @project.ticket(42)
|
63
|
+
@ticket.description = 'New card description'
|
64
|
+
@ticket.save.should == true
|
65
|
+
end
|
66
|
+
|
67
|
+
it "should be able to create a ticket" do
|
68
|
+
@ticket = @project.ticket!(:title => 'Ticket #12', :description => 'Body')
|
69
|
+
@ticket.should be_an_instance_of(@klass)
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
@@ -0,0 +1,81 @@
|
|
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-mingle"
|
8
|
+
s.version = "0.2.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Hybridgroup"]
|
12
|
+
s.date = "2012-05-16"
|
13
|
+
s.description = "Allows taskmapper to interact with Mingle"
|
14
|
+
s.email = "ana@hybridgroup.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".rvmrc",
|
21
|
+
".travis.yml",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.md",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"lib/mingle/mingle-api.rb",
|
29
|
+
"lib/provider/comment.rb",
|
30
|
+
"lib/provider/mingle.rb",
|
31
|
+
"lib/provider/project.rb",
|
32
|
+
"lib/provider/ticket.rb",
|
33
|
+
"lib/taskmapper-mingle.rb",
|
34
|
+
"spec/comments_spec.rb",
|
35
|
+
"spec/fixtures/cards.xml",
|
36
|
+
"spec/fixtures/cards/42.xml",
|
37
|
+
"spec/fixtures/cards/43.xml",
|
38
|
+
"spec/fixtures/cards/create.xml",
|
39
|
+
"spec/fixtures/comments.xml",
|
40
|
+
"spec/fixtures/comments/create.xml",
|
41
|
+
"spec/fixtures/projects.xml",
|
42
|
+
"spec/fixtures/projects/another_project_.xml",
|
43
|
+
"spec/fixtures/projects/create.xml",
|
44
|
+
"spec/fixtures/projects/test_project.xml",
|
45
|
+
"spec/projects_spec.rb",
|
46
|
+
"spec/spec.opts",
|
47
|
+
"spec/spec_helper.rb",
|
48
|
+
"spec/taskmapper-mingle_spec.rb",
|
49
|
+
"spec/tickets_spec.rb",
|
50
|
+
"taskmapper-mingle.gemspec"
|
51
|
+
]
|
52
|
+
s.homepage = "http://ticketrb.com"
|
53
|
+
s.require_paths = ["lib"]
|
54
|
+
s.rubygems_version = "1.8.24"
|
55
|
+
s.summary = "TaskMapper Provider for Mingle"
|
56
|
+
|
57
|
+
if s.respond_to? :specification_version then
|
58
|
+
s.specification_version = 3
|
59
|
+
|
60
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
61
|
+
s.add_runtime_dependency(%q<taskmapper>, ["~> 0.8"])
|
62
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8"])
|
63
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6"])
|
64
|
+
s.add_development_dependency(%q<simplecov>, ["~> 0.5"])
|
65
|
+
s.add_development_dependency(%q<rcov>, ["~> 1.0"])
|
66
|
+
else
|
67
|
+
s.add_dependency(%q<taskmapper>, ["~> 0.8"])
|
68
|
+
s.add_dependency(%q<rspec>, ["~> 2.8"])
|
69
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6"])
|
70
|
+
s.add_dependency(%q<simplecov>, ["~> 0.5"])
|
71
|
+
s.add_dependency(%q<rcov>, ["~> 1.0"])
|
72
|
+
end
|
73
|
+
else
|
74
|
+
s.add_dependency(%q<taskmapper>, ["~> 0.8"])
|
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
|
+
end
|
81
|
+
|
metadata
ADDED
@@ -0,0 +1,160 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: taskmapper-mingle
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Hybridgroup
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-05-16 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: taskmapper
|
16
|
+
requirement: !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: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.8'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '2.8'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '2.8'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: jeweler
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.6'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.6'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: simplecov
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0.5'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0.5'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rcov
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '1.0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '1.0'
|
94
|
+
description: Allows taskmapper to interact with Mingle
|
95
|
+
email: ana@hybridgroup.com
|
96
|
+
executables: []
|
97
|
+
extensions: []
|
98
|
+
extra_rdoc_files:
|
99
|
+
- LICENSE.txt
|
100
|
+
- README.md
|
101
|
+
files:
|
102
|
+
- .rvmrc
|
103
|
+
- .travis.yml
|
104
|
+
- Gemfile
|
105
|
+
- Gemfile.lock
|
106
|
+
- LICENSE.txt
|
107
|
+
- README.md
|
108
|
+
- Rakefile
|
109
|
+
- VERSION
|
110
|
+
- lib/mingle/mingle-api.rb
|
111
|
+
- lib/provider/comment.rb
|
112
|
+
- lib/provider/mingle.rb
|
113
|
+
- lib/provider/project.rb
|
114
|
+
- lib/provider/ticket.rb
|
115
|
+
- lib/taskmapper-mingle.rb
|
116
|
+
- spec/comments_spec.rb
|
117
|
+
- spec/fixtures/cards.xml
|
118
|
+
- spec/fixtures/cards/42.xml
|
119
|
+
- spec/fixtures/cards/43.xml
|
120
|
+
- spec/fixtures/cards/create.xml
|
121
|
+
- spec/fixtures/comments.xml
|
122
|
+
- spec/fixtures/comments/create.xml
|
123
|
+
- spec/fixtures/projects.xml
|
124
|
+
- spec/fixtures/projects/another_project_.xml
|
125
|
+
- spec/fixtures/projects/create.xml
|
126
|
+
- spec/fixtures/projects/test_project.xml
|
127
|
+
- spec/projects_spec.rb
|
128
|
+
- spec/spec.opts
|
129
|
+
- spec/spec_helper.rb
|
130
|
+
- spec/taskmapper-mingle_spec.rb
|
131
|
+
- spec/tickets_spec.rb
|
132
|
+
- taskmapper-mingle.gemspec
|
133
|
+
homepage: http://ticketrb.com
|
134
|
+
licenses: []
|
135
|
+
post_install_message:
|
136
|
+
rdoc_options: []
|
137
|
+
require_paths:
|
138
|
+
- lib
|
139
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
140
|
+
none: false
|
141
|
+
requirements:
|
142
|
+
- - ! '>='
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
segments:
|
146
|
+
- 0
|
147
|
+
hash: -463752593
|
148
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
|
+
none: false
|
150
|
+
requirements:
|
151
|
+
- - ! '>='
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
requirements: []
|
155
|
+
rubyforge_project:
|
156
|
+
rubygems_version: 1.8.24
|
157
|
+
signing_key:
|
158
|
+
specification_version: 3
|
159
|
+
summary: TaskMapper Provider for Mingle
|
160
|
+
test_files: []
|