lib/maestrano.rb in maestrano-1.0.1 vs lib/maestrano.rb in maestrano-1.0.2

- old
+ new

@@ -129,11 +129,11 @@ class Configuration attr_accessor :environment, :app, :sso, :api, :webhook, :connec def initialize - @environment = 'test' + @environment = 'production' # App config @app = OpenStruct.new({ host: 'http://localhost:3000' }) @@ -186,10 +186,10 @@ self.api.lang = 'ruby' self.api.lang_version = "#{RUBY_VERSION} p#{RUBY_PATCHLEVEL} (#{RUBY_RELEASE_DATE})" self.sso.idm ||= self.app.host self.sso.name_id_format ||= Maestrano::Saml::Settings::NAMEID_PERSISTENT self.sso.slo_enabled &&= self.sso.enabled - self.connec.base_path ||= '/api/v2' unless self.environment == 'test' # Sandbox has a different endpoint + self.connec.base_path ||= '/api/v2' self.connec.timeout ||= 60 end # Transform legacy parameters into new parameter # style