lib/rubytter.rb in jugyo-rubytter-0.3.5 vs lib/rubytter.rb in jugyo-rubytter-0.4.0

- old
+ new

@@ -5,10 +5,11 @@ require 'rubytter/connection' class Rubytter APP_NAME = 'Rubytter' + VERSION = '0.4.0' HOMEPAGE = 'http://github.com/jugyo/rubytter' def initialize(login, password, options = {}) @login = login @password = password @@ -17,12 +18,12 @@ end def self.api_settings # method name path for API http method " - status_update /statuses/update post - destroy /statuses/destroy/%s delete + update_status /statuses/update post + remove_status /statuses/destroy/%s delete public_timeline /statuses/public_timeline friends_timeline /statuses/friends_timeline replies /statuses/replies user_timeline /statuses/user_timeline/%s show /statuses/show/%s @@ -30,24 +31,24 @@ followers /statuses/followers/%s user /users/show/%s direct_messages /direct_messages sent_direct_messages /direct_messages/sent send_direct_message /direct_messages/new post - destroy_direct_message /direct_messages/destroy/%s delete - create_friendship /friendships/create/%s post - destroy_friendship /friendships/destroy/%s delete + remove_direct_message /direct_messages/destroy/%s delete + follow /friendships/create/%s post + leave /friendships/destroy/%s delete friendship_exists /friendships/exists followers_ids /followers/ids/%s friends_ids /friends/ids/%s favorites /favorites favorite /favorites/create/%s post - unfavorite /favorites/destroy/%s delete + remove_favorite /favorites/destroy/%s delete verify_credentials /account/verify_credentials get end_session /account/end_session post update_delivery_device /account/update_delivery_device post update_profile_colors /account/update_profile_colors post - rate_limit_status /account/rate_limit_status + limit_status /account/rate_limit_status update_profile /account/update_profile post enable_notification /notifications/follow/%s post disable_notification /notifications/leave/%s post block /blocks/create/%s post unblock /blocks/destroy/%s delete @@ -71,10 +72,10 @@ EOS end end def update(status, params = {}) - status_update(params.merge({:status => status})) + update_status(params.merge({:status => status})) end def direct_message(user, text, params = {}) send_direct_message(params.merge({:user => user, :text => text})) end