dradis-plugins 3.19.0 → 4.0.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 +16 -0
- data/Gemfile +2 -6
- data/lib/dradis/plugins/content_service/evidence.rb +3 -2
- data/lib/dradis/plugins/gem_version.rb +2 -2
- data/lib/dradis/plugins/upload/base.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d789c12fefc5c9a519329c762a7d686c1cf68c6f944d19e8ab26e4704bfd5629
|
4
|
+
data.tar.gz: 140d9a7244696747d7436f0b72147fb0775f6bc3651c6b853eab1fb0a9d18eec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f803fe2da8089d21581603800eeceab3fdd3901be05c137c5087678355da3e204d1743fa5541b1a29ca12a463b6c15b578d5c33350985ba852b646984a0b830
|
7
|
+
data.tar.gz: 162b3744c010b835ef0af3ef44330ca6a09c10239c386943ab5b661fdcc970828522d09562b9d97c3070ae29aa8b560bdaad8e5f3c875dcfc4469b6917eb0288
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
## Dradis Framework 4.0.0 (July, 2021) ##
|
2
|
+
|
3
|
+
* No changes.
|
4
|
+
|
5
|
+
## Dradis Framework 3.22 (April, 2021) ##
|
6
|
+
|
7
|
+
* ContentService#create_evidence: deduplicate Evidence from integrations.
|
8
|
+
|
9
|
+
## Dradis Framework 3.21 (February, 2021) ##
|
10
|
+
|
11
|
+
* Rename `parent` methods to `module_parent` as `Module#parent` is deprecated.
|
12
|
+
|
13
|
+
## Dradis Framework 3.20 (January, 2021) ##
|
14
|
+
|
15
|
+
* No changes.
|
16
|
+
|
1
17
|
## Dradis Framework 3.19 (September, 2020) ##
|
2
18
|
|
3
19
|
* No changes.
|
data/Gemfile
CHANGED
@@ -1,10 +1,6 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
#gem 'dradis', :github => 'dradis/dradisframework' # temporarily here until 3.0.0.beta is released
|
5
|
-
# git "https://github.com/dradis/dradisframework.git", :branch => 'dradis3.x' do
|
6
|
-
# gem 'dradis_core'
|
7
|
-
# end
|
3
|
+
source 'https://rubygems.org'
|
8
4
|
|
9
5
|
# Specify your gem's dependencies in dradis-html_export.gemspec
|
10
6
|
gemspec
|
@@ -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,
|
@@ -22,7 +22,7 @@ module Dradis::Plugins::Upload::Base
|
|
22
22
|
extend ActiveSupport::Concern
|
23
23
|
|
24
24
|
included do
|
25
|
-
|
25
|
+
module_parent.extend NamespaceClassMethods
|
26
26
|
end
|
27
27
|
|
28
28
|
module ClassMethods
|
@@ -41,7 +41,7 @@ module Dradis::Plugins::Upload::Base
|
|
41
41
|
# ]
|
42
42
|
# end
|
43
43
|
def uploaders()
|
44
|
-
[
|
44
|
+
[module_parent]
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
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:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|
129
|
-
rubygems_version: 3.
|
129
|
+
rubygems_version: 3.1.4
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: Plugin manager for the Dradis Framework project.
|