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 +4 -4
- data/cookbook-release.gemspec +1 -1
- data/lib/cookbook-release/git-utilities.rb +1 -1
- data/spec/git_spec.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c99404cc050ea3137fe5ad11368c82b0ea2c2d14
|
4
|
+
data.tar.gz: bbd1b3f2197a1baceecdf9d9caceab9573b0977f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06817307c7dc56402cdacbf7332903b799819d30ad204241efb075ab3eb14673e2dbce3d6cce1c142a17553f426fc8fe4563f4cb0da68e5ab5e71bf4f3c68dbb
|
7
|
+
data.tar.gz: 3e214b55e77733e3043b4498f8fe0f23334489c52d420f4ed5bf3d5b2e83fbc3378072f4d0709ba5aabf5b5446fe5dae85be279052cf18c5272e2a3191456e9d
|
data/cookbook-release.gemspec
CHANGED
@@ -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.
|
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]
|
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
|
data/spec/git_spec.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2016-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semantic
|