lib/github_api/arguments.rb in github_api-0.9.7 vs lib/github_api/arguments.rb in github_api-0.10.0
- old
+ new
@@ -43,10 +43,10 @@
# Parse arguments to allow for flexible api calls.
# Arguments can be part of parameters hash or be simple string arguments.
#
def parse(*args, &block)
- options = args.extract_options!
+ options = ParamsHash.new(args.extract_options!)
normalize! options
if !args.size.zero?
parse_arguments *args
else