terjira 0.3.9 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +33 -29
- data/README.md +1 -0
- data/lib/terjira/client/issue.rb +6 -0
- data/lib/terjira/issue_cli.rb +7 -0
- data/lib/terjira/version.rb +1 -1
- data/terjira.gemspec +2 -2
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 046f6b4a0d275e738467f4943cad18704099fd46
|
4
|
+
data.tar.gz: edc47213f38ef1f61a3f821d267fb8685e720b50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 897effd0059c257a5c1dc3395e560952f2d57be60030c3386f7f88812e8b11d8a010069b2d1988497e2a04d8f869ae37fabc2acfd0bd482393b85b6c084039d4
|
7
|
+
data.tar.gz: 94b7ccc46b256f99dffcb52b54bbbf7a5db57ef76942e7faca6edd09e8e7d1175ed0bddacbadf076971436baebec343a96976aa328c8e3428904358814885f65
|
data/Gemfile.lock
CHANGED
@@ -2,8 +2,8 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
terjira (0.3.9)
|
5
|
-
activesupport (= 4.
|
6
|
-
jira-ruby (= 1.
|
5
|
+
activesupport (= 4.1.11)
|
6
|
+
jira-ruby (= 1.5.0)
|
7
7
|
thor (~> 0.19.0)
|
8
8
|
tty-prompt (~> 0.12.0)
|
9
9
|
tty-spinner (~> 0.4.1)
|
@@ -12,29 +12,32 @@ PATH
|
|
12
12
|
GEM
|
13
13
|
remote: https://rubygems.org/
|
14
14
|
specs:
|
15
|
-
activesupport (4.
|
15
|
+
activesupport (4.1.11)
|
16
16
|
i18n (~> 0.6, >= 0.6.9)
|
17
|
-
|
18
|
-
|
17
|
+
json (~> 1.7, >= 1.7.7)
|
18
|
+
minitest (~> 5.1)
|
19
19
|
thread_safe (~> 0.1)
|
20
|
-
tzinfo (~>
|
20
|
+
tzinfo (~> 1.1)
|
21
21
|
codeclimate-test-reporter (1.0.8)
|
22
22
|
simplecov (<= 0.13)
|
23
|
-
coderay (1.1.
|
23
|
+
coderay (1.1.2)
|
24
|
+
concurrent-ruby (1.0.5)
|
24
25
|
diff-lcs (1.3)
|
25
26
|
docile (1.1.5)
|
26
27
|
equatable (0.5.0)
|
27
|
-
i18n (0.
|
28
|
-
|
28
|
+
i18n (0.9.1)
|
29
|
+
concurrent-ruby (~> 1.0)
|
30
|
+
jira-ruby (1.5.0)
|
29
31
|
activesupport
|
32
|
+
multipart-post
|
30
33
|
oauth (~> 0.5, >= 0.5.0)
|
31
|
-
json (
|
34
|
+
json (1.8.6)
|
32
35
|
method_source (0.8.2)
|
33
|
-
minitest (
|
34
|
-
|
36
|
+
minitest (5.10.3)
|
37
|
+
multipart-post (2.0.0)
|
35
38
|
necromancer (0.4.0)
|
36
|
-
oauth (0.5.
|
37
|
-
pastel (0.7.
|
39
|
+
oauth (0.5.4)
|
40
|
+
pastel (0.7.2)
|
38
41
|
equatable (~> 0.5.0)
|
39
42
|
tty-color (~> 0.4.0)
|
40
43
|
pry (0.10.4)
|
@@ -42,24 +45,24 @@ GEM
|
|
42
45
|
method_source (~> 0.8.1)
|
43
46
|
slop (~> 3.4)
|
44
47
|
rake (10.5.0)
|
45
|
-
rspec (3.
|
46
|
-
rspec-core (~> 3.
|
47
|
-
rspec-expectations (~> 3.
|
48
|
-
rspec-mocks (~> 3.
|
49
|
-
rspec-core (3.
|
50
|
-
rspec-support (~> 3.
|
51
|
-
rspec-expectations (3.
|
48
|
+
rspec (3.7.0)
|
49
|
+
rspec-core (~> 3.7.0)
|
50
|
+
rspec-expectations (~> 3.7.0)
|
51
|
+
rspec-mocks (~> 3.7.0)
|
52
|
+
rspec-core (3.7.0)
|
53
|
+
rspec-support (~> 3.7.0)
|
54
|
+
rspec-expectations (3.7.0)
|
52
55
|
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
-
rspec-support (~> 3.
|
54
|
-
rspec-mocks (3.
|
56
|
+
rspec-support (~> 3.7.0)
|
57
|
+
rspec-mocks (3.7.0)
|
55
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
56
|
-
rspec-support (~> 3.
|
57
|
-
rspec-support (3.
|
59
|
+
rspec-support (~> 3.7.0)
|
60
|
+
rspec-support (3.7.0)
|
58
61
|
simplecov (0.13.0)
|
59
62
|
docile (~> 1.1.0)
|
60
63
|
json (>= 1.8, < 3)
|
61
64
|
simplecov-html (~> 0.10.0)
|
62
|
-
simplecov-html (0.10.
|
65
|
+
simplecov-html (0.10.2)
|
63
66
|
slop (3.6.0)
|
64
67
|
thor (0.19.4)
|
65
68
|
thread_safe (0.3.6)
|
@@ -70,7 +73,7 @@ GEM
|
|
70
73
|
pastel (~> 0.7.0)
|
71
74
|
tty-cursor (~> 0.4.0)
|
72
75
|
wisper (~> 1.6.1)
|
73
|
-
tty-screen (0.5.
|
76
|
+
tty-screen (0.5.1)
|
74
77
|
tty-spinner (0.4.1)
|
75
78
|
tty-table (0.8.0)
|
76
79
|
equatable (~> 0.5.0)
|
@@ -79,7 +82,8 @@ GEM
|
|
79
82
|
tty-screen (~> 0.5.0)
|
80
83
|
unicode-display_width (~> 1.1.0)
|
81
84
|
verse (~> 0.5.0)
|
82
|
-
tzinfo (
|
85
|
+
tzinfo (1.2.4)
|
86
|
+
thread_safe (~> 0.1)
|
83
87
|
unicode-display_width (1.1.3)
|
84
88
|
unicode_utils (1.4.0)
|
85
89
|
verse (0.5.0)
|
@@ -100,4 +104,4 @@ DEPENDENCIES
|
|
100
104
|
terjira!
|
101
105
|
|
102
106
|
BUNDLED WITH
|
103
|
-
1.
|
107
|
+
1.15.4
|
data/README.md
CHANGED
@@ -69,6 +69,7 @@ Issue:
|
|
69
69
|
jira issue search "[SUMMARY]" # Search for an issues by summary
|
70
70
|
jira issue [ISSUE_KEY] # Show detail of the issue
|
71
71
|
jira issue assign [ISSUE_KEY] ([ASSIGNEE]) # Assign the issue to user
|
72
|
+
jira issue attach_file [ISSUE_KEY] ([FILE_PATH]) #Attach a file to issue
|
72
73
|
jira issue comment [ISSUE_KEY] # Write comment on the issue
|
73
74
|
# pass `-E` or `--editor` to open system default editor for composing comment
|
74
75
|
jira issue delete [ISSUE_KEY] # Delete the issue
|
data/lib/terjira/client/issue.rb
CHANGED
@@ -36,6 +36,12 @@ module Terjira
|
|
36
36
|
api_put("issue/#{issue.key_value}/assignee", body)
|
37
37
|
end
|
38
38
|
|
39
|
+
def attach_file(issue, file)
|
40
|
+
attachment = JIRA::Resource::Attachment.new(client, issue: find(issue))
|
41
|
+
attachment.save!('file' => file)
|
42
|
+
find(issue)
|
43
|
+
end
|
44
|
+
|
39
45
|
def write_comment(issue, message)
|
40
46
|
api_post("issue/#{issue.key_value}/comment", { body: message }.to_json)
|
41
47
|
find(issue)
|
data/lib/terjira/issue_cli.rb
CHANGED
@@ -94,6 +94,13 @@ module Terjira
|
|
94
94
|
render_issue_detail(issue)
|
95
95
|
end
|
96
96
|
|
97
|
+
desc 'attach_file [ISSUE_KEY] [FILE]', 'Attach a file to the issue'
|
98
|
+
jira_options :file
|
99
|
+
def attach_file(issue, file)
|
100
|
+
issue = client_class.attach_file(issue, file)
|
101
|
+
render_issue_detail(issue)
|
102
|
+
end
|
103
|
+
|
97
104
|
desc 'take [ISSUE_KEY]', 'Assign the issue to self'
|
98
105
|
def take(issue)
|
99
106
|
assign(issue, current_username)
|
data/lib/terjira/version.rb
CHANGED
data/terjira.gemspec
CHANGED
@@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
23
|
spec.add_dependency "thor", "~> 0.19.0"
|
24
|
-
spec.add_dependency "jira-ruby", "1.
|
25
|
-
spec.add_dependency "activesupport", "4.
|
24
|
+
spec.add_dependency "jira-ruby", "1.5.0"
|
25
|
+
spec.add_dependency "activesupport", "4.1.11"
|
26
26
|
|
27
27
|
spec.add_dependency "tty-table", "~> 0.8.0"
|
28
28
|
spec.add_dependency "tty-prompt", "~> 0.12.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terjira
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaehyun Shin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.5.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.5.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activesupport
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 4.
|
47
|
+
version: 4.1.11
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 4.
|
54
|
+
version: 4.1.11
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: tty-table
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -261,9 +261,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
261
|
version: '0'
|
262
262
|
requirements: []
|
263
263
|
rubyforge_project:
|
264
|
-
rubygems_version: 2.
|
264
|
+
rubygems_version: 2.6.8
|
265
265
|
signing_key:
|
266
266
|
specification_version: 4
|
267
267
|
summary: Terjira is interactive command line application for Jira
|
268
268
|
test_files: []
|
269
|
-
has_rdoc:
|