Navigation Menu

Skip to content

Commit

Permalink
Fix to work with the latest github_api
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Aug 29, 2012
1 parent 9c7119b commit 0cdbec7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/upload-to-github.rb
Expand Up @@ -21,11 +21,11 @@
github = Github.new(:login => user, :password => password)
files.each do |file|
content_type = MIME::Types.type_for(file)[0].to_s
resource = github.repos.create_download("mroonga", "mroonga",
:name => File.basename(file),
:size => File.size(file),
:description => File.basename(file),
:content_type => content_type)
resource = github.repos.downloads.create("mroonga", "mroonga",
:name => File.basename(file),
:size => File.size(file),
:description => File.basename(file),
:content_type => content_type)
p resource

system("curl",
Expand Down

0 comments on commit 0cdbec7

Please sign in to comment.