junkie 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a4dbf5c630d92490879347140c6444521c1a938
4
- data.tar.gz: 73f496cb2a66aa3ac8fa51594123f0d540ee6614
3
+ metadata.gz: 1e94bc9ed0a6752f3ab21177d2e301e603c5b164
4
+ data.tar.gz: 223dfd25c8f29d346f19f8faf35dbde831b03ae1
5
5
  SHA512:
6
- metadata.gz: 178036fb83a0a40e5644e9f3f5e74d269f39b9f8460abe8f15a0dca0d38ba64d1e0b26433c9c35222d8e4799243959ef1666e63d174aab2c1d6c39327cc70497
7
- data.tar.gz: 681339370cac8ce58001ad6e56c8dd11bbaa34e19172c5be26ae86ee3d3fd1d14279a4e4d21c22f28a3d23cb9c8e775c500a120c76c782deab6f60a0cac1a29d
6
+ metadata.gz: bf1971e2ca25e9d06797df7dc90882d31cc05b1a242d89141ce10086d21d5dd65be93fcd6b485c4ec9715206aa8448e86cdd875cc877083a086ad95271ff2ce1
7
+ data.tar.gz: 8c98fb1bc9f4e8c5955c1593e3b143f5e5596df1a0ca2d60752fe8191e3a182bc240c76f214b252772b1b3ba8dd71537ea2061a0f3b3e37cd6ffbe6646159f99
@@ -1,3 +1,3 @@
1
1
  module Junkie
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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 ws = new WebSocket('ws://' + window.location.host + window.location.pathname);
59
- ws.onopen = function() {
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 = function() {
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.0
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-12 00:00:00.000000000 Z
11
+ date: 2016-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine