pheme 5.1.15 → 5.2.1

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: ecfddff20a7d97a6a105457f4de521514fdc3067ba909c0c2b925a317af9c539
4
+ data.tar.gz: cbd269a2535d26c588c2edfe00fc725a9863c6c3ceee4ae341b3c78f339e1dfa
5
5
  SHA512:
6
- metadata.gz: 4d07ad3abdf5647a4a1fade599a5a91ede968af9052edd48a22a6b4b4b668454c7e01442ca3b011cecdc6bcb29e3c22f2052cbd85cd1ec7d55245f70ec33b7fd
7
- data.tar.gz: f63c078041b6cd9b55d51046423b53190b6ca2733d76ba2a327afe41dbd9eb8495f74109ac3d039668771f7cc5d3a68a3798c24ff5190460c71770b0cd3ae8e4
6
+ metadata.gz: 886b590366a034b19d6e6a8a0013c129a46df1bc0151c220698532174086e5d1262fc8f8acaaff417f1f73749fdef144d698ef834a5c68e3de31084c69ecf202
7
+ data.tar.gz: c7025c16b16a214e633ee7753e7839cd02a1229c9534d17448d185aa7f8c0ad0bd809e206650310446873e9d642fa4dd18dd69e3b479c512b20b0ca90d4e2c33
@@ -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,14 @@ 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.1 - 2023-07-05
8
+ ### Changed
9
+ - Updated dependencies
10
+
11
+ ## 5.2.0 - 2023-07-05
12
+ ### Changed
13
+ - Bumped min Ruby version to 3.2
14
+
7
15
  ## 5.1.14 - 2023-05-25
8
16
  ### Changed
9
17
  - 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.1)
5
5
  activesupport (>= 4)
6
6
  aws-sdk-sns (~> 1.1)
7
7
  aws-sdk-sqs (~> 1.3)
@@ -11,7 +11,7 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (7.0.4.3)
14
+ activesupport (7.0.6)
15
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
16
  i18n (>= 1.6, < 2)
17
17
  minitest (>= 5.1)
@@ -20,19 +20,19 @@ GEM
20
20
  public_suffix (>= 2.0.2, < 6.0)
21
21
  ast (2.4.2)
22
22
  aws-eventstream (1.2.0)
23
- aws-partitions (1.766.0)
24
- aws-sdk-core (3.173.0)
23
+ aws-partitions (1.783.0)
24
+ aws-sdk-core (3.176.1)
25
25
  aws-eventstream (~> 1, >= 1.0.2)
26
26
  aws-partitions (~> 1, >= 1.651.0)
27
27
  aws-sigv4 (~> 1.5)
28
28
  jmespath (~> 1, >= 1.6.1)
29
- aws-sdk-sns (1.60.0)
30
- aws-sdk-core (~> 3, >= 3.165.0)
29
+ aws-sdk-sns (1.63.0)
30
+ aws-sdk-core (~> 3, >= 3.176.0)
31
31
  aws-sigv4 (~> 1.1)
32
- aws-sdk-sqs (1.55.0)
33
- aws-sdk-core (~> 3, >= 3.165.0)
32
+ aws-sdk-sqs (1.59.0)
33
+ aws-sdk-core (~> 3, >= 3.176.0)
34
34
  aws-sigv4 (~> 1.1)
35
- aws-sigv4 (1.5.2)
35
+ aws-sigv4 (1.6.0)
36
36
  aws-eventstream (~> 1, >= 1.0.2)
37
37
  bundler-audit (0.9.1)
38
38
  bundler (>= 1.2.0, < 3)
@@ -43,20 +43,24 @@ GEM
43
43
  git (1.18.0)
44
44
  addressable (~> 2.8)
45
45
  rchardet (~> 1.8)
46
- i18n (1.13.0)
46
+ i18n (1.14.1)
47
47
  concurrent-ruby (~> 1.0)
48
48
  jmespath (1.6.2)
49
49
  json (2.6.3)
50
- minitest (5.18.0)
50
+ language_server-protocol (3.17.0.3)
51
+ lint_roller (1.0.0)
52
+ minitest (5.18.1)
51
53
  parallel (1.23.0)
52
- parser (3.2.2.1)
54
+ parser (3.2.2.3)
53
55
  ast (~> 2.4.1)
56
+ racc
54
57
  public_suffix (5.0.1)
