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: 036b916c4c925ac4cd054d81b3af2529b348064ff419e510443adbb8206d76af
4
- data.tar.gz: 07a87fb60a80a69ca4d0645a2ff63c124ef28d073dc86ce54cbc667d959b5c00
3
+ metadata.gz: a5a3c7008ebc9f55a9fcd647cbfdb606873a3f552d1a24aa5a0e757799105a33
4
+ data.tar.gz: e4bcfac7b8139a743af163706a38473217b93fa6e56f11161de0f35ee7b794c2
5
5
  SHA512:
6
- metadata.gz: 02c63d56b4fde7076aa00b51629c5d472cf7f39e5cfaa174f5b84a821ff218151e6a71fe82d57082b5a8a997f4671535426e39de69ac7b39e997c1f9630387b9
7
- data.tar.gz: f66b98c2d9db0bbb0f5f5958632a1d924f09dbc063a69c1aa768419298bd0e555367ee6cd0b200ced5dbd837d3d1d3dcf585b0fed66a90e5a1ba9d24068b6fec
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 SCAP file type'
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 }
@@ -10,6 +10,6 @@
10
10
 
11
11
  module Proxy
12
12
  module OpenSCAP
13
- VERSION = '0.9.1'
13
+ VERSION = '0.9.2'
14
14
  end
15
15
  end
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.1
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: 2021-07-14 00:00:00.000000000 Z
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.1.2
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: []