terjira 0.4.7 → 0.4.8
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +23 -23
- data/lib/terjira/client/issue.rb +1 -1
- data/lib/terjira/issue_cli.rb +5 -5
- data/lib/terjira/option_support/shared_options.rb +33 -33
- data/lib/terjira/version.rb +1 -1
- data/terjira.gemspec +4 -4
- metadata +10 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a991b9bffdc241eecbee477c0472644b9c4bd995f0ff1ae1d5501fb6db744b22
|
|
4
|
+
data.tar.gz: be798aeb119fb896a56cdc486701a65dbfc83d145e8d02dec4276ad835233a1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a46d31fe879bebef6382d6175f9792632fa8e7cf7b31379ae805ca0807c6a6aa486bae041c58992910ee2630474b028efbbc4b9f1d721c1efefcccc111c5554b
|
|
7
|
+
data.tar.gz: 2ad8959446f5b6a1e27be7e791d4d0dd73752a9f1e67d17c92344bb8528c89db1526a078766c8de2729d91427fab40b4856e058032d67c225d0a986963ab4591
|
data/Gemfile.lock
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
terjira (0.4.
|
|
5
|
-
activesupport (
|
|
6
|
-
jira-ruby (
|
|
4
|
+
terjira (0.4.8)
|
|
5
|
+
activesupport (>= 4)
|
|
6
|
+
jira-ruby (~> 2.1)
|
|
7
7
|
thor (~> 1.0.1)
|
|
8
8
|
tty-prompt (~> 0.20.0)
|
|
9
9
|
tty-spinner (~> 0.9.3)
|
|
@@ -12,7 +12,7 @@ PATH
|
|
|
12
12
|
GEM
|
|
13
13
|
remote: https://rubygems.org/
|
|
14
14
|
specs:
|
|
15
|
-
activesupport (6.0.3.
|
|
15
|
+
activesupport (6.0.3.4)
|
|
16
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
17
17
|
i18n (>= 0.7, < 2)
|
|
18
18
|
minitest (~> 5.1)
|
|
@@ -22,12 +22,12 @@ GEM
|
|
|
22
22
|
jwt (~> 2.1.0)
|
|
23
23
|
coderay (1.1.3)
|
|
24
24
|
concurrent-ruby (1.1.7)
|
|
25
|
-
diff-lcs (1.4.
|
|
25
|
+
diff-lcs (1.4.4)
|
|
26
26
|
docile (1.3.2)
|
|
27
27
|
equatable (0.6.1)
|
|
28
28
|
i18n (1.8.5)
|
|
29
29
|
concurrent-ruby (~> 1.0)
|
|
30
|
-
jira-ruby (2.
|
|
30
|
+
jira-ruby (2.1.3)
|
|
31
31
|
activesupport
|
|
32
32
|
atlassian-jwt
|
|
33
33
|
multipart-post
|
|
@@ -45,23 +45,23 @@ GEM
|
|
|
45
45
|
coderay (~> 1.1.0)
|
|
46
46
|
method_source (~> 0.9.0)
|
|
47
47
|
rake (13.0.1)
|
|
48
|
-
rspec (3.
|
|
49
|
-
rspec-core (~> 3.
|
|
50
|
-
rspec-expectations (~> 3.
|
|
51
|
-
rspec-mocks (~> 3.
|
|
52
|
-
rspec-core (3.
|
|
53
|
-
rspec-support (~> 3.
|
|
54
|
-
rspec-expectations (3.
|
|
48
|
+
rspec (3.10.0)
|
|
49
|
+
rspec-core (~> 3.10.0)
|
|
50
|
+
rspec-expectations (~> 3.10.0)
|
|
51
|
+
rspec-mocks (~> 3.10.0)
|
|
52
|
+
rspec-core (3.10.0)
|
|
53
|
+
rspec-support (~> 3.10.0)
|
|
54
|
+
rspec-expectations (3.10.0)
|
|
55
55
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
56
|
-
rspec-support (~> 3.
|
|
57
|
-
rspec-mocks (3.
|
|
56
|
+
rspec-support (~> 3.10.0)
|
|
57
|
+
rspec-mocks (3.10.0)
|
|
58
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
59
|
-
rspec-support (~> 3.
|
|
60
|
-
rspec-support (3.
|
|
61
|
-
simplecov (0.
|
|
59
|
+
rspec-support (~> 3.10.0)
|
|
60
|
+
rspec-support (3.10.0)
|
|
61
|
+
simplecov (0.19.1)
|
|
62
62
|
docile (~> 1.1)
|
|
63
63
|
simplecov-html (~> 0.11)
|
|
64
|
-
simplecov-html (0.12.
|
|
64
|
+
simplecov-html (0.12.3)
|
|
65
65
|
strings (0.1.8)
|
|
66
66
|
strings-ansi (~> 0.1)
|
|
67
67
|
unicode-display_width (~> 1.5)
|
|
@@ -69,7 +69,7 @@ GEM
|
|
|
69
69
|
strings-ansi (0.2.0)
|
|
70
70
|
thor (1.0.1)
|
|
71
71
|
thread_safe (0.3.6)
|
|
72
|
-
tty-color (0.
|
|
72
|
+
tty-color (0.6.0)
|
|
73
73
|
tty-cursor (0.7.1)
|
|
74
74
|
tty-prompt (0.20.0)
|
|
75
75
|
necromancer (~> 0.5.0)
|
|
@@ -79,7 +79,7 @@ GEM
|
|
|
79
79
|
tty-cursor (~> 0.7)
|
|
80
80
|
tty-screen (~> 0.7)
|
|
81
81
|
wisper (~> 2.0.0)
|
|
82
|
-
tty-screen (0.
|
|
82
|
+
tty-screen (0.8.1)
|
|
83
83
|
tty-spinner (0.9.3)
|
|
84
84
|
tty-cursor (~> 0.7)
|
|
85
85
|
tty-table (0.11.0)
|
|
@@ -88,12 +88,12 @@ GEM
|
|
|
88
88
|
pastel (~> 0.7.2)
|
|
89
89
|
strings (~> 0.1.5)
|
|
90
90
|
tty-screen (~> 0.7)
|
|
91
|
-
tzinfo (1.2.
|
|
91
|
+
tzinfo (1.2.8)
|
|
92
92
|
thread_safe (~> 0.1)
|
|
93
93
|
unicode-display_width (1.7.0)
|
|
94
94
|
unicode_utils (1.4.0)
|
|
95
95
|
wisper (2.0.1)
|
|
96
|
-
zeitwerk (2.4.
|
|
96
|
+
zeitwerk (2.4.1)
|
|
97
97
|
|
|
98
98
|
PLATFORMS
|
|
99
99
|
ruby
|
data/lib/terjira/client/issue.rb
CHANGED
|
@@ -95,7 +95,7 @@ module Terjira
|
|
|
95
95
|
|
|
96
96
|
custom_fields = options.keys.select { |k| k.to_s =~ /^customfield/ }
|
|
97
97
|
|
|
98
|
-
(custom_fields + [:summary, :description]).
|
|
98
|
+
(custom_fields + [:summary, :description]).each_entry do |k, _v|
|
|
99
99
|
params[k] = opts.delete(k) if opts.key?(k)
|
|
100
100
|
end
|
|
101
101
|
|
data/lib/terjira/issue_cli.rb
CHANGED
|
@@ -54,8 +54,8 @@ module Terjira
|
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
desc 'new', 'Create an issue'
|
|
57
|
-
jira_options :
|
|
58
|
-
:
|
|
57
|
+
jira_options :assignee, :description, :epiclink, :editor,
|
|
58
|
+
:project, :priority, :summary, :issuetype, :parent
|
|
59
59
|
def new
|
|
60
60
|
opts = suggest_options(required: [:project, :summary, :issuetype])
|
|
61
61
|
|
|
@@ -66,10 +66,10 @@ module Terjira
|
|
|
66
66
|
end
|
|
67
67
|
|
|
68
68
|
desc 'edit [ISSUE_KEY]', 'Edit the issue'
|
|
69
|
-
jira_options :
|
|
70
|
-
:
|
|
69
|
+
jira_options :assignee, :epiclink, :editor, :description,
|
|
70
|
+
:project, :priority, :summary, :issuetype
|
|
71
71
|
def edit(issue)
|
|
72
|
-
return puts "Pass options
|
|
72
|
+
return puts "Pass options to be updated. Use 'jira issue help edit' for the options." if options.blank?
|
|
73
73
|
issue = client_class.find(issue)
|
|
74
74
|
opts = suggest_options(resources: { issue: issue })
|
|
75
75
|
suggest_related_value_options(opts)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
module Terjira
|
|
2
2
|
module SharedOptions
|
|
3
3
|
OPTIONS = {
|
|
4
|
-
'
|
|
4
|
+
'assignee' => {
|
|
5
5
|
type: :string,
|
|
6
|
-
aliases: '-
|
|
6
|
+
aliases: '-a'
|
|
7
7
|
},
|
|
8
8
|
'board' => {
|
|
9
9
|
type: :numeric,
|
|
@@ -11,57 +11,57 @@ module Terjira
|
|
|
11
11
|
banner: 'BOARD_ID',
|
|
12
12
|
lazy_default: 'board'
|
|
13
13
|
},
|
|
14
|
-
'
|
|
15
|
-
type: :numeric,
|
|
16
|
-
banner: 'SPRINT_ID',
|
|
17
|
-
lazy_default: 'sprint'
|
|
18
|
-
},
|
|
19
|
-
'assignee' => {
|
|
14
|
+
'description' => {
|
|
20
15
|
type: :string,
|
|
21
|
-
aliases: '-
|
|
22
|
-
},
|
|
23
|
-
'state' => {
|
|
24
|
-
type: :array,
|
|
25
|
-
aliases: '-s',
|
|
26
|
-
default: %w[Active Future],
|
|
27
|
-
lazy_default: %w[Active Future],
|
|
28
|
-
enum: %w[Active Future Closed]
|
|
16
|
+
aliases: '-d'
|
|
29
17
|
},
|
|
30
|
-
'
|
|
18
|
+
'epiclink' => {
|
|
31
19
|
type: :string,
|
|
32
|
-
aliases: '-
|
|
20
|
+
aliases: '-e'
|
|
33
21
|
},
|
|
34
|
-
'
|
|
22
|
+
'editor' => {
|
|
23
|
+
type: :boolean,
|
|
24
|
+
aliases: '-E'
|
|
25
|
+
},
|
|
26
|
+
'comment' => {
|
|
35
27
|
type: :string,
|
|
36
|
-
aliases: '-
|
|
28
|
+
aliases: '-m'
|
|
37
29
|
},
|
|
38
|
-
'
|
|
30
|
+
'project' => {
|
|
39
31
|
type: :string,
|
|
40
|
-
aliases: '-
|
|
32
|
+
aliases: '-p'
|
|
41
33
|
},
|
|
42
34
|
'priority' => {
|
|
43
35
|
type: :string,
|
|
44
36
|
aliases: '-P'
|
|
45
37
|
},
|
|
46
|
-
'
|
|
38
|
+
'resolution' => {
|
|
47
39
|
type: :string,
|
|
48
|
-
aliases: '-
|
|
40
|
+
aliases: '-r'
|
|
49
41
|
},
|
|
50
|
-
'
|
|
42
|
+
'state' => {
|
|
43
|
+
type: :array,
|
|
44
|
+
aliases: '-s',
|
|
45
|
+
default: %w[Active Future],
|
|
46
|
+
lazy_default: %w[Active Future],
|
|
47
|
+
enum: %w[Active Future Closed]
|
|
48
|
+
},
|
|
49
|
+
'status' => {
|
|
51
50
|
type: :string,
|
|
52
|
-
aliases: '-
|
|
51
|
+
aliases: '-s',
|
|
53
52
|
},
|
|
54
|
-
'
|
|
53
|
+
'summary' => {
|
|
55
54
|
type: :string,
|
|
56
|
-
aliases: '-
|
|
55
|
+
aliases: '-S'
|
|
57
56
|
},
|
|
58
|
-
'
|
|
57
|
+
'issuetype' => {
|
|
59
58
|
type: :string,
|
|
60
|
-
aliases: '-
|
|
59
|
+
aliases: '-t'
|
|
61
60
|
},
|
|
62
|
-
'
|
|
63
|
-
type: :
|
|
64
|
-
|
|
61
|
+
'sprint' => {
|
|
62
|
+
type: :numeric,
|
|
63
|
+
banner: 'SPRINT_ID',
|
|
64
|
+
lazy_default: 'sprint'
|
|
65
65
|
}
|
|
66
66
|
}.freeze
|
|
67
67
|
|
data/lib/terjira/version.rb
CHANGED
data/terjira.gemspec
CHANGED
|
@@ -7,8 +7,8 @@ require 'terjira/version'
|
|
|
7
7
|
Gem::Specification.new do |spec|
|
|
8
8
|
spec.name = "terjira"
|
|
9
9
|
spec.version = Terjira::VERSION
|
|
10
|
-
spec.authors = ["Jaehyun Shin"
|
|
11
|
-
spec.email = ["keepcosmos@gmail.com"
|
|
10
|
+
spec.authors = ["Jaehyun Shin"]
|
|
11
|
+
spec.email = ["keepcosmos@gmail.com"]
|
|
12
12
|
|
|
13
13
|
spec.summary = "Terjira is interactive command line application for Jira"
|
|
14
14
|
spec.description = "Terjira is interactive and easy to use command line interface (or Application) for Jira.\nYou do not need to remember resource key or id. Terjira suggests with interactive prompt."
|
|
@@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
spec.require_paths = ["lib"]
|
|
22
22
|
|
|
23
23
|
spec.add_dependency "thor", "~> 1.0.1"
|
|
24
|
-
spec.add_dependency "jira-ruby", "2.
|
|
25
|
-
spec.add_dependency "activesupport", "
|
|
24
|
+
spec.add_dependency "jira-ruby", "~> 2.1"
|
|
25
|
+
spec.add_dependency "activesupport", ">= 4"
|
|
26
26
|
|
|
27
27
|
spec.add_dependency "tty-table", "~> 0.11.0"
|
|
28
28
|
spec.add_dependency "tty-prompt", "~> 0.20.0"
|
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: terjira
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jaehyun Shin
|
|
8
|
-
- Ren Guoy
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date: 2020-
|
|
11
|
+
date: 2020-11-23 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: thor
|
|
@@ -29,30 +28,30 @@ dependencies:
|
|
|
29
28
|
name: jira-ruby
|
|
30
29
|
requirement: !ruby/object:Gem::Requirement
|
|
31
30
|
requirements:
|
|
32
|
-
- -
|
|
31
|
+
- - "~>"
|
|
33
32
|
- !ruby/object:Gem::Version
|
|
34
|
-
version: 2.
|
|
33
|
+
version: '2.1'
|
|
35
34
|
type: :runtime
|
|
36
35
|
prerelease: false
|
|
37
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
37
|
requirements:
|
|
39
|
-
- -
|
|
38
|
+
- - "~>"
|
|
40
39
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: 2.
|
|
40
|
+
version: '2.1'
|
|
42
41
|
- !ruby/object:Gem::Dependency
|
|
43
42
|
name: activesupport
|
|
44
43
|
requirement: !ruby/object:Gem::Requirement
|
|
45
44
|
requirements:
|
|
46
|
-
- -
|
|
45
|
+
- - ">="
|
|
47
46
|
- !ruby/object:Gem::Version
|
|
48
|
-
version:
|
|
47
|
+
version: '4'
|
|
49
48
|
type: :runtime
|
|
50
49
|
prerelease: false
|
|
51
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
52
51
|
requirements:
|
|
53
|
-
- -
|
|
52
|
+
- - ">="
|
|
54
53
|
- !ruby/object:Gem::Version
|
|
55
|
-
version:
|
|
54
|
+
version: '4'
|
|
56
55
|
- !ruby/object:Gem::Dependency
|
|
57
56
|
name: tty-table
|
|
58
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -170,7 +169,6 @@ description: |-
|
|
|
170
169
|
You do not need to remember resource key or id. Terjira suggests with interactive prompt.
|
|
171
170
|
email:
|
|
172
171
|
- keepcosmos@gmail.com
|
|
173
|
-
- zhiren.guoy@hey.com
|
|
174
172
|
executables:
|
|
175
173
|
- jira
|
|
176
174
|
extensions: []
|