terjira 0.3.2 → 0.3.3
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/lib/terjira/base_cli.rb +8 -4
- data/lib/terjira/issue_cli.rb +1 -1
- data/lib/terjira/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d9f2c92704ea633b18d79cee0acc826131b16489
|
|
4
|
+
data.tar.gz: 1ded1a9321c7074175b6b580de8aeb1fef321933
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 481eeaf0ad8c309ac91720060a4ababf2ab4fcd60e3e45fee479ef23c0c2a537cf528b963a349bdf9967677ae9a70ff2f440ec1da9a94b0e093d88958abb702a
|
|
7
|
+
data.tar.gz: 4c426b0b5aeffd8e9714bf8c7f999e6f9a0db888b3e3b8cb19b6258a04655d2d6dca101e87eebcd2cf98edec5cb67855720a03ce93e4c16da9b6e1a20d667a81
|
data/lib/terjira/base_cli.rb
CHANGED
|
@@ -28,15 +28,19 @@ module Terjira
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def open_url(url)
|
|
31
|
-
|
|
32
|
-
open_cmd = case ostype
|
|
31
|
+
open_cmd = case RUBY_PLATFORM
|
|
33
32
|
when /darwin/ then 'open'
|
|
34
33
|
when /cygwin/ then 'cygstart'
|
|
35
34
|
when /linux/ then 'xdg-open'
|
|
36
35
|
when /msys/ then 'start ""'
|
|
37
|
-
else
|
|
36
|
+
else nil
|
|
38
37
|
end
|
|
39
|
-
|
|
38
|
+
|
|
39
|
+
if open_cmd
|
|
40
|
+
`#{open_cmd} #{url}`
|
|
41
|
+
else
|
|
42
|
+
puts "#{RUBY_PLATFORM} is not supported"
|
|
43
|
+
end
|
|
40
44
|
end
|
|
41
45
|
end
|
|
42
46
|
end
|
data/lib/terjira/issue_cli.rb
CHANGED
|
@@ -67,7 +67,7 @@ module Terjira
|
|
|
67
67
|
jira_options :summary, :description, :project, :issuetype,
|
|
68
68
|
:priority, :assignee, :epiclink
|
|
69
69
|
def edit(issue)
|
|
70
|
-
return if options.blank?
|
|
70
|
+
return puts "Pass options you need to update" if options.blank?
|
|
71
71
|
issue = client_class.find(issue)
|
|
72
72
|
opts = suggest_options(resources: { issue: issue })
|
|
73
73
|
suggest_related_value_options(opts)
|
data/lib/terjira/version.rb
CHANGED
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.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jaehyun Shin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -260,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
260
260
|
version: '0'
|
|
261
261
|
requirements: []
|
|
262
262
|
rubyforge_project:
|
|
263
|
-
rubygems_version: 2.6.
|
|
263
|
+
rubygems_version: 2.6.8
|
|
264
264
|
signing_key:
|
|
265
265
|
specification_version: 4
|
|
266
266
|
summary: Terjira is interactive command line application for Jira
|