lib/phrase/api/config.rb in phrase-0.4.13 vs lib/phrase/api/config.rb in phrase-0.4.14

- old
+ new

@@ -15,12 +15,16 @@ def self.api_path_prefix "/api/#{Phrase::API_VERSION}" end def self.api_use_ssl? - (ENV.fetch("PHRASE_API_USE_SSL", "1") == "1") + ENV.fetch("PHRASE_API_USE_SSL", "1") == "1" end def self.api_max_retries ENV.fetch("PHRASE_API_MAX_RETRIES", 3).to_i end -end \ No newline at end of file + + def self.skip_ssl_validation? + ENV.fetch("PHRASE_API_SKIP_SSL_VALIDATION", "0") == "1" + end +end