Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/vimeo/advanced/base.rb
View
6 lib/vimeo/advanced/base.rb
@@ -18,6 +18,8 @@ def create_api_method(method, vimeo_method, options={})
raise ArgumentError, 'Required parameters must be an array.' unless options[:required].is_a? Array
raise ArgumentError, 'Optional parameters must be an array.' unless options[:optional].is_a? Array
+ options[:optional] = options[:optional] + options[:required]
+ options[:required] = []
required = options[:required].map { |r| r.to_s }.join(",")
optional = options[:optional].map { |o| ":#{o} => nil" }.join(",")
authorized = options.fetch(:authorized, true)
@@ -102,7 +104,7 @@ def make_request(options, authorized)
end
response = Crack::JSON.parse(raw_response)
- validate_response! response
+ #validate_response! response
response
end
@@ -123,4 +125,4 @@ def validate_response!(response)
end # Base
end # Advanced
-end # Vimeo
+end # Vimeo

No commit comments for this range

Something went wrong with that request. Please try again.