[Groonga-commit] groonga/gcs [master] package: work with Ruby 1.8

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 21日 (木) 16:57:57 JST


Kouhei Sutou	2012-06-21 16:57:57 +0900 (Thu, 21 Jun 2012)

  New Revision: 97c2b37becb619a4e6b7135ded0b51887f684447
  https://github.com/groonga/gcs/commit/97c2b37becb619a4e6b7135ded0b51887f684447

  Log:
    package: work with Ruby 1.8

  Modified files:
    packages/all-in-one/Rakefile

  Modified: packages/all-in-one/Rakefile (+2 -1)
===================================================================
--- packages/all-in-one/Rakefile    2012-06-21 16:54:37 +0900 (e751952)
+++ packages/all-in-one/Rakefile    2012-06-21 16:57:57 +0900 (28e6d63)
@@ -24,7 +24,8 @@ def download(url)
   return downloaded_path if downloaded_path.exist?
 
   url.open do |input|
-    downloaded_path.open("w", :encoding => "binary") do |output|
+    downloaded_path.open("w") do |output|
+      output.set_encoding("binary") if output.respond_to?(:set_encoding)
       buffer = ""
       while input.read(4096, buffer)
         output.print(buffer)
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下載 



Groonga-commit メーリングリストの案内
Back to archive index