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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d6654463cc49ce2f776be977f30c2fdd1ada2c74fcd5831c6b427da223ff431
4
- data.tar.gz: fc464c9eb6206ebde673e699638a75cf5e6460b94dd2293c52056e43c4d26e80
3
+ metadata.gz: 8f63a46388712b8f8a39f718e87066155be39df4758fcc4f21e2f6d59603f7a9
4
+ data.tar.gz: 2d1ac17a0c46d0dabe62369a0b2546fa11fc3e27806280b874a7fa92d4ffaf73
5
5
  SHA512:
6
- metadata.gz: 0fc8f5160682fecf91299a59f11c4b546a0c0927805ddb099e2e35fa491e6446c68bc97f3584f9d24908919070174d27e98d6a0ef072cd50c7471ce31567753d
7
- data.tar.gz: a3646c54dcef429a6f5ff4bf6b3f6cfb931feef4b1f70bc0ec3725f9b9462a8b45a4be18d452a7fef99b09aca1bed30cbd1f8cb0420b5d55ef124e4bb35cda44
6
+ metadata.gz: 4c241e221d9fad787377c2219fc1857ece91b7085c527d6b8668f78c01c58b6de595a7942a72d46b66422edce663677cc496ff2152b2b2af427afd7162f8ef48
7
+ data.tar.gz: '018c62d0ad0c713b4f07e0c7c71a830e3b85d27f42d14319b0864a6370b95909e1aab52b915ac09b04ea132a43c11e660af289e65638e3e467e3bf1cbaf85a9e'
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'safe_yaml'
3
+ require 'yaml'
4
4
 
5
5
  module Stormbreaker
6
6
  class AxeResultsSerializer
7
- ALLOWED_TAGS = ['!ruby/object:Stormbreaker::AxeViolation', '!ruby/object:Set'].freeze
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.load(File.read(file),
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stormbreaker
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
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.3
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-07-26 00:00:00.000000000 Z
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