abide-data-processor 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1cf0d51193e415d28a53c2a7df576732981eb3f1c29525c0a44877f2e93e72c9
4
- data.tar.gz: cd92db097e219d4c11fa72ee7d170d31e3b19681aba9344d8fb2ef0ba18add43
3
+ metadata.gz: a83854dd7421053ce9bf5084c7ff92aabc9e0eb48d3ae71eda1aebff9c3aa2e8
4
+ data.tar.gz: 63b613fcb5bb160a66b04ef53173506e671f7a7189301c1be6ac307a4253accb
5
5
  SHA512:
6
- metadata.gz: 42c937bf2d75784db736ab8a13e9e0bc5295efa897c33a6bf9c9a4e0c89504860864b4f12db8632017e6cdce9e8ba339885df01e4271eacacc6244c68cb6858f
7
- data.tar.gz: 2fe1ef9eeaeaa77ff578e3d53f41a46c73f181d81db0b4e133823c961ec8d1cd2c04f12ebbfb048d53d7caa0f67c6cabd2ce80270a0ac4875b4f97e0f7e3f919
6
+ metadata.gz: 795e79b1e848adce109a508f93e8db4c76f0da0917f97f41dec66dcba14d0cb2317052cce7689091ee5b8f41cea4135520fed1288665811eaf3c0ee7a47b3aba
7
+ data.tar.gz: 16f387cc93d055444d06866f6f1293dba92db746c8a82701ee7f6b1d9a1075099816ce50cebd2d50f1f2ce064047a9859ac51711718dcb3680487363377df347
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- abide-data-processor (0.0.0)
4
+ abide-data-processor (0.1.0)
5
5
  puppet (>= 6.23)
6
6
 
7
7
  GEM
@@ -12,8 +12,7 @@ module AbideDataProcessor
12
12
  # @param control_maps: The control mappings to valid IDs
13
13
  # @param module_name: The name of the module
14
14
  # @param logger: The logger that we will use to log information for the user
15
- def initialize(control_maps, module_name, logger)
16
- @module_name = module_name
15
+ def initialize(control_maps, logger)
17
16
  @control_maps = control_maps
18
17
  @logger = logger
19
18
  end
@@ -21,8 +20,8 @@ module AbideDataProcessor
21
20
  # control_key_maps
22
21
  # Gets all control key maps from Hiera for indexed control ID permutation searches
23
22
  # @return An array of four control ID maps, each indexed by one of the four different valid permutations of a control ID
24
- def control_key_maps
25
- key_prefix = "#{@module_name}::mappings::cis"
23
+ def self.control_key_maps(module_name)
24
+ key_prefix = "#{module_name}::mappings::cis"
26
25
  %w[hiera_title hiera_title_num number title].each_with_object([]) do |key, ary|
27
26
  ary << [key_prefix, key].join('::')
28
27
  end
@@ -1,3 +1,3 @@
1
1
  module AbideDataProcessor
2
- VERSION = "0.0.0"
3
- end
2
+ VERSION = "0.1.0"
3
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abide-data-processor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - abide-team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-08 00:00:00.000000000 Z
11
+ date: 2021-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puppet