Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix edit_gist doc, add example

  • Loading branch information...
commit ba89b17c4aecc97b47369e633b8af82f5e49361b 1 parent 4fb180d
@joeyw joeyw authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/octokit/client/gists.rb
View
6 lib/octokit/client/gists.rb
@@ -65,7 +65,7 @@ def create_gist(options={})
# @param options [Hash] Gist information.
# @option options [String] :description
# @option options [Boolean] :public Sets gist visibility
- # @option options [Array<Hash>] :files Files that make up this gist. Keys
+ # @option options [Hash] :files Files that make up this gist. Keys
# should be the filename, the value a Hash with a :content key with text
# content of the Gist.
#
@@ -75,6 +75,10 @@ def create_gist(options={})
# @return
# [Hashie::Mash] Newly created gist info
# @see http://developer.github.com/v3/gists/#edit-a-gist
+ # @example Update a gist
+ # @client.edit_gist('some_id', {
+ # :files => {"boo.md" => {"content" => "updated stuff"}}
+ # })
def edit_gist(gist, options={})
patch "gists/#{Gist.new gist}", options
end
Please sign in to comment.
Something went wrong with that request. Please try again.