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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d5d29b94123ccea085d76564d744587c713fcc8ed6fd5d096b8cf6a02332ada
4
- data.tar.gz: 5ee0495a24f67cb970463382f6e120ec34550cfe1962e2940b58c6d2e4e10a8a
3
+ metadata.gz: a6b334e4202ba814f6222068f854aa943c9080d2eca24976ac27beda254ddefd
4
+ data.tar.gz: 929e71e00eb98b36160d2889e7adb11406ccf50ee676184fbf8ff7292a0a3991
5
5
  SHA512:
6
- metadata.gz: 4d07ad3abdf5647a4a1fade599a5a91ede968af9052edd48a22a6b4b4b668454c7e01442ca3b011cecdc6bcb29e3c22f2052cbd85cd1ec7d55245f70ec33b7fd
7
- data.tar.gz: f63c078041b6cd9b55d51046423b53190b6ca2733d76ba2a327afe41dbd9eb8495f74109ac3d039668771f7cc5d3a68a3798c24ff5190460c71770b0cd3ae8e4
6
+ metadata.gz: 58e6af8d1bfb0b09e95877bba8fae733d01ea369b3daf1e060cd118c1211fecf52f4740e6d50702a2cec73387b6ff1e7f1dcb3515e43627c62a2e838265e5d94
7
+ data.tar.gz: 2efa4014c5bd549f1d647cea2552d580155f6dafd634680dae65d6f5f6cc85119c98b66f553535ee0f2685805a264c216378d7195e1c3cdf2fc5c9dbd83dfad7
@@ -12,7 +12,7 @@ jobs:
12
12
  runs-on: ubuntu-22.04
13
13
  strategy:
14
14
  matrix:
15
- ruby-version: [3.0.6, 3.1.4, 3.2.2]
15
+ ruby-version: [3.2.2]
16
16
  steps:
17
17
  - uses: actions/checkout@v3
18
18
  with:
data/.rubocop.yml CHANGED
@@ -6,4 +6,4 @@ inherit_gem:
6
6
 
7
7
  AllCops:
8
8
  # Specify your target Ruby version here (only major/minor versions):
9
- TargetRubyVersion: 3.0
9
+ TargetRubyVersion: 3.2
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.6
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pheme (5.1.15)
4
+ pheme (5.2.0)
5
5
  activesupport (>= 4)
6
6
  aws-sdk-sns (~> 1.1)
7
7
  aws-sdk-sqs (~> 1.3)
@@ -22,7 +22,7 @@ module Pheme
22
22
  attr_accessor(*ATTRIBUTES, *OPTIONAL_ATTRIBUTES)
23
23
 
24
24
  def initialize
25
- @logger ||= Logger.new(STDOUT) # rubocop:disable Lint/DisjunctiveAssignmentInConstructor
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
 
@@ -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
- 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)
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
- sns_client: Pheme.configuration.sns_client,
39
- message_attributes: nil,
40
- message_deduplication_id: nil,
41
- message_group_id: nil)
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
@@ -1,3 +1,3 @@
1
1
  module Pheme
2
- VERSION = '5.1.15'.freeze
2
+ VERSION = '5.2.0'.freeze
3
3
  end
data/pheme.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ['lib']
20
20
  s.license = 'MIT'
21
21
 
22
- s.required_ruby_version = '>= 3.0'
22
+ s.required_ruby_version = '>= 3.2'
23
23
 
24
24
  s.add_dependency 'activesupport', '>= 4'
25
25
  s.add_dependency 'aws-sdk-sns', '~> 1.1'
@@ -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: 'aws:s3' }]
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.1.15
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-25 00:00:00.000000000 Z
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.0'
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.2.33
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