cookbook-release 1.2.0 → 1.2.1

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: f352f0a1d2d1cbfd6e345a4769d215914e9e1154
4
- data.tar.gz: 5a86d00f9826abb7c18b5edb645edcf9cf25cc14
3
+ metadata.gz: c99404cc050ea3137fe5ad11368c82b0ea2c2d14
4
+ data.tar.gz: bbd1b3f2197a1baceecdf9d9caceab9573b0977f
5
5
  SHA512:
6
- metadata.gz: 811455e9b092a63611f64765ce44ff23fed4971e081b8941d61d4db3929a064aa42d3072ecd978b17eccb5b8e072d16d504616f7375393c7cd1b4397fce25218
7
- data.tar.gz: ca174bc3822cd8630da8c9a1ab8c7c4d2cf404c2d917d4aaa353cf13f53d291b16fb54c3611627d4da655c215d90b4558e5fccea7ceef630dc384abe8a31c7fe
6
+ metadata.gz: 06817307c7dc56402cdacbf7332903b799819d30ad204241efb075ab3eb14673e2dbce3d6cce1c142a17553f426fc8fe4563f4cb0da68e5ab5e71bf4f3c68dbb
7
+ data.tar.gz: 3e214b55e77733e3043b4498f8fe0f23334489c52d420f4ed5bf3d5b2e83fbc3378072f4d0709ba5aabf5b5446fe5dae85be279052cf18c5272e2a3191456e9d
@@ -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.2.0'
9
+ spec.version = '1.2.1'
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'
@@ -43,7 +43,7 @@ module CookbookRelease
43
43
  tag = Mixlib::ShellOut.new([
44
44
  'git describe',
45
45
  "--tags",
46
- "--match \"#{@tag_prefix}[0-9]\.[0-9]*\.[0-9]*\""
46
+ "--match \"#{@tag_prefix}[0-9]*\.[0-9]*\.[0-9]*\""
47
47
  ].join(" "), @shellout_opts)
48
48
  tag.run_command
49
49
  tag.stdout.split('-').first
@@ -82,6 +82,17 @@ describe CookbookRelease::GitUtilities do
82
82
  end
83
83
 
84
84
  describe '.compute_last_release' do
85
+ it 'finds the last release when major version is greater than 9' do
86
+ cmds = <<-EOH
87
+ git commit --allow-empty -m 'none'
88
+ git tag 1.2.3
89
+ git commit --allow-empty -m 'none'
90
+ git tag 12.34.56
91
+ EOH
92
+ cmds.split("\n").each { |cmd| ::Mixlib::ShellOut.new(cmd).run_command.error! }
93
+ expect(git.compute_last_release).to eq('12.34.56')
94
+ end
95
+
85
96
  it 'finds the last release' do
86
97
  cmds = <<-EOH
87
98
  git commit --allow-empty -m 'none'
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.2.0
4
+ version: 1.2.1
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-12-12 00:00:00.000000000 Z
11
+ date: 2016-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semantic