taskmapper-github 0.11.4 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -3
- data/Gemfile.lock +35 -39
- data/VERSION +1 -1
- data/lib/provider/project.rb +2 -1
- data/spec/comment_spec.rb +1 -1
- data/spec/fixtures/projects.json +10 -8
- data/spec/project_spec.rb +3 -3
- data/spec/spec_helper.rb +2 -2
- data/taskmapper-github.gemspec +8 -9
- metadata +11 -12
- data/taskmapper-github-0.11.2.gem +0 -0
data/Gemfile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
|
-
gem "taskmapper"
|
3
|
-
gem "octokit"
|
2
|
+
gem "taskmapper"
|
3
|
+
gem "octokit"
|
4
4
|
group :development do
|
5
5
|
gem "jeweler", "~> 1.6"
|
6
6
|
gem "rspec", "~> 2.3"
|
7
|
-
gem "fakeweb"
|
7
|
+
gem "fakeweb"
|
8
8
|
gem "simplecov", "~> 0.5", :platforms => :ruby_19
|
9
9
|
gem "rcov", "~> 1.0", :platforms => :ruby_18
|
10
10
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,75 +1,71 @@
|
|
1
|
-
GIT
|
2
|
-
remote: https://github.com/bratsche/octokit.git
|
3
|
-
revision: 55b0fffd7e73fc9e098beee486b31e0fba343e40
|
4
|
-
specs:
|
5
|
-
octokit (1.16.0)
|
6
|
-
addressable (~> 2.2)
|
7
|
-
faraday (~> 0.8)
|
8
|
-
faraday_middleware (~> 0.8)
|
9
|
-
hashie (~> 1.2)
|
10
|
-
json (~> 1.7)
|
11
|
-
multi_json (~> 1.3)
|
12
|
-
|
13
1
|
GEM
|
14
2
|
remote: http://rubygems.org/
|
15
3
|
specs:
|
16
|
-
activemodel (3.2.
|
17
|
-
activesupport (= 3.2.
|
4
|
+
activemodel (3.2.13)
|
5
|
+
activesupport (= 3.2.13)
|
18
6
|
builder (~> 3.0.0)
|
19
|
-
activeresource (3.2.
|
20
|
-
activemodel (= 3.2.
|
21
|
-
activesupport (= 3.2.
|
22
|
-
activesupport (3.2.
|
23
|
-
i18n (
|
7
|
+
activeresource (3.2.13)
|
8
|
+
activemodel (= 3.2.13)
|
9
|
+
activesupport (= 3.2.13)
|
10
|
+
activesupport (3.2.13)
|
11
|
+
i18n (= 0.6.1)
|
24
12
|
multi_json (~> 1.0)
|
25
|
-
addressable (2.3.
|
13
|
+
addressable (2.3.4)
|
26
14
|
builder (3.0.4)
|
27
|
-
diff-lcs (1.
|
15
|
+
diff-lcs (1.2.3)
|
28
16
|
fakeweb (1.3.0)
|
29
17
|
faraday (0.8.7)
|
30
18
|
multipart-post (~> 1.1)
|
31
19
|
faraday_middleware (0.9.0)
|
32
20
|
faraday (>= 0.7.4, < 0.9)
|
33
21
|
git (1.2.5)
|
34
|
-
hashie (
|
22
|
+
hashie (2.0.3)
|
35
23
|
i18n (0.6.1)
|
36
24
|
jeweler (1.8.4)
|
37
25
|
bundler (~> 1.0)
|
38
26
|
git (>= 1.2.5)
|
39
27
|
rake
|
40
28
|
rdoc
|
41
|
-
json (1.7.
|
42
|
-
multi_json (1.
|
29
|
+
json (1.7.7)
|
30
|
+
multi_json (1.7.2)
|
43
31
|
multipart-post (1.2.0)
|
44
|
-
|
32
|
+
netrc (0.7.7)
|
33
|
+
octokit (1.24.0)
|
34
|
+
addressable (~> 2.2)
|
35
|
+
faraday (~> 0.8)
|
36
|
+
faraday_middleware (~> 0.9)
|
37
|
+
hashie (~> 2.0)
|
38
|
+
multi_json (~> 1.3)
|
39
|
+
netrc (~> 0.7.7)
|
40
|
+
rake (10.0.4)
|
45
41
|
rcov (1.0.0)
|
46
|
-
rdoc (
|
42
|
+
rdoc (4.0.1)
|
47
43
|
json (~> 1.4)
|
48
|
-
rspec (2.
|
49
|
-
rspec-core (~> 2.
|
50
|
-
rspec-expectations (~> 2.
|
51
|
-
rspec-mocks (~> 2.
|
52
|
-
rspec-core (2.
|
53
|
-
rspec-expectations (2.
|
54
|
-
diff-lcs (
|
55
|
-
rspec-mocks (2.
|
44
|
+
rspec (2.13.0)
|
45
|
+
rspec-core (~> 2.13.0)
|
46
|
+
rspec-expectations (~> 2.13.0)
|
47
|
+
rspec-mocks (~> 2.13.0)
|
48
|
+
rspec-core (2.13.1)
|
49
|
+
rspec-expectations (2.13.0)
|
50
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
51
|
+
rspec-mocks (2.13.1)
|
56
52
|
simplecov (0.7.1)
|
57
53
|
multi_json (~> 1.0)
|
58
54
|
simplecov-html (~> 0.7.1)
|
59
55
|
simplecov-html (0.7.1)
|
60
|
-
taskmapper (0.
|
56
|
+
taskmapper (1.0.1)
|
61
57
|
activeresource (~> 3.0)
|
62
58
|
activesupport (~> 3.0)
|
63
|
-
hashie (~>
|
59
|
+
hashie (~> 2.0)
|
64
60
|
|
65
61
|
PLATFORMS
|
66
62
|
ruby
|
67
63
|
|
68
64
|
DEPENDENCIES
|
69
|
-
fakeweb
|
65
|
+
fakeweb
|
70
66
|
jeweler (~> 1.6)
|
71
|
-
octokit
|
67
|
+
octokit
|
72
68
|
rcov (~> 1.0)
|
73
69
|
rspec (~> 2.3)
|
74
70
|
simplecov (~> 0.5)
|
75
|
-
taskmapper
|
71
|
+
taskmapper
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.12.0
|
data/lib/provider/project.rb
CHANGED
@@ -73,7 +73,8 @@ module TaskMapper::Provider
|
|
73
73
|
|
74
74
|
private
|
75
75
|
def user_repos
|
76
|
-
TaskMapper::Provider::Github.api.repositories(TaskMapper::Provider::Github.login)
|
76
|
+
repos = TaskMapper::Provider::Github.api.repositories(TaskMapper::Provider::Github.login)
|
77
|
+
repos.collect do |repository|
|
77
78
|
self.new repository
|
78
79
|
end
|
79
80
|
end
|
data/spec/comment_spec.rb
CHANGED
@@ -35,7 +35,7 @@ describe TaskMapper::Provider::Github::Comment do
|
|
35
35
|
comments = @ticket.comments.map(&:body).should == ["for testing", "test comment"]
|
36
36
|
end
|
37
37
|
|
38
|
-
|
38
|
+
pending "should be able to update comments" do
|
39
39
|
comment = @ticket.comments.first
|
40
40
|
comment.body = "updated comment"
|
41
41
|
comment.save.should be_true
|
data/spec/fixtures/projects.json
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
[
|
1
|
+
[
|
2
|
+
{
|
2
3
|
"watchers":"1",
|
3
4
|
"url":"https://api.github.com/repos/taskmapper-user/tmtest-repo",
|
4
5
|
"created_at":"2012-02-13T22:20:10Z",
|
@@ -19,16 +20,17 @@
|
|
19
20
|
"pushed_at":"null",
|
20
21
|
"updated_at":"2012-02-13T22:20:10Z",
|
21
22
|
"owner": {
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
23
|
+
"url":"https://api.github.com/users/taskmapper-user",
|
24
|
+
"avatar_url":"https://secure.gravatar.com/avatar/42bd18419413dfbd6e7ec4fefdec94ae?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
25
|
+
"gravatar_id":"42bd18419413dfbd6e7ec4fefdec94ae",
|
26
|
+
"login":"taskmapper-user",
|
27
|
+
"id":"1434902"
|
28
|
+
},
|
28
29
|
"name":"tmtest-repo",
|
29
30
|
"has_downloads":true,
|
30
31
|
"id":"3434734",
|
31
32
|
"git_url":"git://github.com/taskmapper-user/tmtest-repo.git",
|
32
33
|
"svn_url":"https://github.com/taskmapper-user/tmtest-repo",
|
33
34
|
"language":"null"
|
34
|
-
}
|
35
|
+
}
|
36
|
+
]
|
data/spec/project_spec.rb
CHANGED
@@ -25,17 +25,17 @@ describe TaskMapper::Provider::Github::Project do
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
|
28
|
+
pending "when #projects with id's" do
|
29
29
|
subject { tm.projects [project_name] }
|
30
30
|
it { should be_an_instance_of Array }
|
31
31
|
end
|
32
32
|
|
33
|
-
|
33
|
+
pending "when #projects with attributes" do
|
34
34
|
subject { tm.projects :name => project_name }
|
35
35
|
it { should be_an_instance_of Array }
|
36
36
|
end
|
37
37
|
|
38
|
-
|
38
|
+
pending "Retrieve a single project" do
|
39
39
|
context "when #project with name" do
|
40
40
|
subject { tm.project project_name }
|
41
41
|
it { should be_an_instance_of project_class }
|
data/spec/spec_helper.rb
CHANGED
@@ -17,15 +17,15 @@ FakeWeb.allow_net_connect = false
|
|
17
17
|
def fixture_file(filename)
|
18
18
|
return '' if filename == ''
|
19
19
|
file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/' + filename)
|
20
|
-
File.
|
20
|
+
File.new(file_path)
|
21
21
|
end
|
22
22
|
|
23
|
-
|
24
23
|
def stub_request(method, url, filename, status=nil)
|
25
24
|
options = {:body => ""}
|
26
25
|
options.merge!({:body => fixture_file(filename)}) if filename
|
27
26
|
options.merge!({:body => status.last}) if status
|
28
27
|
options.merge!({:status => status}) if status
|
28
|
+
options.merge!({:content_type => 'application/json'})
|
29
29
|
|
30
30
|
FakeWeb.register_uri(method, url, options)
|
31
31
|
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.
|
8
|
+
s.version = "0.12.0"
|
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 = "2013-04-
|
12
|
+
s.date = "2013-04-16"
|
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 = [
|
@@ -53,7 +53,6 @@ Gem::Specification.new do |s|
|
|
53
53
|
"spec/spec_helper.rb",
|
54
54
|
"spec/taskmapper-github_spec.rb",
|
55
55
|
"spec/ticket_spec.rb",
|
56
|
-
"taskmapper-github-0.11.2.gem",
|
57
56
|
"taskmapper-github.gemspec"
|
58
57
|
]
|
59
58
|
s.homepage = "http://github.com/kiafaldorius/taskmapper-github"
|
@@ -65,28 +64,28 @@ Gem::Specification.new do |s|
|
|
65
64
|
s.specification_version = 3
|
66
65
|
|
67
66
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
68
|
-
s.add_runtime_dependency(%q<taskmapper>, ["
|
67
|
+
s.add_runtime_dependency(%q<taskmapper>, [">= 0"])
|
69
68
|
s.add_runtime_dependency(%q<octokit>, [">= 0"])
|
70
69
|
s.add_development_dependency(%q<jeweler>, ["~> 1.6"])
|
71
70
|
s.add_development_dependency(%q<rspec>, ["~> 2.3"])
|
72
|
-
s.add_development_dependency(%q<fakeweb>, ["
|
71
|
+
s.add_development_dependency(%q<fakeweb>, [">= 0"])
|
73
72
|
s.add_development_dependency(%q<simplecov>, ["~> 0.5"])
|
74
73
|
s.add_development_dependency(%q<rcov>, ["~> 1.0"])
|
75
74
|
else
|
76
|
-
s.add_dependency(%q<taskmapper>, ["
|
75
|
+
s.add_dependency(%q<taskmapper>, [">= 0"])
|
77
76
|
s.add_dependency(%q<octokit>, [">= 0"])
|
78
77
|
s.add_dependency(%q<jeweler>, ["~> 1.6"])
|
79
78
|
s.add_dependency(%q<rspec>, ["~> 2.3"])
|
80
|
-
s.add_dependency(%q<fakeweb>, ["
|
79
|
+
s.add_dependency(%q<fakeweb>, [">= 0"])
|
81
80
|
s.add_dependency(%q<simplecov>, ["~> 0.5"])
|
82
81
|
s.add_dependency(%q<rcov>, ["~> 1.0"])
|
83
82
|
end
|
84
83
|
else
|
85
|
-
s.add_dependency(%q<taskmapper>, ["
|
84
|
+
s.add_dependency(%q<taskmapper>, [">= 0"])
|
86
85
|
s.add_dependency(%q<octokit>, [">= 0"])
|
87
86
|
s.add_dependency(%q<jeweler>, ["~> 1.6"])
|
88
87
|
s.add_dependency(%q<rspec>, ["~> 2.3"])
|
89
|
-
s.add_dependency(%q<fakeweb>, ["
|
88
|
+
s.add_dependency(%q<fakeweb>, [">= 0"])
|
90
89
|
s.add_dependency(%q<simplecov>, ["~> 0.5"])
|
91
90
|
s.add_dependency(%q<rcov>, ["~> 1.0"])
|
92
91
|
end
|
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.
|
4
|
+
version: 0.12.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: taskmapper
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0
|
21
|
+
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0
|
29
|
+
version: '0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: octokit
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,17 +80,17 @@ dependencies:
|
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
81
81
|
none: false
|
82
82
|
requirements:
|
83
|
-
- -
|
83
|
+
- - ! '>='
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: '
|
85
|
+
version: '0'
|
86
86
|
type: :development
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
91
|
-
- -
|
91
|
+
- - ! '>='
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: '
|
93
|
+
version: '0'
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: simplecov
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -167,7 +167,6 @@ files:
|
|
167
167
|
- spec/spec_helper.rb
|
168
168
|
- spec/taskmapper-github_spec.rb
|
169
169
|
- spec/ticket_spec.rb
|
170
|
-
- taskmapper-github-0.11.2.gem
|
171
170
|
- taskmapper-github.gemspec
|
172
171
|
homepage: http://github.com/kiafaldorius/taskmapper-github
|
173
172
|
licenses: []
|
@@ -183,7 +182,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
183
182
|
version: '0'
|
184
183
|
segments:
|
185
184
|
- 0
|
186
|
-
hash:
|
185
|
+
hash: 2080729090732993022
|
187
186
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
187
|
none: false
|
189
188
|
requirements:
|
Binary file
|