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: 1b737b725b7160b792f3ea3b2cb515e8a72b938a
4
- data.tar.gz: 6c353ceeb6a2c36b639fc4822fd0c79c0ffe5133
3
+ metadata.gz: 71b5fb40592b28d1fd6c5eb61869ab76f56c1746
4
+ data.tar.gz: 1a52994411c949ea058ff88f43d0a4cd2ac9c3e1
5
5
  SHA512:
6
- metadata.gz: 4c154468545845141adf4d6d3d1cf96b35fc33c269bbe456f54862832c366ac554bacb28c2139de1e5ed5793d08b9c1be51b8222a9e296f45cf138cca54ed850
7
- data.tar.gz: 41464c6aff82d33219ad62596123931ce7fa7e5f0801f9d30957cbb7e0ee5274545bcdb013b5699dc9e68feec703e740b9cf733a6fd3c357310d163046884b48
6
+ metadata.gz: 4353c9cc413a856243f114c7b18f8c29fa4fee5adca1b980a46ed73b6723294d0d519700758dfd4f61a324b51cbb2d1cb0c06c7b5e04162f5b6666b495c1eec4
7
+ data.tar.gz: e0233520e1473d115fb3a3c0092f976c45cd9c97a927f1f8095b8606991959aec8b0d1fa8631778408694ec97fed622c8a683b7bd63e321e85d5a5336570b3b4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- repsheet_visualizer (0.1.9)
4
+ repsheet_visualizer (0.2.0)
5
5
  geoip
6
6
  json
7
7
  redis
@@ -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, true)]
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
@@ -55,7 +55,7 @@
55
55
  clear: both;
56
56
  }
57
57
  </style>
58
-
58
+
59
59
  <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
60
60
  <!--[if lt IE 9]>
61
61
  <script src="<%= @mount %>javascripts/html5shiv.js"></script>
@@ -1,3 +1,3 @@
1
1
  module RepsheetVisualizer
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.9
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-07-26 00:00:00.000000000 Z
11
+ date: 2013-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: geoip