Sha256: 6d2f6d59d207b617a92ad1e7c56d767310aecbc782ee43982cd421dd2bca813f
Contents?: true
Size: 906 Bytes
Versions: 1
Compression:
Stored size: 906 Bytes
Contents
module Braintree module SSLExpirationCheck # :nodoc: class << self attr_reader :ssl_expiration_dates_checked end def self.check_dates # :nodoc: { "QA" => qa_expiration_date, "Sandbox" => sandbox_expiration_date, "Production" => production_expiration_date }.each do |host, expiration_date| if Date.today + (3 * 30) > expiration_date Configuration.logger.warn "[Braintree] The SSL Certificate for the #{host} environment will expire on #{expiration_date}. Please check for an updated client library." end end @ssl_expiration_dates_checked = true end def self.production_expiration_date # :nodoc: Date.new(2012, 1, 8) end def self.sandbox_expiration_date # :nodoc: Date.new(2010, 12, 1) end def self.qa_expiration_date # :nodoc: Date.new(2010, 12, 1) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
braintree-1.1.0 | lib/braintree/ssl_expiration_check.rb |