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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34582a932c513661eb3fe5b52c1b3ab5857ac620
4
- data.tar.gz: 8df2638a96438cd7e369b87c67d224da09a0076d
3
+ metadata.gz: b792442d780f05bd9a55ab49e5811b2f5242e80b
4
+ data.tar.gz: a2c3b9bb249be13766ebf513d05f8c8e113f84b3
5
5
  SHA512:
6
- metadata.gz: eee7d822e8ca772e058bc9dcd5bc525763b29d33eb1ae199ccf2778c1f570c2c4174fd3ebe8b8d54671dfa99ed746faad0e154cc0a8df7bea374bb8ff6aa80a4
7
- data.tar.gz: dae1a7868926836a84e9c4b6b0a4e5721f4cb4b12e4708b44c79bda5c9c7e59cb31279d314ee3381b70a11f2d0226fc965968a3e2581e41a4324692d09df6409
6
+ metadata.gz: 74add0c673b43d76b0752e727b36053f1063c879657b57f1d8e7abed845d502a2b4f645fcd7253fa4f6e4c52e9d71b7238a73d33b162164e1e4454e989c2e016
7
+ data.tar.gz: a6cc94defed45b010cf3896906beb2698b012343bcfcc1e24243b09d2ad79c9162740569fb752776b284093cd530643de7d635096463df7d385ecb2906f4a68c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.2
1
+ 1.8.3
@@ -70,8 +70,13 @@ module KitchenHooks
70
70
  verify_constraints constraints, environment, k
71
71
  end
72
72
 
73
- head_tags = `git tag --points-at HEAD`.lines.map(&:strip)
74
- version_tag = head_tags.select { |t| t =~ /^v\d+/ }.shift
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen_hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2
4
+ version: 1.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer