lib/github_api/users.rb in github_api-0.6.0 vs lib/github_api/users.rb in github_api-0.6.1
- old
+ new
@@ -52,11 +52,11 @@
# github = Github.new oauth_token: '...'
# github.users.get
#
def get(*args)
params = args.extract_options!
- _normalize_params_keys(params)
+ normalize! params
if user_name = params.delete('user')
get_request("/users/#{user_name}", params)
else
get_request("/user", params)
end
@@ -85,11 +85,11 @@
# "hireable" => true,
# "bio" => "There once..."
#
def update(*args)
params = args.extract_options!
- _normalize_params_keys(params)
- _filter_params_keys(VALID_USER_PARAMS_NAMES, params)
+ normalize! params
+ filter! VALID_USER_PARAMS_NAMES, params
patch_request("/user", params)
end
end # Users
end # Github