sqlcached_client 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b42b69a352eb18ba2eac102ceae33dba1af5a53e
4
- data.tar.gz: f96a6dfe6b32e75a0b97df62a4d1c1f882e41359
3
+ metadata.gz: c1d7081154f231b08f1e85a1fa5a7104fc0fd3fd
4
+ data.tar.gz: e9417935129734d01bb8963812dc7bad64f06d1d
5
5
  SHA512:
6
- metadata.gz: 965c36bcdbe96a4163fc8fa956d3f5868405f78c7a0cb68326f0ed81cd9ef25a3ccfccf8389d6a8159582c3433de6d5d510c0d5aa6c715095b3bf5d9e9ac1b61
7
- data.tar.gz: bd6506ec5d6a2e531c32bdc5a13e9173d914d736210c76f01c3947b192541c5d9979059db0ebb9a17392ccc117d9babae84847c9a40f7b10aa0488bbd56222a7
6
+ metadata.gz: 5209a595a579fe676cafb93a560c3029a109a4bfc68aac344e909191fbae6b8693aa5d51b39db251bca2c59bed59a6323f103ca57d6ecb3f687858ba33af1d28
7
+ data.tar.gz: 6114598d416b573c17c69bc49084f760ac0aa06f126bae6061c8dabb1f2179b4e851de3505be98fb37056953d83c5a983d7bd785a4f426c3fd32f8fa5523dbd0
@@ -48,7 +48,7 @@ module SqlcachedClient
48
48
  def server(config = nil)
49
49
  if config.nil?
50
50
  @server ||
51
- if (superclass = ancestors[1]).respond_to?(:server)
51
+ if superclass = ancestors[1..-1].detect { |a| a.respond_to?(:server) }
52
52
  superclass.server
53
53
  else
54
54
  nil
@@ -193,7 +193,7 @@ module SqlcachedClient
193
193
  def cache(seconds = nil)
194
194
  if seconds.nil?
195
195
  @cache ||
196
- if (superclass = ancestors[1]).respond_to?(:cache)
196
+ if superclass = ancestors[1..-1].detect { |a| a.respond_to?(:cache) }
197
197
  superclass.cache
198
198
  else
199
199
  true
@@ -1,3 +1,3 @@
1
1
  module SqlcachedClient
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlcached_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Maestroni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-31 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport