kube_schema 1.3.5 → 1.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a57b14228a491e69ae291d85208d7a4d9ab0ff4dfe0d1c8fe516dee313da896d
4
- data.tar.gz: f7ca2465bc0a0867db00d3f8dd6e28235f86a626746fa6c0fad35bedc153d377
3
+ metadata.gz: 62b3e8a58b6c7bddc3a809f00aea499f1661830b4d3837729dfafe4b0c3c78f8
4
+ data.tar.gz: '0191485897891f2e9dbcf1511cbc85635959b2be77a82fccdf250dc821a452cc'
5
5
  SHA512:
6
- metadata.gz: 05decddd173ef72baa520b33d00749bafe275c20411dda61984855b0a000446bc29731d861246b529b5d69148419631741af7e3485a1fcd2f019aa69d30840ec
7
- data.tar.gz: 53aad4ff4cbc381fde9b8f41c6e2b0744c3e7427bb9e908e33d741450b15c751a8f827727ce229425bedaecf764e0572ef82915a8d9b885c46572ef6b7f57e27
6
+ metadata.gz: 70fdc2c264e203d7375eff2c3d2a15936c4299ede1f78b19b3e88e7da8e0782c830ced154a746ca4272e23c69ba02943d1457b59dbc53a2b99e4a3708c20db37
7
+ data.tar.gz: 9eeeef3be619d50a329493e7615c5e94b6408c1ce871cfd10923cab5862ba9500bd979302283556de4939c8fb4c023fce988598ffd6b0d10c0921c3e8c14388f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kube_schema (1.3.5)
4
+ kube_schema (1.3.7)
5
5
  json_schemer (~> 2.5.0)
6
6
  rubyshell (~> 1.5.0)
7
7
 
@@ -3,6 +3,7 @@ mkdir -p schemas
3
3
 
4
4
  git show schemas2:data/crds/05-crd-only-definitions.json > schemas/crd-definitions.json
5
5
  git show schemas2:data/crds/07-loft-definitions.json > schemas/loft-definitions.json
6
+ git show schemas2:data/crds/08-kubevirt-definitions.json > schemas/kubevirt-definitions.json
6
7
 
7
8
  git ls-tree --name-only schemas2 data/k8s.io/ | while read -r path; do
8
9
  git show "schemas2:$path" > "schemas/$(basename "$path")"
@@ -20,4 +20,17 @@ class Hash
20
20
  #def respond_to_missing(name, _priv = false)
21
21
  # name.to_s.end_with?("=") || key?(name.to_sym)
22
22
  #end
23
+
24
+ # Build a Hash with autovivification via a block DSL.
25
+ #
26
+ # Hash.vivify {
27
+ # metadata.name = "web"
28
+ # spec.replicas = 3
29
+ # spec.selector.matchLabels.app = "web"
30
+ # }
31
+ # # => { metadata: { name: "web" }, spec: { replicas: 3, selector: { matchLabels: { app: "web" } } } }
32
+ #
33
+ def self.vivify(&block)
34
+ new.tap { |h| h.instance_exec(&block) }
35
+ end
23
36
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kube
4
4
  module Schema
5
- VERSION = "1.3.5"
5
+ VERSION = "1.3.7"
6
6
  end
7
7
  end