openscap_parser 1.3.1 → 1.4.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: 57e07f88ca48d82d504596ec2e4818468add46d3c66cf185157be8f72e532a6e
4
- data.tar.gz: cca3d01362ac56d18b20d1769bbc1036fdf2acfd88a1da86fdb558fb9694c8fb
3
+ metadata.gz: 2e9728a34c5047c3762befe37699a1413d1bc2329ba158b311a2a1342bafe210
4
+ data.tar.gz: e2725fba41bbeed647628b092dfe689979f824eece673c3fb87e65c50bbeaed4
5
5
  SHA512:
6
- metadata.gz: f95cddb6c80df271400e5f7e43d39767a02861994b3cfff12127daf1099c109b88be6c0188cac6fac12822da1d0d516b4d7a43653d681d834eca447c595028eb
7
- data.tar.gz: b00439e3ed9853bd090f153a49440d94fdd0ad62fc3af5aa4a12ae4f898304cc604631b35e3b973acb4e72f43c972756b7e670ba5b13b062b6c55f53c708e596
6
+ metadata.gz: 1112c1537e58816bc6a25f7a89830fc24dec94bd4bca3897fb342ef13f4f5ee8a34a664065ad7608d2a79459dbf518f912200ad1ffcae6760c0f77b1822c6f9f
7
+ data.tar.gz: e29e00ced02ba2a339461f75496c41d2395e5259b73adc7072ee9c99d6e2177b9709a858f3b57690a29239df60296e23a022a9dbdae58a354dda0df5d482c655
@@ -48,6 +48,10 @@ module OpenscapParser
48
48
  @parent_id = parsed_xml.xpath('../@id').to_s
49
49
  end
50
50
 
51
+ def parent_ids
52
+ @parent_ids = parsed_xml.xpath('ancestor::Group/@id').map(&:value)
53
+ end
54
+
51
55
  def parent_type
52
56
  if parsed_xml.xpath("name(..)='Group'")
53
57
  @parent_type = 'Group'
@@ -1,3 +1,3 @@
1
1
  module OpenscapParser
2
- VERSION = "1.3.1"
2
+ VERSION = "1.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openscap_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-11-25 00:00:00.000000000 Z
12
+ date: 2022-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri