File tree Expand file tree Collapse file tree
lib/github_api/client/activity Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33module Github
44 # Watching a Repository registers the user to receive notificactions on new
5- # discussions, as well as events in the user’ s activity feed.
5+ # discussions, as well as events in the user' s activity feed.
66 class Client ::Activity ::Watching < API
77 # List repository watchers
88 #
@@ -21,7 +21,7 @@ def list(*args)
2121 return response unless block_given?
2222 response . each { |el | yield el }
2323 end
24- alias :all :list
24+ alias_method :all , :list
2525
2626 # List repos being watched by a user
2727 #
@@ -45,7 +45,7 @@ def watched(*args)
4545 response = if ( user_name = params . delete ( 'user' ) )
4646 get_request ( "/users/#{ user_name } /subscriptions" , params )
4747 else
48- get_request ( " /user/subscriptions" , params )
48+ get_request ( ' /user/subscriptions' , params )
4949 end
5050 return response unless block_given?
5151 response . each { |el | yield el }
You can’t perform that action at this time.
0 commit comments