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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2e854425b97f612081bf9bbb142d289933e30b7f1c10c67eb882a7073715f79
4
- data.tar.gz: ed00822519b70b24cff69a6f241f465869fb7bfc217f7b8bfc470f2aca4f198f
3
+ metadata.gz: de267a3a8bcc35f024c801f6a8dfa80341a63b59ece3b8bf0762f16bb4dd2fe9
4
+ data.tar.gz: e5b6088a0a79975e31950c6a452f45766b519884630a33f78d7e8358d6ca59a2
5
5
  SHA512:
6
- metadata.gz: 7f6ae0647ba7a252ee9c2cdffc4c847dc0a18598aeba5e5bf484cada65a0f783db2075bd7f0532e7f7a32ae8b9b5d30a8eddf1bd57df20b0a4acf4ecac466bc0
7
- data.tar.gz: 3d55b80ced75f5a490fa12218b480b5bef899ca457242990d37ba2ff3bcefbef4b68e373b2fdc0e4bafdaa55c66718c274219ae14942de640c62ec3226e1a6e1
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pheme (5.2.13)
4
+ pheme (5.2.14)
5
5
  activesupport (>= 4)
6
6
  aws-sdk-sns (~> 1.1)
7
7
  aws-sdk-sqs (~> 1.3)
@@ -45,7 +45,8 @@ module Pheme
45
45
  publisher: self.class.to_s,
46
46
  topic_arn: topic_arn,
47
47
  }
48
- Pheme.logger.info(payload.to_json)
48
+
49
+ Pheme.logger.info(payload.except(:body).to_json)
49
50
 
50
51
  sns_client.publish(
51
52
  topic_arn: topic_arn,
data/lib/pheme/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pheme
2
- VERSION = '5.2.13'.freeze
2
+ VERSION = '5.2.14'.freeze
3
3
  end
@@ -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.13
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-01-26 00:00:00.000000000 Z
11
+ date: 2024-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport