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 +2 -2
- data/lib/slacky/message.rb +4 -2
- data/lib/slacky/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
slacky (0.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.
|
46
|
+
slack-ruby-client (0.7.4)
|
47
47
|
activesupport
|
48
48
|
faraday
|
49
49
|
faraday_middleware
|
data/lib/slacky/message.rb
CHANGED
@@ -30,9 +30,11 @@ module Slacky
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def command?
|
33
|
-
first =
|
33
|
+
first = downword 0
|
34
34
|
return false unless first
|
35
|
-
|
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
|
data/lib/slacky/version.rb
CHANGED
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.
|
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-
|
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:
|
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:
|
238
|
+
hash: 2592024575521354841
|
239
239
|
requirements: []
|
240
240
|
rubyforge_project:
|
241
241
|
rubygems_version: 1.8.23
|