lib/statsmix.rb in statsmix-0.1.8 vs lib/statsmix.rb in statsmix-0.1.9

- old
+ new

@@ -3,11 +3,10 @@ require 'rubygems' require 'json' class StatsMix BASE_URI = 'https://statsmix.com/api/v2/' - RootCA = '/etc/ssl/certs' GEM_VERSION = File.exist?('../VERSION') ? File.read('../VERSION') : "" # Track an event # # Required: name of metric @@ -267,16 +266,10 @@ # Resources available: stats, metrics, TODO: profiles @url = URI.parse(BASE_URI + resource) @connection = Net::HTTP.new(@url.host, @url.port) @connection.use_ssl = (@url.scheme == 'https') - if File.directory? RootCA - @connection.ca_path = RootCA - @connection.verify_mode = OpenSSL::SSL::VERIFY_PEER - @connection.verify_depth = 5 - else - @connection.verify_mode = OpenSSL::SSL::VERIFY_NONE - end + @connection.verify_mode = OpenSSL::SSL::VERIFY_NONE @request = Hash.new @request["User-Agent"] = @user_agent @params = Hash.new @params[:api_key] = @api_key \ No newline at end of file