foreign_office 0.0.4 → 0.0.5

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: 0e7431926c0bca4b256992c1c2192d0959ef9e84
4
- data.tar.gz: 77ae60663135f85a843366a9e9b4717cc5d5c86e
3
+ metadata.gz: 668f47d96a39226d2a51f223d591f5fb1803bc24
4
+ data.tar.gz: 8814b865d404865e65b29723e9f06cb8de8bf9ad
5
5
  SHA512:
6
- metadata.gz: 888f30502186eb8bbeeb8b01a9033ab4906020de0e70265ab1718810468c869c8e299d6314229cbaf9f28272ee790a78850fe0584ab574d81bf661a26e1e6447
7
- data.tar.gz: ec6ad1b40e1a65ff37c06aba46a5be6bc2c3a04fe0ce56a097cc648d1cd6a17965785cba52d9c63aafd1dd9d15850ac4e8fcea2cc3ca127a7c9608dafa970045
6
+ metadata.gz: 1997b2f11d8849ef1a9f2afc96972f1d4b2996aafef73e9044231048aa8834a73d8798c522f6424f9a52f3156b5daba7f020be4145fac1ce7c1bb699ea585a9c
7
+ data.tar.gz: 3874f4fb26b88828bc9a8158ceb015dd8fe6260cf5651b9960eee8cdb31ce7252df1c45de256cef58e242f67891e96833f9891d237ffccf6cfbe14a79e793f2e
@@ -1,14 +1,34 @@
1
1
  class ForeignOffice::Busses::PubnubBus < ForeignOffice::Busses::GenericBus
2
2
 
3
- def self.settings
4
- @settings ||= Sekrets.settings_for(Rails.root.join('config', 'pubnub.yml.enc'))
3
+ def self.publish_key=(publish_key)
4
+ @publish_key = publish_key
5
+ end
6
+
7
+ def self.publish_key
8
+ @publish_key
9
+ end
10
+
11
+ def self.subscribe_key=(subscribe_key)
12
+ @subscribe_key = subscribe_key
13
+ end
14
+
15
+ def self.subscribe_key
16
+ @subscribe_key
17
+ end
18
+
19
+ def self.secret_key=(secret_key)
20
+ @secret_key = secret_key
21
+ end
22
+
23
+ def self.secret_key
24
+ @secret_key
5
25
  end
6
26
 
7
27
  def self.connection
8
28
  @pubnub ||= ::Pubnub.new(
9
- publish_key: self.settings['PUBNUB_PUBLISH_KEY'], # publish_key only required if publishing.
10
- subscribe_key: self.settings['PUBNUB_SUBSCRIBE_KEY'], # required
11
- secret_key: self.settings['PUBNUB_SECRET_KEY'],
29
+ publish_key: self.publish_key, # publish_key only required if publishing.
30
+ subscribe_key: self.subscribe_key, # required
31
+ secret_key: self.secret_key,
12
32
  error_callback: lambda { |msg| Rails.logger.error( msg.inspect )}
13
33
  )
14
34
  end
@@ -1,3 +1,3 @@
1
1
  module ForeignOffice
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
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.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut