volcano-sdk 0.10.2 → 0.10.3

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: 0a5a8e6d0c0958a19588efaa73c12721eee47e710bc397ce18a4a2a383d0ba9f
4
- data.tar.gz: ec32d121d29074aece0ed41d30599f575e90535c66ad93c82b073d1a3d1b8eaf
3
+ metadata.gz: f19fcadb6b2a2cd4e84d10cba5605c45dadfb20ebdfe62fe3a4b3dd352bc0dc1
4
+ data.tar.gz: 276e7c559b704d8c9ef911fccfe009f9ec0f09e3ba3c3bae3854b2332f17dcaa
5
5
  SHA512:
6
- metadata.gz: ed4e6a000be0491dc2edfcb72e6bc03a87a49bdd3eb835c0d29455010852e5a645b6323e65e7740cd3a9c98898726bb0bc7ba7bb68cd5a37992f6f2049661105
7
- data.tar.gz: b1ef9f3c793ad18bd26a7d347b8b48b85dc792d10de410d88340b945bb9f19c67a25bc3fa612f7889ca88b5962bd89fe20ef2ef4e4d1e2dee273ca5380876cd2
6
+ metadata.gz: ec93b1ef716dbcf52f45b6d4a81fa4fa6b1e00c26efc47d59e9a1ab41db89fdb6f892a2db422c99155760a99757de8a2142d9dc17a185b2f29375d0612107c12
7
+ data.tar.gz: aa3c752a3d0b2e2f8bb3cba8ffe185f3c5f3597aadb2d6049d7952a827af40ad3f37ff90f4db2b15acc4a106c84d945ceec126add281aaa3861702e9ce59c8c5
@@ -82,11 +82,11 @@ module Volcano::Generated
82
82
  return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
83
83
  end
84
84
  else # model
85
- const = Volcano::Generated.const_get(klass)
85
+ const = Object.const_get('Volcano::Generated').const_get(klass)
86
86
  if const
87
87
  if const.respond_to?(:openapi_one_of) # nested oneOf model
88
88
  model = const.build(data)
89
- return model if model
89
+ return model unless model.nil?
90
90
  else
91
91
  # raise if data contains keys that are not known to the model
92
92
  raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
@@ -81,11 +81,11 @@ module Volcano::Generated
81
81
  return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
82
82
  end
83
83
  else # model
84
- const = Volcano::Generated.const_get(klass)
84
+ const = Object.const_get('Volcano::Generated').const_get(klass)
85
85
  if const
86
86
  if const.respond_to?(:openapi_one_of) # nested oneOf model
87
87
  model = const.build(data)
88
- return model if model
88
+ return model unless model.nil?
89
89
  else
90
90
  # raise if data contains keys that are not known to the model
91
91
  raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
@@ -80,11 +80,11 @@ module Volcano::Generated
80
80
  return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
81
81
  end
82
82
  else # model
83
- const = Volcano::Generated.const_get(klass)
83
+ const = Object.const_get('Volcano::Generated').const_get(klass)
84
84
  if const
85
85
  if const.respond_to?(:openapi_one_of) # nested oneOf model
86
86
  model = const.build(data)
87
- return model if model
87
+ return model unless model.nil?
88
88
  else
89
89
  # raise if data contains keys that are not known to the model
90
90
  raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
@@ -84,11 +84,11 @@ module Volcano::Generated
84
84
  return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
85
85
  end
86
86
  else # model
87
- const = Volcano::Generated.const_get(klass)
87
+ const = Object.const_get('Volcano::Generated').const_get(klass)
88
88
  if const
89
89
  if const.respond_to?(:openapi_one_of) # nested oneOf model
90
90
  model = const.build(data)
91
- return model if model
91
+ return model unless model.nil?
92
92
  else
93
93
  # raise if data contains keys that are not known to the model
94
94
  raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
@@ -50,7 +50,7 @@ module Volcano::Generated
50
50
  klass = openapi_discriminator_mapping[discriminator_value.to_s.to_sym]
51
51
  return nil unless klass
52
52
 
53
- Volcano::Generated.const_get(klass).build_from_hash(data)
53
+ Object.const_get('Volcano::Generated').const_get(klass).build_from_hash(data)
54
54
  end
55
55
  end
56
56
  end
@@ -80,11 +80,11 @@ module Volcano::Generated
80
80
  return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
81
81
  end
82
82
  else # model
83
- const = Volcano::Generated.const_get(klass)
83
+ const = Object.const_get('Volcano::Generated').const_get(klass)
84
84
  if const
85
85
  if const.respond_to?(:openapi_one_of) # nested oneOf model
86
86
  model = const.build(data)
87
- return model if model
87
+ return model unless model.nil?
88
88
  else
89
89
  # raise if data contains keys that are not known to the model
90
90
  raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Volcano
4
- VERSION = '0.10.2'
4
+ VERSION = '0.10.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volcano-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kong