lib/twitter/rest/friends_and_followers.rb in twitter-5.15.0 vs lib/twitter/rest/friends_and_followers.rb in twitter-5.16.0

- old
+ new

@@ -111,11 +111,11 @@ new_friends = Thread.new do users(args).collect(&:id) end follow!(new_friends.value - existing_friends.value, arguments.options) end - alias_method :create_friendship, :follow + alias create_friendship follow deprecate_alias :friendship_create, :follow # Allows the authenticating user to follow the specified users # # @see https://dev.twitter.com/rest/reference/post/friendships/create @@ -133,11 +133,11 @@ arguments = Twitter::Arguments.new(args) pmap(arguments) do |user| perform_post_with_object('/1.1/friendships/create.json', merge_user(arguments.options, user), Twitter::User) end.compact end - alias_method :create_friendship!, :follow! + alias create_friendship! follow! deprecate_alias :friendship_create!, :follow! # Allows the authenticating user to unfollow the specified users # # @see https://dev.twitter.com/rest/reference/post/friendships/destroy @@ -151,11 +151,11 @@ # @param users [Enumerable<Integer, String, Twitter::User>] A collection of Twitter user IDs, screen names, or objects. # @param options [Hash] A customizable set of options. def unfollow(*args) parallel_users_from_response(:post, '/1.1/friendships/destroy.json', args) end - alias_method :destroy_friendship, :unfollow + alias destroy_friendship unfollow deprecate_alias :friendship_destroy, :unfollow # Allows one to enable or disable retweets and device notifications from the specified user. # # @see https://dev.twitter.com/rest/reference/post/friendships/update @@ -187,12 +187,12 @@ options[:source_id] = options.delete(:source_user_id) unless options[:source_user_id].nil? merge_user!(options, target, 'target') options[:target_id] = options.delete(:target_user_id) unless options[:target_user_id].nil? perform_get_with_object('/1.1/friendships/show.json', options, Twitter::Relationship) end - alias_method :friendship_show, :friendship - alias_method :relationship, :friendship + alias friendship_show friendship + alias relationship friendship # Test for the existence of friendship between two users # # @see https://dev.twitter.com/rest/reference/get/friendships/show # @rate_limited Yes @@ -251,11 +251,11 @@ # @option options [Boolean, String, Integer] :skip_status Do not include contributee's Tweets when set to true, 't' or 1. # @option options [Boolean, String, Integer] :include_user_entities The user entities node will be disincluded when set to false. def friends(*args) cursor_from_response_with_user(:users, Twitter::User, '/1.1/friends/list.json', args) end - alias_method :following, :friends + alias following friends # Returns a collection of user IDs that the currently authenticated user does not want to receive retweets from. # @see https://dev.twitter.com/rest/reference/get/friendships/no_retweets/ids # @rate_limited Yes # @authentication Requires user context @@ -263,9 +263,9 @@ # @return [Array<Integer>] # @param options [Hash] A customizable set of options. def no_retweet_ids(options = {}) perform_get('/1.1/friendships/no_retweets/ids.json', options).collect(&:to_i) end - alias_method :no_retweets_ids, :no_retweet_ids + alias no_retweets_ids no_retweet_ids end end end