[Groonga-mysql-commit] mroonga/mroonga [master] Fix to work with the latest github_api

Back to archive index

HAYASHI Kentaro null+****@clear*****
Wed Aug 29 16:01:41 JST 2012


HAYASHI Kentaro	2012-08-29 16:01:41 +0900 (Wed, 29 Aug 2012)

  New Revision: 0cdbec7a9f80fe7ad6773264a61838be4c142b4a
  https://github.com/mroonga/mroonga/commit/0cdbec7a9f80fe7ad6773264a61838be4c142b4a

  Log:
    Fix to work with the latest github_api

  Modified files:
    tools/upload-to-github.rb

  Modified: tools/upload-to-github.rb (+5 -5)
===================================================================
--- tools/upload-to-github.rb    2012-08-29 15:52:27 +0900 (c6445df)
+++ tools/upload-to-github.rb    2012-08-29 16:01:41 +0900 (572d65c)
@@ -21,11 +21,11 @@ puts
 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",
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-mysql-commit mailing list
Back to archive index