telegram-bot-ruby 0.3.10 → 0.3.11

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: 968de661bcb24792c23f4175f4c5fb8a81e212d4
4
- data.tar.gz: 560ea1d83cd207f0cefbce917abfefed5abb7a1b
3
+ metadata.gz: 4556db3d1e5de794e842e522c6eb0a7e588022c6
4
+ data.tar.gz: 2fc8acce5c5d5ae4188c70b1394a175375bd72d9
5
5
  SHA512:
6
- metadata.gz: 5cddca05d497a882643eb3e724a0c068045da110526722fdef129fb6ec0e2e0bdcb60a22ce33c75f06f7835690138de8b01da93a79059b4c356dcf7028da2270
7
- data.tar.gz: 7f15ee25c0e53145b8f76b99daca43b6dfc1c4dd13fe1e82bc5ebd21c3e85b1278de526222ae42ed8ff7a211971c71fefff004bd359e35fd3c2d515eef2234bf
6
+ metadata.gz: dbbd6285c05adb6ae4e3c0e9b08846104b60b2337347261615d2e1a663fa228761d1fbf508c30e98095029affc9c70f7a379da30bc0ab3d02b096582904587dd
7
+ data.tar.gz: 0eefaab43ecfb56f2c1c50dcd470342527552bda97b381c07b836e122d22899694636a2c2c4a1420e8288373996e7dda058da3d30dd0d01ae25bf501ec73b770
@@ -13,6 +13,10 @@ module Telegram
13
13
  format(' (%s)', data.map { |k, v| %(#{k}: "#{v}") }.join(', '))
14
14
  end
15
15
 
16
+ def error_code
17
+ data[:error_code] || data["error_code"]
18
+ end
19
+
16
20
  private
17
21
 
18
22
  def data
@@ -1,5 +1,5 @@
1
1
  module Telegram
2
2
  module Bot
3
- VERSION = '0.3.10'
3
+ VERSION = '0.3.11'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telegram-bot-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tipugin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-19 00:00:00.000000000 Z
11
+ date: 2015-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httmultiparty
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  requirements: []
174
174
  rubyforge_project:
175
- rubygems_version: 2.4.5
175
+ rubygems_version: 2.4.5.1
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: Ruby wrapper for Telegram's Bot API