telegram-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: 64c29ef807dfe60f64179da1a8af31083d4ee04d33412bafcf64cabcf5000652
4
- data.tar.gz: 072aca1b8761dd97b26a89cfb7f517d0314e79cb2f9a7a551363107bd2bc390d
3
+ metadata.gz: 7533e24832aa9f7ec818f5536f1bf8c8b0957dd712ad8e92b9e90860ff21c8bf
4
+ data.tar.gz: cb7e6877c72be165e5042c0f3198c228c939ed7995b0d985e8ed179dcee6a9d1
5
5
  SHA512:
6
- metadata.gz: 15a192029f36ac1868d1292973248b29876fab7a0cac60011bf654880f0e72f42302548abdf2eba6daf8a7f4aed463da98c202c04c9bed2324d11f48d91eb588
7
- data.tar.gz: c355d26e41d79c5df2bccbeec2e7f515a46d72ee7f25cc9b1a4a1785209b023873968a413e1fff250a7c5a3f2adb3e3ec5e7d3177bc7ad883ee3e4d76397b2ae
6
+ metadata.gz: 672c7a66b3a9859852194daf1c0ed7da7009c0aaced7109becb81352ad8bbf9928ac94a023c6c864361b8e5d64f23a379d19dbf9dfb01ff4874d3e83426c9063
7
+ data.tar.gz: 306ef69d1c49f3dde32b597ea3676cb14050e558bdc4ec6807416cc313416bfcadf213e27ab0ae87fdf74f58dd032cc4b15f14bd824c545176e7f93679611352
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.3
4
+ - Fix: pull command from message text
5
+
3
6
  ## 0.1.2
4
7
  - Add 'name' to configuration
5
8
  - Update README.md
@@ -48,7 +48,7 @@ module Telegram::Bot
48
48
  end
49
49
 
50
50
  def pull_command(text)
51
- text = text.gsub(Telegram::Bot.configuration.name, '') if Telegram::Bot.configuration.name
51
+ text = text.gsub(Telegram::Bot.configuration.name, '') if Telegram::Bot.configuration.name && !text.nil?
52
52
  !text.nil? && text.index('/') == 0 ? text.downcase.split(' ').first.gsub('/', '') : nil
53
53
  end
54
54
  end
@@ -1,3 +1,3 @@
1
1
  module Telegram
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telegram-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
  - Alex Belenky
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-24 00:00:00.000000000 Z
11
+ date: 2018-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler