lib/travis/client/session.rb in travis-1.5.7.travis.345.4 vs lib/travis/client/session.rb in travis-1.5.7
- old
+ new
@@ -2,10 +2,11 @@
require 'travis/version'
require 'faraday'
require 'faraday_middleware'
require 'travis/tools/system'
+require 'travis/tools/assets'
begin
require 'typhoeus/adapters/faraday' unless Travis::Tools::System.windows?
rescue LoadError
end
@@ -13,10 +14,11 @@
require 'json'
module Travis
module Client
class Session
- SSL_OPTIONS = { :ca_file => File.expand_path("../../cacert.pem", __FILE__) }
+ SSL_OPTIONS = { :ca_file => Tools::Assets['cacert.pem'] }
+
include Methods
attr_reader :connection, :headers, :access_token, :instruments, :faraday_adapter, :agent_info, :ssl
def initialize(options = Travis::Client::ORG_URI)
@headers = {}