h2ocube_rails_cache 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 657f78bdaacc3a23c1818efcb2ac4c89ca56b931
4
- data.tar.gz: 55584cf5e7d903938d0574afa7d46cb5320c8fda
3
+ metadata.gz: 852632a99122d3c7d6e43f558eae3898224cca40
4
+ data.tar.gz: debe972dfae26a1bf1d03db710e01fe187d01ae4
5
5
  SHA512:
6
- metadata.gz: c5553fe160a03a59bfb31515f1edf98e30842291519e7d841b977024b8b230bf6b0107f6ae42d91a58c22e3f9e91a0ae415a0720941554376643c64a14310aa1
7
- data.tar.gz: 026a45b3d11b114da8f6824ce9f128d5a8ae4a9db101f07e74dc8889d6cf7d3a8cd8a02270c9d080cb8e38674074003b93a17a22665ef4f03556a0977e262cbb
6
+ metadata.gz: d5cfbff54d12754f1696e340a7f944d74d1ac99fe889d66d6037b334e8f5989f80948b79b6a17c51d401501127e578b9b54f67d888c2080928c9863ae6b0d1ad
7
+ data.tar.gz: 89f781daf9a6948600a8d0c4f640ed81428e9ec8b827810f88cd0eea52cda64e61a35ee26cdb1a427b94f2d56ad59c2349fc1f3c23e96fc0bbf778a000d6869f
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = 'h2ocube_rails_cache'
7
- gem.version = '0.0.6'
7
+ gem.version = '0.0.7'
8
8
  gem.authors = ['Ben']
9
9
  gem.email = ['ben@h2ocube.com']
10
10
  gem.description = 'Just an redis cache.'
@@ -89,6 +89,7 @@ module ActiveSupport
89
89
  private
90
90
 
91
91
  def dump_entry entry
92
+ entry = entry.call if entry.class.to_s == 'Proc'
92
93
  case entry.class.to_s
93
94
  when 'String', 'Fixnum', 'Float'
94
95
  entry
data/test/cache_test.rb CHANGED
@@ -67,6 +67,9 @@ describe 'h2ocube_rails_cache' do
67
67
 
68
68
  Rails.cache.write 'Float', 1.1
69
69
  Rails.cache.read('Float').must_be_kind_of Float
70
+
71
+ Rails.cache.write 'Proc', Proc.new{ 1 }
72
+ Rails.cache.read('Proc').must_equal 1
70
73
  end
71
74
 
72
75
  it 'increment' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: h2ocube_rails_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-28 00:00:00.000000000 Z
11
+ date: 2013-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-namespace