lib/github_api/orgs.rb in github_api-0.6.0 vs lib/github_api/orgs.rb in github_api-0.6.1

- old
+ new

@@ -42,11 +42,11 @@ # github = Github.new oauth_token: '..' # github.orgs.list # def list(*args) params = args.extract_options! - _normalize_params_keys(params) + normalize! params response = if (user_name = params.delete("user")) get_request("/users/#{user_name}/orgs", params) else # For the authenticated user @@ -63,10 +63,11 @@ # github = Github.new # github.orgs.get 'github' # def get(org_name, params={}) _validate_presence_of org_name + normalize! params get_request("/orgs/#{org_name}", params) end alias :find :get # Edit organization @@ -88,11 +89,11 @@ # "location" => "San Francisco", # "name" => "github" # def edit(org_name, params={}) _validate_presence_of org_name - _normalize_params_keys(params) - _filter_params_keys(VALID_ORG_PARAM_NAMES, params) + normalize! params + filter! VALID_ORG_PARAM_NAMES, params patch_request("/orgs/#{org_name}", params) end end # Orgs