lib/twitter/rest/tweets.rb in twitter-8.0.1 vs lib/twitter/rest/tweets.rb in twitter-8.1.0

- old
+ new

@@ -152,10 +152,10 @@ # @option options [Boolean, String, Integer] :trim_user Each tweet returned in a timeline will include a user object with only the author's numerical ID when set to true, 't' or 1. def update!(status, options = {}) hash = options.dup hash[:in_reply_to_status_id] = hash.delete(:in_reply_to_status).id unless hash[:in_reply_to_status].nil? hash[:place_id] = hash.delete(:place).woeid unless hash[:place].nil? - perform_post_with_object("/1.1/statuses/update.json", hash.merge(status: status), Twitter::Tweet) + perform_post_with_object("/1.1/statuses/update.json", hash.merge(status:), Twitter::Tweet) end # Retweets the specified Tweets as the authenticating user # # @see https://dev.twitter.com/rest/reference/post/statuses/retweet/:id