lib/github_api/repos/keys.rb in github_api-0.7.1 vs lib/github_api/repos/keys.rb in github_api-0.7.2

- old
+ new

@@ -11,11 +11,11 @@ # github = Github.new # github.repos.keys.list 'user-name', 'repo-name' # github.repos.keys.list 'user-name', 'repo-name' { |key| ... } # def list(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}/keys", params) return response unless block_given? @@ -28,11 +28,11 @@ # = Examples # github = Github.new # github.repos.keys.get 'user-name', 'repo-name', 'key-id' # def get(user_name, repo_name, key_id, params={}) - _update_user_repo_params(user_name, repo_name) + set :user => user_name, :repo => repo_name assert_presence_of user, repo, key_id normalize! params get_request("/repos/#{user}/#{repo}/keys/#{key_id}", params) end @@ -49,11 +49,11 @@ # github.repos.keys.create 'user-name', 'repo-name', # "title" => "octocat@octomac", # "key" => "ssh-rsa AAA..." # def create(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 filter! VALID_KEY_PARAM_NAMES, params assert_required_keys(VALID_KEY_PARAM_NAMES, params) @@ -71,11 +71,11 @@ # github.repos.keys.edit 'user-name', 'repo-name', # "title" => "octocat@octomac", # "key" => "ssh-rsa AAA..." # def edit(user_name, repo_name, key_id, params={}) - _update_user_repo_params(user_name, repo_name) + set :user => user_name, :repo => repo_name assert_presence_of user, repo, key_id normalize! params filter! VALID_KEY_PARAM_NAMES, params @@ -87,10 +87,10 @@ # = Examples # @github = Github.new # @github.repos.keys.delete 'user-name', 'repo-name', 'key-id' # def delete(user_name, repo_name, key_id, params={}) - _update_user_repo_params(user_name, repo_name) + set :user => user_name, :repo => repo_name assert_presence_of user, repo, key_id normalize! params delete_request("/repos/#{user}/#{repo}/keys/#{key_id}", params) end