job_harbor 0.10.0 → 0.10.1
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 +4 -4
- data/app/models/job_harbor/job_presenter.rb +7 -6
- data/lib/job_harbor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 19b67b89af24c37863bf2f04d9627703fc80853832f15f270f602b2e9d8e3e29
|
|
4
|
+
data.tar.gz: 19c70314fb770493a2608e43dc4f78e1e3365dd736a295ba2cf6605429d71e9e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e35bf7dee6ef75d6c74660ca6f06e289aae782734d8b34c46425d74ac91fa169e7ad0a21d4dce1647ea3803be9a270504af1d4ae802baf2fbb5b25d8ab62552a
|
|
7
|
+
data.tar.gz: 3ec701c19aa301cf490d72997dc24dbf096573cc0c59f8c011fb194795011a4e5d72518ce4bf8360f7a799b652f636949863753844afeed3def1653700559e59
|
|
@@ -41,7 +41,7 @@ module JobHarbor
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
def error_message
|
|
44
|
-
filtered_error_part(
|
|
44
|
+
filtered_error_part(0)
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
def error_class
|
|
@@ -49,7 +49,7 @@ module JobHarbor
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
def error_backtrace
|
|
52
|
-
Array(filtered_error_part(
|
|
52
|
+
Array(filtered_error_part(1)).join("\n")
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
def failed_at
|
|
@@ -103,13 +103,14 @@ module JobHarbor
|
|
|
103
103
|
@filtered_payload ||= SensitiveValueFilter.filter(serialized_payload)
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
-
# Messages and backtraces go through the same filter so a host Proc can scrub them.
|
|
107
|
-
|
|
106
|
+
# Messages and backtraces go through the same filter so a host Proc can scrub them. They travel as a
|
|
107
|
+
# keyless array: in a hash, a host filter such as :message would match the key and mask the whole text.
|
|
108
|
+
def filtered_error_part(index)
|
|
108
109
|
error = parsed_error
|
|
109
110
|
return nil unless error
|
|
110
111
|
|
|
111
|
-
@filtered_error ||= SensitiveValueFilter.filter(
|
|
112
|
-
@filtered_error.is_a?(
|
|
112
|
+
@filtered_error ||= SensitiveValueFilter.filter([ error["message"], error["backtrace"] ])
|
|
113
|
+
@filtered_error.is_a?(Array) ? @filtered_error[index] : @filtered_error
|
|
113
114
|
end
|
|
114
115
|
|
|
115
116
|
def parsed_error
|
data/lib/job_harbor/version.rb
CHANGED