[Groonga-commit] ranguba/rroonga at f4ae14f [master] Simplify

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Mar 27 13:02:35 JST 2016


Kouhei Sutou	2016-03-27 13:02:35 +0900 (Sun, 27 Mar 2016)

  New Revision: f4ae14f2e19eec821274ed029f67115a98a8eeab
  https://github.com/ranguba/rroonga/commit/f4ae14f2e19eec821274ed029f67115a98a8eeab

  Message:
    Simplify

  Modified files:
    ext/groonga/extconf.rb

  Modified: ext/groonga/extconf.rb (+1 -5)
===================================================================
--- ext/groonga/extconf.rb    2016-03-27 13:02:02 +0900 (0768dde)
+++ ext/groonga/extconf.rb    2016-03-27 13:02:35 +0900 (94e1bd9)
@@ -84,18 +84,14 @@ def download(url)
   if File.exist?(base_name)
     message(" skip (use downloaded file)\n")
   else
-
+    options = {}
     proxy_env = ENV["http_proxy"]
     if proxy_env
       proxy_url = URI.parse(proxy_env)
-    end
-    options = {}
-    if proxy_url
       if proxy_url.user
         options = {:proxy_http_basic_authentication => [proxy_url, proxy_url.user, proxy_url.password]}
       end
     end
-
     open(url, "rb", options) do |input|
       File.open(base_name, "wb") do |output|
         while (buffer = input.read(1024))
-------------- next part --------------
HTML����������������������������...
Descargar 



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