botkit 0.0.3 → 0.0.4

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: 5dde3b5b97619bae56e0f1bda2827eeb82a3784e
4
- data.tar.gz: 365754f97f667520a996d3605c50c85f8f757723
3
+ metadata.gz: 126b1d0a6961c78790abe15e3607474e0a2a61dc
4
+ data.tar.gz: fa8e1d968e252a674df3ffad99a8b4c50c9f2077
5
5
  SHA512:
6
- metadata.gz: d7b775e216cb60684e4b1875d8d908717e93778f66d695d13eee8d11a3434a685b3421ba74966fc9004862aeeef43a3cc20a0bd29537202f9224849997f9b106
7
- data.tar.gz: 89cf3e8fb2dd1b4b0b3da1e596ce603dd5c47f78f891b722928b7ba59439e4af3db9be4550574b9c23a68c9bd554e43e823ab5a1daf653215fc9f92a9c2fbc4a
6
+ metadata.gz: c5f8cbbb4a6f76699393e2f247c117aa5c66a3f490f453d550e63d294c702df6d312cd2f79d21b28b4e55448c6c95646a85e6990082ff91b0be3c917be214d66
7
+ data.tar.gz: af27da77e98237b8d1861b44b53c379e264f8ba061f74cfb139b12715dfe56b3d16830cca631fcc6d006839f00d848f9b2ad24592aa18d78364aa4fc9d388aeb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- botkit (0.0.3)
4
+ botkit (0.0.4)
5
5
  aitch
6
6
  signal
7
7
 
data/lib/botkit/bot.rb CHANGED
@@ -33,7 +33,7 @@ module Botkit
33
33
 
34
34
  def parse_message(input, matcher = nil)
35
35
  input = input.to_s
36
- _, command, text = *input.match(%r{\A/([^ ]+)(?:\s+(.*?))?\z})
36
+ _, command, text = *input.match(%r{\A/([^ @]+)(?:@.*?bot)?(?:\s+(.*?))?\z}i)
37
37
  matches = text.to_s.match(matcher) if matcher
38
38
 
39
39
  {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Botkit
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: botkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira