cookbook-release 1.1.8 → 1.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTI0NWQ2NzMwMDU5NDAyNDlhZDNhMzRkMzJlMmJhZjliMzU1NjM5NQ==
4
+ ZDQyYTE5MWVhYTAyYmZkMWZmYzMxNWU0YmQzNzE1NGU1ZmE3MGE3Zg==
5
5
  data.tar.gz: !binary |-
6
- MTQ0NzhhOTBmZjczNmMxZGE0MWU0MmE0OGM3MGFmYjU4ZjJkZDM3NA==
6
+ ZjhlMjBkZDU0ZjliZDY2YzJlYzNmODA1NzVhZTIyMmI2Zjk4ODE0NA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjhiZmI5YzM2ODFjOTAwMjZiYzhlMWM5OTI1ZWZjN2ZkYmU4YzYyZWZlMzAy
10
- MDk3YTMwZTlmYjZhZDczZmQ5ZDQwNDI5NTIwNjNlZGY1NDI5NzdhMzAwMWQ4
11
- MDMxYjlmYmEyZmIxNGViMGVhZDg4OWQ3MDY3ZWYyODkzMjYzNjU=
9
+ NzJmMjZkMDBjZmFiMDRjYTM1NTdhMGZjNDExNzNlNzc3ZDM1NWFiOGE1ZTUy
10
+ NGExYWIyNjFjMWMzMTNjZTVhMThkMDIxNzEzOTNmZjYzZjAwZThkNzIxMDNh
11
+ MmQzYmYxMGQ1YzJmY2NmYzNjZDkwZjczNWFiZDg1OWVmNjBkMTE=
12
12
  data.tar.gz: !binary |-
13
- ZjgwZjJkZjM0OWQ4Mzk5MWIxY2MyMDBjYzIzMzI5OGRkYzYzZDRiMjlmYjYw
14
- OTMxY2JmZTRjMDYyZmMyOWNjODY2NmI1MzAyZDYyOWZkZTQxYjM3MDkxY2U2
15
- NzJiOTBlMzNkNGI3MjBmYzVhMmFiYjY3YjNhODI1YzU4Y2NiOWM=
13
+ NTc0ZTVjM2YyYTAyN2RmM2IzN2JlYjRlMDgzYzQ5MzVhN2FlMDU4ZGVlNDAx
14
+ NDU5YzBhMTY2NDAyZTg2Mjk0Nzc5NTQ1OTMwMTc5MTBmM2QxNTIwZGJhNjYy
15
+ NGNhZTNhZGNlZTRhNzZmYjgzNTNjNTA3Mzc3ZGQxYjEzZWIwZDE=
@@ -6,7 +6,7 @@ require 'English'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'cookbook-release'
9
- spec.version = '1.1.8'
9
+ spec.version = '1.1.9'
10
10
  spec.authors = ['Grégoire Seux']
11
11
  spec.email = 'g.seux@criteo.com'
12
12
  spec.summary = 'Provide primitives (and rake tasks) to release a cookbook'
@@ -69,7 +69,7 @@ module CookbookRelease
69
69
  author: commit.author.name,
70
70
  subject: message.delete_at(0),
71
71
  hash: short_sha ? commit.sha[0,7] : commit.sha,
72
- body: message.empty? ? nil : message.join('\n')
72
+ body: message.empty? ? nil : message.join("\n")
73
73
  )
74
74
  end.reject { |commit| commit[:subject] =~ /^Merge branch (.*) into/i }
75
75
  end
@@ -120,7 +120,7 @@ describe CookbookRelease::GitUtilities do
120
120
 
121
121
  it 'parse correctly commits' do
122
122
  cmds = <<-EOH
123
- git commit --allow-empty -m "subject" -m "body"
123
+ git commit --allow-empty -m "subject" -m "body" -m "line2"
124
124
  git commit --allow-empty -m "without body"
125
125
  EOH
126
126
  cmds.split("\n").each do |cmd|
@@ -132,7 +132,7 @@ describe CookbookRelease::GitUtilities do
132
132
  changelog = git.compute_changelog('1.0.0')
133
133
  expect(changelog.size).to eq(2)
134
134
  expect(changelog[1][:subject]).to eq('subject')
135
- expect(changelog[1][:body]).to eq('body')
135
+ expect(changelog[1][:body].lines).to include("body\n")
136
136
  expect(changelog[0][:body]).to be_nil
137
137
  end
138
138
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookbook-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grégoire Seux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-18 00:00:00.000000000 Z
11
+ date: 2016-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semantic