stormbreaker 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stormbreaker/axe_results_serializer.rb +3 -8
- data/lib/stormbreaker/version.rb +1 -1
- data/stormbreaker.gemspec +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f63a46388712b8f8a39f718e87066155be39df4758fcc4f21e2f6d59603f7a9
|
4
|
+
data.tar.gz: 2d1ac17a0c46d0dabe62369a0b2546fa11fc3e27806280b874a7fa92d4ffaf73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c241e221d9fad787377c2219fc1857ece91b7085c527d6b8668f78c01c58b6de595a7942a72d46b66422edce663677cc496ff2152b2b2af427afd7162f8ef48
|
7
|
+
data.tar.gz: '018c62d0ad0c713b4f07e0c7c71a830e3b85d27f42d14319b0864a6370b95909e1aab52b915ac09b04ea132a43c11e660af289e65638e3e467e3bf1cbaf85a9e'
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'yaml'
|
4
4
|
|
5
5
|
module Stormbreaker
|
6
6
|
class AxeResultsSerializer
|
7
|
-
|
7
|
+
ALLOWED_CLASSES = [Stormbreaker::AxeViolation, Set, Symbol].freeze
|
8
8
|
|
9
9
|
def self.serialize_results(total_violations)
|
10
10
|
dump = YAML.dump(total_violations)
|
@@ -23,13 +23,8 @@ module Stormbreaker
|
|
23
23
|
|
24
24
|
combined_manager = Stormbreaker::AxeViolationManager.new
|
25
25
|
results_files.each do |file|
|
26
|
-
# rubocop:disable Security/YAMLLoad
|
27
|
-
# Using YAML.load here so that we can specify safe and whitelisted_tags as args in order to not
|
28
|
-
# have to patch settings to use safe_load and potentially endanger consuming apps.
|
29
26
|
puts "Loading #{file}"
|
30
|
-
total_violations = YAML.
|
31
|
-
safe: true, whitelisted_tags: ALLOWED_TAGS, deserialize_symbols: true)
|
32
|
-
# rubocop:enable Security/YAMLLoad
|
27
|
+
total_violations = YAML.safe_load(File.read(file), permitted_classes: ALLOWED_CLASSES)
|
33
28
|
total_violations.each do |violation|
|
34
29
|
combined_manager.add_failure_to_total(violation)
|
35
30
|
end
|
data/lib/stormbreaker/version.rb
CHANGED
data/stormbreaker.gemspec
CHANGED
@@ -29,7 +29,6 @@ Gem::Specification.new do |gem|
|
|
29
29
|
gem.add_dependency 'axe-core-rspec', '~> 4.1'
|
30
30
|
gem.add_dependency 'axe-core-selenium', '~> 4.1'
|
31
31
|
gem.add_dependency 'rspec', '~> 3.8'
|
32
|
-
gem.add_dependency 'safe_yaml', '~> 1.0.5'
|
33
32
|
gem.add_development_dependency 'bundler', '~> 1.17'
|
34
33
|
gem.add_development_dependency 'nokogiri', '~> 1.11.7'
|
35
34
|
gem.add_development_dependency 'pry', '~> 0.14.1'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stormbreaker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Watson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: axe-core-api
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.8'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: safe_yaml
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 1.0.5
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 1.0.5
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: bundler
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|