telegram-ruby 0.3.1 → 0.3.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
  SHA256:
3
- metadata.gz: b3b1e7a9c5751ecc45a63b9dcf1ac0e2a09745397e3dc1babed2429b1dec1fe2
4
- data.tar.gz: ff4a033d1d463d0bc37723aa85c9443d2736183442fc09b6c88cd0fdc65f9a83
3
+ metadata.gz: be3660edae8b1987587e1ae17050608f0bf670f60e40b194b5d4df7df1da147d
4
+ data.tar.gz: bde63464aad0dc5a12e336854dfffcead3bab885c66b3ce161706d3b778b6fc5
5
5
  SHA512:
6
- metadata.gz: 1398d1b87930c7ad729df49c057e2b840c45ab6273cefb615fb66391a7bdc0a7cb22fa00a8613b0c6afeebe4ac2e1ba588036304d3394d457e32a5dcda9e2bda
7
- data.tar.gz: baf81c76ee15444b47af23b7185abf8e9891bdeec3bcc0232a2721ea87b715119698d3e07f117b99df0d6ca28d33671a9f0dcd5940d8dabc46847046dc874afc
6
+ metadata.gz: dde2f3cf1e21ef68c93aa2d3ec61240da85556b1674b9cc5329c1e1b286ef6234efaa681dea1f30d65b18d7b3275c116030c6c8d78a89b02881e09c5c5fbe1c1
7
+ data.tar.gz: 5b08bbe0d5e61a4ee73a769d8ce8bf28c91b7e85225551d8da2311f50c9802d1ad1b6cb66e016ecf0ef4a8d2064a9988a88ba576eef67f3f09d1110135ab8ce5
@@ -7,7 +7,7 @@ module Telegram::Bot
7
7
  auth_data = auth_data.slice(:auth_date, :first_name, :id, :last_name, :photo_url, :username)
8
8
  check_string = auth_data.map {|k, v| "#{k}=#{v}" }.sort.join("\n")
9
9
 
10
- secret_key = OpenSSL::Digest::SHA256.new.digest(Bot.configuration.token)
10
+ secret_key = OpenSSL::Digest::SHA256.new.digest(Telegram::Bot.configuration.token)
11
11
  hash = OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha256'), secret_key, check_string)
12
12
 
13
13
  raise Telegram::Bot::LoginError.new('Data is NOT from Telegram') if (hash.casecmp(check_hash) != 0)
@@ -1,3 +1,3 @@
1
1
  module Telegram
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telegram-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Belenky