circuitry 3.4.0 → 3.5.0

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: 3e0e95ae254f6e53edf4853f0c507771386adb035b0c787e91104e4813427872
4
- data.tar.gz: 3a36c8be0a8b12049bd2c32622e77d8308d87a70000a3d1e9ecabc285ea9ab61
3
+ metadata.gz: 97df62f8343b6567a34117f0689cd76347bfcc10df90bd4d16dc21b6b2a8725d
4
+ data.tar.gz: 1f0ad6c207c527eb49c2693afd40d8ca47c911ff8cec739e40d7299744e873a5
5
5
  SHA512:
6
- metadata.gz: c5c8cce1b408194926597b3450db3c0223d3731b1ac593957605422cf1b9184220d102531d5640eb667a85c29f5b0324f1e79e5bb28fafe47b56205d7c2dcbc2
7
- data.tar.gz: 449402e98d9f043649757e6a2b5c6eed12a007511efb39930b7f146ee6bb161cadfaa29ca1a9916b4f1057ba246d088fa097555e2f812c999ec68ea087dfa961
6
+ metadata.gz: e5414b437a23afe45f35ec2f9102a391af8e3f3e6bfec3b585a485891972ed84fe26822f530c0018af82d24da92034ec8c026b4b45295afa580b87b72a478741
7
+ data.tar.gz: 8331142f98db79ef0a72e72fc5075d783ca7b520dd678b0e4a5d6efaa8bfd5140fa603af4cb02c61402cf0d0e6995804936f9441faeb4ddfc484205d5e42bea2
data/.circleci/config.yml CHANGED
@@ -3,7 +3,7 @@ jobs:
3
3
  build:
4
4
  working_directory: ~/circuitry
5
5
  docker:
6
- - image: kapost/ruby:2.4.3-node-6.11.5
6
+ - image: kapost/ruby:2.6.3-node-6.11.5
7
7
  steps:
8
8
  - checkout
9
9
  - run: bundle install
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
- ## Circuitry 3.4.0 Sep 16, 2020)
1
+ ## Circuitry 3.5.0 (Jan 27, 2023)
2
+
3
+ * Changes the way SQL Policy statements are generated to avoid triggering an error when more a
4
+ queue subscribes to more than 20 SNS topics.
5
+
6
+ ## Circuitry 3.4.0 (Sep 16, 2020)
2
7
 
3
8
  * Adds an option for publisher and subscriber configs to override the AWS client options. *wahlg*
4
9
  See: https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html
data/Gemfile CHANGED
@@ -3,4 +3,4 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in circuitry.gemspec
4
4
  gemspec
5
5
 
6
- gem 'memcache_mock', '0.0.14', github: 'mhuggins/MemcacheMock', branch: 'expiry-and-add'
6
+ gem 'memcache_mock', '0.0.14', git: 'https://github.com/mhuggins/MemcacheMock', branch: 'expiry-and-add'
data/circuitry.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency 'virtus', '~> 1.0'
27
27
  spec.add_dependency 'thor'
28
28
 
29
- spec.add_development_dependency 'bundler', '~> 1.8'
29
+ spec.add_development_dependency 'bundler', '~> 1.17.0'
30
30
  spec.add_development_dependency 'simplecov'
31
31
  spec.add_development_dependency 'connection_pool'
32
32
  spec.add_development_dependency 'dalli'
@@ -43,20 +43,20 @@ module Circuitry
43
43
  'Policy' => {
44
44
  'Version' => '2012-10-17',
45
45
  'Id' => "#{queue.arn}/SNSPolicy",
46
- 'Statement' => topics.map { |t| build_policy_statement(t) }
46
+ 'Statement' => [build_policy_statement]
47
47
  }.to_json
48
48
  }
49
49
  end
50
50
 
51
- def build_policy_statement(topic)
51
+ def build_policy_statement
52
52
  {
53
- 'Sid' => "Sid#{topic.name}",
53
+ 'Sid' => "Sid-#{queue.name}-subscriptions",
54
54
  'Effect' => 'Allow',
55
55
  'Principal' => { 'AWS' => '*' },
56
56
  'Action' => 'SQS:SendMessage',
57
57
  'Resource' => queue.arn,
58
58
  'Condition' => {
59
- 'ArnEquals' => { 'aws:SourceArn' => topic.arn }
59
+ 'ForAnyValue:ArnEquals' => { 'aws:SourceArn' => topics.map(&:arn) }
60
60
  }
61
61
  }
62
62
  end
@@ -1,3 +1,3 @@
1
1
  module Circuitry
2
- VERSION = '3.4.0'
2
+ VERSION = '3.5.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circuitry
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Huggins
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-09-16 00:00:00.000000000 Z
12
+ date: 2023-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-sqs
@@ -87,14 +87,14 @@ dependencies:
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '1.8'
90
+ version: 1.17.0
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '1.8'
97
+ version: 1.17.0
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: simplecov
100
100
  requirement: !ruby/object:Gem::Requirement