restly 0.0.1.alpha.7 → 0.0.1.alpha.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/restly/base/includes.rb +1 -1
- data/lib/restly/connection.rb +1 -1
- data/lib/restly/version.rb +1 -1
- metadata +1 -1
data/lib/restly/base/includes.rb
CHANGED
@@ -18,7 +18,7 @@ module Restly::Base::Includes
|
|
18
18
|
def connection
|
19
19
|
connection = @connection || Restly::Connection.tokenize(client, current_token)
|
20
20
|
connection.cache ||= cache
|
21
|
-
connection.cache_options
|
21
|
+
connection.cache_options = cache_options unless connection.cache_options.present?
|
22
22
|
connection
|
23
23
|
end
|
24
24
|
|
data/lib/restly/connection.rb
CHANGED
@@ -72,7 +72,7 @@ class Restly::Connection < OAuth2::AccessToken
|
|
72
72
|
private
|
73
73
|
|
74
74
|
def cached_request(verb, path, opts={}, &block)
|
75
|
-
options_hash = { verb: verb, token: token, opts: opts, block: block }
|
75
|
+
options_hash = { verb: verb, token: token, opts: opts, cache_opts: cache_options, block: block }
|
76
76
|
options_packed = [Marshal.dump(options_hash)].pack('m')
|
77
77
|
options_hex = Digest::MD5.hexdigest(options_packed)
|
78
78
|
cache_key = [path.parameterize, options_hex].join('_')
|
data/lib/restly/version.rb
CHANGED