ruboty-rss 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 +4 -4
- data/lib/ruboty/handlers/rss.rb +2 -2
- data/lib/ruboty/rss/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c2177aa1fa6ecfaf7c38cbf2af1fb53e2087699
|
4
|
+
data.tar.gz: f392af62b84508abfc84da0fe37928205e822c0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1615b7f9faedccaf4b6cdb14d6ad876f31b347317771c2626404d99617a17fe0b2f5e56d34ae944d99b9a26e2d693eb208bddf625f77ab50d380ce6bf94f1259
|
7
|
+
data.tar.gz: f16fb2cc92bb3cd2b7781eb70b28590ef142f6a50c7c5742d28f396f1d0060543f58ef1c0ea8d5216280d36a6bd716ca15cbe5aa92a4f46e870834ddf3ec3b7c
|
data/lib/ruboty/handlers/rss.rb
CHANGED
@@ -6,7 +6,7 @@ module Ruboty
|
|
6
6
|
DEFAULT_INTERVAL = 60 * 15
|
7
7
|
NAMESPACE = "rss"
|
8
8
|
|
9
|
-
on(/subscribe rss (?<urls>.+)/, name: "subscribe", description: "Subscribe a new RSS feed (multiple urls
|
9
|
+
on(/subscribe rss (?<urls>.+)/, name: "subscribe", description: "Subscribe a new RSS feed (multiple urls separated by space)")
|
10
10
|
on(/unsubscribe rss (?<id>.+)/, name: "unsubscribe", description: "Unsubscribe a new RSS feed")
|
11
11
|
on(/list rss feeds/, name: "list", description: "List watching RSS feeds")
|
12
12
|
|
@@ -17,7 +17,7 @@ module Ruboty
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def subscribe(message)
|
20
|
-
urls = message[:urls].split('
|
20
|
+
urls = message[:urls].split(' ')
|
21
21
|
urls.each do |url|
|
22
22
|
feed = Ruboty::Rss::Feed.new(
|
23
23
|
message.original.except(:robot).merge(
|
data/lib/ruboty/rss/version.rb
CHANGED