lib/ably/rest/client.rb in ably-0.8.4 vs lib/ably/rest/client.rb in ably-0.8.5

- old
+ new

@@ -142,11 +142,11 @@ end raise ArgumentError, 'Protocol is invalid. Must be either :msgpack or :json' unless [:msgpack, :json].include?(@protocol) token_params = options.delete(:token_params) || {} @options = options - @auth = Auth.new(self, options, token_params) + @auth = Auth.new(self, token_params, options) @channels = Ably::Rest::Channels.new(self) @encoders = [] options.freeze @@ -356,10 +356,10 @@ def reauthorise_on_authorisation_failure yield rescue Ably::Exceptions::TokenExpired => e if auth.token_renewable? - auth.authorise force: true + auth.authorise({}, force: true) yield else raise e end end