lib/github_api/users/emails.rb in github_api-0.5.4 vs lib/github_api/users/emails.rb in github_api-0.6.0

- old
+ new

@@ -27,11 +27,11 @@ # = Examples # github = Github.new :oauth_token => '...' # github.users.emails.add "octocat@github.com", "support@github.com" # def add(*args) - params = _extract_parameters(args) + params = args.extract_options! _normalize_params_keys(params) params['data'] = args if args post_request("/user/emails", params) end alias :<< :add @@ -44,10 +44,10 @@ # = Examples # github = Github.new :oauth_token => '...' # github.users.emails.delete "octocat@github.com", "support@github.com" # def delete(*args) - params = _extract_parameters(args) + params = args.extract_options! _normalize_params_keys(params) params['data'] = args if args delete_request("/user/emails", params) end