Skip to content
Browse files

DataObjects::URI.new with arguments is deprecated, use a Hash of URI …

…components
  • Loading branch information...
1 parent 2b5c435 commit d674255fae9ba6e9269290626cf97579d3b7a88d @snaggled committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/dm-do-adapter/adapter.rb
View
4 lib/dm-do-adapter/adapter.rb
@@ -228,7 +228,7 @@ def normalized_uri
# Better error message in case port is no Numeric value
port = @options[:port].nil? ? nil : @options[:port].to_int
- DataObjects::URI.new(
+ DataObjects::URI.new({
:scheme => @options[:adapter],
:user => @options[:user] || @options[:username],
:password => @options[:password],
@@ -237,7 +237,7 @@ def normalized_uri
:path => @options[:path] || @options[:database],
:query => query,
:fragment => @options[:fragment]
- ).freeze
+ }).freeze
end
end

0 comments on commit d674255

Please sign in to comment.
Something went wrong with that request. Please try again.