basiccache 0.0.24 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/basiccache.gemspec +1 -1
- data/lib/caches/timecache.rb +1 -1
- data/lib/methodcacher.rb +3 -0
- data/spec/caches/timecache_spec.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0f3a4de7f2c0ad75eca02cafac0fef3cac192ef
|
4
|
+
data.tar.gz: 8d8817784a4f884df4ab9ea0f3f874bd5cf5ac50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9a2895f54ea2488f6b37b5dbe2f24e5d0c52e4df3cd332abf6161a0c91c98baf7811c64a3b5d1ba6c53c07f99b9a312fd1d669f3a59c2c1cf162ddc8570bf9a
|
7
|
+
data.tar.gz: 7565878ab0031d1afa91d40421e8aee40b847f7063db972fae36ba43de15b4c530e24716f0b418599a110a96c9b7bb86a0c72086fd1e1b732626d7dc00b59f00
|
data/Gemfile.lock
CHANGED
data/basiccache.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'basiccache'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.25'
|
4
4
|
s.date = Time.now.strftime("%Y-%m-%d")
|
5
5
|
s.summary = 'Provides a minimal key/value caching layer'
|
6
6
|
s.description = "Allows an application to dynamically cache values and retrieve them later"
|
data/lib/caches/timecache.rb
CHANGED
data/lib/methodcacher.rb
CHANGED
@@ -18,7 +18,7 @@ describe BasicCache::TimeCache do
|
|
18
18
|
end
|
19
19
|
it 'has a set lifetime' do
|
20
20
|
expect(cache.lifetime).to eq 1
|
21
|
-
expect(BasicCache::TimeCache.new.lifetime).to eq
|
21
|
+
expect(BasicCache::TimeCache.new.lifetime).to eq 60
|
22
22
|
end
|
23
23
|
describe '#size' do
|
24
24
|
it 'shows the size of the cache' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: basiccache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -190,3 +190,4 @@ test_files:
|
|
190
190
|
- spec/caches/timecache_spec.rb
|
191
191
|
- spec/methodcacher_spec.rb
|
192
192
|
- spec/spec_helper.rb
|
193
|
+
has_rdoc:
|