OSDN Git Service

Enable SSL verification.
authorTatsuki Sugiura <sugi@nemui.org>
Wed, 23 Mar 2016 09:45:17 +0000 (18:45 +0900)
committerTatsuki Sugiura <sugi@nemui.org>
Wed, 23 Mar 2016 09:45:17 +0000 (18:45 +0900)
lib/osdn/cli/runner.rb

index 9fe7f41..ddc617c 100644 (file)
@@ -14,9 +14,8 @@ module OSDN
         OSDNClient.configure do |config|
           ENV['OSDN_API_OVERRIDE_HOST'] and
             config.host = ENV['OSDN_API_OVERRIDE_HOST']
-          #ENV['OSDN_API_SKIP_SSL_VERIFY'].to_s =~ /^(1|t(rue)?|y(es)?)$/i and
-          #  config.verify_ssl = false
-          config.verify_ssl = false
+          ENV['OSDN_API_SKIP_SSL_VERIFY'].to_s =~ /^(1|t(rue)?|y(es)?)$/i and
+            config.verify_ssl = false
         end
       end
       attr_reader :logger