dradis-plugins 3.21.0 → 3.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/dradis/plugins/content_service/evidence.rb +3 -2
- data/lib/dradis/plugins/gem_version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aec930044375d9b49474c44716cd0108e7417168ada398e15fc7de4c996e9eef
|
4
|
+
data.tar.gz: 76dba5b7f11a1482f33e2a5bfbecaa6237cea9411c194a4a890c33a17222ef05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6ee68cdd5537f7ff4c5d56ff035e93c504d3405c99ed0ed418eb982d72d877876e36f94e59d4c6a973c8396cc42672b8ef0808a09f6c450e050020f62efbf1c
|
7
|
+
data.tar.gz: e79a08c7dadbf644e658ec32a805e5604edc273c9da0819473262ebf9a12e495b35e47be32b93771317cf8ad741dd9c8163ec58b47e99664691898388eec470a
|
data/CHANGELOG.md
CHANGED
@@ -7,10 +7,11 @@ module Dradis::Plugins::ContentService
|
|
7
7
|
node = args.fetch(:node, default_node_parent)
|
8
8
|
issue = args[:issue] || default_evidence_issue
|
9
9
|
|
10
|
-
|
10
|
+
# Using node.evidence.new would result in some evidence being saved later on.
|
11
|
+
evidence = ::Evidence.new(issue_id: issue.id, content: content, node_id: node.id)
|
11
12
|
|
12
13
|
if evidence.valid?
|
13
|
-
evidence.
|
14
|
+
evidence = ::Evidence.find_or_create_by(issue_id: issue.id, node_id: node.id, content: content)
|
14
15
|
else
|
15
16
|
try_rescue_from_length_validation(
|
16
17
|
model: evidence,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dradis-plugins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Martin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02
|
11
|
+
date: 2021-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -111,7 +111,7 @@ homepage: http://dradisframework.org
|
|
111
111
|
licenses:
|
112
112
|
- GPL-2
|
113
113
|
metadata: {}
|
114
|
-
post_install_message:
|
114
|
+
post_install_message:
|
115
115
|
rdoc_options: []
|
116
116
|
require_paths:
|
117
117
|
- lib
|
@@ -126,8 +126,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|
129
|
-
rubygems_version: 3.2
|
130
|
-
signing_key:
|
129
|
+
rubygems_version: 3.1.2
|
130
|
+
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: Plugin manager for the Dradis Framework project.
|
133
133
|
test_files:
|