lib/github_api/issues/events.rb in github_api-0.7.1 vs lib/github_api/issues/events.rb in github_api-0.7.2
- old
+ new
@@ -19,11 +19,11 @@
# = Examples
# github = Github.new
# github.issues.events.list 'user-name', 'repo-name'
#
def list(user_name, repo_name, issue_id=nil, params={})
- _update_user_repo_params(user_name, repo_name)
+ set :user => user_name, :repo => repo_name
assert_presence_of user, repo
normalize! params
response = if issue_id
get_request("/repos/#{user}/#{repo}/issues/#{issue_id}/events", params)
@@ -40,10 +40,10 @@
# = Examples
# github = Github.new
# github.issues.events.get 'user-name', 'repo-name', 'event-id'
#
def get(user_name, repo_name, event_id, params={})
- _update_user_repo_params(user_name, repo_name)
+ set :user => user_name, :repo => repo_name
assert_presence_of user, repo, event_id
normalize! params
get_request("/repos/#{user}/#{repo}/issues/events/#{event_id}")
end