jira_command 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1558b0814cb78718eb90f8b6959a76e0730baaf3e95fa40bac1cd8f30fdbb73
4
- data.tar.gz: 68788d7679149d09614eb832b798ecc86fdac9ad1576edbe3d06690413864820
3
+ metadata.gz: e2c9b3262387f7a4242b81d4f275403255f23b4580eb760b3f215632088101ae
4
+ data.tar.gz: c68abe1b2cdeff4fce6186a9d50b5652bdeacb26df4c1ce2e5712d25f9180545
5
5
  SHA512:
6
- metadata.gz: b62c905b65fd122b12e4e0d538714d5cff372c011afc8e67cd3871f62c33358e7a172957cadce6b96f7edb85c50328a68fdf4a4f0847eb909814fbab2cee3757
7
- data.tar.gz: ff91926ba9e2ec69ccd279f43e07485a6c1aa8f03ab02cab8cc1e6d56aa836465e07a274096f6e2df9d0cc6e89bf44df69644c5dd358b461f037a8653b8f5dff
6
+ metadata.gz: a8a7f93e5df6080bc59e04678b80ad5a64b8d43c792386a97eb306f6144b0e106b90fbf4138f27ea2412919f4556f092e66c9bdc2abc1e7dd46b90616ed17b1a
7
+ data.tar.gz: 35391e5e8119bb35de7fdd065b082c966ef9c6ab0f893d4cbe33b963eca3c8b9e46c5331fe9f3dbd807aab6140808886f340780b2e67179a84a1de981b581d1b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jira_command (0.1.4)
4
+ jira_command (0.1.5)
5
5
  thor
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -30,16 +30,17 @@ $ jira_command config create
30
30
  > Please input your registered email address: <example@xincere.jp>
31
31
  > Please input your token: <token got in jira>
32
32
 
33
- $ jira_command help
34
33
  Commands:
35
34
  jira_command assign # set or unset assign in issue
36
35
  jira_command config # create or clear configuration
37
36
  jira_command help [COMMAND] # Describe available commands or one specific command
38
37
  jira_command issue # create a issue
39
38
  jira_command list # list up issues
39
+ jira_command sprint # sprint related features
40
40
  jira_command status # show all status in project
41
41
  jira_command transition # transition issues
42
42
  jira_command user # list all users
43
+ jira_command version # show version
43
44
  ```
44
45
 
45
46
  <b>if you want to cache items in your local to reduce api call, you can refer the following commands.</b>
@@ -59,7 +59,7 @@ module JiraCommand
59
59
 
60
60
  return if issue_type[:name] == 'Epic'
61
61
 
62
- baord_list = if options['refresh-board'].nil?
62
+ baord_list = if !config[:boards].nil? && options['refresh-board'].nil?
63
63
  config[:boards]
64
64
  else
65
65
  agile_board = JiraCommand::Jira::Board.new(config)
@@ -100,7 +100,7 @@ module JiraCommand
100
100
  def attach_epic(issue_key)
101
101
  config = JiraCommand::Config.new.read
102
102
 
103
- baord_list = if options['refresh-board'].nil?
103
+ baord_list = if !config[:boards].nil? && options['refresh-board'].nil?
104
104
  config[:boards]
105
105
  else
106
106
  agile_board = JiraCommand::Jira::Board.new(config)
@@ -127,7 +127,7 @@ module JiraCommand
127
127
  def attach_sprint(issue_key)
128
128
  config = JiraCommand::Config.new.read
129
129
 
130
- baord_list = if options['refresh-board'].nil?
130
+ baord_list = if !config[:boards].nil? && options['refresh-board'].nil?
131
131
  config[:boards]
132
132
  else
133
133
  agile_board = JiraCommand::Jira::Board.new(config)
@@ -15,7 +15,7 @@ module JiraCommand
15
15
  end
16
16
 
17
17
  def select_board(message: 'Please select board', refresh: false)
18
- baord_list = if refresh
18
+ baord_list = if @config[:boards].nil? || refresh
19
19
  agile_board = JiraCommand::Jira::Board.new(@config)
20
20
  agile_board.list
21
21
  else
@@ -30,7 +30,7 @@ module JiraCommand
30
30
  end
31
31
 
32
32
  def select_issue_type(message:, refresh: false)
33
- issue_types = if refresh
33
+ issue_types = if @config[:issue_types].nil? || refresh
34
34
  jira_issue_type = JiraCommand::Jira::IssueType.new(@config)
35
35
  jira_issue_type.list
36
36
  else
@@ -45,7 +45,7 @@ module JiraCommand
45
45
  end
46
46
 
47
47
  def select_project(message:, refresh: false)
48
- projects = if refresh
48
+ projects = if @config[:projects].nil? || refresh
49
49
  jira_project = JiraCommand::Jira::Project.new(@config)
50
50
  jira_project.list
51
51
  else
@@ -63,7 +63,7 @@ module JiraCommand
63
63
  project_key: nil,
64
64
  refresh: false,
65
65
  additional: [])
66
- user_list = if refresh
66
+ user_list = if @config[:users].nil? || refresh
67
67
  user_api = JiraCommand::Jira::User.new(@config)
68
68
  user_api.all_list(project: project_key)
69
69
  else
@@ -1,3 +1,3 @@
1
1
  module JiraCommand
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jira_command
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - shengbo.xu