soar_json_auditing_format 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -9
- data/lib/soar_json_auditing_format/formatter.rb +1 -1
- data/lib/soar_json_auditing_format/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37fc7a2008fe1d006f45891dbc6a2bbfd441e7d9
|
4
|
+
data.tar.gz: bd24c58e1a626002508c29146bcaec8f20c66a51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64c51d2b55e8bf3c50bd599635b5d47ac952fd5c9f6c868f59a6851c44d43be94e98681d2614cde1e2b4d42e72ca7d745b712b39888503feb5b40975a3b1659f
|
7
|
+
data.tar.gz: 5eda7d8cd36e5cac52a8dfa05a281e349e356a44e20cea59342c7d5bdb5359a679f12b1fac6d39649707c76b07147eed2767590a59a161788353349a3fe6a309
|
data/README.md
CHANGED
@@ -35,13 +35,7 @@ docker-compose down
|
|
35
35
|
When formatting an auditing entry call the formatter as follow:
|
36
36
|
|
37
37
|
```ruby
|
38
|
-
SoarJsonAuditingFormatter::Formatter.format(:error,SecureRandom.hex(32),Time.now,
|
39
|
-
```
|
40
|
-
|
41
|
-
When formatting an optional field call the formatter as follow:
|
42
|
-
|
43
|
-
```ruby
|
44
|
-
SoarJsonAuditingFormatter::Formatter.optional_field_format("somekey", "somevalue")
|
38
|
+
SoarJsonAuditingFormatter::Formatter.format(:error,SecureRandom.hex(32),Time.now,{'message' => 'bla'})
|
45
39
|
```
|
46
40
|
|
47
41
|
## Detailed example
|
@@ -53,8 +47,7 @@ require 'securerandom'
|
|
53
47
|
|
54
48
|
class Main
|
55
49
|
def test_sanity
|
56
|
-
|
57
|
-
puts SoarJsonAuditingFormatter::Formatter.format(:error,SecureRandom.hex(32),Time.now.utc.iso8601(3),"#{my_optional_field} message")
|
50
|
+
SoarJsonAuditingFormatter::Formatter.format(:error,SecureRandom.hex(32),Time.now,{'message' => 'bla'})
|
58
51
|
end
|
59
52
|
end
|
60
53
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soar_json_auditing_format
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
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: 2017-04-
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
117
|
rubyforge_project:
|
118
|
-
rubygems_version: 2.
|
118
|
+
rubygems_version: 2.5.1
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: SOAR JSON auditing format
|