kustomizer 0.1.8 → 0.1.9

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
  SHA256:
3
- metadata.gz: 1260ca0cca8efac0126311bef3132cdf7bc365f972796cc79af0f93f104ffdf9
4
- data.tar.gz: a185196ef16998e4ff770e3c3de43bebdd73803b8191f1d2848e85df0139bcc5
3
+ metadata.gz: babe9435689f3621c9ae15695634702cafaec38bf59dda8a1ea48693156a00a6
4
+ data.tar.gz: 895bc312069b35b30fbe89a5851213cdef4bba9e181ca29fd3ebb87fb05fb28b
5
5
  SHA512:
6
- metadata.gz: 2cc5cf3fab625e3e33acc67beba765bd59d8601484648107ba777814df91c0f789dd9f672ebb8912752d6e4021a60cc092f4b36482be73507b25aaaf126ce8e6
7
- data.tar.gz: efe6654e4cfbebf32c6fc93a9cebfaed0c8ee67dfd4dcbb44a38fddbf5d65031fb7c76f5282b370d53dd27eb390e8a7947ac2628d16e8edc6d3b7b5e13c66a6f
6
+ metadata.gz: 525e73552ce0429c7e9ceeba3313af956837db05ba9f82c6459b814b65842caea74c7d2f4fa447bf9b9c66c2ace9608b8b539f69abf4579a526d1c9af9889ac1
7
+ data.tar.gz: 1c35d9b12473299f2727d4b48c728bb5f8310b9676f21cf2393351e393a81ea7a0ec57086f72c4bf4e580f327567087911637fc7eb9961f69cc73764359ec6e5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kustomizer (0.1.8)
4
+ kustomizer (0.1.9)
5
5
  accessory (~> 0.1.9)
6
6
  base32-multi
7
7
 
@@ -35,7 +35,13 @@ class Kustomize::Transform::FingerprintSuffixTransform < Kustomize::Transform
35
35
  return rc unless APPLICABLE_KINDS.member?(rc_kind)
36
36
 
37
37
  FINGERPRINT_LENS.update_in(rc) do |orig_value|
38
- next(:keep) if orig_value
38
+ if orig_value
39
+ if orig_value == ''
40
+ next(:pop)
41
+ else
42
+ next(:keep)
43
+ end
44
+ end
39
45
 
40
46
  content_part = CONTENT_LENS_BY_KIND[rc_kind].get_in(rc)
41
47
  content_ser = content_part.to_json
@@ -47,9 +53,11 @@ class Kustomize::Transform::FingerprintSuffixTransform < Kustomize::Transform
47
53
  base_name = NAME_LENS.get_in(rc)
48
54
  fingerprint = FINGERPRINT_LENS.get_in(rc)
49
55
 
50
- NAME_LENS.update_in(rc) do |base_name|
51
- suffixed_name = [base_name, fingerprint].join(SUFFIX_JOINER)
52
- [:set, suffixed_name]
56
+ if fingerprint
57
+ NAME_LENS.update_in(rc) do |base_name|
58
+ suffixed_name = [base_name, fingerprint].join(SUFFIX_JOINER)
59
+ [:set, suffixed_name]
60
+ end
53
61
  end
54
62
 
55
63
  rc
@@ -1,3 +1,3 @@
1
1
  module Kustomize
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kustomizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Levi Aul