telegram-bot-ruby 0.7.1 → 0.7.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: a5850a71fd2d890834b4a43a1e3f46a9ff47ff8c
4
- data.tar.gz: 904f3f8e59dee8a2e567e5a1a7c06bcad446ed23
3
+ metadata.gz: c02d79f81e719a452e46887b09cc54167d72d80f
4
+ data.tar.gz: 2e3a73423f4b29b58a73cf07b5a41018ac5926ab
5
5
  SHA512:
6
- metadata.gz: 957a8220c52d3fb4e6a06fdf00c2c0075cecf983c4ce714c66d8d8314e60521b81ac4d57bb66f272b08ca9ceb298ea16f3f3efc44f7dc2b6a3205b2fba4c01db
7
- data.tar.gz: 7a79d9806f8dc166cddc263d1bbbfd57c7b1aa528927f05c3637721b970e7eeb11c927cc62713c80c10d93b4dfe98f231ca85db321bb60bb9f79e5230701ac0f
6
+ metadata.gz: f840ced90b930aa481ba7331faffd19e9010cf1b0ac18094e0d176e64407676dc24c59fcbedda6b3a0100ecfe457e6952094c8df1d60bf31643ef58420d39ffd
7
+ data.tar.gz: 303781ef46d1ec9778036a8f61b86b30234f190104344fd2de92e8a41a25be18f20230de0364f59f03a010cc17045325a8d4ef5340832a5c258b296aab230d02
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.2
4
+
5
+ - Bug fixes
6
+
3
7
  ## 0.7.1
4
8
 
5
9
  - Implement [Bot API 2.3.1](https://core.telegram.org/bots/api-changelog#december-4-2016)
@@ -48,11 +48,14 @@ module Telegram
48
48
  end
49
49
 
50
50
  def extract_message(update)
51
- update.inline_query ||
52
- update.chosen_inline_result ||
53
- update.callback_query ||
54
- update.edited_message ||
55
- update.message
51
+ types = %w(inline_query
52
+ chosen_inline_result
53
+ callback_query
54
+ edited_message
55
+ message
56
+ channel_post
57
+ edited_channel_post)
58
+ types.inject(nil) { |acc, elem| acc || update.send(elem) }
56
59
  end
57
60
 
58
61
  def log_incoming_message(message)
@@ -1,5 +1,5 @@
1
1
  module Telegram
2
2
  module Bot
3
- VERSION = '0.7.1'.freeze
3
+ VERSION = '0.7.2'.freeze
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.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tipugin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-12 00:00:00.000000000 Z
11
+ date: 2017-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  version: '0'
228
228
  requirements: []
229
229
  rubyforge_project:
230
- rubygems_version: 2.5.1
230
+ rubygems_version: 2.5.2
231
231
  signing_key:
232
232
  specification_version: 4
233
233
  summary: Ruby wrapper for Telegram's Bot API