kitchen_hooks 1.8.2 → 1.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/kitchen_hooks/helpers.rb +7 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b792442d780f05bd9a55ab49e5811b2f5242e80b
|
4
|
+
data.tar.gz: a2c3b9bb249be13766ebf513d05f8c8e113f84b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74add0c673b43d76b0752e727b36053f1063c879657b57f1d8e7abed845d502a2b4f645fcd7253fa4f6e4c52e9d71b7238a73d33b162164e1e4454e989c2e016
|
7
|
+
data.tar.gz: a6cc94defed45b010cf3896906beb2698b012343bcfcc1e24243b09d2ad79c9162740569fb752776b284093cd530643de7d635096463df7d385ecb2906f4a68c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.8.
|
1
|
+
1.8.3
|
@@ -70,8 +70,13 @@ module KitchenHooks
|
|
70
70
|
verify_constraints constraints, environment, k
|
71
71
|
end
|
72
72
|
|
73
|
-
|
74
|
-
|
73
|
+
rev = `git rev-list -1 #{environment}`.strip
|
74
|
+
refs = `git show-ref --tags -d | grep '^#{rev}'`.lines.map(&:strip)
|
75
|
+
tags = refs.map do |r|
|
76
|
+
$1 if r =~ %r|refs/tags/(?<tag>.*?)\^|s
|
77
|
+
end
|
78
|
+
|
79
|
+
version_tag = tags.select { |t| t =~ /^v\d+/ }.shift
|
75
80
|
event['version'] = version_tag
|
76
81
|
end
|
77
82
|
end
|