kube-dsl 0.7.1 → 0.7.2

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: 9ca9613963279e66541e85bfe45b157444fee563f4edefb02928f0bcf15add0d
4
- data.tar.gz: 60af16f282ff8e1bab075edde009f8165a3b5824dfa0113023680166214bcfee
3
+ metadata.gz: 2932064fb6c82c612248313f1fd0c24cf878e8e85d54f14e19d64aa2c1a51ae1
4
+ data.tar.gz: 417677a4fa12b37099a1fe650f0abf2b6a01330f09526c39a68e52bdccf06935
5
5
  SHA512:
6
- metadata.gz: d8c869cb2894eb6613c1c3194d58dfeb9da9460df505cfa7a256d6e8079abcdda168fb4b2fab6995e832fe99f54617ff5509a4e11f3988a3013d37f3bf4b32af
7
- data.tar.gz: 8a2412c3e79468c71b40b1d47c2058d3d2857749be503fa62a483bf41cea8ba0d94296f3cefe32f88bfd812cb1432605edf29ba984d9d26b1e0785f507236044
6
+ metadata.gz: 7cb08079dccbf9bd1744e535ab5db716052048a0d89b7e56986a1f5eec32a48832da9271747d6af21ed56667304f6f3258ad1f70387fee67b53ff4db48104bad
7
+ data.tar.gz: 8eb398de8117dc33fe5cde6333056eda4c18f1cf0b53dd19f9face1a26c452561755327d34e0f30404d8fb1d5027938b7d92c8cbb0ae7e443bd2ce15d0bc9ffa
data/Gemfile CHANGED
@@ -9,8 +9,9 @@ end
9
9
 
10
10
  group :development do
11
11
  # lock to a specific version to prevent breaking CI when new versions come out
12
- gem 'sorbet', '= 0.5.6433'
13
- gem 'parlour', '~> 6.0'
12
+ gem 'sorbet'
13
+ gem 'tapioca', '~> 0.7'
14
+ gem 'parlour', github: 'camertron/parlour', branch: 'initialize_void' # '~> 7.0'
14
15
  end
15
16
 
16
17
  group :test do
data/Rakefile CHANGED
@@ -54,7 +54,6 @@ task :generate do
54
54
  )
55
55
 
56
56
  generator.generate_resource_files
57
- generator.generate_rbi_files
58
57
  generator.generate_autoload_files
59
58
  generator.generate_entrypoint_file do |resource, ns|
60
59
  version = resource.ref.version || ''
@@ -1,3 +1,4 @@
1
+ # typed: true
1
2
  module KubeDSL
2
3
  class AllowBlank
3
4
  attr_reader :value
@@ -22,7 +22,7 @@ module KubeDSL
22
22
  validates :run_as_user, field: { format: :integer }, presence: false
23
23
  validates :se_linux_options, object: { kind_of: KubeDSL::DSL::V1::SELinuxOptions }
24
24
  validates :seccomp_profile, object: { kind_of: KubeDSL::DSL::V1::SeccompProfile }
25
- validates :supplemental_groups, field: { format: :string }, presence: false
25
+ validates :supplemental_groups, field: { format: :integer }, presence: false
26
26
  validates :sysctlses, array: { kind_of: KubeDSL::DSL::V1::Sysctl }, presence: false
27
27
  validates :windows_options, object: { kind_of: KubeDSL::DSL::V1::WindowsSecurityContextOptions }
28
28
 
@@ -19,7 +19,10 @@ module KubeDSL
19
19
  def fields_to_rbi(_inflector)
20
20
  [
21
21
  "T::Sig::WithoutRuntime.sig { returns(#{ruby_type}) }",
22
- "def #{ruby_safe_name}; end"
22
+ "def #{ruby_safe_name}; end",
23
+ "",
24
+ "T::Sig::WithoutRuntime.sig { returns(T::Boolean) }",
25
+ "def #{ruby_safe_name}_present?; end"
23
26
  ]
24
27
  end
25
28
 
@@ -22,7 +22,7 @@ module KubeDSL
22
22
  YAML.dump(serialize)
23
23
  end
24
24
 
25
- T::Sig::WithoutRuntime.sig { returns(Resource) }
25
+ T::Sig::WithoutRuntime.sig { returns(KubeDSL::Resource) }
26
26
  def to_resource
27
27
  self
28
28
  end
@@ -58,6 +58,10 @@ module KubeDSL
58
58
  indent("module #{mod}", idx)
59
59
  end,
60
60
  *indent("class #{ref.kind} < ::KubeDSL::DSLObject", level + 1),
61
+ *indent("extend KubeDSL::ValueFields::ClassMethods", level + 2),
62
+ *indent("extend KubeDSL::Validations::ClassMethods", level + 2),
63
+ *indent("include KubeDSL::ValueFields::InstanceMethods", level + 2),
64
+ '',
61
65
  *indent(
62
66
  'T::Sig::WithoutRuntime.sig {',
63
67
  ' returns(',
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
 
3
3
  module KubeDSL
4
4
  class SerializeHandler
@@ -1,5 +1,5 @@
1
1
  # typed: strict
2
2
 
3
3
  module KubeDSL
4
- VERSION = '0.7.1'
4
+ VERSION = '0.7.2'
5
5
  end