File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ def initialize(namespace, options = {})
241241 @deprecations = !!options . fetch ( :deprecations ) do
242242 ENV [ 'REDIS_NAMESPACE_DEPRECATIONS' ]
243243 end
244- @is_client_respond = @redis . respond_to? ( :_client )
244+ @has_new_client_method = @redis . respond_to? ( :_client )
245245 end
246246
247247 def deprecations?
@@ -253,13 +253,13 @@ def warning?
253253 end
254254
255255 def client
256- warn ( "The ` client` method broken changed by redis-rb 4.0.0, so we should use ` _client` method. " +
257- "`client` method in redis-namespace will remove 2.0 (at #{ call_site } ) ") if @is_client_respond
256+ warn ( "The client method is deprecated as of redis-rb 4.0.0, please use the new _client" +
257+ "method instead. Support for the old method will be removed in redis-namespace 2.0. ") if @has_new_client_method
258258 _client
259259 end
260260
261261 def _client
262- @is_client_respond ? @redis . _client : @redis . client # for redis-4.0.0
262+ @has_new_client_method ? @redis . _client : @redis . client # for redis-4.0.0
263263 end
264264
265265 # Ruby defines a now deprecated type method so we need to override it here
You can’t perform that action at this time.
0 commit comments