fix verification
[from now] 2014/04/24 20:49:14

diff --git a/bin/update.rb b/bin/update.rb
index f0f96db..9b9d05e 100755
--- a/bin/update.rb
+++ b/bin/update.rb
@@ -12,7 +12,10 @@ end.parse!

 Mechanize.new do |agent|
   agent.user_agent_alias = 'Mac Safari'
+
   agent.verify_mode = OpenSSL::SSL::VERIFY_NONE
+  agent.ssl_version = 'TLSv1'
+
   agent.add_auth(ENV['UPDATE_URL'], ENV['UPDATE_AUTH_USER'], ENV['UPDATE_AUTH_PASSWORD'])

   agent.get(ENV['UPDATE_URL']) do |login_page|
[from now] 2014/04/24 21:58:44

diff --git a/bin/update.rb b/bin/update.rb
index 9b9d05e..e3556b8 100755
--- a/bin/update.rb
+++ b/bin/update.rb
@@ -12,10 +12,7 @@ end.parse!

 Mechanize.new do |agent|
   agent.user_agent_alias = 'Mac Safari'
-
-  agent.verify_mode = OpenSSL::SSL::VERIFY_NONE
   agent.ssl_version = 'TLSv1'
-
   agent.add_auth(ENV['UPDATE_URL'], ENV['UPDATE_AUTH_USER'], ENV['UPDATE_AUTH_PASSWORD'])

   agent.get(ENV['UPDATE_URL']) do |login_page|