jira-cli 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -6
- data/lib/jira/commands/copy.rb +10 -0
- data/lib/jira/commands/new.rb +8 -5
- data/lib/jira/constants.rb +1 -1
- metadata +47 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7ea0efc3dfd86f41e1499971b8452215bc52492
|
4
|
+
data.tar.gz: 1c47e481cd91abb6707fbf90c8f5282a1c2fb63e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4d7b6bfbac5270fb757b1134ca0df4219313cfd9c9cdd43a1c965803d70613ad16531facc1443a50d91b7443131506fc534d5c8f4b2889135a5affd5e664f37
|
7
|
+
data.tar.gz: 3afb8c20df14297bfea66a11a7aca5bb02523c33ff91d4f99f2410140c43ace0c3007ce5cbc78e2324e23ee9818586a5db5f200ab66e31b03db13184fdb85b0b
|
data/README.md
CHANGED
@@ -1,16 +1,36 @@
|
|
1
|
-
JIRA CLI
|
2
|
-
========
|
1
|
+
# JIRA CLI [![Gem Version](https://badge.fury.io/rb/jira-cli.png)](http://badge.fury.io/rb/jira-cli)
|
3
2
|
|
4
3
|
Ruby gem CLI tool used to manage JIRA workflows leveraging git
|
5
4
|
|
6
|
-
|
7
|
-
|
5
|
+
* * *
|
6
|
+
|
7
|
+
[![Build Status](https://travis-ci.org/darrenli/jira-cli.png?branch=master)](https://travis-ci.org/darrenli/jira-cli)
|
8
|
+
[![Coverage Status](https://coveralls.io/repos/darrenli/jira-cli/badge.png)](https://coveralls.io/r/darrenli/jira-cli)
|
9
|
+
[![Dependency Status](https://gemnasium.com/darrenli/jira-cli.png)](https://gemnasium.com/darrenli/jira-cli)
|
10
|
+
[![Code Climate](https://codeclimate.com/github/darrenli/jira-cli.png)](https://codeclimate.com/github/darrenli/jira-cli)
|
11
|
+
|
12
|
+
### Disclaimer
|
13
|
+
|
8
14
|
This tool is in very early alpha and its architecture and commands
|
9
15
|
are expected to change drastically. Please only use this tool for testing
|
10
16
|
purposes.
|
11
17
|
|
12
|
-
Installation
|
13
|
-
|
18
|
+
### Gem Installation
|
19
|
+
|
20
|
+
Rubygems:
|
21
|
+
|
22
|
+
gem install jira-cli
|
23
|
+
|
24
|
+
Manually:
|
25
|
+
|
26
|
+
git clone git@github.com:darrenli/jira-cli.git
|
27
|
+
cd jira-cli
|
28
|
+
./install
|
29
|
+
|
30
|
+
### Project Installation
|
31
|
+
|
32
|
+
In order to use this tool, you'll need to run the installation script in the
|
33
|
+
git repository that you're managing via JIRA.
|
14
34
|
|
15
35
|
cd path/to/jira/repo
|
16
36
|
jira install
|
data/lib/jira/commands/new.rb
CHANGED
@@ -29,11 +29,14 @@ module Jira
|
|
29
29
|
# post issue to server
|
30
30
|
self.api.post("issue", params) do |json|
|
31
31
|
ticket = json['key']
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
`git
|
32
|
+
self.copy(ticket)
|
33
|
+
puts "\nTicket #{Jira::Format.ticket(ticket)} created and copied"\
|
34
|
+
" to your clipboard."
|
35
|
+
if self.cli.agree("Create branch? (yes/no) ")
|
36
|
+
`git branch #{ticket} 2> /dev/null`
|
37
|
+
if self.cli.agree("Checkout branch? (yes/no) ")
|
38
|
+
`git checkout #{ticket} 2> /dev/null`
|
39
|
+
end
|
37
40
|
end
|
38
41
|
return
|
39
42
|
end
|
data/lib/jira/constants.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jira-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darren Lin Cheng
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -56,20 +56,20 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - ~>
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: 0.
|
59
|
+
version: 0.9.0
|
60
60
|
- - '>='
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0.
|
62
|
+
version: 0.9.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.
|
69
|
+
version: 0.9.0
|
70
70
|
- - '>='
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: 0.
|
72
|
+
version: 0.9.0
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: pry-remote
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,6 +90,46 @@ dependencies:
|
|
90
90
|
- - '>='
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: 0.1.7
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: rspec
|
95
|
+
requirement: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ~>
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: 2.14.1
|
100
|
+
- - '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 2.14.1
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 2.14.1
|
110
|
+
- - '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 2.14.1
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: coveralls
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ~>
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: 0.7.0
|
120
|
+
- - '>='
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 0.7.0
|
123
|
+
type: :development
|
124
|
+
prerelease: false
|
125
|
+
version_requirements: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ~>
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: 0.7.0
|
130
|
+
- - '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 0.7.0
|
93
133
|
description: CLI used to manage JIRA workflows leveraging git
|
94
134
|
email: darren@thanx.com
|
95
135
|
executables:
|
@@ -104,6 +144,7 @@ files:
|
|
104
144
|
- lib/jira/commands/browse.rb
|
105
145
|
- lib/jira/commands/comment.rb
|
106
146
|
- lib/jira/commands/commit.rb
|
147
|
+
- lib/jira/commands/copy.rb
|
107
148
|
- lib/jira/commands/describe.rb
|
108
149
|
- lib/jira/commands/install.rb
|
109
150
|
- lib/jira/commands/log.rb
|