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: f9cae84ec5a250d5b67b21834f8dbb24c4e6b81c
4
- data.tar.gz: 9b082f9d7fb8053984ba920abe5e3213ecfb6ec3
3
+ metadata.gz: c7c0d5eab9bd92abc22b89885b3b91f5cfd0f728
4
+ data.tar.gz: a1103100c657659689bde5d39925d930603bb07e
5
5
  SHA512:
6
- metadata.gz: 8d8122df27dc7f63ffe264d7c01c48210d409f6f20eeed278d5f7ed7c323999d37f075ec7849e3a7b1b9e21f61b7a68e7d5917d075cd5709c22295bc89fb1fcb
7
- data.tar.gz: 644da196de535ee346021b947c1fd4e8c5ac8db6885074d8010856e0712430c9616c0f8a00da0356208ef2a14f813e5a60c2a10b7bfcdb8696277ad6be9dd8a9
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
- this.pusher = new Pusher(config.key);
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
- error_callback: lambda { |msg| Rails.logger.error( msg.inspect )}
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
- self.app_id = config[:app_id]
4
- self.key = config[:key]
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::Client.new({
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)
@@ -1,3 +1,3 @@
1
1
  module ForeignOffice
2
- VERSION = "0.15.1"
2
+ VERSION = "0.15.2"
3
3
  end
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.1
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-27 00:00:00.000000000 Z
12
+ date: 2017-07-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails