lib/launchdarkly_api/configuration.rb in launchdarkly_api-5.0.1 vs lib/launchdarkly_api/configuration.rb in launchdarkly_api-5.0.2
- old
+ new
@@ -1,18 +1,18 @@
=begin
#LaunchDarkly REST API
#Build custom integrations with the LaunchDarkly REST API
-OpenAPI spec version: 5.0.1
+OpenAPI spec version: 5.0.2
Contact: support@launchdarkly.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
-Swagger Codegen version: 2.4.8
+Swagger Codegen version: 2.4.17
=end
-require 'uri'
+require 'addressable/uri'
module LaunchDarklyApi
class Configuration
# Defines url scheme
attr_accessor :scheme
@@ -173,10 +173,10 @@
@base_path = '' if @base_path == '/'
end
def base_url
url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
- URI.encode(url)
+ Addressable::URI.encode(url)
end
# Gets API key (with prefix if set).
# @param [String] param_name the parameter name of API key auth
def api_key_with_prefix(param_name)