lib/yao/client.rb in yao-0.11.3 vs lib/yao/client.rb in yao-0.12.0
- old
+ new
@@ -105,11 +105,14 @@
end
# @param [String]
def reset_client(new_endpoint=nil)
set = ClientSet.new
- set.register_endpoints("default" => {public_url: new_endpoint || Yao.config.endpoint})
+ endpoint = {
+ "default" => {public_url: new_endpoint || Yao.config.endpoint}
+ }
+ set.register_endpoints(endpoint)
self.default_client = set
end
# generate Hash options for Faraday.new
# @return [Hash]
@@ -142,9 +145,11 @@
# @return [Yao::Client::ClientSet]
def self.default_client
Yao::Client.default_client
end
+
+ Yao.config.param :default_domain, 'default'
Yao.config.param :noop_on_write, false
Yao.config.param :raise_on_write, false
Yao.config.param :debug, false