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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94dc47b7fdf0914947313f8a19c3c14e3b79c2f2
4
- data.tar.gz: cdc09a9fbb53282f8888e20c7f113dc8828115aa
3
+ metadata.gz: e6cd51a6a10c51c709f985cf3f2b6c505255449a
4
+ data.tar.gz: 942315b29e8a65c7b72ad58f5ce3a097eb295cfd
5
5
  SHA512:
6
- metadata.gz: ffa8a129a1fbf84d70f0e695143e8076697ab9d20f6de3ae89f4836e8c915b8681d2cc26f44d687e385c24f647d231c66bdf54d9cac71bfab95b439c7e591e41
7
- data.tar.gz: 3a2dc0fe09932f8f6eadd34211ae404ceeccbeec2cbb17927fff1aaef212902f3ddf4c6264b9805a3595d79e4322b059048c1c0da43ab68e894a12cb1e5fdcb3
6
+ metadata.gz: 8549c107d78fcdfc286f5ed6111debb0f2a6c4a3cfc4612f9972f300e57e3a5ecff3ccf85f7efeba63150bbde26cca0b0d3ee477be3d493b74dae59c4de167d9
7
+ data.tar.gz: e47146af7bad060e2f54fad02820c1f5712d8c8c4b0c08d896903bc3db798a4c16434a6aa82ea42b697e39a03a9ce4f646c88aca1ad0e6a9ad792adec2f5924a
@@ -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
@@ -5,7 +5,7 @@ module Gitgut
5
5
  # git log --no-merges HEAD --not develop --pretty=oneline
6
6
  module Git
7
7
  def self.missing_commits_count(from, to)
8
- `git rev-list #{from}..#{to} --count`.to_i
8
+ `git rev-list #{from}..#{to} --count --no-merges`.to_i
9
9
  end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Gitgut
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
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.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-04 00:00:00.000000000 Z
11
+ date: 2016-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize