circuitry 3.3.0 → 3.4.0

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: d200bb856db00d87237c6425d03a31ab5953ac4962f7af81e9797b85f94ee921
4
- data.tar.gz: 1bc9b5eac4c058f5f30ad035ae8f10dabf4921d0f3b35781a528856ba75459c0
3
+ metadata.gz: 3e0e95ae254f6e53edf4853f0c507771386adb035b0c787e91104e4813427872
4
+ data.tar.gz: 3a36c8be0a8b12049bd2c32622e77d8308d87a70000a3d1e9ecabc285ea9ab61
5
5
  SHA512:
6
- metadata.gz: be4a3411b0e5a4535049dda1343e901a4abcb2ec81d2b76762dfe75460b1b5941031c0e50d5d3c1bca0b23700350497dfd40e5243b90e449b93ef36b76ab14d2
7
- data.tar.gz: 245564d9b1d16e53b9086acc44446967705dcef54062f0747ae6b8cb50a601fb8822c3ef7444c09bb2e7355519667bb8c1cbfd45e16da29ea018f11d04cc7602
6
+ metadata.gz: c5c8cce1b408194926597b3450db3c0223d3731b1ac593957605422cf1b9184220d102531d5640eb667a85c29f5b0324f1e79e5bb28fafe47b56205d7c2dcbc2
7
+ data.tar.gz: 449402e98d9f043649757e6a2b5c6eed12a007511efb39930b7f146ee6bb161cadfaa29ca1a9916b4f1057ba246d088fa097555e2f812c999ec68ea087dfa961
@@ -1,7 +1,13 @@
1
+ ## Circuitry 3.4.0 Sep 16, 2020)
2
+
3
+ * Adds an option for publisher and subscriber configs to override the AWS client options. *wahlg*
4
+ See: https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html
5
+ See: https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html
6
+
1
7
  ## Circuitry 3.3.0 (June 23, 2020)
2
8
 
3
9
  * Update AWS SDK to version 3 and use module sdk gems. *thogg4*
4
- See https://github.com/aws/aws-sdk-ruby
10
+ See https://github.com/aws/aws-sdk-ruby
5
11
  Version 3 is backwards compatible with version 2.
6
12
  * Catch `Aws::SNS::Errors::InvalidParameter` and rethrow with the topic
7
13
  and message that caused the problem for improved debugging.
data/README.md CHANGED
@@ -150,6 +150,8 @@ Available configuration options for *both* subscriber and publisher applications
150
150
  * `middleware`: A chain of middleware that messages must go through when sent or received.
151
151
  Please refer to the [Middleware](#middleware) section for more details regarding this
152
152
  option.
153
+ * `aws_options_overrides`: A key/value hash of option overrides and additions passed through to the
154
+ [`AWS::SQS::Client`](https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html)(for subscriber config) or [`AWS::SNS::Client`](https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html)(for publisher config)
153
155
 
154
156
  Available configuration options for subscriber applications include:
155
157
 
@@ -15,6 +15,7 @@ module Circuitry
15
15
  base.attribute :topic_names, Array[String], default: []
16
16
  base.attribute :on_async_exit
17
17
  base.attribute :async_strategy, Symbol, default: ->(_page, _att) { :fork }
18
+ base.attribute :aws_options_overrides, Hash, default: {}
18
19
  end
19
20
 
20
21
  def middleware
@@ -27,7 +28,8 @@ module Circuitry
27
28
  {
28
29
  access_key_id: access_key,
29
30
  secret_access_key: secret_key,
30
- region: region
31
+ region: region,
32
+ **aws_options_overrides
31
33
  }
32
34
  end
33
35
 
@@ -1,3 +1,3 @@
1
1
  module Circuitry
2
- VERSION = '3.3.0'
2
+ VERSION = '3.4.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.3.0
4
+ version: 3.4.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-06-26 00:00:00.000000000 Z
12
+ date: 2020-09-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-sqs