taskmapper-github 0.10.0 → 0.10.1
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/Gemfile +1 -1
- data/Gemfile.lock +29 -32
- data/VERSION +1 -1
- data/lib/provider/github.rb +2 -18
- data/lib/provider/project.rb +31 -31
- data/lib/provider/ticket.rb +0 -10
- data/spec/fixtures/org_repos.json +41 -0
- data/spec/fixtures/organizations.json +9 -0
- data/spec/project_spec.rb +44 -40
- data/spec/taskmapper-github_spec.rb +3 -6
- data/spec/ticket_spec.rb +45 -39
- data/taskmapper-github.gemspec +8 -6
- metadata +58 -18
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,56 +1,53 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activemodel (3.2.
|
5
|
-
activesupport (= 3.2.
|
4
|
+
activemodel (3.2.6)
|
5
|
+
activesupport (= 3.2.6)
|
6
6
|
builder (~> 3.0.0)
|
7
|
-
activeresource (3.2.
|
8
|
-
activemodel (= 3.2.
|
9
|
-
activesupport (= 3.2.
|
10
|
-
activesupport (3.2.
|
7
|
+
activeresource (3.2.6)
|
8
|
+
activemodel (= 3.2.6)
|
9
|
+
activesupport (= 3.2.6)
|
10
|
+
activesupport (3.2.6)
|
11
11
|
i18n (~> 0.6)
|
12
12
|
multi_json (~> 1.0)
|
13
|
-
addressable (2.2.
|
13
|
+
addressable (2.2.8)
|
14
14
|
builder (3.0.0)
|
15
15
|
diff-lcs (1.1.3)
|
16
16
|
fakeweb (1.3.0)
|
17
|
-
faraday (0.
|
18
|
-
addressable (~> 2.2)
|
17
|
+
faraday (0.8.1)
|
19
18
|
multipart-post (~> 1.1)
|
20
|
-
|
21
|
-
|
22
|
-
faraday (~> 0.7.3)
|
19
|
+
faraday_middleware (0.8.8)
|
20
|
+
faraday (>= 0.7.4, < 0.9)
|
23
21
|
git (1.2.5)
|
24
22
|
hashie (1.2.0)
|
25
23
|
i18n (0.6.0)
|
26
|
-
jeweler (1.8.
|
24
|
+
jeweler (1.8.4)
|
27
25
|
bundler (~> 1.0)
|
28
26
|
git (>= 1.2.5)
|
29
27
|
rake
|
30
28
|
rdoc
|
31
|
-
json (1.
|
32
|
-
multi_json (1.
|
29
|
+
json (1.7.3)
|
30
|
+
multi_json (1.3.6)
|
33
31
|
multipart-post (1.1.5)
|
34
|
-
octokit (
|
35
|
-
addressable (~> 2.2
|
36
|
-
faraday (~> 0.
|
37
|
-
faraday_middleware (~> 0.
|
38
|
-
hashie (~> 1.2
|
39
|
-
multi_json (~> 1.
|
40
|
-
rack (1.4.1)
|
32
|
+
octokit (1.9.1)
|
33
|
+
addressable (~> 2.2)
|
34
|
+
faraday (~> 0.8)
|
35
|
+
faraday_middleware (~> 0.8)
|
36
|
+
hashie (~> 1.2)
|
37
|
+
multi_json (~> 1.3)
|
41
38
|
rake (0.9.2.2)
|
42
39
|
rcov (1.0.0)
|
43
40
|
rdoc (3.12)
|
44
41
|
json (~> 1.4)
|
45
|
-
rspec (2.
|
46
|
-
rspec-core (~> 2.
|
47
|
-
rspec-expectations (~> 2.
|
48
|
-
rspec-mocks (~> 2.
|
49
|
-
rspec-core (2.
|
50
|
-
rspec-expectations (2.
|
51
|
-
diff-lcs (~> 1.1.
|
52
|
-
rspec-mocks (2.
|
53
|
-
simplecov (0.6.
|
42
|
+
rspec (2.11.0)
|
43
|
+
rspec-core (~> 2.11.0)
|
44
|
+
rspec-expectations (~> 2.11.0)
|
45
|
+
rspec-mocks (~> 2.11.0)
|
46
|
+
rspec-core (2.11.0)
|
47
|
+
rspec-expectations (2.11.1)
|
48
|
+
diff-lcs (~> 1.1.3)
|
49
|
+
rspec-mocks (2.11.1)
|
50
|
+
simplecov (0.6.4)
|
54
51
|
multi_json (~> 1.0)
|
55
52
|
simplecov-html (~> 0.5.3)
|
56
53
|
simplecov-html (0.5.3)
|
@@ -65,7 +62,7 @@ PLATFORMS
|
|
65
62
|
DEPENDENCIES
|
66
63
|
fakeweb (~> 1.3)
|
67
64
|
jeweler (~> 1.6)
|
68
|
-
octokit (~>
|
65
|
+
octokit (~> 1.9)
|
69
66
|
rcov (~> 1.0)
|
70
67
|
rspec (~> 2.3)
|
71
68
|
simplecov (~> 0.5)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.1
|
data/lib/provider/github.rb
CHANGED
@@ -4,7 +4,7 @@ module TaskMapper::Provider
|
|
4
4
|
include TaskMapper::Provider::Base
|
5
5
|
|
6
6
|
class << self
|
7
|
-
attr_accessor :login, :api, :user_token
|
7
|
+
attr_accessor :login, :api, :user_token
|
8
8
|
end
|
9
9
|
|
10
10
|
# This is for cases when you want to instantiate using TaskMapper::Provider::Github.new(auth)
|
@@ -35,23 +35,7 @@ module TaskMapper::Provider
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def valid?
|
38
|
-
|
39
|
-
TaskMapper::Provider::Github.valid_user = TaskMapper::Provider::Github.api.user.total_private_repos >= 0
|
40
|
-
rescue
|
41
|
-
false
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
def projects(*options)
|
46
|
-
Project.find(options)
|
47
|
-
end
|
48
|
-
|
49
|
-
def project(*project)
|
50
|
-
unless project.empty?
|
51
|
-
Project.find_by_id(project.first)
|
52
|
-
else
|
53
|
-
super
|
54
|
-
end
|
38
|
+
TaskMapper::Provider::Github.api.authenticated?
|
55
39
|
end
|
56
40
|
|
57
41
|
end
|
data/lib/provider/project.rb
CHANGED
@@ -4,7 +4,7 @@ module TaskMapper::Provider
|
|
4
4
|
#
|
5
5
|
#
|
6
6
|
class Project < TaskMapper::Provider::Base::Project
|
7
|
-
|
7
|
+
|
8
8
|
# declare needed overloaded methods here
|
9
9
|
def initialize(*object)
|
10
10
|
if object.first
|
@@ -55,42 +55,42 @@ module TaskMapper::Provider
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
elsif options[0].first.is_a? Array
|
62
|
-
options[0].first.collect { |name| self.find_by_id(name) }
|
63
|
-
elsif options[0].first.is_a? String
|
64
|
-
self.find_by_id(options[0].first)
|
65
|
-
elsif options[0].first.is_a? Hash
|
66
|
-
self.find_by_attributes(options[0].first)
|
58
|
+
class << self
|
59
|
+
def find_by_attributes(attributes = {})
|
60
|
+
search_by_attribute(self.find_all, attributes)
|
67
61
|
end
|
68
|
-
end
|
69
62
|
|
70
|
-
|
71
|
-
|
72
|
-
|
63
|
+
def find_by_id(id)
|
64
|
+
id = "#{TaskMapper::Provider::Github.login}/#{id}" unless id.include?("/")
|
65
|
+
self.new TaskMapper::Provider::Github.api.repository(id)
|
66
|
+
end
|
73
67
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
68
|
+
def find_all
|
69
|
+
repos = user_repos
|
70
|
+
repos += org_repos if TaskMapper::Provider::Github.api.authenticated?
|
71
|
+
repos
|
72
|
+
end
|
78
73
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
repos = repos + user_repos
|
84
|
-
if TaskMapper::Provider::Github.valid_user
|
85
|
-
org_repos = TaskMapper::Provider::Github.api.organization_repositories.collect { |repository|
|
86
|
-
self.new repository }
|
87
|
-
repos = repos + org_repos
|
74
|
+
private
|
75
|
+
def user_repos
|
76
|
+
TaskMapper::Provider::Github.api.repositories(TaskMapper::Provider::Github.login).collect do |repository|
|
77
|
+
self.new repository
|
88
78
|
end
|
89
|
-
|
90
|
-
end
|
79
|
+
end
|
91
80
|
|
92
|
-
|
93
|
-
|
81
|
+
def org_repos
|
82
|
+
repos = []
|
83
|
+
user_orgs.each do |organization|
|
84
|
+
repos += TaskMapper::Provider::Github.api.organization_repositories(organization.login).collect do |repository|
|
85
|
+
self.new(repository)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
repos.flatten
|
89
|
+
end
|
90
|
+
|
91
|
+
def user_orgs
|
92
|
+
TaskMapper::Provider::Github.api.organizations(TaskMapper::Provider::Github.login)
|
93
|
+
end
|
94
94
|
end
|
95
95
|
|
96
96
|
def ticket(*options)
|
data/lib/provider/ticket.rb
CHANGED
@@ -58,16 +58,6 @@ module TaskMapper::Provider
|
|
58
58
|
self.new issue
|
59
59
|
end
|
60
60
|
|
61
|
-
def self.find(project_id, *options)
|
62
|
-
if options[0].empty?
|
63
|
-
self.find_all(project_id)
|
64
|
-
elsif options[0].first.is_a? Array
|
65
|
-
options[0].first.collect { |number| self.find_by_id(project_id, number) }
|
66
|
-
elsif options[0].first.is_a? Hash
|
67
|
-
self.find_by_attributes(project_id, options[0].first)
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
61
|
def self.find_by_attributes(project_id, attributes = {})
|
72
62
|
issues = self.find_all(project_id)
|
73
63
|
search_by_attribute(issues, attributes)
|
@@ -0,0 +1,41 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"name": "armel",
|
4
|
+
"size": 1640,
|
5
|
+
"created_at": "2012-05-18T14:36:02Z",
|
6
|
+
"has_wiki": true,
|
7
|
+
"clone_url": "https://github.com/2hf/armel.git",
|
8
|
+
"private": false,
|
9
|
+
"updated_at": "2012-05-28T19:33:37Z",
|
10
|
+
"watchers": 1,
|
11
|
+
"url": "https://api.github.com/repos/2hf/armel",
|
12
|
+
"ssh_url": "git@github.com:2hf/armel.git",
|
13
|
+
"fork": false,
|
14
|
+
"git_url": "git://github.com/2hf/armel.git",
|
15
|
+
"language": "Ruby",
|
16
|
+
"id": 4370163,
|
17
|
+
"pushed_at": "2012-05-28T19:33:37Z",
|
18
|
+
"svn_url": "https://github.com/2hf/armel",
|
19
|
+
"mirror_url": null,
|
20
|
+
"has_downloads": true,
|
21
|
+
"open_issues": 2,
|
22
|
+
"homepage": null,
|
23
|
+
"has_issues": true,
|
24
|
+
"full_name": "2hf/armel",
|
25
|
+
"forks": 1,
|
26
|
+
"permissions": {
|
27
|
+
"admin": true,
|
28
|
+
"push": true,
|
29
|
+
"pull": true
|
30
|
+
},
|
31
|
+
"description": "Ruby Markup Language",
|
32
|
+
"html_url": "https://github.com/2hf/armel",
|
33
|
+
"owner": {
|
34
|
+
"gravatar_id": "d41d8cd98f00b204e9800998ecf8427e",
|
35
|
+
"avatar_url": "https://secure.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png",
|
36
|
+
"url": "https://api.github.com/users/2hf",
|
37
|
+
"id": 1752589,
|
38
|
+
"login": "2hf"
|
39
|
+
}
|
40
|
+
}
|
41
|
+
]
|
@@ -0,0 +1,9 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"avatar_url": "https://secure.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png",
|
4
|
+
"url": "https://api.github.com/orgs/2hf",
|
5
|
+
"id": 1752589,
|
6
|
+
"login": "2hf"
|
7
|
+
}
|
8
|
+
]
|
9
|
+
|
data/spec/project_spec.rb
CHANGED
@@ -2,48 +2,52 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
|
2
2
|
|
3
3
|
describe TaskMapper::Provider::Github::Project do
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
5
|
+
let(:tm) {TaskMapper.new(:github, :login => 'taskmapper-user', :password => 'Tm123456')}
|
6
|
+
let(:project_name) { 'tmtest-repo' }
|
7
|
+
let(:returned_repo) { 'taskmapper-user/tmtest-repo' }
|
8
|
+
let(:project_class) { TaskMapper::Provider::Github::Project }
|
9
|
+
|
10
|
+
describe "Retrieving projects" do
|
11
|
+
before(:each) do
|
12
|
+
stub_get('https://taskmapper-user:Tm123456@api.github.com/users/taskmapper-user/repos', 'projects.json')
|
13
|
+
stub_get('https://taskmapper-user:Tm123456@api.github.com/repos/taskmapper-user/tmtest-repo', 'project.json')
|
14
|
+
stub_get('https://taskmapper-user:Tm123456@api.github.com/users/taskmapper-user/orgs', 'organizations.json')
|
15
|
+
stub_get('https://taskmapper-user:Tm123456@api.github.com/orgs/2hf/repos', 'org_repos.json')
|
16
|
+
end
|
17
|
+
|
18
|
+
context "when #projects" do
|
19
|
+
subject { tm.projects }
|
20
|
+
it { should be_an_instance_of Array }
|
21
|
+
|
22
|
+
context "when #projects.first" do
|
23
|
+
subject { tm.projects.first }
|
24
|
+
it { should be_an_instance_of project_class }
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
context "when #projects with id's" do
|
29
|
+
subject { tm.projects [project_name] }
|
30
|
+
it { should be_an_instance_of Array }
|
31
|
+
end
|
32
|
+
|
33
|
+
context "when #projects with attributes" do
|
34
|
+
subject { tm.projects :name => project_name }
|
35
|
+
it { should be_an_instance_of Array }
|
36
|
+
end
|
37
|
+
|
38
|
+
describe "Retrieve a single project" do
|
39
|
+
context "when #project with name" do
|
40
|
+
subject { tm.project project_name }
|
41
|
+
it { should be_an_instance_of project_class }
|
42
|
+
end
|
43
|
+
|
44
|
+
context "when #project with attribute" do
|
45
|
+
subject { tm.project :name => project_name }
|
46
|
+
it { should be_an_instance_of project_class }
|
47
|
+
end
|
48
|
+
end
|
22
49
|
|
23
|
-
it "should be able to load all projects based on an array of name(id)" do
|
24
|
-
stub_get('https://taskmapper-user:Tm123456@api.github.com/repos/taskmapper-user/tmtest-repo', 'project.json')
|
25
|
-
@projects = @github.projects([@repo_name])
|
26
|
-
@projects.should be_an_instance_of(Array)
|
27
|
-
@projects.first.should be_an_instance_of(@klass)
|
28
|
-
@projects.first.id.should == @returned_repo
|
29
50
|
end
|
30
51
|
|
31
|
-
it "should be able to load a single project based on a single name(id)" do
|
32
|
-
@project = @github.projects(@repo_name)
|
33
|
-
@project.should be_an_instance_of(@klass)
|
34
|
-
@project.id.should == @returned_repo
|
35
|
-
end
|
36
|
-
|
37
|
-
it "should be able to find by name(id)" do
|
38
|
-
@project = @github.project(@repo_name)
|
39
|
-
@project.should be_an_instance_of(@klass)
|
40
|
-
@project.id.should == @returned_repo
|
41
|
-
end
|
42
|
-
|
43
|
-
it "should be able to find by attributes" do
|
44
|
-
@projects = @github.projects(:name => 'tmtest-repo')
|
45
|
-
@projects.should be_an_instance_of(Array)
|
46
|
-
@projects.first.id.should be_eql(@returned_repo)
|
47
|
-
end
|
48
52
|
end
|
49
53
|
|
@@ -12,16 +12,13 @@ describe "TaskMapper::Provider::Github" do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
context 'when calling #valid?' do
|
15
|
-
it 'should test #
|
16
|
-
|
17
|
-
user.should_receive(:total_private_repos).and_return 0
|
18
|
-
TaskMapper::Provider::Github.api.should_receive(:user).and_return user
|
15
|
+
it 'should test #authenticated' do
|
16
|
+
TaskMapper::Provider::Github.api.should_receive(:authenticated?).and_return true
|
19
17
|
@github.valid?.should be_true
|
20
18
|
end
|
21
19
|
|
22
20
|
it 'should return false when the user provides wrong credentials' do
|
23
|
-
TaskMapper::Provider::Github.api.should_receive(:
|
24
|
-
and_raise 'some error'
|
21
|
+
TaskMapper::Provider::Github.api.should_receive(:authenticated?).and_return false
|
25
22
|
@github.valid?.should_not be_true
|
26
23
|
end
|
27
24
|
end
|
data/spec/ticket_spec.rb
CHANGED
@@ -1,48 +1,54 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
2
|
|
3
3
|
describe TaskMapper::Provider::Github::Ticket do
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
4
|
+
|
5
|
+
let(:tm) { TaskMapper.new(:github, {:login => 'taskmapper-user', :password => 'Tm123456'}) }
|
6
|
+
let(:ticket_id) { 1 }
|
7
|
+
let(:ticket_class) { TaskMapper::Provider::Github::Ticket }
|
8
|
+
let(:project) { tm.project 'tmtest-repo' }
|
9
|
+
|
10
|
+
describe "Retrieving tickets" do
|
11
|
+
before(:each) do
|
12
|
+
stub_get('https://taskmapper-user:Tm123456@api.github.com/orgs/2hf/repos', 'org_repos.json')
|
13
|
+
stub_get('https://taskmapper-user:Tm123456@api.github.com/repos/taskmapper-user/tmtest-repo/issues/1', 'issues/1.json')
|
14
|
+
stub_get('https://taskmapper-user:Tm123456@api.github.com/repos/taskmapper-user/tmtest-repo/issues', 'issues.json')
|
15
|
+
stub_get('https://taskmapper-user:Tm123456@api.github.com/repos/taskmapper-user/tmtest-repo/issues?state=closed', 'issues.json')
|
16
|
+
stub_get('https://taskmapper-user:Tm123456@api.github.com/repos/taskmapper-user/tmtest-repo/issues?state=open', 'issues.json')
|
17
|
+
end
|
18
|
+
|
19
|
+
context "when #tickets" do
|
20
|
+
subject { project.tickets }
|
21
|
+
it { should be_an_instance_of Array }
|
22
|
+
it { should_not be_empty }
|
23
|
+
|
24
|
+
context "when #tickets.first" do
|
25
|
+
subject { project.tickets.first }
|
26
|
+
it { should be_an_instance_of ticket_class }
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
context "when #tickets with array of id's" do
|
31
|
+
subject { project.tickets [ticket_id] }
|
32
|
+
it { should be_an_instance_of Array }
|
33
|
+
it { should_not be_empty }
|
34
|
+
end
|
35
|
+
|
36
|
+
context "when #tickets with attributes" do
|
37
|
+
subject { project.tickets :id => ticket_id }
|
38
|
+
it { should be_an_instance_of Array }
|
39
|
+
it { should_not be_empty }
|
40
|
+
end
|
35
41
|
end
|
36
42
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
end
|
43
|
+
describe "Create and Update" do
|
44
|
+
before(:each) do
|
45
|
+
stub_post('https://taskmapper-user:Tm123456@api.github.com/repos/taskmapper-user/tmtest-repo/issues', 'issues/1.json')
|
46
|
+
end
|
42
47
|
|
43
|
-
|
44
|
-
|
45
|
-
|
48
|
+
context "when #ticket! with :title and :description" do
|
49
|
+
subject { project.ticket!(:title => 'new ticket', :description => 'testing') }
|
50
|
+
it { should be_an_instance_of ticket_class }
|
51
|
+
end
|
46
52
|
end
|
47
53
|
|
48
54
|
end
|
data/taskmapper-github.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "taskmapper-github"
|
8
|
-
s.version = "0.10.
|
8
|
+
s.version = "0.10.1"
|
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 = "2012-
|
12
|
+
s.date = "2012-07-17"
|
13
13
|
s.description = "This provides an interface with github through the taskmapper gem."
|
14
14
|
s.email = "hong.quach@abigfisch.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -42,6 +42,8 @@ Gem::Specification.new do |s|
|
|
42
42
|
"spec/fixtures/issues.json",
|
43
43
|
"spec/fixtures/issues/1.json",
|
44
44
|
"spec/fixtures/issues/new_ticket.json",
|
45
|
+
"spec/fixtures/org_repos.json",
|
46
|
+
"spec/fixtures/organizations.json",
|
45
47
|
"spec/fixtures/project.json",
|
46
48
|
"spec/fixtures/projects.json",
|
47
49
|
"spec/fixtures/repositories.json",
|
@@ -54,7 +56,7 @@ Gem::Specification.new do |s|
|
|
54
56
|
]
|
55
57
|
s.homepage = "http://github.com/kiafaldorius/taskmapper-github"
|
56
58
|
s.require_paths = ["lib"]
|
57
|
-
s.rubygems_version = "1.8.
|
59
|
+
s.rubygems_version = "1.8.24"
|
58
60
|
s.summary = "The github provider for taskmapper"
|
59
61
|
|
60
62
|
if s.respond_to? :specification_version then
|
@@ -62,7 +64,7 @@ Gem::Specification.new do |s|
|
|
62
64
|
|
63
65
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
64
66
|
s.add_runtime_dependency(%q<taskmapper>, ["~> 0.8"])
|
65
|
-
s.add_runtime_dependency(%q<octokit>, ["~>
|
67
|
+
s.add_runtime_dependency(%q<octokit>, ["~> 1.9"])
|
66
68
|
s.add_development_dependency(%q<jeweler>, ["~> 1.6"])
|
67
69
|
s.add_development_dependency(%q<rspec>, ["~> 2.3"])
|
68
70
|
s.add_development_dependency(%q<fakeweb>, ["~> 1.3"])
|
@@ -70,7 +72,7 @@ Gem::Specification.new do |s|
|
|
70
72
|
s.add_development_dependency(%q<rcov>, ["~> 1.0"])
|
71
73
|
else
|
72
74
|
s.add_dependency(%q<taskmapper>, ["~> 0.8"])
|
73
|
-
s.add_dependency(%q<octokit>, ["~>
|
75
|
+
s.add_dependency(%q<octokit>, ["~> 1.9"])
|
74
76
|
s.add_dependency(%q<jeweler>, ["~> 1.6"])
|
75
77
|
s.add_dependency(%q<rspec>, ["~> 2.3"])
|
76
78
|
s.add_dependency(%q<fakeweb>, ["~> 1.3"])
|
@@ -79,7 +81,7 @@ Gem::Specification.new do |s|
|
|
79
81
|
end
|
80
82
|
else
|
81
83
|
s.add_dependency(%q<taskmapper>, ["~> 0.8"])
|
82
|
-
s.add_dependency(%q<octokit>, ["~>
|
84
|
+
s.add_dependency(%q<octokit>, ["~> 1.9"])
|
83
85
|
s.add_dependency(%q<jeweler>, ["~> 1.6"])
|
84
86
|
s.add_dependency(%q<rspec>, ["~> 2.3"])
|
85
87
|
s.add_dependency(%q<fakeweb>, ["~> 1.3"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taskmapper-github
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: taskmapper
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,21 +21,31 @@ dependencies:
|
|
21
21
|
version: '0.8'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.8'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: octokit
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ~>
|
31
36
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
37
|
+
version: '1.9'
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '1.9'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: jeweler
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ~>
|
@@ -43,10 +53,15 @@ dependencies:
|
|
43
53
|
version: '1.6'
|
44
54
|
type: :development
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.6'
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: rspec
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
67
|
- - ~>
|
@@ -54,10 +69,15 @@ dependencies:
|
|
54
69
|
version: '2.3'
|
55
70
|
type: :development
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '2.3'
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: fakeweb
|
60
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
61
81
|
none: false
|
62
82
|
requirements:
|
63
83
|
- - ~>
|
@@ -65,10 +85,15 @@ dependencies:
|
|
65
85
|
version: '1.3'
|
66
86
|
type: :development
|
67
87
|
prerelease: false
|
68
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '1.3'
|
69
94
|
- !ruby/object:Gem::Dependency
|
70
95
|
name: simplecov
|
71
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
72
97
|
none: false
|
73
98
|
requirements:
|
74
99
|
- - ~>
|
@@ -76,10 +101,15 @@ dependencies:
|
|
76
101
|
version: '0.5'
|
77
102
|
type: :development
|
78
103
|
prerelease: false
|
79
|
-
version_requirements:
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0.5'
|
80
110
|
- !ruby/object:Gem::Dependency
|
81
111
|
name: rcov
|
82
|
-
requirement:
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
83
113
|
none: false
|
84
114
|
requirements:
|
85
115
|
- - ~>
|
@@ -87,7 +117,12 @@ dependencies:
|
|
87
117
|
version: '1.0'
|
88
118
|
type: :development
|
89
119
|
prerelease: false
|
90
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '1.0'
|
91
126
|
description: This provides an interface with github through the taskmapper gem.
|
92
127
|
email: hong.quach@abigfisch.com
|
93
128
|
executables: []
|
@@ -121,6 +156,8 @@ files:
|
|
121
156
|
- spec/fixtures/issues.json
|
122
157
|
- spec/fixtures/issues/1.json
|
123
158
|
- spec/fixtures/issues/new_ticket.json
|
159
|
+
- spec/fixtures/org_repos.json
|
160
|
+
- spec/fixtures/organizations.json
|
124
161
|
- spec/fixtures/project.json
|
125
162
|
- spec/fixtures/projects.json
|
126
163
|
- spec/fixtures/repositories.json
|
@@ -142,6 +179,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
179
|
- - ! '>='
|
143
180
|
- !ruby/object:Gem::Version
|
144
181
|
version: '0'
|
182
|
+
segments:
|
183
|
+
- 0
|
184
|
+
hash: -233008721
|
145
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
186
|
none: false
|
147
187
|
requirements:
|
@@ -150,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
190
|
version: '0'
|
151
191
|
requirements: []
|
152
192
|
rubyforge_project:
|
153
|
-
rubygems_version: 1.8.
|
193
|
+
rubygems_version: 1.8.24
|
154
194
|
signing_key:
|
155
195
|
specification_version: 3
|
156
196
|
summary: The github provider for taskmapper
|