ruboty-twitter 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/ruboty/adapters/twitter.rb +5 -3
- data/lib/ruboty/twitter/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: 94d5f7d1e53102a9e6143ad0292544c1c0f67edd
|
4
|
+
data.tar.gz: bb7389f2219a48bcce9086661eae9120ce194f79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7425194b776c4a80f4e6ebf481438b9b591753724ab0466ee66bc641e5c384b65163e26675b472addff0060dd287db724e5464dd9c8c6e8b02129bf04331ef07
|
7
|
+
data.tar.gz: c0e9709417424c0194b4497de33a1d9a15daf0c3993f9184b3ea74812d7d5b5cf78a4a0abf13836d788d8332555569e01f0f180c60a3c4141b481540e86d7414
|
data/CHANGELOG.md
CHANGED
@@ -34,10 +34,12 @@ module Ruboty
|
|
34
34
|
stream.user do |message|
|
35
35
|
case message
|
36
36
|
when ::Twitter::Tweet
|
37
|
-
|
37
|
+
retweeted = message.retweeted_status.is_a?(::Twitter::Tweet)
|
38
|
+
tweet = retweeted ? message.retweeted_status : message
|
39
|
+
Ruboty.logger.debug("#{tweet.user.screen_name} tweeted #{tweet.text.inspect}")
|
38
40
|
robot.receive(
|
39
|
-
body:
|
40
|
-
from:
|
41
|
+
body: tweet.text,
|
42
|
+
from: tweet.user.screen_name,
|
41
43
|
tweet: message
|
42
44
|
)
|
43
45
|
when ::Twitter::Streaming::Event
|