kurchatov 0.0.3b → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/iptables.rb +1 -1
- data/lib/kurchatov/mixin/event.rb +2 -2
- data/lib/kurchatov/version.rb +1 -1
- data/tests/run.sh +1 -1
- data/tests/server.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: c9529d7f0aced383b9210d7461e8553f9296eccb
|
4
|
+
data.tar.gz: 210db1e9cefd1422af21c1a6f2e2957ec876318c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 390d9c1b07eb76049ca4e32e5d5f70042b8eb2174cc1ca5430c12d6fbd71412f9fbf3a41416512a9601b1639af8e297a52d8bccb62f963d7437571f3d0bdf870
|
7
|
+
data.tar.gz: f83ac420653e68bf2861d8ae72929a775ab193b3a931584269098f57247ce68c0e52ff1c6952f7a5bdf7b00ee9c7e82bace0ce13113bd766353b22695483b38f
|
data/examples/iptables.rb
CHANGED
@@ -15,7 +15,7 @@ collect do
|
|
15
15
|
current_rules = shell_out!('iptables-save').stdout.split("\n").map do |x|
|
16
16
|
x[0] == '#' ? nil : delete_counters(x)
|
17
17
|
end.compact.join("\n")
|
18
|
-
saved_rules = File.read(plugin.
|
18
|
+
saved_rules = File.read(plugin.rule_file).split("\n").map do |x|
|
19
19
|
x[0] == '#' ? nil : delete_counters(x) # delete counters and comments
|
20
20
|
end.compact.join("\n")
|
21
21
|
|
@@ -10,7 +10,7 @@ module Kurchatov
|
|
10
10
|
def event(hash = {})
|
11
11
|
normilize_event(hash)
|
12
12
|
Log.info("Mock message for test plugin: #{hash.inspect}") if Kurchatov::Config[:test_plugin]
|
13
|
-
events << hash
|
13
|
+
events << hash unless hash[:miss]
|
14
14
|
end
|
15
15
|
|
16
16
|
protected
|
@@ -54,7 +54,7 @@ module Kurchatov
|
|
54
54
|
hash[:metric] = hash[:metric] - old_metric
|
55
55
|
else
|
56
56
|
@history[hash[:service]] = hash[:metric]
|
57
|
-
hash[:
|
57
|
+
hash[:miss] = true
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
data/lib/kurchatov/version.rb
CHANGED
data/tests/run.sh
CHANGED
data/tests/server.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kurchatov
|
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
|
- Vasiliev Dmitry
|
@@ -201,9 +201,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
201
201
|
version: '0'
|
202
202
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
203
|
requirements:
|
204
|
-
- - '
|
204
|
+
- - '>='
|
205
205
|
- !ruby/object:Gem::Version
|
206
|
-
version:
|
206
|
+
version: '0'
|
207
207
|
requirements: []
|
208
208
|
rubyforge_project:
|
209
209
|
rubygems_version: 2.0.3
|