cms_scanner 0.0.21 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6741a1ed0e43eb4ee6a3b37a9b61f1299d9446d
4
- data.tar.gz: 3b43b6dd3e55518d83f4995dd4d7770e41217731
3
+ metadata.gz: fffe8445b1f012d12bc8b8b212afe1512c405832
4
+ data.tar.gz: 8f534d5e132f7f152b33afd06ce0d0ad10195537
5
5
  SHA512:
6
- metadata.gz: 1ecfc37f369814a5ffe4e7d9bd7e024555709cc92b4a4775bfbac3040b012b4995f0fb1a4fd35c77a16ce704e6b3549d981f4cf3abe7520ba020528b704582d3
7
- data.tar.gz: a97daef772ba84ccf58768c38f5705c41da72174fc30f44badea0e0420f97bec73df414bd0c40f065c21609701b621fe56bb0a54f8b9e93633fea6af3e81cf79
6
+ metadata.gz: 45880975898c7ba1492233dba97e73cbfb0db46a7c74d3e005f53b7b9a0dd7694b8445d8321c1a6c2416ee73558d487dc153c3637e496874fd1687bee7aad928
7
+ data.tar.gz: 19bc01cdf561bf58c90d85cf8f06b94076aa69ccc91d684b17f6b3dd6b48c8b2b9cc2f9abbf58501d2d4c960df1b2eaea120a02d23e2c574c0e5693de797be7a
@@ -5,6 +5,8 @@ module CMSScanner
5
5
  # Findings
6
6
  class Findings < Array
7
7
  def <<(finding)
8
+ return self unless finding
9
+
8
10
  each do |f|
9
11
  next unless f == finding && f.found_by == finding.found_by
10
12
 
@@ -6,6 +6,8 @@ module CMSScanner
6
6
  #
7
7
  # @param [ Finding ] finding
8
8
  def <<(finding)
9
+ return self unless finding
10
+
9
11
  each do |found|
10
12
  next unless found == finding
11
13
 
@@ -1,4 +1,4 @@
1
1
  # Version
2
2
  module CMSScanner
3
- VERSION = '0.0.21'
3
+ VERSION = '0.0.22'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cms_scanner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - WPScanTeam - Erwan Le Rousseau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-18 00:00:00.000000000 Z
11
+ date: 2015-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opt_parse_validator