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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b59c8ac23afa8e326afcf2ac00a1c3af10b78a70de26ee5c81bd8c09b521cd5
4
- data.tar.gz: ebf3159be777913f9ab92ece537664ca21c845644dfb09dbe24450fd6594301c
3
+ metadata.gz: d789c12fefc5c9a519329c762a7d686c1cf68c6f944d19e8ab26e4704bfd5629
4
+ data.tar.gz: 140d9a7244696747d7436f0b72147fb0775f6bc3651c6b853eab1fb0a9d18eec
5
5
  SHA512:
6
- metadata.gz: a04647679992aeaae57c8d1428f2b460a9ea2c52404d0813e46f62a90655d13282c3b8a8746702b1173fd8fa38bce60c61fadd694c5fec5b8e7b79a527085f57
7
- data.tar.gz: fa896e15fb5a71d1b0745a427aa77d3f4b3040e649d4f54437832261763ee2239e222fe2971065a9efc62eda63568ade70f36c71c29a0f3a669c943f379f3c6e
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
- source 'https://rubygems.org'
1
+ # frozen_string_literal: true
2
2
 
3
- #gem 'dradis_core', path: '/Users/etd/dradis/git/dradis/core'
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
- 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,
@@ -6,8 +6,8 @@ module Dradis
6
6
  end
7
7
 
8
8
  module VERSION
9
- MAJOR = 3
10
- MINOR = 19
9
+ MAJOR = 4
10
+ MINOR = 0
11
11
  TINY = 0
12
12
  PRE = nil
13
13
 
@@ -22,7 +22,7 @@ module Dradis::Plugins::Upload::Base
22
22
  extend ActiveSupport::Concern
23
23
 
24
24
  included do
25
- parent.extend NamespaceClassMethods
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
- [parent]
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: 3.19.0
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: 2020-09-04 00:00:00.000000000 Z
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.0.1
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.