lib/housecanary/connection.rb in housecanary-ruby-0.1.1 vs lib/housecanary/connection.rb in housecanary-ruby-0.1.2

- old
+ new

@@ -14,10 +14,13 @@ def post(path, params = {}) HTTP.basic_auth(user: api_key, pass: api_secret).post(url(path), params) end def get(path, params = {}) - HTTP.basic_auth(user: api_key, pass: api_secret).get(url(path), params) + ctx = OpenSSL::SSL::SSLContext.new + ctx.verify_mode = OpenSSL::SSL::VERIFY_NONE + + HTTP.basic_auth(user: api_key, pass: api_secret).get(url(path), { ssl_context: ctx }.merge(params)) end private def url(path)