pheme 5.2.12 → 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: 5d0a4b5251bddaac0de1eea38efcc29294eea2a6d3ea2c2fa1ac4dc41e4794fb
4
- data.tar.gz: 48c2e9c7c13234c15d3b45be70efe2c0651f1ea82dc3773e6455fb3112c8391f
3
+ metadata.gz: de267a3a8bcc35f024c801f6a8dfa80341a63b59ece3b8bf0762f16bb4dd2fe9
4
+ data.tar.gz: e5b6088a0a79975e31950c6a452f45766b519884630a33f78d7e8358d6ca59a2
5
5
  SHA512:
6
- metadata.gz: b8575bb6e0ed2e403e58d04db2e7012eae554d92e0ffbc834ce133d2a15b6f9846ba144557ab8420f49cced7f7662ac52d630e508e4edd525dab8e175bc2b7a2
7
- data.tar.gz: 7b7b8a78d55018ad359ee16454fb9520048505526d890902d1ac8836240706a7d83b90542eeebc97c986f41da4714625c3bd794d118d83427faa057be093b229
6
+ metadata.gz: 317ef6b326d79f04b6b54e2384029007fab2e80aea4319f84625b9231779e843ac2155802fb0eb632f9989ff82598378ee7077e6b1982f39f2bf8aad619d77ec
7
+ data.tar.gz: 04db1a5c0df632690329407443eb027406f2983d6d5d03a6a6001534123271e13c53e059d8e1765cb48b5ac81e7f5b6e7de52a07f3b01a9817f3f9aff9cacc00
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.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
+
11
+ ## 5.2.13 - 2024-01-26
12
+ ### Changed
13
+ - Updated dependencies
14
+
7
15
  ## 5.2.12 - 2023-01-02
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.2.12)
4
+ pheme (5.2.14)
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.1.2)
14
+ activesupport (7.1.3)
15
15
  base64
16
16
  bigdecimal
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -25,8 +25,8 @@ GEM
25
25
  public_suffix (>= 2.0.2, < 6.0)
26
26
  ast (2.4.2)
27
27
  aws-eventstream (1.3.0)
28
- aws-partitions (1.876.0)
29
- aws-sdk-core (3.190.1)
28
+ aws-partitions (1.883.0)
29
+ aws-sdk-core (3.190.3)
30
30
  aws-eventstream (~> 1, >= 1.3.0)
31
31
  aws-partitions (~> 1, >= 1.651.0)
32
32
  aws-sigv4 (~> 1.8)
@@ -40,17 +40,17 @@ GEM
40
40
  aws-sigv4 (1.8.0)
41
41
  aws-eventstream (~> 1, >= 1.0.2)
42
42
  base64 (0.2.0)
43
- bigdecimal (3.1.5)
43
+ bigdecimal (3.1.6)
44
44
  bundler-audit (0.9.1)
45
45
  bundler (>= 1.2.0, < 3)
46
46
  thor (~> 1.0)
47
- concurrent-ruby (1.2.2)
47
+ concurrent-ruby (1.2.3)
48
48
  connection_pool (2.4.1)
49
49
  diff-lcs (1.5.0)
50
50
  docile (1.4.0)
51
51
  drb (2.2.0)
52
52
  ruby2_keywords
53
- git (1.18.0)
53
+ git (1.19.1)
54
54
  addressable (~> 2.8)
55
55
  rchardet (~> 1.8)
56
56
  i18n (1.14.1)
@@ -59,10 +59,10 @@ GEM
59
59
  json (2.7.1)
60
60
  language_server-protocol (3.17.0.3)
61
61
  lint_roller (1.1.0)
62
- minitest (5.20.0)
62
+ minitest (5.21.2)
63
63
  mutex_m (0.2.0)
64
64
  parallel (1.24.0)
65
- parser (3.2.2.4)
65
+ parser (3.3.0.5)
66
66
  ast (~> 2.4.1)
67
67
  racc
68
68
  public_suffix (5.0.4)
@@ -71,7 +71,7 @@ GEM
71
71
  rainbow (3.1.1)
72
72
  rake (13.1.0)
73
73
  rchardet (1.8.0)
74
- regexp_parser (2.8.3)
74
+ regexp_parser (2.9.0)
75
75
  resource-struct (0.4.0)
76
76
  rexml (3.2.6)
77
77
  rspec (3.12.0)
@@ -107,11 +107,11 @@ GEM
107
107
  unicode-display_width (>= 2.4.0, < 3.0)
108
108
  rubocop-ast (1.30.0)
109
109
  parser (>= 3.2.1.0)
110
- rubocop-capybara (2.19.0)
110
+ rubocop-capybara (2.20.0)
111
111
  rubocop (~> 1.41)
112
- rubocop-factory_bot (2.24.0)
113
- rubocop (~> 1.33)
114
- rubocop-performance (1.20.1)
112
+ rubocop-factory_bot (2.25.1)
113
+ rubocop (~> 1.41)
114
+ rubocop-performance (1.20.2)
115
115
  rubocop (>= 1.48.1, < 2.0)
116
116
  rubocop-ast (>= 1.30.0, < 2.0)
117
117
  rubocop-rails (2.23.1)
@@ -119,11 +119,11 @@ GEM
119
119
  rack (>= 1.1)
120
120
  rubocop (>= 1.33.0, < 2.0)
121
121
  rubocop-ast (>= 1.30.0, < 2.0)
122
- rubocop-rspec (2.25.0)
122
+ rubocop-rspec (2.26.1)
123
123
  rubocop (~> 1.40)
124
124
  rubocop-capybara (~> 2.17)
125
125
  rubocop-factory_bot (~> 2.22)
126
- rubocop-vendor (0.12.1)
126
+ rubocop-vendor (0.13.0)
127
127
  rubocop
128
128
  ruby-progressbar (1.13.0)
129
129
  ruby2_keywords (0.0.5)
@@ -133,7 +133,7 @@ GEM
133
133
  simplecov_json_formatter (~> 0.1)
134
134
  simplecov-html (0.12.3)
135
135
  simplecov_json_formatter (0.1.4)
136
- smarter_csv (1.9.3)
136
+ smarter_csv (1.10.1)
137
137
  standard (1.33.0)
138
138
  language_server-protocol (~> 3.17.0.2)
139
139
  lint_roller (~> 1.0)
@@ -143,17 +143,17 @@ GEM
143
143
  standard-custom (1.0.2)
144
144
  lint_roller (~> 1.0)
145
145
  rubocop (~> 1.50)
146
- standard-performance (1.3.0)
146
+ standard-performance (1.3.1)
147
147
  lint_roller (~> 1.1)
148
- rubocop-performance (~> 1.20.1)
149
- standard-rails (1.0.0)
148
+ rubocop-performance (~> 1.20.2)
149
+ standard-rails (1.0.2)
150
150
  lint_roller (~> 1.0)
151
151
  rubocop-rails (~> 2.23.1)
152
152
  thor (1.3.0)
153
153
  tzinfo (2.0.6)
154
154
  concurrent-ruby (~> 1.0)
155
155
  unicode-display_width (2.5.0)
156
- ws-style (7.2.1)
156
+ ws-style (7.4.1)
157
157
  rubocop-rspec (>= 2.2.0)
158
158
  rubocop-vendor (>= 0.11)
159
159
  standard (>= 1.30.1)
@@ -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.12'.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.12
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-02 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