lib/github_api/gists.rb in github_api-0.5.4 vs lib/github_api/gists.rb in github_api-0.6.0

- old
+ new

@@ -5,12 +5,10 @@ extend AutoloadHelper autoload_all 'github_api/gists', :Comments => 'comments' - # include Github::Gists::Comments - REQUIRED_GIST_INPUTS = %w[ description public files content @@ -61,13 +59,11 @@ # = Examples # github = Github.new :oauth_token => '...' # github.gists.starred # def starred(params={}) - process_params do - normalize params - end + _normalize_params_keys(params) response = get_request("/gists/starred", params) return response unless block_given? response.each { |el| yield el } end @@ -107,10 +103,10 @@ # } # } # def create(params={}) _normalize_params_keys(params) - _validate_inputs(REQUIRED_GIST_INPUTS, params) + assert_required_keys(REQUIRED_GIST_INPUTS, params) post_request("/gists", params) end # Edit a gist