openscap_parser 1.2.0 → 1.3.0

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: c5c95f01a6f86db68b3d0561858c9d39af294872d3d0e6689f0bc6d37d39e660
4
- data.tar.gz: c14ce4fb133683267862decac1f6db27e84f8f504026b135a04e642d849bad52
3
+ metadata.gz: e5f6f71c708392c7b9171af1bc8a3eab1e3dd70ce64f672051035d404a1e5fab
4
+ data.tar.gz: d81ea5da1fbc18bdf0dd96ca46f2ddda8dfdc20e6e8dcf17508431667c18512d
5
5
  SHA512:
6
- metadata.gz: 59ed3d7a867fe0b5b230943068be977ce2d4aadc5edc0df79df5b4ce2e7c817420a3251569c70155a7f4c9626d5c0b2f51e35883770f0aeb848b23d3e345adab
7
- data.tar.gz: b0d13aabf1dd555a7a376ea74a7092815c91e591f5cb40457ff06ac6f195e379246d31a7a1a0d5bd650c087bf654d26de6ef2cf6002d2a3163ca51626f863221
6
+ metadata.gz: 44a8d17f96a637c52c4a516673408765ebc36598406463096f7a75310af8a5d2df48a8550e48a0634e4afda9af309cd3e1b0f8e45d241f02592e56d775185ac3
7
+ data.tar.gz: 3f3d9233a8bab0d303d15423db561875da0409856ecbe3ad957ed67c2b6ed91e98c8488dd15b7294b47d74d5b6f7a46c672628454bacc7e32617bef93fc9473c
@@ -31,14 +31,14 @@ module OpenscapParser
31
31
  /@idref", RegexHandler).map(&:text)
32
32
  end
33
33
 
34
- def selected_group_ids
35
- # Look for selected group ids where the idref contains '_group_' that is not preceded by 'rule'
36
- @selected_group_ids ||= @parsed_xml.xpath("select[@selected='true']
37
- [regex(@idref, '^((?!_rule_).)*?(_group_).*$')]
38
- /@idref", RegexHandler) &&
39
- @parsed_xml.xpath("select[@selected='true']
40
- [regex(@idref, '^((?!_rule_).)*?(_group_).*$')]
41
- /@idref", RegexHandler).map(&:text)
34
+ def unselected_group_ids
35
+ # Look for group ids that are not selected where the idref contains '_group_' that is not preceded by 'rule'
36
+ @unselected_group_ids ||= @parsed_xml.xpath("select[@selected='false']
37
+ [regex(@idref, '^((?!_rule_).)*?(_group_).*$')]
38
+ /@idref", RegexHandler) &&
39
+ @parsed_xml.xpath("select[@selected='false']
40
+ [regex(@idref, '^((?!_rule_).)*?(_group_).*$')]
41
+ /@idref", RegexHandler).map(&:text)
42
42
  end
43
43
 
44
44
  def selected_entity_ids
@@ -1,3 +1,3 @@
1
1
  module OpenscapParser
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openscap_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
8
8
  - Andrew Kofink
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-03-30 00:00:00.000000000 Z
12
+ date: 2022-10-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -192,7 +192,7 @@ homepage: https://github.com/OpenSCAP/openscap_parser
192
192
  licenses:
193
193
  - MIT
194
194
  metadata: {}
195
- post_install_message:
195
+ post_install_message:
196
196
  rdoc_options: []
197
197
  require_paths:
198
198
  - lib
@@ -207,8 +207,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
209
  requirements: []
210
- rubygems_version: 3.2.16
211
- signing_key:
210
+ rubyforge_project:
211
+ rubygems_version: 2.7.3
212
+ signing_key:
212
213
  specification_version: 4
213
214
  summary: Parse OpenSCAP content
214
215
  test_files: []