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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bcd89760887aa4fc864d13f851470a28bba23433
4
- data.tar.gz: 5ecb4bad1de70cdcb57d2d1ace44088a014cbf76
3
+ metadata.gz: 94d5f7d1e53102a9e6143ad0292544c1c0f67edd
4
+ data.tar.gz: bb7389f2219a48bcce9086661eae9120ce194f79
5
5
  SHA512:
6
- metadata.gz: 438c41b94822053d118a28a4a9fa4315ec5cc3b50ca119f686f42d31434c6d35f1e2481e784d8b3d7f5a5db2fff3510042b9a83862c9360d93ae2ec36d692764
7
- data.tar.gz: ce1e666456c9f3a9a73c56fb8ff0c70ada9782222c67d259e88d3e317c73c5f5320e1ce5c2ab6de6db345975a3ef3b9d9d9f52087d0c8156f97efd0f5afd8d03
6
+ metadata.gz: 7425194b776c4a80f4e6ebf481438b9b591753724ab0466ee66bc641e5c384b65163e26675b472addff0060dd287db724e5464dd9c8c6e8b02129bf04331ef07
7
+ data.tar.gz: c0e9709417424c0194b4497de33a1d9a15daf0c3993f9184b3ea74812d7d5b5cf78a4a0abf13836d788d8332555569e01f0f180c60a3c4141b481540e86d7414
@@ -1,3 +1,6 @@
1
+ ## 0.0.8
2
+ - Change :from value on retweet from retweeter to tweeter
3
+
1
4
  ## 0.0.7
2
5
  - Add follow-back option
3
6
 
@@ -34,10 +34,12 @@ module Ruboty
34
34
  stream.user do |message|
35
35
  case message
36
36
  when ::Twitter::Tweet
37
- Ruboty.logger.debug("#{message.user.screen_name} tweeted #{message.text.inspect}")
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: message.text,
40
- from: message.user.screen_name,
41
+ body: tweet.text,
42
+ from: tweet.user.screen_name,
41
43
  tweet: message
42
44
  )
43
45
  when ::Twitter::Streaming::Event
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Twitter
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura