Skip to content

Instantly share code, notes, and snippets.

@testcollab
testcollab / an_example_usage.rb
Created September 22, 2011 23:31
Editing a File via the GitHub API v3
require 'editor.rb'
ed = Editor.new('testcollab/rails-test')
if ed.update_file('README.txt', 'my message', 'my new content')
ed.set_author('Scott', 'schacon@gmail.com')
ed.update_file('README.2.txt', 'my message', 'my new content')
end