convection 2.2.28.pre.beta.2 → 2.2.29

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
  SHA1:
3
- metadata.gz: d68fad6ffffdcdf41d18869fe4d301247a8d6714
4
- data.tar.gz: c5e3d4b20b7134131bd0008f7d1247ca58450634
3
+ metadata.gz: 076060eec9c4e8108a8f6bab08a8f5bf9dacfdd7
4
+ data.tar.gz: a4921ecbc1f0cde9308eebcd78209d7079085283
5
5
  SHA512:
6
- metadata.gz: 425b25c950fba12434a0296815b735377ddaa2ca2b0959743134fccdb45b6b153a89c9d2ee9c75c9268ce10575a617c5fd70dc82fb23404502f19dca0553baf7
7
- data.tar.gz: e297cabb5ab408c2f0ac9570d869385737542bb8c74e32ee764e0d791434d794aba10c4143b6a4e3288d671c0f2e6917046b4c08781327a1115cf41aea6d76b0
6
+ metadata.gz: 1d9326cdef296ee8069a2506d008aad5206059a1f6a11ab7f0da3b3e3af4b303677aa7a748dbcef9e8ca3a6cad9485d41e1b8adedad14eb0e1e10e4c88f35ee2
7
+ data.tar.gz: 655a27c52359dba267a2b088932ba36179e297fb592e16bbfcaa55db464e7ab3dbb550cdcb6f7139857496f958e33156076cc129ca7350078c5a0c107d42804a
@@ -9,12 +9,14 @@ module Convection
9
9
  # endpoint 'failures@example.com'
10
10
  # protocol 'email'
11
11
  # topic_arn 'arn:aws:sns:us-west-2:123456789012:example-topic'
12
+ # filter_policy 'Type' => 'Notification', 'MessageId' => 'e3c4e17a-819b-5d95-a0e8-b306c25afda0', 'MessageAttributes' => [{' AttributeName' => 'Name', 'KeyType' => 'HASH' }],
12
13
  # end
13
14
  class SNSSubscription < Resource
14
15
  type 'AWS::SNS::Subscription'
15
16
  property :endpoint, 'Endpoint'
16
17
  property :protocol, 'Protocol'
17
18
  property :topic_arn, 'TopicArn'
19
+ property :filter_policy, 'FilterPolicy'
18
20
  end
19
21
  end
20
22
  end
@@ -8,6 +8,7 @@ class Convection::Model::Template::Resource
8
8
  endpoint 'failures@example.com'
9
9
  protocol 'email'
10
10
  topic_arn 'arn:aws:sns:us-west-2:123456789012:example-topic'
11
+ filter_policy 'Type' => 'Notification', 'MessageId' => 'e3c4e17a-819b-5d95-a0e8-b306c25afda0', 'MessageAttributes' => { 'AttributeName' => 'Name', 'KeyType' => 'HASH' }
11
12
  end
12
13
  end
13
14
  end
@@ -31,6 +32,12 @@ class Convection::Model::Template::Resource
31
32
  expect(subject['TopicArn']).to eq('arn:aws:sns:us-west-2:123456789012:example-topic')
32
33
  end
33
34
 
35
+ it 'sets the FilterPolicy' do
36
+ expect(subject['FilterPolicy']).to include('Type' => 'Notification',
37
+ 'MessageId' => 'e3c4e17a-819b-5d95-a0e8-b306c25afda0',
38
+ 'MessageAttributes' => { 'AttributeName' => 'Name', 'KeyType' => 'HASH' })
39
+ end
40
+
34
41
  private
35
42
 
36
43
  def template_json
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: convection
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.28.pre.beta.2
4
+ version: 2.2.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Manero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-21 00:00:00.000000000 Z
11
+ date: 2018-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -390,9 +390,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
390
390
  version: '2.2'
391
391
  required_rubygems_version: !ruby/object:Gem::Requirement
392
392
  requirements:
393
- - - ">"
393
+ - - ">="
394
394
  - !ruby/object:Gem::Version
395
- version: 1.3.1
395
+ version: '0'
396
396
  requirements: []
397
397
  rubyforge_project:
398
398
  rubygems_version: 2.6.13