pheme 5.0.9 → 5.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +20 -16
- data/lib/pheme/topic_publisher.rb +12 -2
- data/lib/pheme/version.rb +1 -1
- data/spec/topic_publisher_spec.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: def70e3f48d5c798e06c9619bfbe1ac24b0c909829f8fe4840e2e9efd68a4463
|
4
|
+
data.tar.gz: 04d6e37fb51dacdbfa23dcdc050389c95fc561feaf2fbe4b27fcf800f9c621f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87892c7139b0c8aa6b8861414602d89e713942ebbddeed5780eac5889ff201e11da04c37ee43a9aa3c07337d6e96abc259121b5fa64ab37027bd370b35e0942c
|
7
|
+
data.tar.gz: 314d066fd17509d12936822cacee7e7d07f75158d2004008c367d4b0d565b4c9589e9201312d002b7ab03bddc0bcd15ceb2bf41dd38930d21cbe480afd614dda
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,18 @@ 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.1.1 - 2022-09-09
|
8
|
+
### Changed
|
9
|
+
- Updated dependencies
|
10
|
+
|
11
|
+
## 5.1.0 - 2022-08-16
|
12
|
+
### Changed
|
13
|
+
- Added support for FIFO params when publishing to SNS topic
|
14
|
+
|
15
|
+
## 5.0.10 - 2022-08-12
|
16
|
+
### Changed
|
17
|
+
- Updated dependencies
|
18
|
+
|
7
19
|
## 5.0.9 - 2022-07-15
|
8
20
|
### Changed
|
9
21
|
- Updated dependencies
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pheme (5.
|
4
|
+
pheme (5.1.1)
|
5
5
|
activesupport (>= 4)
|
6
6
|
aws-sdk-sns (~> 1.1)
|
7
7
|
aws-sdk-sqs (~> 1.3)
|
@@ -16,21 +16,23 @@ GEM
|
|
16
16
|
i18n (>= 1.6, < 2)
|
17
17
|
minitest (>= 5.1)
|
18
18
|
tzinfo (~> 2.0)
|
19
|
+
addressable (2.8.1)
|
20
|
+
public_suffix (>= 2.0.2, < 6.0)
|
19
21
|
ast (2.4.2)
|
20
22
|
aws-eventstream (1.2.0)
|
21
|
-
aws-partitions (1.
|
22
|
-
aws-sdk-core (3.
|
23
|
+
aws-partitions (1.627.0)
|
24
|
+
aws-sdk-core (3.143.0)
|
23
25
|
aws-eventstream (~> 1, >= 1.0.2)
|
24
26
|
aws-partitions (~> 1, >= 1.525.0)
|
25
27
|
aws-sigv4 (~> 1.1)
|
26
28
|
jmespath (~> 1, >= 1.6.1)
|
27
|
-
aws-sdk-sns (1.
|
29
|
+
aws-sdk-sns (1.55.0)
|
28
30
|
aws-sdk-core (~> 3, >= 3.127.0)
|
29
31
|
aws-sigv4 (~> 1.1)
|
30
32
|
aws-sdk-sqs (1.51.1)
|
31
33
|
aws-sdk-core (~> 3, >= 3.127.0)
|
32
34
|
aws-sigv4 (~> 1.1)
|
33
|
-
aws-sigv4 (1.5.
|
35
|
+
aws-sigv4 (1.5.1)
|
34
36
|
aws-eventstream (~> 1, >= 1.0.2)
|
35
37
|
bundler-audit (0.9.1)
|
36
38
|
bundler (>= 1.2.0, < 3)
|
@@ -38,17 +40,19 @@ GEM
|
|
38
40
|
concurrent-ruby (1.1.10)
|
39
41
|
diff-lcs (1.5.0)
|
40
42
|
docile (1.4.0)
|
41
|
-
git (1.
|
43
|
+
git (1.12.0)
|
44
|
+
addressable (~> 2.8)
|
42
45
|
rchardet (~> 1.8)
|
43
46
|
i18n (1.12.0)
|
44
47
|
concurrent-ruby (~> 1.0)
|
45
48
|
jmespath (1.6.1)
|
46
49
|
json (2.6.2)
|
47
|
-
minitest (5.16.
|
50
|
+
minitest (5.16.3)
|
48
51
|
parallel (1.22.1)
|
49
|
-
parser (3.1.2.
|
52
|
+
parser (3.1.2.1)
|
50
53
|
ast (~> 2.4.1)
|
51
|
-
|
54
|
+
public_suffix (5.0.0)
|
55
|
+
rack (3.0.0)
|
52
56
|
rainbow (3.1.1)
|
53
57
|
rake (13.0.6)
|
54
58
|
rchardet (1.8.0)
|
@@ -75,19 +79,19 @@ GEM
|
|
75
79
|
rspec-support (3.11.0)
|
76
80
|
rspec_junit_formatter (0.5.1)
|
77
81
|
rspec-core (>= 2, < 4, != 2.12.0)
|
78
|
-
rubocop (1.
|
82
|
+
rubocop (1.36.0)
|
79
83
|
json (~> 2.3)
|
80
84
|
parallel (~> 1.10)
|
81
|
-
parser (>= 3.1.
|
85
|
+
parser (>= 3.1.2.1)
|
82
86
|
rainbow (>= 2.2.2, < 4.0)
|
83
87
|
regexp_parser (>= 1.8, < 3.0)
|
84
88
|
rexml (>= 3.2.5, < 4.0)
|
85
|
-
rubocop-ast (>= 1.
|
89
|
+
rubocop-ast (>= 1.20.1, < 2.0)
|
86
90
|
ruby-progressbar (~> 1.7)
|
87
91
|
unicode-display_width (>= 1.4.0, < 3.0)
|
88
|
-
rubocop-ast (1.
|
92
|
+
rubocop-ast (1.21.0)
|
89
93
|
parser (>= 3.1.1.0)
|
90
|
-
rubocop-performance (1.14.
|
94
|
+
rubocop-performance (1.14.3)
|
91
95
|
rubocop (>= 1.7.0, < 2.0)
|
92
96
|
rubocop-ast (>= 0.4.0)
|
93
97
|
rubocop-rails (2.15.2)
|
@@ -105,9 +109,9 @@ GEM
|
|
105
109
|
simplecov_json_formatter (~> 0.1)
|
106
110
|
simplecov-html (0.12.3)
|
107
111
|
simplecov_json_formatter (0.1.4)
|
108
|
-
smarter_csv (1.7.
|
112
|
+
smarter_csv (1.7.2)
|
109
113
|
thor (1.2.1)
|
110
|
-
tzinfo (2.0.
|
114
|
+
tzinfo (2.0.5)
|
111
115
|
concurrent-ruby (~> 1.0)
|
112
116
|
unicode-display_width (2.2.0)
|
113
117
|
ws-style (6.13.25)
|
@@ -34,7 +34,11 @@ module Pheme
|
|
34
34
|
raise NotImplementedError
|
35
35
|
end
|
36
36
|
|
37
|
-
def publish(message,
|
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
42
|
payload = {
|
39
43
|
message: "#{self.class} publishing message to #{topic_arn}",
|
40
44
|
body: message,
|
@@ -43,7 +47,13 @@ module Pheme
|
|
43
47
|
}
|
44
48
|
Pheme.logger.info(payload.to_json)
|
45
49
|
|
46
|
-
sns_client.publish(
|
50
|
+
sns_client.publish(
|
51
|
+
topic_arn: topic_arn,
|
52
|
+
message: serialize(message),
|
53
|
+
message_attributes: message_attributes,
|
54
|
+
message_deduplication_id: message_deduplication_id,
|
55
|
+
message_group_id: message_group_id,
|
56
|
+
)
|
47
57
|
end
|
48
58
|
|
49
59
|
def serialize(message)
|
data/lib/pheme/version.rb
CHANGED
@@ -37,11 +37,15 @@ describe Pheme::TopicPublisher do
|
|
37
37
|
topic_arn: "arn:aws:sns:whatever",
|
38
38
|
message: { id: "id-0", status: "complete" }.to_json,
|
39
39
|
message_attributes: nil,
|
40
|
+
message_deduplication_id: nil,
|
41
|
+
message_group_id: nil,
|
40
42
|
})
|
41
43
|
expect(Pheme.configuration.sns_client).to receive(:publish).with({
|
42
44
|
topic_arn: "arn:aws:sns:whatever",
|
43
45
|
message: { id: "id-1", status: "complete" }.to_json,
|
44
46
|
message_attributes: nil,
|
47
|
+
message_deduplication_id: nil,
|
48
|
+
message_group_id: nil,
|
45
49
|
})
|
46
50
|
subject.publish_events
|
47
51
|
end
|
@@ -57,6 +61,8 @@ describe Pheme::TopicPublisher do
|
|
57
61
|
topic_arn: topic_arn,
|
58
62
|
message: message,
|
59
63
|
message_attributes: nil,
|
64
|
+
message_deduplication_id: nil,
|
65
|
+
message_group_id: nil,
|
60
66
|
})
|
61
67
|
subject.publish(message)
|
62
68
|
end
|
@@ -69,6 +75,8 @@ describe Pheme::TopicPublisher do
|
|
69
75
|
topic_arn: topic_arn,
|
70
76
|
message: message,
|
71
77
|
message_attributes: nil,
|
78
|
+
message_deduplication_id: nil,
|
79
|
+
message_group_id: nil,
|
72
80
|
})
|
73
81
|
subject.publish(message, sns_client: sns_client)
|
74
82
|
end
|
@@ -94,6 +102,8 @@ describe Pheme::TopicPublisher do
|
|
94
102
|
topic_arn: topic_arn,
|
95
103
|
message: compressed_message,
|
96
104
|
message_attributes: nil,
|
105
|
+
message_deduplication_id: nil,
|
106
|
+
message_group_id: nil,
|
97
107
|
}),
|
98
108
|
)
|
99
109
|
|
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.1.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: 2022-
|
11
|
+
date: 2022-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|