metatron 0.2.4 → 0.2.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef9aac429ebb8074709e762051f6b5b54b58fa509c05c221383275ede14b1250
|
4
|
+
data.tar.gz: b367fcc93d32010eb00f9b642b8e8651b329b4f0e15f44d0c25b0fe6b13f305c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38531090c45a8417780e07118c7f52d579e074d718e781651a61e2c894cdfee23ab900f33b3f6ac5d2ab578ee1d03b6fdde40a785a3eb7533c473330ef7af17f
|
7
|
+
data.tar.gz: 2a4f9d9ec0926f510cc5f2033d47f1514dafa4b828d7ecec07b776131132ffcc7e88b3802fa75e06d427c56402569edf5d669318aa7d50c9921dd5a37d358bdc
|
data/Gemfile.lock
CHANGED
@@ -7,7 +7,7 @@ module Metatron
|
|
7
7
|
include Concerns::Annotated
|
8
8
|
include Concerns::Namespaced
|
9
9
|
|
10
|
-
attr_accessor :additional_labels, :
|
10
|
+
attr_accessor :additional_labels, :immutable, :data
|
11
11
|
|
12
12
|
def initialize(name, data = {})
|
13
13
|
super(name)
|
@@ -15,6 +15,8 @@ module Metatron
|
|
15
15
|
@additional_labels = {}
|
16
16
|
end
|
17
17
|
|
18
|
+
def immutable? = !!@immutable
|
19
|
+
|
18
20
|
def render
|
19
21
|
{
|
20
22
|
apiVersion:,
|
@@ -22,9 +24,10 @@ module Metatron
|
|
22
24
|
metadata: {
|
23
25
|
name:,
|
24
26
|
labels: { "#{label_namespace}/name": name }.merge(additional_labels)
|
25
|
-
}.merge(formatted_annotations).merge(formatted_namespace),
|
26
|
-
data
|
27
|
-
|
27
|
+
}.merge(formatted_annotations).merge(formatted_namespace).compact,
|
28
|
+
data:,
|
29
|
+
immutable:
|
30
|
+
}.compact
|
28
31
|
end
|
29
32
|
end
|
30
33
|
end
|
@@ -23,10 +23,10 @@ module Metatron
|
|
23
23
|
metadata: {
|
24
24
|
name:,
|
25
25
|
labels: { "#{label_namespace}/name": name }.merge(additional_labels)
|
26
|
-
}.merge(formatted_annotations).merge(formatted_namespace),
|
26
|
+
}.merge(formatted_annotations).merge(formatted_namespace).compact,
|
27
27
|
type:,
|
28
28
|
stringData: data
|
29
|
-
}
|
29
|
+
}.compact
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
data/lib/metatron/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metatron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Gnagy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|