gitgut 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gitgut/branch.rb +5 -0
- data/lib/gitgut/git.rb +1 -1
- data/lib/gitgut/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6cd51a6a10c51c709f985cf3f2b6c505255449a
|
4
|
+
data.tar.gz: 942315b29e8a65c7b72ad58f5ce3a097eb295cfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8549c107d78fcdfc286f5ed6111debb0f2a6c4a3cfc4612f9972f300e57e3a5ecff3ccf85f7efeba63150bbde26cca0b0d3ee477be3d493b74dae59c4de167d9
|
7
|
+
data.tar.gz: e47146af7bad060e2f54fad02820c1f5712d8c8c4b0c08d896903bc3db798a4c16434a6aa82ea42b697e39a03a9ce4f646c88aca1ad0e6a9ad792adec2f5924a
|
data/lib/gitgut/branch.rb
CHANGED
@@ -41,6 +41,11 @@ module Gitgut
|
|
41
41
|
return @ticket if defined?(@ticket)
|
42
42
|
if jira_ticket_number
|
43
43
|
payload = Gitgut::Jira.request 'id=' + jira_ticket_number
|
44
|
+
if payload['errorMessages']
|
45
|
+
puts "\nError while getting JIRA ticket ##{jira_ticket_number}: #{payload['errorMessages'].join('; ')}"
|
46
|
+
return @ticket = nil
|
47
|
+
end
|
48
|
+
puts payload.inspect unless payload['issues']
|
44
49
|
return @ticket = nil if payload['issues'].empty?
|
45
50
|
@ticket = Gitgut::Jira::Ticket.new(payload['issues'].first)
|
46
51
|
else
|
data/lib/gitgut/git.rb
CHANGED
data/lib/gitgut/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitgut
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoit Dinocourt
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|