lib/launchdarkly_api/configuration.rb in launchdarkly_api-2.0.10 vs lib/launchdarkly_api/configuration.rb in launchdarkly_api-2.0.27

- old
+ new

@@ -1,14 +1,14 @@ =begin #LaunchDarkly REST API #Build custom integrations with the LaunchDarkly REST API -OpenAPI spec version: 2.0.10 +OpenAPI spec version: 2.0.27 Contact: support@launchdarkly.com Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.8 =end require 'uri' @@ -168,10 +168,10 @@ end def base_path=(base_path) # Add leading and trailing slashes to base_path @base_path = "/#{base_path}".gsub(/\/+/, '/') - @base_path = "" if @base_path == "/" + @base_path = '' if @base_path == '/' end def base_url url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') URI.encode(url)