lib/twitter_auth/dispatcher/shared.rb in twitter-auth-0.1.15 vs lib/twitter_auth/dispatcher/shared.rb in twitter-auth-0.1.16
- old
+ new
@@ -1,7 +1,11 @@
module TwitterAuth
module Dispatcher
module Shared
+ def post!(status)
+ self.post('/statuses/update.json', :status => status)
+ end
+
def append_extension_to(path)
path, query_string = *(path.split("?"))
path << '.json' unless path.match(/\.(:?xml|json)\z/i)
"#{path}#{"?#{query_string}" if query_string}"
end