repsheet_visualizer 0.1.1 → 0.1.2s
Sign up to get free protection for your applications and to get access to all the features.
@@ -11,8 +11,6 @@ class RepsheetVisualizer < Sinatra::Base
|
|
11
11
|
|
12
12
|
helpers do
|
13
13
|
def action(ip, blacklist=nil)
|
14
|
-
puts ip.inspect
|
15
|
-
puts blacklist.inspect
|
16
14
|
blacklist = redis_connection.get("#{ip}:repsheet:blacklist") if blacklist.nil?
|
17
15
|
if blacklist.nil? || blacklist == "false"
|
18
16
|
"blacklist"
|
@@ -1,12 +1,6 @@
|
|
1
1
|
$(document).ready(function() {
|
2
2
|
$("#suspects").tablesorter({sortList: [[2,1]],widgets: ['zebra']});
|
3
3
|
$("#blacklisted").tablesorter({sortList: [[2,1]],widgets: ['zebra']});
|
4
|
-
|
5
|
-
$("#search-button").click(function() {
|
6
|
-
ip = $("#ip").val();
|
7
|
-
if (ip === "") return;
|
8
|
-
window.location = "activity/" + ip;
|
9
|
-
});
|
10
4
|
});
|
11
5
|
|
12
6
|
function angle(d) {
|
@@ -66,6 +66,20 @@
|
|
66
66
|
<script src="<%= @mount %>javascripts/jquery-latest.js" type="text/javascript"></script>
|
67
67
|
<script src="<%= @mount %>javascripts/jquery.tablesorter.min.js" type="text/javascript"></script>
|
68
68
|
<script src="<%= @mount %>javascripts/application.js" type="text/javascript"></script>
|
69
|
+
|
70
|
+
<script type="text/javascript">
|
71
|
+
function activity(ip) {
|
72
|
+
return "<%= @mount %>activity/" + ip;
|
73
|
+
}
|
74
|
+
|
75
|
+
$(document).ready(function() {
|
76
|
+
$("#search-button").click(function() {
|
77
|
+
ip = $("#ip").val();
|
78
|
+
if (ip === "") return;
|
79
|
+
window.location = activity(ip);
|
80
|
+
});
|
81
|
+
});
|
82
|
+
</script>
|
69
83
|
</head>
|
70
84
|
|
71
85
|
<body>
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: repsheet_visualizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.2s
|
5
|
+
prerelease: 5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Aaron Bedra
|
@@ -178,9 +178,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
178
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
179
|
none: false
|
180
180
|
requirements:
|
181
|
-
- - ! '
|
181
|
+
- - ! '>'
|
182
182
|
- !ruby/object:Gem::Version
|
183
|
-
version:
|
183
|
+
version: 1.3.1
|
184
184
|
requirements: []
|
185
185
|
rubyforge_project:
|
186
186
|
rubygems_version: 1.8.23
|