kontena-mortar 0.4.5 → 0.4.6

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: a38ec31db23f7f5e15fab1c4353e74e7bc594331bb0a9f9780e73ffb35ff1fb2
4
- data.tar.gz: b08a257223e1a55c70bed8ade0709a644ed70468a62d39d4df7b6bd9f415b1c2
3
+ metadata.gz: a2974cbd580d1c5fc0b1caed95c9ce3c9a6646945a817f1ef5a1f4a92bcc161a
4
+ data.tar.gz: 25509e29586ec34630e43a65949a3c36eba4bc94e5000c7a4d1a575e9204d807
5
5
  SHA512:
6
- metadata.gz: 1cc1a5a16e6b4338858790e639bff7616920875bf5e590b52455c43e2226e3ff3555123b74986e8ee762b3a14e11d56415dedc9191e10a179bb2b0b220a56624
7
- data.tar.gz: f00a63b973c0f38676445b7ca3fa55d9fe5c16e0e88dcb106447777030c0e3105cd0dc792f5595eb92278ba5eead355753dbbc677a1c7e4e665264b29a59aaa1
6
+ metadata.gz: 0167efd3300845e5120f5142c6fbd355ed24dc4ad721f783c60f8229ca6eba614c409c5c5ad4b44d085f7439bb1c8528e6e05a8b881996741e010cf355e3fd9c
7
+ data.tar.gz: b1016129775db3841f8128a41e36daef5d441699e3865125b91748b6c86d22c54307a1333bee18ca7663db16435405fb2790dfd0604a4e2d3a43eef97c40cfdc
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kontena-mortar (0.4.5)
4
+ kontena-mortar (0.4.6)
5
5
  clamp (~> 1.3)
6
6
  deep_merge (~> 1.2)
7
7
  k8s-client (~> 0.10.4)
@@ -26,7 +26,7 @@ GEM
26
26
  dry-core (0.4.9)
27
27
  concurrent-ruby (~> 1.0)
28
28
  dry-equalizer (0.2.2)
29
- dry-inflector (0.1.2)
29
+ dry-inflector (0.2.0)
30
30
  dry-logic (0.6.1)
31
31
  concurrent-ruby (~> 1.0)
32
32
  dry-core (~> 0.2)
@@ -44,7 +44,7 @@ GEM
44
44
  dry-inflector (~> 0.1, >= 0.1.2)
45
45
  dry-logic (~> 0.4, >= 0.4.2)
46
46
  equatable (0.5.0)
47
- excon (0.67.0)
47
+ excon (0.68.0)
48
48
  hashdiff (1.0.0)
49
49
  ice_nine (0.11.2)
50
50
  jaro_winkler (1.5.3)
@@ -60,7 +60,7 @@ GEM
60
60
  recursive-open-struct (~> 1.1.0)
61
61
  yajl-ruby (~> 1.4.0)
62
62
  yaml-safe_load_stream (~> 0.1)
63
- multi_json (1.13.1)
63
+ multi_json (1.14.1)
64
64
  necromancer (0.4.0)
65
65
  parallel (1.17.0)
66
66
  parser (2.6.4.1)
@@ -71,7 +71,7 @@ GEM
71
71
  rainbow (3.0.0)
72
72
  rake (10.5.0)
73
73
  recursive-open-struct (1.1.0)
74
- rouge (3.11.0)
74
+ rouge (3.12.0)
75
75
  rspec (3.8.0)
76
76
  rspec-core (~> 3.8.0)
77
77
  rspec-expectations (~> 3.8.0)
@@ -49,7 +49,7 @@ module Mortar
49
49
  def labels(other = {})
50
50
  hash = @labels.dup
51
51
  hash.merge!(other)
52
- RecursiveOpenStruct.new(hash)
52
+ RecursiveOpenStruct.new(hash, preserve_original_keys: true)
53
53
  end
54
54
  end
55
55
  end
@@ -116,7 +116,7 @@ module Mortar
116
116
  resources.map { |resource|
117
117
  resource.merge(
118
118
  metadata: {
119
- labels: labels
119
+ labels: labels.to_hash
120
120
  }
121
121
  )
122
122
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mortar
4
- VERSION = "0.4.5"
4
+ VERSION = "0.4.6"
5
5
  end
@@ -54,7 +54,7 @@ module Mortar
54
54
 
55
55
  def read(variables = {})
56
56
  Namespace.new(variables).with_binding do |ns_binding|
57
- ERB.new(@content, nil, '%<>-').tap { |e| e.location = [@filename, nil] }.result(ns_binding)
57
+ ERB.new(@content, nil, '-').tap { |e| e.location = [@filename, nil] }.result(ns_binding)
58
58
  end
59
59
  rescue StandardError, ScriptError => e
60
60
  raise ParseError, "#{e.class.name} : #{e.message} (#{e.backtrace.first.gsub(/:in `with_binding'/, '')})"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kontena-mortar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kontena, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-30 00:00:00.000000000 Z
11
+ date: 2019-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp