web47core 3.2.3.20 → 3.2.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24cccbd2a683bf26fb1f4914e0122682ee1d7fd635ebbea6d5fd0e8dbd45956a
|
|
4
|
+
data.tar.gz: d282b6e1afa069c07109ed426918ec22ff7cb251354364e1878dd7ff0ff7b481
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 148dee4874297a6eec576a1213e9917296b1411ab02122da1be084eef44e12086ff54c807bbb8ffb5e41b0bb910e57dcedb373af9bb1ac5cd7da0873858dfcf8
|
|
7
|
+
data.tar.gz: 2897c5e4f6de78852a9a64f5f4535e5d5c4ab9c058b4d079d27c03ae59c40bc1041e56a1b08720172d46d9c0b9d28aeb2341ce1b3a45cb0813b6c1941d08dbc7
|
|
@@ -152,7 +152,7 @@ module App47Logger
|
|
|
152
152
|
#
|
|
153
153
|
def self.clean_params(pars)
|
|
154
154
|
pars.each do |key, value|
|
|
155
|
-
if App47Logger.mask_parameter_keys.
|
|
155
|
+
if App47Logger.mask_parameter_keys.any? { |f| matches_filter?(f, key.to_s) }
|
|
156
156
|
pars[key] = '[FILTERED]'
|
|
157
157
|
elsif App47Logger.delete_parameter_keys.include?(key.to_s)
|
|
158
158
|
pars.delete(key)
|
|
@@ -163,6 +163,19 @@ module App47Logger
|
|
|
163
163
|
pars
|
|
164
164
|
end
|
|
165
165
|
|
|
166
|
+
def self.matches_filter?(filter, key)
|
|
167
|
+
case filter
|
|
168
|
+
when String, Symbol
|
|
169
|
+
filter.to_s == key
|
|
170
|
+
when Regexp
|
|
171
|
+
key.match?(filter)
|
|
172
|
+
when Proc
|
|
173
|
+
filter.call(key)
|
|
174
|
+
else
|
|
175
|
+
false
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
166
179
|
#
|
|
167
180
|
# which parameters to filter out
|
|
168
181
|
#
|
|
@@ -195,8 +195,9 @@ class Notification
|
|
|
195
195
|
|
|
196
196
|
def message_from_haml_text(haml_text, locals)
|
|
197
197
|
locals[:base_url] = SystemConfiguration.base_url
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
|
|
199
|
+
template = Haml::Template.new { haml_text }
|
|
200
|
+
self.message = template.render(Object.new, locals)
|
|
200
201
|
end
|
|
201
202
|
|
|
202
203
|
def message_from_haml_file(file_name, locals)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
!!!
|
|
2
|
+
%html{lang: :en}
|
|
3
|
+
%head
|
|
4
|
+
%meta{content: 'text/html; charset=UTF-8'}
|
|
5
|
+
%body{style: 'margin:20px'}
|
|
6
|
+
%p Failed to send the following notification due to the following error:
|
|
7
|
+
%ul{style: 'list-style-type:none; margin:25px 15px;'}
|
|
8
|
+
%li
|
|
9
|
+
%b="Error: #{error_message}"
|
|
10
|
+
%b="Notification: #{notification_url}"
|
data/lib/web47core/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: web47core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.3.
|
|
4
|
+
version: 3.2.3.22
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Schroeder
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|
|
@@ -6623,6 +6623,7 @@ files:
|
|
|
6623
6623
|
- lib/merge_coverage.rb
|
|
6624
6624
|
- lib/templates/email/notification_failure.liquid
|
|
6625
6625
|
- lib/templates/email/notification_failure.subject.liquid
|
|
6626
|
+
- lib/templates/email/verify_notification.haml
|
|
6626
6627
|
- lib/templates/slack/error_message.liquid
|
|
6627
6628
|
- lib/templates/slack/failed_delayed_job.liquid
|
|
6628
6629
|
- lib/update_icons.rb
|