lib/github_api/events.rb in github_api-0.5.2 vs lib/github_api/events.rb in github_api-0.5.3

- old
+ new

@@ -31,11 +31,11 @@ # = Examples # github = Github.new # github.events.repository 'user-name', 'repo-name' # github.events.repository 'user-name', 'repo-name' { |event| ... } # - def repository(user_name=nil, repo_name=nil, params={}) + def repository(user_name, repo_name, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? _normalize_params_keys(params) response = get_request("/repos/#{user}/#{repo}/events", params) @@ -52,11 +52,11 @@ # = Examples # github = Github.new # github.events.issue 'user-name', 'repo-name' # github.events.issue 'user-name', 'repo-name' { |event| ... } # - def issue(user_name=nil, repo_name=nil, params={}) + def issue(user_name, repo_name, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? _normalize_params_keys(params) response = get_request("/repos/#{user}/#{repo}/issues/events", params) @@ -72,10 +72,10 @@ # = Examples # github = Github.new # github.events.network 'user-name', 'repo-name' # github.events.network 'user-name', 'repo-name' { |event| ... } # - def network(user_name=nil, repo_name=nil, params={}) + def network(user_name, repo_name, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? _normalize_params_keys(params) response = get_request("/networks/#{user}/#{repo}/events", params)