chef-deployment-monitor 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0731a018ef9602ffbd987a5a59499977836760ff
4
- data.tar.gz: ee96cbe82fe737fbbe3b3afde1c6b9084ae3ccca
3
+ metadata.gz: 494471bb5924965b8ee06c671c4fe80e24159cd4
4
+ data.tar.gz: cce1c676217ffe08d95b87c0e35d5552415a2f42
5
5
  SHA512:
6
- metadata.gz: 4c0c07a86616b4946200d24ad2dfd15f6d3cdee7b28fb81f3d73c7d2c17f1949e10026f6a01d2aebd54962a20b298e49b328662fa1f7bc1fad3386686bc5b6d2
7
- data.tar.gz: 138a89a958dc736c317cc5429804e194765bf2db04eaa04e878498e7dd916a8282ddfd831ab8d86105b865e31e2fd4ee2eab2c470d26a3bc988e6812c2588bbe
6
+ metadata.gz: ad8ac5c76228e6134a7b8cd1921892470eab1e3506104677a9ac1f9da8049d7577db245d851b984989bf2135343bec89b910a67c0f82e0c5663cd6a83b0365da
7
+ data.tar.gz: 0d9b90cf3b27e8a070b8ba42c5c16feb63444ccee806aacddeeecd4c6f51eda0680693a308b07155e46601e479486da8eb6dae9e85ca0af248fc612ece47a938
data/.travis.yml CHANGED
@@ -1,6 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
3
  - 2.2.0
5
4
  deploy:
6
5
  provider: rubygems
@@ -16,6 +16,7 @@
16
16
  # limitations under the License.
17
17
 
18
18
  require 'date'
19
+ require 'digest'
19
20
 
20
21
  class Chef
21
22
  class Deployment
@@ -36,6 +37,7 @@ class Chef
36
37
  data = format(data)
37
38
  unless filter(data)
38
39
  Monitor::Log.new(data.to_json, 'INFO')
40
+ data = digest(data)
39
41
  sink.receive(data)
40
42
  end
41
43
  end
@@ -52,6 +54,14 @@ class Chef
52
54
  data_dup
53
55
  end
54
56
 
57
+ def digest(data)
58
+ md5 = Digest::MD5.new
59
+ md5.update data.to_s
60
+ data = data.dup
61
+ data['digest'] = md5.digest
62
+ data
63
+ end
64
+
55
65
  def filter(data)
56
66
  filter_user(data) || filter_action(data) || filter_object(data) || filter_org(data)
57
67
  end
@@ -18,7 +18,7 @@
18
18
  class Chef
19
19
  class Deployment
20
20
  class Monitor
21
- VERSION = '0.5.0'
21
+ VERSION = '0.6.0'
22
22
  MAJOR, MINOR, TINY = VERSION.split('.')
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-deployment-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sander Botman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-25 00:00:00.000000000 Z
12
+ date: 2016-05-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: file-tail