smart_proxy_openscap 0.9.1 → 0.9.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5a3c7008ebc9f55a9fcd647cbfdb606873a3f552d1a24aa5a0e757799105a33
|
4
|
+
data.tar.gz: e4bcfac7b8139a743af163706a38473217b93fa6e56f11161de0f35ee7b794c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcf32ad8d12435f95129e2c07648bcc81d6a0dd3d752f722ef7e042f222861676b728ced19eed64e7d1479306894e49865691bdd843443543c07eb199c596283
|
7
|
+
data.tar.gz: fcb0f9f37c84202ee094c4d5810a7687559b72d3bd593cbb40e5cfe6757ba9e9200dea534e4a7f09e75b84b347c162112a3cca677887b717e56adb7474b1fd0d
|
@@ -3,8 +3,10 @@ require 'openscap_parser/tailoring_file'
|
|
3
3
|
|
4
4
|
module Proxy::OpenSCAP
|
5
5
|
class ContentParser
|
6
|
+
include ::Proxy::Log
|
7
|
+
|
6
8
|
def validate(file_type, scap_file)
|
7
|
-
msg = 'Invalid
|
9
|
+
msg = 'Invalid XML format'
|
8
10
|
errors = []
|
9
11
|
file = nil
|
10
12
|
begin
|
@@ -14,8 +16,9 @@ module Proxy::OpenSCAP
|
|
14
16
|
when 'tailoring_file'
|
15
17
|
file = ::OpenscapParser::TailoringFile.new(scap_file)
|
16
18
|
end
|
17
|
-
errors << msg unless file.valid?
|
18
19
|
rescue Nokogiri::XML::SyntaxError => e
|
20
|
+
logger.error msg
|
21
|
+
logger.error e.backtrace.join("\n")
|
19
22
|
errors << msg
|
20
23
|
end
|
21
24
|
{ errors: errors }
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_proxy_openscap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Šimon Lukašík
|
8
8
|
- Shlomi Zadok
|
9
9
|
- Marek Hulan
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2022-04-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -175,7 +175,7 @@ homepage: https://github.com/theforeman/smart_proxy_openscap
|
|
175
175
|
licenses:
|
176
176
|
- GPL-3.0-or-later
|
177
177
|
metadata: {}
|
178
|
-
post_install_message:
|
178
|
+
post_install_message:
|
179
179
|
rdoc_options: []
|
180
180
|
require_paths:
|
181
181
|
- lib
|
@@ -191,8 +191,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
191
|
version: '0'
|
192
192
|
requirements:
|
193
193
|
- bzip2
|
194
|
-
rubygems_version: 3.
|
195
|
-
signing_key:
|
194
|
+
rubygems_version: 3.0.3
|
195
|
+
signing_key:
|
196
196
|
specification_version: 4
|
197
197
|
summary: OpenSCAP plug-in for Foreman's smart-proxy.
|
198
198
|
test_files: []
|