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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: effda0b5e549316b2970ee0971d4635e1bec62747fbd5496284488aa0ef44c64
4
- data.tar.gz: b53a7c3c71dab6fc669800b010c300198782cd5bd3f481b7ba8c6b0887e4f7e0
3
+ metadata.gz: aec930044375d9b49474c44716cd0108e7417168ada398e15fc7de4c996e9eef
4
+ data.tar.gz: 76dba5b7f11a1482f33e2a5bfbecaa6237cea9411c194a4a890c33a17222ef05
5
5
  SHA512:
6
- metadata.gz: e101f0195effda68b32c0388e125087f4839bf8e3925fe50ddbd8825e4cdab0f670b9d21d4c3dadfea3723c33af281de98a3c38d5dd5cbbba8ce9fabf9ccf001
7
- data.tar.gz: 58ebfdaf92b640cf873e28e942930a1d5bddd4bf17a37a2e98b3224be563ae6e460c635f0066e05981f6626f565d41bdfe511f6bc37aab37e2a2e2e66d52c145
6
+ metadata.gz: a6ee68cdd5537f7ff4c5d56ff035e93c504d3405c99ed0ed418eb982d72d877876e36f94e59d4c6a973c8396cc42672b8ef0808a09f6c450e050020f62efbf1c
7
+ data.tar.gz: e79a08c7dadbf644e658ec32a805e5604edc273c9da0819473262ebf9a12e495b35e47be32b93771317cf8ad741dd9c8163ec58b47e99664691898388eec470a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Dradis Framework 3.22 (April, 2021) ##
2
+
3
+ * ContentService#create_evidence: deduplicate Evidence from integrations.
4
+
1
5
  ## Dradis Framework 3.21 (February, 2021) ##
2
6
 
3
7
  * Rename `parent` methods to `module_parent` as `Module#parent` is deprecated.
@@ -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
- evidence = node.evidence.new(issue_id: issue.id, content: content)
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.save
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,
@@ -7,7 +7,7 @@ module Dradis
7
7
 
8
8
  module VERSION
9
9
  MAJOR = 3
10
- MINOR = 21
10
+ MINOR = 22
11
11
  TINY = 0
12
12
  PRE = nil
13
13
 
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.21.0
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-12 00:00:00.000000000 Z
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.4
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: