bg-common 0.1.1 → 0.1.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: 8f532a7d8a1782789c0ec8312b77adcf7dc67516
4
- data.tar.gz: 5bfea4dff99cf9ec0b276ccbb8af0fc64ed1a969
3
+ metadata.gz: e883f346c3f8661fc5f2c269ef693266c40eb99d
4
+ data.tar.gz: 5558811d182ab1b697a35d6a6f3d0766e5b9d5ee
5
5
  SHA512:
6
- metadata.gz: 4ad27c4876b1d427f8f9e5650a354c6406f5cc9d58945b649fabdfbb8b7c6975364629ba50058eb5235e481e9413c72ae94f04b1c699b32110c09ef9253ed45d
7
- data.tar.gz: 8311e865678496a730f2d2b34e3ded17f4904e6337ec329dadfaa8053cde55c3179c914bad38ceb094d6b33589004aff2a548631b488b34392cafee65ffc2dbd
6
+ metadata.gz: cc0876b3c344f6d8381b2e9d501b41cb5d725a63dffe1d1c7b5b394139bcffea4141bce1804fbafa4bf4df63ddec3876cb8c03ddb5d713a32be5e569f4fe95ec
7
+ data.tar.gz: 01203b4d6242e815e52c02229e114ddefa7a62c6e791061cb4f713e7f604faa3600be1514eaa5c3723d80154aa66bb2cb866ba9abc5a0a78e8841e1c4836ec9f
@@ -15,7 +15,7 @@ module BG
15
15
  end
16
16
 
17
17
  def intercom?
18
- defined?(::Intercom)
18
+ defined?(::Intercom) && ENV['INTERCOM_ACCESS_TOKEN']
19
19
  end
20
20
 
21
21
  def keen?
@@ -4,11 +4,11 @@ module BG
4
4
  module Intercom
5
5
  class Client
6
6
  def initialize
7
- @intercom = ::Intercom::Client.new
7
+ @intercom = ::Intercom::Client.new token: ENV['INTERCOM_ACCESS_TOKEN']
8
8
  end
9
9
 
10
10
  def intercom
11
- @intercom ||= ::Intercom::Client.new
11
+ @intercom ||= ::Intercom::Client.new token: ENV['INTERCOM_ACCESS_TOKEN']
12
12
  end
13
13
 
14
14
  def call data
@@ -1,5 +1,5 @@
1
1
  module BG
2
2
  module Common
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bg-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Youssef Chaker