ceiling_cat 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ceiling_cat/plugins/notifo.rb +4 -4
- data/lib/ceiling_cat/version.rb +1 -1
- metadata +4 -4
@@ -12,10 +12,10 @@ module CeilingCat
|
|
12
12
|
{:command => "list notifo users", :description => "List users who get Notifos - '!list notifo users'.", :method => "list_users"}]
|
13
13
|
end
|
14
14
|
|
15
|
-
def deliver(
|
16
|
-
body_parts = body_without_nick_or_command("notifo").scan(/^((\w+):)?(.+)$/)[0]
|
17
|
-
message
|
18
|
-
user
|
15
|
+
def deliver(full_message=nil)
|
16
|
+
body_parts = (full_message || body_without_nick_or_command("notifo")).scan(/^((\w+):)?(.+)$/)[0]
|
17
|
+
message = body_parts[2].strip
|
18
|
+
user = body_parts[1]
|
19
19
|
|
20
20
|
users = user ? Array(user.strip) : Array(store["notifo_users"])
|
21
21
|
users.each do |user|
|
data/lib/ceiling_cat/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ceiling_cat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Warren
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
18
|
+
date: 2011-09-26 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: tinder
|