55
- rack (3.0.7)
58
+ racc (1.7.1)
59
+ rack (3.0.8)
56
60
  rainbow (3.1.1)
57
61
  rake (13.0.6)
58
62
  rchardet (1.8.0)
59
- regexp_parser (2.8.0)
63
+ regexp_parser (2.8.1)
60
64
  resource-struct (0.4.0)
61
65
  rexml (3.2.5)
62
66
  rspec (3.12.0)
@@ -76,26 +80,26 @@ GEM
76
80
  rspec-mocks (3.12.5)
77
81
  diff-lcs (>= 1.2.0, < 2.0)
78
82
  rspec-support (~> 3.12.0)
79
- rspec-support (3.12.0)
83
+ rspec-support (3.12.1)
80
84
  rspec_junit_formatter (0.6.0)
81
85
  rspec-core (>= 2, < 4, != 2.12.0)
82
- rubocop (1.51.0)
86
+ rubocop (1.52.1)
83
87
  json (~> 2.3)
84
88
  parallel (~> 1.10)
85
- parser (>= 3.2.0.0)
89
+ parser (>= 3.2.2.3)
86
90
  rainbow (>= 2.2.2, < 4.0)
87
91
  regexp_parser (>= 1.8, < 3.0)
88
92
  rexml (>= 3.2.5, < 4.0)
89
93
  rubocop-ast (>= 1.28.0, < 2.0)
90
94
  ruby-progressbar (~> 1.7)
91
95
  unicode-display_width (>= 2.4.0, < 3.0)
92
- rubocop-ast (1.28.1)
96
+ rubocop-ast (1.29.0)
93
97
  parser (>= 3.2.1.0)
94
98
  rubocop-capybara (2.18.0)
95
99
  rubocop (~> 1.41)
96
100
  rubocop-factory_bot (2.23.1)
97
101
  rubocop (~> 1.33)
98
- rubocop-performance (1.17.1)
102
+ rubocop-performance (1.18.0)
99
103
  rubocop (>= 1.7.0, < 2.0)
100
104
  rubocop-ast (>= 0.4.0)
101
105
  rubocop-rails (2.19.1)
@@ -106,7 +110,7 @@ GEM
106
110
  rubocop (~> 1.33)
107
111
  rubocop-capybara (~> 2.17)
108
112
  rubocop-factory_bot (~> 2.22)
109
- rubocop-vendor (0.9.2)
113
+ rubocop-vendor (0.11.0)
110
114
  rubocop (>= 0.53.0)
111
115
  ruby-progressbar (1.13.0)
112
116
  simplecov (0.22.0)
@@ -115,17 +119,30 @@ GEM
115
119
  simplecov_json_formatter (~> 0.1)
116
120
  simplecov-html (0.12.3)
117
121
  simplecov_json_formatter (0.1.4)
118
- smarter_csv (1.8.4)
122
+ smarter_csv (1.8.5)
123
+ standard (1.29.0)
124
+ language_server-protocol (~> 3.17.0.2)
125
+ lint_roller (~> 1.0)
126
+ rubocop (~> 1.52.0)
127
+ standard-custom (~> 1.0.0)
128
+ standard-performance (~> 1.1.0)
129
+ standard-custom (1.0.1)
130
+ lint_roller (~> 1.0)
131
+ standard-performance (1.1.0)
132
+ lint_roller (~> 1.0)
133
+ rubocop-performance (~> 1.18.0)
134
+ standard-rails (0.1.0)
135
+ lint_roller (~> 1.0)
136
+ rubocop-rails (~> 2.19.0)
119
137
  thor (1.2.2)
120
138
  tzinfo (2.0.6)
121
139
  concurrent-ruby (~> 1.0)
122
140
  unicode-display_width (2.4.2)
123
- ws-style (6.14.7)
124
- rubocop (>= 1.36)
125
- rubocop-performance (>= 1.10.2)
126
- rubocop-rails (>= 2.9.1)
141
+ ws-style (7.1.1)
127
142
  rubocop-rspec (>= 2.2.0)
128
- rubocop-vendor (>= 0.6.0)
143
+ rubocop-vendor (>= 0.11)
144
+ standard (>= 1.28.2)
145
+ standard-rails (>= 0.1.0)
129
146
 
130
147
  PLATFORMS
131
148
  ruby
@@ -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.1'.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.1
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