lib/3scale_toolbox/remotes.rb in 3scale_toolbox-1.0.0 vs lib/3scale_toolbox/remotes.rb in 3scale_toolbox-1.0.1

- old
+ new

@@ -2,9 +2,11 @@ class Remotes class << self def from_uri(uri_str) uri = Helper.parse_uri(uri_str) + raise ThreeScaleToolbox::InvalidUrlError, "invalid url: #{uri_str}" unless uri.kind_of?(URI::HTTP) + authentication = uri.user uri.user = '' { authentication: authentication, endpoint: uri.to_s } end end