pheme 5.1.15 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +1 -1
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/pheme/configuration.rb +1 -1
- data/lib/pheme/queue_poller.rb +8 -8
- data/lib/pheme/topic_publisher.rb +4 -4
- data/lib/pheme/version.rb +1 -1
- data/pheme.gemspec +1 -1
- data/spec/queue_poller_spec.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6b334e4202ba814f6222068f854aa943c9080d2eca24976ac27beda254ddefd
|
4
|
+
data.tar.gz: 929e71e00eb98b36160d2889e7adb11406ccf50ee676184fbf8ff7292a0a3991
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58e6af8d1bfb0b09e95877bba8fae733d01ea369b3daf1e060cd118c1211fecf52f4740e6d50702a2cec73387b6ff1e7f1dcb3515e43627c62a2e838265e5d94
|
7
|
+
data.tar.gz: 2efa4014c5bd549f1d647cea2552d580155f6dafd634680dae65d6f5f6cc85119c98b66f553535ee0f2685805a264c216378d7195e1c3cdf2fc5c9dbd83dfad7
|
data/.github/workflows/main.yml
CHANGED
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.2.2
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## 5.2.0 - 2023-07-05
|
8
|
+
### Changed
|
9
|
+
- Bumped min Ruby version to 3.2
|
10
|
+
|
7
11
|
## 5.1.14 - 2023-05-25
|
8
12
|
### Changed
|
9
13
|
- Updated dependencies
|
data/Gemfile.lock
CHANGED
data/lib/pheme/configuration.rb
CHANGED
@@ -22,7 +22,7 @@ module Pheme
|
|
22
22
|
attr_accessor(*ATTRIBUTES, *OPTIONAL_ATTRIBUTES)
|
23
23
|
|
24
24
|
def initialize
|
25
|
-
@logger ||= Logger.new(
|
25
|
+
@logger ||= Logger.new($stdout) # rubocop:disable Lint/DisjunctiveAssignmentInConstructor
|
26
26
|
@logger = ActiveSupport::TaggedLogging.new(@logger) unless @logger.respond_to?(:tagged)
|
27
27
|
end
|
28
28
|
|
data/lib/pheme/queue_poller.rb
CHANGED
@@ -8,14 +8,14 @@ module Pheme
|
|
8
8
|
attr_accessor :queue_url, :queue_poller, :connection_pool_block, :format, :max_messages, :poller_configuration
|
9
9
|
|
10
10
|
def initialize(queue_url:,
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
11
|
+
connection_pool_block: false,
|
12
|
+
max_messages: nil,
|
13
|
+
format: :json,
|
14
|
+
poller_configuration: {},
|
15
|
+
sqs_client: nil,
|
16
|
+
idle_timeout: nil,
|
17
|
+
message_handler: nil,
|
18
|
+
&block_message_handler)
|
19
19
|
raise ArgumentError, "must specify non-nil queue_url" if queue_url.blank?
|
20
20
|
|
21
21
|
@queue_url = queue_url
|
@@ -35,10 +35,10 @@ module Pheme
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def publish(message,
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
38
|
+
sns_client: Pheme.configuration.sns_client,
|
39
|
+
message_attributes: nil,
|
40
|
+
message_deduplication_id: nil,
|
41
|
+
message_group_id: nil)
|
42
42
|
payload = {
|
43
43
|
message: "#{self.class} publishing message to #{topic_arn}",
|
44
44
|
body: message,
|
data/lib/pheme/version.rb
CHANGED
data/pheme.gemspec
CHANGED
data/spec/queue_poller_spec.rb
CHANGED
@@ -418,7 +418,7 @@ describe Pheme::QueuePoller do
|
|
418
418
|
|
419
419
|
let(:queue_message) { ResourceStruct::FlexStruct.new(body: { 'Records' => records }.to_json) }
|
420
420
|
let(:records) do
|
421
|
-
[{ 'eventVersion' => '2.0', eventSource
|
421
|
+
[{ 'eventVersion' => '2.0', :eventSource => 'aws:s3' }]
|
422
422
|
end
|
423
423
|
|
424
424
|
before do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pheme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Graham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05
|
11
|
+
date: 2023-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -271,14 +271,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
271
271
|
requirements:
|
272
272
|
- - ">="
|
273
273
|
- !ruby/object:Gem::Version
|
274
|
-
version: '3.
|
274
|
+
version: '3.2'
|
275
275
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
276
276
|
requirements:
|
277
277
|
- - ">="
|
278
278
|
- !ruby/object:Gem::Version
|
279
279
|
version: '0'
|
280
280
|
requirements: []
|
281
|
-
rubygems_version: 3.
|
281
|
+
rubygems_version: 3.4.10
|
282
282
|
signing_key:
|
283
283
|
specification_version: 4
|
284
284
|
summary: Ruby SNS publisher + SQS poller & message handler
|