cloud_former 0.5.9 → 0.5.10

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
  SHA1:
3
- metadata.gz: f15b74755839584a05c3254388c66d505674bb0a
4
- data.tar.gz: cbb3a4a4837f07f6b6a9968420b3bd6cab52c662
3
+ metadata.gz: c32b32d6f7e10898ce833dce5a2a030e36a9f6f4
4
+ data.tar.gz: 4fbae83f686551378ff437243b25bcbd58a1361a
5
5
  SHA512:
6
- metadata.gz: a6eec8c39e20eacd2a2349aff9cdd07853fb3abea14153d1578f791cae5752ab83df3f529dd508ad8066c91a9dce70a401948cb95e7d0e7cafcf2cf88ee3703f
7
- data.tar.gz: 029fcc446f60cb5f8a6d76800e9713e326ec3638a6dd6a2723c50a21b441fe16015c6441939eb87b44577cfef830e0c05dfe1bb58ca7ed6222f96f7a8ca0d3a9
6
+ metadata.gz: 2ed44ea588522e291db7c037be420a15d92c7fa02b6d63990b859fdfe3f80ea727d95183e7b6bcf20dd1e1107ad07f0b5acdaaa2853adeb7d78023472ef40168
7
+ data.tar.gz: bc03f092c3351a86fe56cdc2daa647a41ec706d79cfa2dcc8e15b1e65b097ebb44587860d93af0f7e2fc83f2517b5fbebbe0b4c8bbe53b95808ad31a67853828
@@ -14,7 +14,7 @@ module CloudFormer
14
14
  def dump_json
15
15
  mapped_pieces = @pieces.map do |piece|
16
16
  if piece.is_a?(Parameter) || piece.is_a?(PseudoParameter)
17
- { 'Ref' => piece.name }
17
+ { 'Ref' => piece.get_name }
18
18
  elsif piece.is_a?(Function)
19
19
  piece.dump_json
20
20
  elsif piece.is_a?(Resource)
@@ -10,7 +10,7 @@ module CloudFormer
10
10
  base.class_variable_set('@@json_attributes', [])
11
11
  base.class_variable_set('@@embed_properties', false)
12
12
  end
13
-
13
+
14
14
  def dump_json
15
15
  res = {}
16
16
  self.class.class_variable_get('@@json_attributes').each do |att|
@@ -24,7 +24,7 @@ module CloudFormer
24
24
  val = property.as_json_for(self)
25
25
  if !val.nil?
26
26
  use_name = property.options[:name]
27
- use_name ||= ActiveSupport::Inflector.camelize(property.name)
27
+ use_name ||= ActiveSupport::Inflector.camelize(property.get_name)
28
28
  properties[use_name] = val
29
29
  end
30
30
  end
@@ -38,7 +38,7 @@ module CloudFormer
38
38
  val = attribute.as_json_for(self)
39
39
  if val
40
40
  use_name = attribute.options[:name]
41
- use_name ||= ActiveSupport::Inflector.camelize(attribute.name)
41
+ use_name ||= ActiveSupport::Inflector.camelize(attribute.get_name)
42
42
  attribute_fill[use_name] = val
43
43
  end
44
44
  end
@@ -8,7 +8,7 @@ module CloudFormer
8
8
  @aws_type = 'AWS::CloudFormation::Authentication'
9
9
  end
10
10
 
11
- def items(values=nil)
11
+ def items(values = nil)
12
12
  if values
13
13
  @authentication_items = values
14
14
  end
@@ -18,7 +18,7 @@ module CloudFormer
18
18
  def dump_json
19
19
  res = {}
20
20
  (@authentication_items || []).each do |item|
21
- res[item.name] = item.dump_json
21
+ res[item.get_name] = item.dump_json
22
22
  end
23
23
  res
24
24
  end
@@ -13,7 +13,7 @@ module CloudFormer
13
13
  end
14
14
 
15
15
  def as_json_for(instance)
16
- val_as_json(instance.send(name))
16
+ val_as_json(instance.send(get_name))
17
17
  end
18
18
 
19
19
  private
@@ -25,7 +25,7 @@ module CloudFormer
25
25
  if @parameters.any?
26
26
  parameter_res = {}
27
27
  @parameters.each do |param|
28
- parameter_res[param.name] = param.dump_json
28
+ parameter_res[param.get_name] = param.dump_json
29
29
  end
30
30
  res['Parameters'] = parameter_res
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module CloudFormer
2
- VERSION = '0.5.9'
2
+ VERSION = '0.5.10'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud_former
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.9
4
+ version: 0.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aubrey Holland