foreign_office 0.15.1 → 0.15.2
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: c7c0d5eab9bd92abc22b89885b3b91f5cfd0f728
|
4
|
+
data.tar.gz: a1103100c657659689bde5d39925d930603bb07e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85d7d00183e85eebef92a36420253bab491e075ff1ffefff6588c431f8c494b0d660cadafeded4c231ce2e2047cfa51eaad775e5cb540a1e2da8f7ff7cb20d2e
|
7
|
+
data.tar.gz: 1c54de66b4cc0a42517a3648b6ebdfd78b83f7ae207ea5e9466344ef7ee9a0e9b5d5dc3303b7c6360c19ee7803748f506d974fbe64ce510c952c8bbf57db18c0
|
@@ -1,6 +1,9 @@
|
|
1
1
|
var PusherBus = Class.extend({
|
2
2
|
init: function(config){
|
3
|
-
|
3
|
+
delete config.bus_name
|
4
|
+
var key = config.key
|
5
|
+
delete config.key
|
6
|
+
this.pusher = new Pusher(key, config);
|
4
7
|
},
|
5
8
|
subscribe: function(subscription){
|
6
9
|
this.channel = this.pusher.subscribe(subscription.channel);
|
@@ -35,7 +35,7 @@ class ForeignOffice::Busses::PubnubBus < ForeignOffice::Busses::GenericBus
|
|
35
35
|
publish_key: self.publish_key, # publish_key only required if publishing.
|
36
36
|
subscribe_key: self.subscribe_key, # required
|
37
37
|
secret_key: self.secret_key,
|
38
|
-
|
38
|
+
ssl: true
|
39
39
|
)
|
40
40
|
end
|
41
41
|
|
@@ -1,8 +1,7 @@
|
|
1
1
|
class ForeignOffice::Busses::PusherBus < ForeignOffice::Busses::GenericBus
|
2
2
|
def self.config(config)
|
3
|
-
|
4
|
-
|
5
|
-
self.secret = config[:secret]
|
3
|
+
# Pusher now pulls config directly from the ENV
|
4
|
+
Pusher.encrypted = true
|
6
5
|
end
|
7
6
|
|
8
7
|
def self.app_id=(app_id)
|
@@ -30,11 +29,7 @@ class ForeignOffice::Busses::PusherBus < ForeignOffice::Busses::GenericBus
|
|
30
29
|
end
|
31
30
|
|
32
31
|
def self.connection
|
33
|
-
@pusher ||= Pusher
|
34
|
-
app_id: self.app_id,
|
35
|
-
key: self.key,
|
36
|
-
secret: self.secret
|
37
|
-
})
|
32
|
+
@pusher ||= Pusher
|
38
33
|
end
|
39
34
|
|
40
35
|
def self.publish(message)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreign_office
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Draut
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-06
|
12
|
+
date: 2017-07-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|