cfndsl 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzU4MTYyNzZmODRjMmQ2YWUyOTQ1MjdhM2I1ZTcyMTJmMDU5OWZlYQ==
4
+ NjQxMWU0YTZhNjg1ZGRlNzYwYTZhZWJjOWJhMDkwYmYxN2U4MWFmOQ==
5
5
  data.tar.gz: !binary |-
6
- ZTcwOTY0N2JjZTFmZmJkYzIyZmQxN2Y0MTQ2MGMyZGJjNDI5NjU5Zg==
6
+ ZTk2MjdlMGI3YWUzZjFkMTYzZTYwZTA1ZjNlZTJjNjMyMDY5YWM5OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTBiZGQ5ZWQ4ODcxZWFhMTkzODYxYzMxOGYzNDgzNGFmN2MyODhiNmQxZGNi
10
- YWVkZWQ1YjI2MDA2MTM2ZGFlMjM4YmQ4ZmI3ZmE3NjFmMWEzOTY3NDI1ODQw
11
- NWY0NjlkNzA0NGNmNTRkZmU4MmVhMDlkNWNlYjIxYjk3Nzg2OTk=
9
+ YWQ1MWMzNGYyN2RjNmM1OGM4YjkxMTcxODJiMTBkMWIzZDhlYTUzOGJjZmMw
10
+ MThmZmI4OTQ5YTQ3MjQ5M2JiMjZlNjU3NjMzYmMyZTYxYzc4M2ViODI5ZDFi
11
+ MWYzNzRjNzMzYjNiODk1ZGRkMDg1OWM5MTkzNzgwYTU1Y2FmMzY=
12
12
  data.tar.gz: !binary |-
13
- NzJkYWMxNGE0YTcwYzA4MzFhZDhlOTM3ZjNlODY1NmMzYjc2MjIxMTU2MTVh
14
- MmViNTE5NzQ5MDgyM2IyYzg3NTY4ODNiYjllZGUyZWUwNmI3MmFiODdjYjY4
15
- NWQwMzAwNDJmMjIwZThiNmZiYTM3ZTJlYThiMzk2NzkyOGY4NjQ=
13
+ YmRmZGIxYWY0ZjFlMTI4ZGJlN2Y3ZDY1MGRmYzliZDI3MDIwZDBhYTY3ZTQx
14
+ NWRkZTkxNzY4MGRjMjcxMDI2NjA5MmIxNmQ5MzIwN2ZlMGEwNWM2NWQ0Njc3
15
+ ODcxNTM4YTRkN2QxY2JkNmQ1MzlkZWRkNTMxMjQ2YjgxMDQwM2U=
@@ -66,7 +66,7 @@ module CfnDsl
66
66
  def FnNot(value)
67
67
  ##
68
68
  # Equivalent to the Cloudformation template built in function Fn::Not
69
- Fn.new("Not", [value].flatten.compact)
69
+ Fn.new("Not", value)
70
70
  end
71
71
 
72
72
  def FnOr(array)
@@ -1,3 +1,3 @@
1
1
  module CfnDsl
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
data/spec/cfndsl_spec.rb CHANGED
@@ -100,21 +100,6 @@ describe CfnDsl::CloudFormationTemplate do
100
100
  expect(refs).to have_key('X')
101
101
  end
102
102
 
103
- context 'FnNot' do
104
- let(:data) { "test" }
105
- let(:expected) { "{\"Fn::Not\":[\"#{data}\"]}" }
106
-
107
- it 'formats correctly' do
108
- func = subject.FnNot data
109
- expect(func.to_json).to eq expected
110
- end
111
-
112
- it 'flattens existing array' do
113
- func = subject.FnNot [data]
114
- expect(func.to_json).to eq expected
115
- end
116
- end
117
-
118
103
  it 'FnBase64' do
119
104
  func = subject.FnBase64 'A'
120
105
  expect(func.to_json).to eq('{"Fn::Base64":"A"}')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfndsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack