bundler_audit_notifier 0.1.12 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bundler_audit_notifier.rb +2 -2
- 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: 4a404d051f86e7a5ead43e8743ec28991c2d10f5446f101b09e0187503216b69
|
4
|
+
data.tar.gz: 92698866c7aadabb9db94bbf530a5761b32c9f6f82c488083eb80efc5ee7e064
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ed9001aa8bfb5c107d18a11dc7b1be6724a4b2c75c2ba43997500cc2a3fc05a7a2e0c3edb4b8f4e5f74b73362bf6d69ea78328d1624933b2f854ff9ca336e76
|
7
|
+
data.tar.gz: c31da589c9732d58c564352b274364e86c280fe0e5c3daabdfd02e99d808005158d80768c657ebe1432ffadcf378149933b06ee22dc6942f7df6cfbd6fa9edbe
|
@@ -57,7 +57,7 @@ module BundlerAuditNotifier
|
|
57
57
|
# check for valid data
|
58
58
|
# check database table for existing event
|
59
59
|
data = {name: name, version: version, advisory: advisory, criticality: criticality, url: url, title: title, solution: solution}
|
60
|
-
bai = BundlerAuditIssue.find_by_advisory(advisory)
|
60
|
+
bai = ::BundlerAuditIssue.find_by_advisory(advisory)
|
61
61
|
if bai
|
62
62
|
# if event found, touch event
|
63
63
|
bai.touch
|
@@ -66,7 +66,7 @@ module BundlerAuditNotifier
|
|
66
66
|
vulnerabilities << data.merge({token: bai.token})
|
67
67
|
end
|
68
68
|
else
|
69
|
-
if bai = BundlerAuditIssue.create(data)
|
69
|
+
if bai = ::BundlerAuditIssue.create(data)
|
70
70
|
vulnerabilities << data.merge({token: bai.token})
|
71
71
|
else
|
72
72
|
errors << "Error parsing creating new BundlerAuditIssue with the following #{data}"
|