lib/mirage/client/client.rb in mirage-3.0.0.alpha.17 vs lib/mirage/client/client.rb in mirage-3.0.0
- old
+ new
@@ -9,10 +9,9 @@
attr_reader :url
def initialize options={:url => "http://localhost:7001"}, &block
if options.is_a?(String) && options =~ URI.regexp
- warn("Client.new(url): Deprecated usage, please use :url => url | :port => port")
@url = options
elsif options.kind_of?(Hash) && options[:port]
@url = "http://localhost:#{options[:port]}"
elsif options.kind_of?(Hash) && options[:url]
@url = options[:url]
\ No newline at end of file