jira-cli 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: 8c33b97d4e0ef4210a4bd86b72ac364aecc5a312
4
- data.tar.gz: 4792aa28bfcc52b02ba37cf5924d981153accacc
3
+ metadata.gz: fc2f76e77a22ebbdd18e710eba5fa4b2d30c4736
4
+ data.tar.gz: d270f1d27c5735d6cd7dff37bda1b177380ddca2
5
5
  SHA512:
6
- metadata.gz: ad94d97ffe50d2e80a7af426a5f951f2bdba509d46269dfb15128669ac9e099f9bed27e9a6690c874d6e3b1f37cfdef10166a286c84f7c8ebd4fb2f422bb407d
7
- data.tar.gz: 7620cc2000d9bb6efaf2459850ad19cec6490d41b99e8b32ed83bf54b76b2f5c84ae8df7c53fdef1c937811c0a1d32e087a4020c7c3b14d00247664abec3803d
6
+ metadata.gz: 6fb552cdaec39d7b8f00a950cb40d0fbfca3ff44d586782ed94c3690b3f9749f0e00d626c54e9bdcbfc0c1f22ee2bc8e178d432b7de6afc99bc2fc5cdaef20da
7
+ data.tar.gz: e11fe2e75a6aae8ef0bd1020625d9c99083764156d11aed4b27586796140c7025cef95968df5cc29d2cec608a48aac5389069d2e97c52d45ec581b094327d79d
data/README.md CHANGED
@@ -4,14 +4,14 @@ Ruby gem CLI tool used to manage JIRA workflows leveraging git
4
4
 
5
5
  * * *
6
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)
7
+ [![Circle CI](https://circleci.com/gh/drn/jira-cli.svg?style=svg)](https://circleci.com/gh/drn/jira-cli)
9
8
  [![Dependency Status](https://gemnasium.com/darrenli/jira-cli.png)](https://gemnasium.com/darrenli/jira-cli)
10
9
  [![Code Climate](https://codeclimate.com/github/darrenli/jira-cli.png)](https://codeclimate.com/github/darrenli/jira-cli)
11
10
 
12
11
  ### Available Commands
13
12
 
14
13
  jira all # Describes all local branches that match JIRA ticketing syntax
14
+ jira attachments # View ticket attachments
15
15
  jira browse # Opens the current input ticket in your browser
16
16
  jira comment # Add a comment to the input ticket
17
17
  jira comments # Lists the comments of the input ticket
@@ -37,7 +37,7 @@ Manually:
37
37
 
38
38
  git clone git@github.com:darrenli/jira-cli.git
39
39
  cd jira-cli
40
- ./install
40
+ ./scripts/install
41
41
 
42
42
  ### Project Installation
43
43
 
@@ -0,0 +1,22 @@
1
+ module Jira
2
+ class CLI < Thor
3
+
4
+ desc "attachments", "View ticket attachments"
5
+ def attachments(ticket=Jira::Core.ticket)
6
+ self.api.get("issue/#{ticket}") do |json|
7
+ attachments=json['fields']['attachment']
8
+ if attachments.count > 0
9
+ attachments.each do |attachment|
10
+ name=attachment['filename']
11
+ url=attachment['content']
12
+
13
+ puts "#{Jira::Format.user(name)} #{url}"
14
+ end
15
+ else
16
+ puts "No attachments found"
17
+ end
18
+ end
19
+ end
20
+
21
+ end
22
+ end
@@ -1,5 +1,5 @@
1
1
  module Jira
2
2
 
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
 
5
5
  end
data/lib/jira/mixins.rb CHANGED
@@ -3,7 +3,6 @@ module Jira
3
3
 
4
4
  require 'json'
5
5
  require 'faraday'
6
- require 'pry-remote' rescue nil
7
6
  require 'inquirer'
8
7
  include Thor::Actions
9
8
 
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.5
4
+ version: 0.1.6
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: 2015-09-10 00:00:00.000000000 Z
11
+ date: 2015-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -70,86 +70,6 @@ dependencies:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: 0.2.0
73
- - !ruby/object:Gem::Dependency
74
- name: pry-remote
75
- requirement: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: 0.1.7
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 0.1.7
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 0.1.7
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: 0.1.7
93
- - !ruby/object:Gem::Dependency
94
- name: rspec-expectations
95
- requirement: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: 2.14.0
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: 2.14.0
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.0
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: 2.14.0
113
- - !ruby/object:Gem::Dependency
114
- name: rspec
115
- requirement: !ruby/object:Gem::Requirement
116
- requirements:
117
- - - "~>"
118
- - !ruby/object:Gem::Version
119
- version: 2.14.1
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- version: 2.14.1
123
- type: :development
124
- prerelease: false
125
- version_requirements: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - "~>"
128
- - !ruby/object:Gem::Version
129
- version: 2.14.1
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: 2.14.1
133
- - !ruby/object:Gem::Dependency
134
- name: coveralls
135
- requirement: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: 0.7.0
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- version: 0.7.0
143
- type: :development
144
- prerelease: false
145
- version_requirements: !ruby/object:Gem::Requirement
146
- requirements:
147
- - - "~>"
148
- - !ruby/object:Gem::Version
149
- version: 0.7.0
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: 0.7.0
153
73
  description: CLI used to manage JIRA workflows leveraging git
154
74
  email: darren@thanx.com
155
75
  executables:
@@ -161,6 +81,7 @@ files:
161
81
  - bin/jira
162
82
  - lib/jira.rb
163
83
  - lib/jira/api.rb
84
+ - lib/jira/commands/attachments.rb
164
85
  - lib/jira/commands/browse.rb
165
86
  - lib/jira/commands/clipboard.rb
166
87
  - lib/jira/commands/comment.rb
@@ -199,8 +120,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
120
  version: '0'
200
121
  requirements: []
201
122
  rubyforge_project:
202
- rubygems_version: 2.2.2
123
+ rubygems_version: 2.2.3
203
124
  signing_key:
204
125
  specification_version: 4
205
126
  summary: JIRA CLI
206
127
  test_files: []
128
+ has_rdoc: