lib/norseal/api.rb in norseal-api-0.1.6 vs lib/norseal/api.rb in norseal-api-0.1.7

- old
+ new

@@ -20,10 +20,11 @@ end def self.configure(host, api_key, &block) @api = Her::API.new - @api.setup :url => "https://#{host}/" do |c| + ssl_options = {ca_file: '/usr/lib/ssl/certs/ca-certificates.crt'} + @api.setup :url => "https://#{host}/", ssl: ssl_options do |c| c.use Norseal::Api::MyTokenAuth, token: api_key # c.use FaradayMiddleware::EncodeJson c.use Her::Middleware::AcceptJSON # c.use Her::Middleware::FirstLevelParseJSON