lib/github_api/events.rb in github_api-0.7.1 vs lib/github_api/events.rb in github_api-0.7.2

- old
+ new

@@ -32,11 +32,11 @@ # github = Github.new # github.events.repository 'user-name', 'repo-name' # github.events.repository 'user-name', 'repo-name' { |event| ... } # def repository(user_name, repo_name, params={}) - _update_user_repo_params(user_name, repo_name) + set :user => user_name, :repo => repo_name assert_presence_of user, repo normalize! params response = get_request("/repos/#{user}/#{repo}/events", params) return response unless block_given? @@ -53,11 +53,11 @@ # github = Github.new # github.events.issue 'user-name', 'repo-name' # github.events.issue 'user-name', 'repo-name' { |event| ... } # def issue(user_name, repo_name, params={}) - _update_user_repo_params(user_name, repo_name) + set :user => user_name, :repo => repo_name assert_presence_of user, repo normalize! params response = get_request("/repos/#{user}/#{repo}/issues/events", params) return response unless block_given? @@ -73,10 +73,10 @@ # github = Github.new # github.events.network 'user-name', 'repo-name' # github.events.network 'user-name', 'repo-name' { |event| ... } # def network(user_name, repo_name, params={}) - _update_user_repo_params(user_name, repo_name) + set :user => user_name, :repo => repo_name assert_presence_of user, repo normalize! params response = get_request("/networks/#{user}/#{repo}/events", params) return response unless block_given?