gantree 0.6.11 → 0.6.12

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: d47a2fa4853744253984db056ae6fcd9d449d083
4
- data.tar.gz: 698a1b88d27a100463ea07252f208ea848f12c99
3
+ metadata.gz: 7f116287b6b0d78ea181d2dd0d5b8dde83ac1694
4
+ data.tar.gz: b8a77ab6d88277bc91f05610a759c53786e2381d
5
5
  SHA512:
6
- metadata.gz: 7f8f424f4510e5b6fbff99bf8a2ac60bd6c032d137acb8bef23dc29fdf412a023263550c4558c48ea8fbbcda07058b6fa024e96ae2ce44f81c3675d406f3df20
7
- data.tar.gz: 409b3eb0c7470ada721a876f2a47c95bf9e9dc8607cccfd8943827e43679cff5ea1c4b85c91342139ea9c942dc76fc8aef3a6b4e9de9212b0016905619457570
6
+ metadata.gz: cf13c9a5167c09350fce19ca3e97b87fcdf556e93d4854d67b43bdebef8d96171a60fb4e01cf2c27469bf758a46387cfedcb58f4be2aa9c7d04d24ad2f88161c
7
+ data.tar.gz: 70ffef4035acf3590e3a0466b728e2773270827bee841417216980e3e94bd40c21a3bcfea82961b18613411100d7305ea110ad8cdf8dc2f2d27d423503bf7ce8
@@ -31,7 +31,12 @@ module Gantree
31
31
  end
32
32
 
33
33
  def previous_sha
34
- previous_tag.split("-")[2]
34
+ if previous_tag
35
+ previous_tag.split("-")[2]
36
+ else
37
+ # for edge case where release notes have never been generated before, just use 1 commit before the current one
38
+ "#{current_sha}~1"
39
+ end
35
40
  end
36
41
 
37
42
  def app_name
@@ -90,4 +95,4 @@ EOL
90
95
  Gantree::Wiki.new(notes, filename, @wiki).update
91
96
  end
92
97
  end
93
- end
98
+ end
@@ -1,3 +1,3 @@
1
1
  module Gantree
2
- VERSION = "0.6.11"
2
+ VERSION = "0.6.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gantree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.11
4
+ version: 0.6.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-11 00:00:00.000000000 Z
11
+ date: 2015-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor