slacky 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- slacky (0.2.2)
4
+ slacky (0.2.3)
5
5
  dotenv
6
6
  em-cron
7
7
  eventmachine
@@ -43,7 +43,7 @@ GEM
43
43
  parse-cron (0.1.4)
44
44
  pg (0.18.4)
45
45
  rake (11.1.2)
46
- slack-ruby-client (0.7.3)
46
+ slack-ruby-client (0.7.4)
47
47
  activesupport
48
48
  faraday
49
49
  faraday_middleware
@@ -30,9 +30,11 @@ module Slacky
30
30
  end
31
31
 
32
32
  def command?
33
- first = word 0
33
+ first = downword 0
34
34
  return false unless first
35
- first == @@bot.name || first == "<@#{@@bot.slack_id}>"
35
+ [ @@bot.name, "<@#{@@bot.slack_id.downcase}>" ].any? do |name|
36
+ first == name || first == "#{name}:"
37
+ end
36
38
  end
37
39
 
38
40
  def command
@@ -1,3 +1,3 @@
1
1
  module Slacky
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slacky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-03 00:00:00.000000000 Z
12
+ date: 2016-06-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: slack-ruby-client
@@ -226,7 +226,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
226
  version: '0'
227
227
  segments:
228
228
  - 0
229
- hash: -4580152558995582524
229
+ hash: 2592024575521354841
230
230
  required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  none: false
232
232
  requirements:
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  version: '0'
236
236
  segments:
237
237
  - 0
238
- hash: -4580152558995582524
238
+ hash: 2592024575521354841
239
239
  requirements: []
240
240
  rubyforge_project:
241
241
  rubygems_version: 1.8.23