git-issue 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/VERSION +1 -1
- data/git-issue.gemspec +15 -2
- data/lib/git_issue/base.rb +5 -0
- data/lib/git_issue/github.rb +5 -0
- data/lib/git_issue/redmine.rb +6 -0
- metadata +110 -11
data/Gemfile
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.6
|
data/git-issue.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{git-issue}
|
8
|
-
s.version = "0.7.
|
8
|
+
s.version = "0.7.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tomohito Ozaki"]
|
12
|
-
s.date = %q{2012-
|
12
|
+
s.date = %q{2012-03-01}
|
13
13
|
s.default_executable = %q{git-issue}
|
14
14
|
s.description = %q{git extention command for issue tracker system.}
|
15
15
|
s.email = %q{ozaki@yuroyoro.com}
|
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
]
|
21
21
|
s.files = [
|
22
22
|
".document",
|
23
|
+
"Gemfile",
|
23
24
|
"LICENSE",
|
24
25
|
"README.markdown",
|
25
26
|
"Rakefile",
|
@@ -48,15 +49,27 @@ Gem::Specification.new do |s|
|
|
48
49
|
s.specification_version = 3
|
49
50
|
|
50
51
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
52
|
+
s.add_runtime_dependency(%q<git-issue>, [">= 0"])
|
53
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
54
|
+
s.add_development_dependency(%q<activesupport>, [">= 0"])
|
55
|
+
s.add_development_dependency(%q<pit>, [">= 0"])
|
51
56
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
52
57
|
s.add_development_dependency(%q<activesupport>, [">= 0"])
|
53
58
|
s.add_development_dependency(%q<pit>, [">= 0"])
|
54
59
|
else
|
60
|
+
s.add_dependency(%q<git-issue>, [">= 0"])
|
61
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
62
|
+
s.add_dependency(%q<activesupport>, [">= 0"])
|
63
|
+
s.add_dependency(%q<pit>, [">= 0"])
|
55
64
|
s.add_dependency(%q<rspec>, [">= 0"])
|
56
65
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
57
66
|
s.add_dependency(%q<pit>, [">= 0"])
|
58
67
|
end
|
59
68
|
else
|
69
|
+
s.add_dependency(%q<git-issue>, [">= 0"])
|
70
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
71
|
+
s.add_dependency(%q<activesupport>, [">= 0"])
|
72
|
+
s.add_dependency(%q<pit>, [">= 0"])
|
60
73
|
s.add_dependency(%q<rspec>, [">= 0"])
|
61
74
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
62
75
|
s.add_dependency(%q<pit>, [">= 0"])
|
data/lib/git_issue/base.rb
CHANGED
data/lib/git_issue/github.rb
CHANGED
@@ -89,6 +89,11 @@ class GitIssue::Github < GitIssue::Base
|
|
89
89
|
def add(options = {})
|
90
90
|
property_names = [:title, :body, :assignee, :milestone, :labels]
|
91
91
|
|
92
|
+
required_properties = [:title]
|
93
|
+
required_properties.each do |name|
|
94
|
+
options[name] = prompt(name) unless options[name]
|
95
|
+
end
|
96
|
+
|
92
97
|
json = build_issue_json(options, property_names)
|
93
98
|
url = to_url("repos", @repo, 'issues')
|
94
99
|
|
data/lib/git_issue/redmine.rb
CHANGED
@@ -71,6 +71,11 @@ class Redmine < GitIssue::Base
|
|
71
71
|
def add(options = {})
|
72
72
|
property_names = [:project_id, :subject, :description, :done_ratio, :status_id, :priority_id, :tracker_id, :assigned_to_id, :category_id, :fixed_version_id, :notes]
|
73
73
|
|
74
|
+
required_properties = [:subject, :description]
|
75
|
+
required_properties.each do |name|
|
76
|
+
options[name] = prompt(name) unless options[name]
|
77
|
+
end
|
78
|
+
|
74
79
|
json = build_issue_json(options, property_names)
|
75
80
|
json["issue"][:project_id] ||= Helper.configured_value('project')
|
76
81
|
|
@@ -85,6 +90,7 @@ class Redmine < GitIssue::Base
|
|
85
90
|
raise 'ticket_id is required.' unless ticket
|
86
91
|
|
87
92
|
property_names = [:subject, :done_ratio, :status_id, :priority_id, :tracker_id, :assigned_to_id, :category_id, :fixed_version_id, :notes]
|
93
|
+
|
88
94
|
json = build_issue_json(options, property_names)
|
89
95
|
|
90
96
|
url = to_url('issues', ticket)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-issue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 6
|
10
|
+
version: 0.7.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tomohito Ozaki
|
@@ -15,13 +15,26 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-03-01 00:00:00 +09:00
|
19
19
|
default_executable: git-issue
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
22
|
+
name: git-issue
|
23
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
23
32
|
prerelease: false
|
24
|
-
|
33
|
+
type: :runtime
|
34
|
+
requirement: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: rspec
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
25
38
|
none: false
|
26
39
|
requirements:
|
27
40
|
- - ">="
|
@@ -30,12 +43,54 @@ dependencies:
|
|
30
43
|
segments:
|
31
44
|
- 0
|
32
45
|
version: "0"
|
46
|
+
prerelease: false
|
33
47
|
type: :development
|
34
|
-
|
48
|
+
requirement: *id002
|
35
49
|
- !ruby/object:Gem::Dependency
|
36
50
|
name: activesupport
|
51
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 3
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
version: "0"
|
60
|
+
prerelease: false
|
61
|
+
type: :development
|
62
|
+
requirement: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: pit
|
65
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
hash: 3
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
version: "0"
|
74
|
+
prerelease: false
|
75
|
+
type: :development
|
76
|
+
requirement: *id004
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: rspec
|
79
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
80
|
+
none: false
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
hash: 3
|
85
|
+
segments:
|
86
|
+
- 0
|
87
|
+
version: "0"
|
37
88
|
prerelease: false
|
38
|
-
|
89
|
+
type: :development
|
90
|
+
requirement: *id005
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: activesupport
|
93
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
39
94
|
none: false
|
40
95
|
requirements:
|
41
96
|
- - ">="
|
@@ -44,12 +99,40 @@ dependencies:
|
|
44
99
|
segments:
|
45
100
|
- 0
|
46
101
|
version: "0"
|
102
|
+
prerelease: false
|
47
103
|
type: :development
|
48
|
-
|
104
|
+
requirement: *id006
|
49
105
|
- !ruby/object:Gem::Dependency
|
50
106
|
name: pit
|
107
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
hash: 3
|
113
|
+
segments:
|
114
|
+
- 0
|
115
|
+
version: "0"
|
116
|
+
prerelease: false
|
117
|
+
type: :development
|
118
|
+
requirement: *id007
|
119
|
+
- !ruby/object:Gem::Dependency
|
120
|
+
name: rspec
|
121
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
hash: 3
|
127
|
+
segments:
|
128
|
+
- 0
|
129
|
+
version: "0"
|
51
130
|
prerelease: false
|
52
|
-
|
131
|
+
type: :development
|
132
|
+
requirement: *id008
|
133
|
+
- !ruby/object:Gem::Dependency
|
134
|
+
name: activesupport
|
135
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
53
136
|
none: false
|
54
137
|
requirements:
|
55
138
|
- - ">="
|
@@ -58,8 +141,23 @@ dependencies:
|
|
58
141
|
segments:
|
59
142
|
- 0
|
60
143
|
version: "0"
|
144
|
+
prerelease: false
|
145
|
+
type: :development
|
146
|
+
requirement: *id009
|
147
|
+
- !ruby/object:Gem::Dependency
|
148
|
+
name: pit
|
149
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
150
|
+
none: false
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
hash: 3
|
155
|
+
segments:
|
156
|
+
- 0
|
157
|
+
version: "0"
|
158
|
+
prerelease: false
|
61
159
|
type: :development
|
62
|
-
|
160
|
+
requirement: *id010
|
63
161
|
description: git extention command for issue tracker system.
|
64
162
|
email: ozaki@yuroyoro.com
|
65
163
|
executables:
|
@@ -71,6 +169,7 @@ extra_rdoc_files:
|
|
71
169
|
- README.markdown
|
72
170
|
files:
|
73
171
|
- .document
|
172
|
+
- Gemfile
|
74
173
|
- LICENSE
|
75
174
|
- README.markdown
|
76
175
|
- Rakefile
|