jenkins_pivotal 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: f4aa6f4a314a7e6d757565852e0d2dfc4bbf4756
4
- data.tar.gz: 53d0944baf85bb5664371dc986af6e9b0e4ace48
3
+ metadata.gz: c9937d2119cc38016d583db8d5fc1de61e5b52a6
4
+ data.tar.gz: b19667e127540fb3118a6f77d130c4e877a5d6d1
5
5
  SHA512:
6
- metadata.gz: f64f207f3d23aa36786248f524fcd90978352ecd38eb9586dd764ee7205ad4585656e337d1b9db52abadb2a5772ec58e874d9c5da19a3b92e11e6fbcf4a09f82
7
- data.tar.gz: cbe639782a2b45a070362af2af3a5177d1a4c220f8a7bd8eb09cc4b6d29e5e60359daabe5ebc271bc9ea984cd43f42a4f05e6cbb5cc61348171a22a2bad526dd
6
+ metadata.gz: fcb1e543aab09ff0bc54d76c0b01150667e57200065d85d061fe3508bffc2e2d2212c957c225896d27c74f4df96ed001bc58b6659610da19007829ec09100c8a
7
+ data.tar.gz: fd65bb77d8c3111b8122281ab6b9d9f95822f5d0650de3d26e7c230c3ff5be7e8216cda52d0d48d64b16b87f3a9f511a4c9dd7c5c02987b197847b4e64a54a91
@@ -72,7 +72,7 @@ module JenkinsPivotal
72
72
  def run!
73
73
  all_entries = []
74
74
  changelog_paths.each do |path|
75
- parser = ChangelogParser.new changelog_path
75
+ parser = ChangelogParser.new path
76
76
  all_entries.concat parser.entries
77
77
  end
78
78
 
@@ -17,6 +17,10 @@ module JenkinsPivotal
17
17
  def load_entries
18
18
  blocks = @data.split /^(commit [a-f0-9]{40})/
19
19
 
20
+ if blocks.empty?
21
+ return
22
+ end
23
+
20
24
  # If the first line is `commit ...`, the first item of the array will
21
25
  # be an empty string.
22
26
  if '' == blocks[0]
@@ -1,3 +1,3 @@
1
1
  module JenkinsPivotal
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jenkins_pivotal
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
  - Mike Wyatt