jira_command 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1b93cfd3ea1886095fd7f678799b59f3655ade9c55646b0a8b8d87a278880466
4
+ data.tar.gz: b42d61c1ab0358ccdb53d59aa65e10fff02a94d506db086ca18527adb27ee27f
5
+ SHA512:
6
+ metadata.gz: 0c00f104ff224627e9b7972d40a940be0737bff49eca4f4705372618f973b558d8b43be0a2d123e52503e3efd6fb18f475cbc69cd6a3588a717634880be7a3af
7
+ data.tar.gz: 7808ef45296c7e06b59dd74ad7126e66b1fc4c51bf055672bf7bcf8a51a3f59a884fdf08f1e2bb67fcc6c4fd5c3cfb054ab0a218068c3d5ed3c0c97fa7770645
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,113 @@
1
+ Style/FrozenStringLiteralComment:
2
+ Enabled: false
3
+
4
+ Layout/LineLength:
5
+ Max: 160
6
+
7
+ Style/Documentation:
8
+ Enabled: false
9
+
10
+ Lint/RaiseException:
11
+ Enabled: false
12
+
13
+ Lint/StructNewOverride:
14
+ Enabled: false
15
+
16
+ Layout/EmptyLinesAroundAttributeAccessor:
17
+ Enabled: true
18
+
19
+ Layout/SpaceAroundMethodCallOperator:
20
+ Enabled: true
21
+
22
+ Lint/DeprecatedOpenSSLConstant:
23
+ Enabled: true
24
+
25
+ Style/ExponentialNotation:
26
+ Enabled: true
27
+
28
+ Style/RedundantFetchBlock:
29
+ Enabled: true
30
+
31
+ Style/SlicingWithRange:
32
+ Enabled: true
33
+
34
+ Lint/MixedRegexpCaptureTypes:
35
+ Enabled: true
36
+
37
+ Style/RedundantRegexpCharacterClass:
38
+ Enabled: true
39
+
40
+ Style/RedundantRegexpEscape:
41
+ Enabled: true
42
+
43
+ Metrics/BlockLength:
44
+ Max: 60
45
+
46
+ Style/HashEachMethods:
47
+ Enabled: true
48
+
49
+ Metrics/AbcSize:
50
+ Max: 50
51
+
52
+ Style/AsciiComments:
53
+ Enabled: false
54
+
55
+ Style/ClassAndModuleChildren:
56
+ Enabled: false
57
+
58
+ Metrics/ParameterLists:
59
+ Enabled: false
60
+
61
+ Style/HashTransformKeys:
62
+ Enabled: false
63
+
64
+ Style/HashTransformValues:
65
+ Enabled: false
66
+
67
+ Metrics/MethodLength:
68
+ Max: 60
69
+
70
+ Metrics/ClassLength:
71
+ Max: 120
72
+
73
+ AllCops:
74
+ Exclude:
75
+ - bin/**/*
76
+ - vendor/**/*
77
+ - log/**/*
78
+ - tmp/**/*
79
+ - assets/**/*
80
+ - spec/**/*
81
+
82
+ Metrics/CyclomaticComplexity:
83
+ Max: 15
84
+
85
+ Metrics/PerceivedComplexity:
86
+ Max: 15
87
+
88
+ Lint/DuplicateElsifCondition:
89
+ Enabled: true
90
+
91
+ Style/AccessorGrouping:
92
+ Enabled: true
93
+
94
+ Style/ArrayCoercion:
95
+ Enabled: true
96
+
97
+ Style/BisectedAttrAccessor:
98
+ Enabled: true
99
+
100
+ Style/CaseLikeIf:
101
+ Enabled: true
102
+
103
+ Style/HashAsLastArrayItem:
104
+ Enabled: true
105
+
106
+ Style/HashLikeCase:
107
+ Enabled: true
108
+
109
+ Style/RedundantAssignment:
110
+ Enabled: true
111
+
112
+ Style/RedundantFileExtensionInRequire:
113
+ Enabled: true
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.6.5
6
+ before_install: gem install bundler -v 2.1.4
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at shengbo.xu@xincere.jp. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in jira_command.gemspec
4
+ gemspec
5
+
6
+ gem 'rake', '~> 12.0'
7
+ gem 'rspec', '~> 3.0'
8
+
9
+ gem 'faraday'
10
+ gem 'pry'
11
+ gem 'rubocop'
12
+ gem 'terminal-table'
13
+ gem 'tty-prompt'
@@ -0,0 +1,88 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ jira_command (0.1.3)
5
+ thor
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.4.1)
11
+ coderay (1.1.3)
12
+ diff-lcs (1.4.4)
13
+ equatable (0.6.1)
14
+ faraday (1.0.1)
15
+ multipart-post (>= 1.2, < 3)
16
+ method_source (1.0.0)
17
+ multipart-post (2.1.1)
18
+ necromancer (0.5.1)
19
+ parallel (1.19.2)
20
+ parser (2.7.1.4)
21
+ ast (~> 2.4.1)
22
+ pastel (0.7.4)
23
+ equatable (~> 0.6)
24
+ tty-color (~> 0.5)
25
+ pry (0.13.1)
26
+ coderay (~> 1.1)
27
+ method_source (~> 1.0)
28
+ rainbow (3.0.0)
29
+ rake (12.3.3)
30
+ regexp_parser (1.7.1)
31
+ rexml (3.2.4)
32
+ rspec (3.9.0)
33
+ rspec-core (~> 3.9.0)
34
+ rspec-expectations (~> 3.9.0)
35
+ rspec-mocks (~> 3.9.0)
36
+ rspec-core (3.9.2)
37
+ rspec-support (~> 3.9.3)
38
+ rspec-expectations (3.9.2)
39
+ diff-lcs (>= 1.2.0, < 2.0)
40
+ rspec-support (~> 3.9.0)
41
+ rspec-mocks (3.9.1)
42
+ diff-lcs (>= 1.2.0, < 2.0)
43
+ rspec-support (~> 3.9.0)
44
+ rspec-support (3.9.3)
45
+ rubocop (0.88.0)
46
+ parallel (~> 1.10)
47
+ parser (>= 2.7.1.1)
48
+ rainbow (>= 2.2.2, < 4.0)
49
+ regexp_parser (>= 1.7)
50
+ rexml
51
+ rubocop-ast (>= 0.1.0, < 1.0)
52
+ ruby-progressbar (~> 1.7)
53
+ unicode-display_width (>= 1.4.0, < 2.0)
54
+ rubocop-ast (0.1.0)
55
+ parser (>= 2.7.0.1)
56
+ ruby-progressbar (1.10.1)
57
+ terminal-table (1.8.0)
58
+ unicode-display_width (~> 1.1, >= 1.1.1)
59
+ thor (1.0.1)
60
+ tty-color (0.5.1)
61
+ tty-cursor (0.7.1)
62
+ tty-prompt (0.21.0)
63
+ necromancer (~> 0.5.0)
64
+ pastel (~> 0.7.0)
65
+ tty-reader (~> 0.7.0)
66
+ tty-reader (0.7.0)
67
+ tty-cursor (~> 0.7)
68
+ tty-screen (~> 0.7)
69
+ wisper (~> 2.0.0)
70
+ tty-screen (0.8.1)
71
+ unicode-display_width (1.7.0)
72
+ wisper (2.0.1)
73
+
74
+ PLATFORMS
75
+ ruby
76
+
77
+ DEPENDENCIES
78
+ faraday
79
+ jira_command!
80
+ pry
81
+ rake (~> 12.0)
82
+ rspec (~> 3.0)
83
+ rubocop
84
+ terminal-table
85
+ tty-prompt
86
+
87
+ BUNDLED WITH
88
+ 2.1.4
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 shengbo.xu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,140 @@
1
+ # JiraCommand
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/jira_command`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'jira_command'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install jira_command
22
+
23
+ ## Usage
24
+
25
+ You need to get token in [JIRA](https://id.atlassian.com/manage-profile/security).
26
+
27
+ ```bash
28
+ $ jira_command config create
29
+ > Please input your site url: https://<your-domain>.atlassian.net/
30
+ > Please input your registered email address: <example@xincere.jp>
31
+ > Please input your token: <token got in jira>
32
+
33
+ $ jira_command help
34
+ Commands:
35
+ jira_command assign # set or unset assign in issue
36
+ jira_command config # create or clear configuration
37
+ jira_command help [COMMAND] # Describe available commands or one specific command
38
+ jira_command issue # create a issue
39
+ jira_command list # list up issues
40
+ jira_command status # show all status in project
41
+ jira_command transition # transition issues
42
+ jira_command user # list all users
43
+ ```
44
+
45
+ <b>if you want to cache items in your local to reduce api call, you can refer the following commands.</b>
46
+
47
+ ```bash
48
+ $ jira_command config help
49
+ Commands:
50
+ jira_command config clear # clear config file
51
+ jira_command config create # create config file
52
+ jira_command config help [COMMAND] # Describe subcommands or one specific subcommand
53
+ jira_command config update_it # update default issue_type in config file
54
+ jira_command config update_projects # update default projects in config file
55
+ jira_command config update_users p, --project=PROJECT # update default users in config file
56
+
57
+ $ jira_command config help update_it
58
+ Usage:
59
+ jira_command config update_it
60
+
61
+ update default issue_type in config file
62
+
63
+ $ bundle exec exe/jira_command config help update_projects
64
+ Usage:
65
+ jira_command config update_projects
66
+
67
+ update default projects in config file
68
+
69
+ $ bundle exec exe/jira_command config help update_users
70
+ Usage:
71
+ jira_command config update_users p, --project=PROJECT
72
+
73
+ Options:
74
+ p, --project=PROJECT
75
+
76
+ update default users in config file
77
+ ```
78
+
79
+ <b>the most useful commands</b>
80
+
81
+ ```bash
82
+ $ jira_command list help my
83
+ Usage:
84
+ jira_command list my
85
+
86
+ Options:
87
+ c, [--current=CURRENT]
88
+ u, [--unresolved=UNRESOLVED]
89
+
90
+ list your issues
91
+
92
+
93
+ $ jira_command list help my
94
+ Usage:
95
+ jira_command list my
96
+
97
+ Options:
98
+ c, [--current=CURRENT]
99
+ u, [--unresolved=UNRESOLVED]
100
+
101
+ list your issues
102
+
103
+ $ jira_command transition help issue
104
+ Usage:
105
+ jira_command transition issue
106
+
107
+ Options:
108
+ c, [--current=CURRENT]
109
+ m, [--mine=MINE]
110
+
111
+ transit issue status
112
+
113
+ $ jira_command assign help exec
114
+ Usage:
115
+ jira_command assign exec i, --issue=ISSUE
116
+
117
+ Options:
118
+ i, --issue=ISSUE
119
+ ru, [--refresh-user=REFRESH-USER]
120
+
121
+ assign to user
122
+ ```
123
+
124
+ ## Development
125
+
126
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
127
+
128
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
129
+
130
+ ## Contributing
131
+
132
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jira_command. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/jira_command/blob/master/CODE_OF_CONDUCT.md).
133
+
134
+ ## License
135
+
136
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
137
+
138
+ ## Code of Conduct
139
+
140
+ Everyone interacting in the JiraCommand project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/jira_command/blob/master/CODE_OF_CONDUCT.md).