telegram-bot-ruby 0.4.0 → 0.4.1

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: 2f97dd430cc9b267ecc9bb00d55bd50dfb34b091
4
- data.tar.gz: cfff29e4848daad38fdd280e968f62f31b987ee8
3
+ metadata.gz: 864f978adbd745d97ee13da3c59c4d30a1129f74
4
+ data.tar.gz: 29369f1b2826ca4da0b597e813e87e41a3686f2a
5
5
  SHA512:
6
- metadata.gz: f9763fcfe74b8e3bb067cd923182ebaa3418a7b68e9f71719baa8cf2a437810f3f58c8cefd76a8caaabb3eb1b8188fc7f0453213cf57d634aa841e7d8fade106
7
- data.tar.gz: 9530676f3ee98dbb7edbf0901bf3a97a4a010f00209afdb7316f189e1f8c2b6df255761e3ca8de3e8c1a6b97fb6cef30c71bdf4fabc4da750621bcb46d8972c0
6
+ metadata.gz: 72f63b965d976674725b4f7dd06b39bb2c21fb8f681ca3a314f59c90063270208f32102656deacb6d5ee54f4084ad078ce4ba64213928b607f934ef1d82d3ccf
7
+ data.tar.gz: ace8addeb02d5b71f788d68b22405f180b7ff661d89fc737bfdba1bd7dd600f5483f2f869099afcee28cb1855ece2e725fa7f9e2b56eb2af094602721a1b9c90
@@ -69,7 +69,7 @@ module Telegram
69
69
  end
70
70
 
71
71
  def jsonify_inline_query_results(value)
72
- return value unless Array(value).all? { |i| INLINE_QUERY_RESULT_TYPES.include?(i.class) }
72
+ return value unless value.is_a?(Array) && value.all? { |i| INLINE_QUERY_RESULT_TYPES.include?(i.class) }
73
73
  value.map { |i| i.to_h.select { |_, v| v } }.to_json
74
74
  end
75
75
 
@@ -1,5 +1,5 @@
1
1
  module Telegram
2
2
  module Bot
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
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.4.0
4
+ version: 0.4.1
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-01-06 00:00:00.000000000 Z
11
+ date: 2016-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httmultiparty