restly 0.0.1.alpha.7 → 0.0.1.alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 ||= cache_options
21
+ connection.cache_options = cache_options unless connection.cache_options.present?
22
22
  connection
23
23
  end
24
24
 
@@ -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('_')
@@ -1,3 +1,3 @@
1
1
  module Restly
2
- VERSION = "0.0.1.alpha.7"
2
+ VERSION = "0.0.1.alpha.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.alpha.7
4
+ version: 0.0.1.alpha.8
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: