repsheet_visualizer 0.1.9 → 0.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71b5fb40592b28d1fd6c5eb61869ab76f56c1746
|
4
|
+
data.tar.gz: 1a52994411c949ea058ff88f43d0a4cd2ac9c3e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4353c9cc413a856243f114c7b18f8c29fa4fee5adca1b980a46ed73b6723294d0d519700758dfd4f61a324b51cbb2d1cb0c06c7b5e04162f5b6666b495c1eec4
|
7
|
+
data.tar.gz: e0233520e1473d115fb3a3c0092f976c45cd9c97a927f1f8095b8606991959aec8b0d1fa8631778408694ec97fed622c8a683b7bd63e321e85d5a5336570b3b4
|
data/Gemfile.lock
CHANGED
@@ -55,7 +55,7 @@ class Backend
|
|
55
55
|
suspects[actor][:total] = score_actor(connection, actor, nil, true)
|
56
56
|
end
|
57
57
|
|
58
|
-
[suspects, blacklist(connection
|
58
|
+
[suspects, blacklist(connection)]
|
59
59
|
end
|
60
60
|
|
61
61
|
def self.standard(connection)
|
@@ -90,7 +90,7 @@ class Backend
|
|
90
90
|
end
|
91
91
|
|
92
92
|
def self.score_actor(connection, actor, detected, optimized=false)
|
93
|
-
return connection.zscore("offenders", "#{actor}").to_i
|
93
|
+
return connection.zscore("offenders", "#{actor}").to_i if optimized
|
94
94
|
|
95
95
|
detected.reduce(0) do |memo, rule|
|
96
96
|
memo += connection.zscore("#{actor}:detected", rule).to_i
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: repsheet_visualizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Bedra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: geoip
|