junkie 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/junkie/version.rb +1 -1
- data/lib/junkie/webinterface/interface.rb +9 -0
- data/lib/junkie/webinterface/public/js/index.js +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e94bc9ed0a6752f3ab21177d2e301e603c5b164
|
4
|
+
data.tar.gz: 223dfd25c8f29d346f19f8faf35dbde831b03ae1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf1971e2ca25e9d06797df7dc90882d31cc05b1a242d89141ce10086d21d5dd65be93fcd6b485c4ec9715206aa8448e86cdd875cc877083a086ad95271ff2ce1
|
7
|
+
data.tar.gz: 8c98fb1bc9f4e8c5955c1593e3b143f5e5596df1a0ca2d60752fe8191e3a182bc240c76f214b252772b1b3ba8dd71537ea2061a0f3b3e37cd6ffbe6646159f99
|
data/lib/junkie/version.rb
CHANGED
@@ -49,6 +49,15 @@ module Junkie
|
|
49
49
|
|
50
50
|
def self.publish_encrypted_count
|
51
51
|
@@channels[:push_episode_count].push(@@encrypted_episodes.length)
|
52
|
+
|
53
|
+
@@channels[:info].push(
|
54
|
+
{
|
55
|
+
key: "Pending Encrypted Links",
|
56
|
+
desc: "Number of encrypted links that need to be decrypted.",
|
57
|
+
value: @@encrypted_episodes.length,
|
58
|
+
additional: @@encrypted_episodes.values.map { |e| "%s (%s)" % [e.series, e.id] }
|
59
|
+
}
|
60
|
+
)
|
52
61
|
end
|
53
62
|
|
54
63
|
get '/' do
|
@@ -55,12 +55,13 @@ function updateUpdatedAt() {
|
|
55
55
|
}
|
56
56
|
|
57
57
|
$(function () {
|
58
|
-
var
|
59
|
-
ws
|
58
|
+
var protocol = (window.location.protocol === "https:") ? "wss:" : "ws:";
|
59
|
+
var ws = new WebSocket(protocol + '//' + window.location.host + window.location.pathname);
|
60
|
+
ws.onopen = function() {
|
60
61
|
console.log('websocket opened');
|
61
62
|
$('#connection_status').text('connected');
|
62
63
|
};
|
63
|
-
ws.onclose
|
64
|
+
ws.onclose = function() {
|
64
65
|
console.log('websocket closed');
|
65
66
|
$('#connection_status').text('disconnected');
|
66
67
|
};
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: junkie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philipp Böhm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|