soar_auditing_provider_api 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/lib/soar_auditing_provider_api.rb +1 -1
- data/lib/soar_auditing_provider_api/auditing_provider_api.rb +1 -1
- data/lib/soar_auditing_provider_api/nfr_match_error.rb +2 -2
- data/lib/soar_auditing_provider_api/version.rb +2 -2
- data/sanity/sanity.rb +2 -2
- data/soar_auditing_provider_api.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6a18a6f6b5e01c13bef068106040e69270fb09b
|
4
|
+
data.tar.gz: 668101c72ce95f7d3f6e1333649a2997503ac74c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cefc70cff2ae4ea90a9f8b71e6639a9dda685c4296fd7b1e37107b8e74a7e7b60d90848481238ad53679a0b3c23cd25152aed92c0d585903d8076cb98b2d0be3
|
7
|
+
data.tar.gz: 83e011b9a0d74e8ef50b39bbaf5224b90d1244fcd3350e59385c7cebe4c0b55688fb35c77c2700256ba35b8506dc6246c39a4da6e42e8c4fa4423a4d80c1dbd6
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# SoarAuditingProviderAPI
|
2
2
|
|
3
3
|
This gem provides the auditing API that audit providers for the SOAR architecture should adhere to.
|
4
4
|
|
@@ -8,7 +8,7 @@ The API provides default delegation behaviour that calls the API methods verbati
|
|
8
8
|
|
9
9
|
If you'd simply like the auditing provider to use the first (perhaps only?) auditor that it knows about, you can tell it to select DEFAULT so:
|
10
10
|
|
11
|
-
auditor = auditing_provider.select(
|
11
|
+
auditor = auditing_provider.select(SoarAuditingProviderAPI::AuditingProviderAPI::DEFAULT)
|
12
12
|
|
13
13
|
## Installation
|
14
14
|
|
@@ -34,17 +34,17 @@ Run the rspec test tests:
|
|
34
34
|
|
35
35
|
## Usage
|
36
36
|
|
37
|
-
Extend the
|
37
|
+
Extend the SoarAuditingProviderAPI::AuditingProviderAPI to create a new auditing provider, or instantiate the API directly for an out-of-the-box auditing provider with default behaviour.
|
38
38
|
|
39
39
|
```
|
40
|
-
class MyAuditingProvider <
|
40
|
+
class MyAuditingProvider < SoarAuditingProviderAPI::AuditingProviderAPI
|
41
41
|
end
|
42
42
|
```
|
43
43
|
|
44
44
|
or
|
45
45
|
|
46
46
|
```
|
47
|
-
auditor_provider =
|
47
|
+
auditor_provider = SoarAuditingProviderAPI::AuditingProviderAPI.new(auditors)
|
48
48
|
```
|
49
49
|
|
50
50
|
Initialize the provider so:
|
@@ -97,8 +97,8 @@ class Main
|
|
97
97
|
def test_sanity
|
98
98
|
auditor = Logger.new 'sanity'
|
99
99
|
auditor.outputters = Outputter.stdout
|
100
|
-
@iut =
|
101
|
-
@iut.select(
|
100
|
+
@iut = SoarAuditingProviderAPI::AuditingProviderAPI.new( { auditor => { 'nfrs' => {'accessibility' => 'local'} } } )
|
101
|
+
@iut.select(SoarAuditingProviderAPI::AuditingProviderAPI::DEFAULT)
|
102
102
|
some_debug_object = 123
|
103
103
|
@iut.info("This is info")
|
104
104
|
@iut.debug(some_debug_object)
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = "0.
|
1
|
+
module SoarAuditingProviderAPI
|
2
|
+
VERSION = "0.9.0"
|
3
3
|
end
|
data/sanity/sanity.rb
CHANGED
@@ -7,8 +7,8 @@ class Main
|
|
7
7
|
def test_sanity
|
8
8
|
auditor = Logger.new 'sanity'
|
9
9
|
auditor.outputters = Outputter.stdout
|
10
|
-
@iut =
|
11
|
-
@iut.select(
|
10
|
+
@iut = SoarAuditingProviderAPI::AuditingProviderAPI.new( { auditor => { 'nfrs' => {'accessibility' => 'local'} } } )
|
11
|
+
@iut.select(SoarAuditingProviderAPI::AuditingProviderAPI::DEFAULT)
|
12
12
|
some_debug_object = 123
|
13
13
|
@iut.info("This is info")
|
14
14
|
@iut.debug(some_debug_object)
|
@@ -5,7 +5,7 @@ require 'soar_auditing_provider_api/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "soar_auditing_provider_api"
|
8
|
-
spec.version =
|
8
|
+
spec.version = SoarAuditingProviderAPI::VERSION
|
9
9
|
spec.authors = ["Ernst Van Graan"]
|
10
10
|
spec.email = ["ernst.van.graan@hetzner.co.za"]
|
11
11
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soar_auditing_provider_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ernst Van Graan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|