lib/github_api/repos/keys.rb in github_api-0.9.6 vs lib/github_api/repos/keys.rb in github_api-0.9.7

- old
+ new

@@ -15,13 +15,12 @@ # keys = Github::Repos::Keys.new user: 'user-name', repo: 'repo-name' # keys.list # def list(*args) arguments(args, :required => [:user, :repo]) - params = arguments.params - response = get_request("/repos/#{user}/#{repo}/keys", params) + response = get_request("/repos/#{user}/#{repo}/keys", arguments.params) return response unless block_given? response.each { |el| yield el } end alias :all :list @@ -31,12 +30,11 @@ # github = Github.new # github.repos.keys.get 'user-name', 'repo-name', 'key-id' # def get(*args) arguments(args, :required => [:user, :repo, :key_id]) - params = arguments.params - get_request("/repos/#{user}/#{repo}/keys/#{key_id}", params) + get_request("/repos/#{user}/#{repo}/keys/#{key_id}", arguments.params) end alias :find :get # Create a key #