pheme 5.2.13 → 5.2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/pheme/topic_publisher.rb +2 -1
- data/lib/pheme/version.rb +1 -1
- data/spec/topic_publisher_spec.rb +27 -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: de267a3a8bcc35f024c801f6a8dfa80341a63b59ece3b8bf0762f16bb4dd2fe9
|
4
|
+
data.tar.gz: e5b6088a0a79975e31950c6a452f45766b519884630a33f78d7e8358d6ca59a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 317ef6b326d79f04b6b54e2384029007fab2e80aea4319f84625b9231779e843ac2155802fb0eb632f9989ff82598378ee7077e6b1982f39f2bf8aad619d77ec
|
7
|
+
data.tar.gz: 04db1a5c0df632690329407443eb027406f2983d6d5d03a6a6001534123271e13c53e059d8e1765cb48b5ac81e7f5b6e7de52a07f3b01a9817f3f9aff9cacc00
|
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.14 - 2024-02-05
|
8
|
+
### Changed
|
9
|
+
- Do not log message body when publishing. Message bodies may have PII like email addresses in them.
|
10
|
+
|
7
11
|
## 5.2.13 - 2024-01-26
|
8
12
|
### Changed
|
9
13
|
- Updated dependencies
|
data/Gemfile.lock
CHANGED
data/lib/pheme/version.rb
CHANGED
@@ -47,6 +47,15 @@ describe Pheme::TopicPublisher do
|
|
47
47
|
message_deduplication_id: nil,
|
48
48
|
message_group_id: nil,
|
49
49
|
})
|
50
|
+
expect(Pheme.logger).to(
|
51
|
+
receive(:info).with(
|
52
|
+
{
|
53
|
+
message: "ExamplePublisher publishing message to arn:aws:sns:whatever",
|
54
|
+
publisher: "ExamplePublisher",
|
55
|
+
topic_arn: "arn:aws:sns:whatever",
|
56
|
+
}.to_json,
|
57
|
+
).twice,
|
58
|
+
)
|
50
59
|
subject.publish_events
|
51
60
|
end
|
52
61
|
|
@@ -64,6 +73,15 @@ describe Pheme::TopicPublisher do
|
|
64
73
|
message_deduplication_id: nil,
|
65
74
|
message_group_id: nil,
|
66
75
|
})
|
76
|
+
expect(Pheme.logger).to(
|
77
|
+
receive(:info).with(
|
78
|
+
{
|
79
|
+
message: "Pheme::TopicPublisher publishing message to #{topic_arn}",
|
80
|
+
publisher: "Pheme::TopicPublisher",
|
81
|
+
topic_arn: topic_arn,
|
82
|
+
}.to_json,
|
83
|
+
),
|
84
|
+
)
|
67
85
|
subject.publish(message)
|
68
86
|
end
|
69
87
|
|
@@ -78,6 +96,15 @@ describe Pheme::TopicPublisher do
|
|
78
96
|
message_deduplication_id: nil,
|
79
97
|
message_group_id: nil,
|
80
98
|
})
|
99
|
+
expect(Pheme.logger).to(
|
100
|
+
receive(:info).with(
|
101
|
+
{
|
102
|
+
message: "Pheme::TopicPublisher publishing message to #{topic_arn}",
|
103
|
+
publisher: "Pheme::TopicPublisher",
|
104
|
+
topic_arn: topic_arn,
|
105
|
+
}.to_json,
|
106
|
+
),
|
107
|
+
)
|
81
108
|
subject.publish(message, sns_client: sns_client)
|
82
109
|
end
|
83
110
|
end
|
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.2.
|
4
|
+
version: 5.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Graham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|