soar_json_auditing_format 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: fbc77dd43c8bf34e66e772fe89c857e93f52cf02
4
- data.tar.gz: a95fff53840670f27c0e9fb6eb4e33fe2b8904f0
3
+ metadata.gz: 37fc7a2008fe1d006f45891dbc6a2bbfd441e7d9
4
+ data.tar.gz: bd24c58e1a626002508c29146bcaec8f20c66a51
5
5
  SHA512:
6
- metadata.gz: 49d04478b8f0fba152886dad58e2e481f25644994ad3d210806057a345bbc4f088bbd80ed4552becbbb616050af01e61e9e7f8029aeafb04a9ab688b71f0d227
7
- data.tar.gz: 7ab143427537d1c246d4f590c93ef046483c75160683ff4bad95a14492e1276b557cdc90afbddcf7ef386f3febca226c13d63f32b83776cf5ae4ed89a0ce5fbd
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,"message")
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
- my_optional_field = SoarJsonAuditingFormatter::Formatter.optional_field_format("somekey", "somevalue")
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
 
@@ -19,7 +19,7 @@ module SoarJsonAuditingFormatter
19
19
  'message' => message
20
20
  }
21
21
  end
22
- audit.to_json
22
+ { 'audit' => audit }.to_json
23
23
  end
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module SoarJsonAuditingFormatter
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-10 00:00:00.000000000 Z
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.4.8
118
+ rubygems_version: 2.5.1
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: SOAR JSON auditing format