lib/github_api/repos/keys.rb in github_api-0.5.4 vs lib/github_api/repos/keys.rb in github_api-0.6.0
- old
+ new
@@ -54,10 +54,10 @@
def create(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)
_filter_params_keys(VALID_KEY_PARAM_NAMES, params)
- _validate_inputs(VALID_KEY_PARAM_NAMES, params)
+ assert_required_keys(VALID_KEY_PARAM_NAMES, params)
post_request("/repos/#{user}/#{repo}/keys", params)
end
# Edit a key