soar_auditor_api 0.0.2 → 0.0.3
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 +4 -4
- data/README.md +6 -6
- data/lib/soar_auditor_api/auditor_api.rb +1 -1
- data/lib/soar_auditor_api/version.rb +1 -1
- data/sanity/Gemfile +1 -1
- data/sanity/sanity.rb +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: 92ed8f743dcb9a607c90b5e7c2bba322b28945db
|
|
4
|
+
data.tar.gz: 5c3cf3f3a09f8e71f524ec2d1c51633b42d7d2f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b938d7bee843eb1ae9c89f775eb5ec841d42eb5655e95a4a653d48f2dbaebe90466e41eb696e8743ac031f3716843d9642e0419c36c92b406188bb0e843f6d2d
|
|
7
|
+
data.tar.gz: 1b443a46604226c17a9445b36c6444c53130b7d1f71e70934b4b1bafcebbc2a00c58afb7cee85a7518fcaa1e551731461df37d61ce78c475becfeb2de090fd14
|
data/README.md
CHANGED
|
@@ -30,12 +30,12 @@ Behavioural driven testing can be performed:
|
|
|
30
30
|
|
|
31
31
|
## Usage
|
|
32
32
|
|
|
33
|
-
### Auditors that extend from the
|
|
33
|
+
### Auditors that extend from the AuditorAPI
|
|
34
34
|
|
|
35
|
-
Extend from the
|
|
35
|
+
Extend from the AuditorAPI as follow
|
|
36
36
|
|
|
37
37
|
``` ruby
|
|
38
|
-
class MyAuditor < SoarAuditorApi::
|
|
38
|
+
class MyAuditor < SoarAuditorApi::AuditorAPI
|
|
39
39
|
end
|
|
40
40
|
```
|
|
41
41
|
|
|
@@ -63,9 +63,9 @@ end
|
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
### Auditing Providers that utilize the
|
|
66
|
+
### Auditing Providers that utilize the AuditorAPI as clients
|
|
67
67
|
|
|
68
|
-
Instantiate an auditor that extends the
|
|
68
|
+
Instantiate an auditor that extends the AuditorAPI:
|
|
69
69
|
```ruby
|
|
70
70
|
@iut = SanityAuditor.new
|
|
71
71
|
```
|
|
@@ -102,7 +102,7 @@ some_debug_object = 123
|
|
|
102
102
|
require 'soar_auditor_api'
|
|
103
103
|
require 'byebug'
|
|
104
104
|
|
|
105
|
-
class SanityAuditor < SoarAuditorApi::
|
|
105
|
+
class SanityAuditor < SoarAuditorApi::AuditorAPI
|
|
106
106
|
def configuration_is_valid(configuration)
|
|
107
107
|
return configuration.include?("preprefix")
|
|
108
108
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module SoarAuditorApi
|
|
2
|
-
class
|
|
2
|
+
class AuditorAPI
|
|
3
3
|
DEBUG_PREFIX = "debug:" unless defined? DEBUG_PREFIX; DEBUG_PREFIX.freeze
|
|
4
4
|
INFO_PREFIX = "info:" unless defined? INFO_PREFIX; INFO_PREFIX.freeze
|
|
5
5
|
WARN_PREFIX = "warn:" unless defined? WARN_PREFIX; WARN_PREFIX.freeze
|
data/sanity/Gemfile
CHANGED
data/sanity/sanity.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: soar_auditor_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Barney de Villiers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-05-
|
|
11
|
+
date: 2016-05-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|