stream-chat-ruby 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: a991d6254ab0ce129f7828b9f28dc18f90b867ba87ad543d24058ee9742f466b
4
- data.tar.gz: c08d620794b6ddb9e0be2b540a8b543b27eebdc34ac4b3a9db047933e574b90b
3
+ metadata.gz: 244e06d801241360619825d1d6dce2366be14e941586936172914c8ff8ca381b
4
+ data.tar.gz: cdd4f68211d18916918fd0bc092b578c4f3bec58c9aa7cbf5b54753cfa9fb07b
5
5
  SHA512:
6
- metadata.gz: b5f13aaefd25df7431ae242a41d38e6a1765b1f0419c14623a363baedc3d64eb197c30b8f03e91bb7513d6f8c8c674501abf1fb59680ee4385624f0e79d1dd08
7
- data.tar.gz: efbfac2fe9675cc8077429c6e6cd71d9a10d6234f8b9dfe904b997be339876b62fe89d140c9521adaec3901731c58e117e1646a7b4b65b711a030fc3563fca8a
6
+ metadata.gz: 63dfccf208150960ee69f5cf1042aad0fab9d73583613b6944949c87a69c3e896c30a6a1c3d5853407eae1640c956949219f8f09fb4866dcd25d6e36835971bb
7
+ data.tar.gz: 7297789f705b700652c0d3cd73670c44cbda4970877879dec9e840d9c53f008e79d9e5e69564b1214bae2133d0a317bf315d53d972b3a80d9b4b3037789485e0
@@ -1,3 +1,5 @@
1
+ require 'stream-chat/errors'
2
+
1
3
  module StreamChat
2
4
 
3
5
  class Channel
@@ -194,7 +194,7 @@ module StreamChat
194
194
  end
195
195
 
196
196
  def verify_webhook(request_body, x_signature)
197
- signature = OpenSSL::HMAC.hexdigest("SHA256", @api_key, request_body)
197
+ signature = OpenSSL::HMAC.hexdigest("SHA256", @api_secret, request_body)
198
198
  signature == x_signature
199
199
  end
200
200
 
@@ -1,5 +1,5 @@
1
1
  # lib/version.rb
2
2
 
3
3
  module StreamChat
4
- VERSION = "0.1.2".freeze
4
+ VERSION = "0.1.3".freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stream-chat-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mircea Cosbuc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-12 00:00:00.000000000 Z
11
+ date: 2019-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday