cache 0.3.1 → 0.3.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.
- data/CHANGELOG +6 -0
- data/Gemfile +2 -1
- data/lib/cache/active_support_cache_file_store.rb +10 -0
- data/lib/cache/version.rb +1 -1
- data/test/test_active_support_cache_file_store.rb +16 -0
- metadata +5 -2
data/CHANGELOG
CHANGED
data/Gemfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
source
|
1
|
+
source :rubygems
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in cache.gemspec
|
4
4
|
gemspec
|
@@ -10,3 +10,4 @@ gem 'dalli'
|
|
10
10
|
gem 'memcached'
|
11
11
|
gem 'memcache-client'
|
12
12
|
gem 'rake'
|
13
|
+
gem 'rack' # for ActiveSupport::Cache::FileStore of all things
|
data/lib/cache/version.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'helper'
|
2
|
+
require 'tmpdir'
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
require 'active_support/all'
|
6
|
+
require 'active_support/cache/file_store'
|
7
|
+
|
8
|
+
class TestActiveSupportCacheFileStore < Test::Unit::TestCase
|
9
|
+
def raw_client
|
10
|
+
tmpdir = File.join(Dir.tmpdir, "Cache-TestActiveSupportCacheFileStore-#{rand(1e11)}")
|
11
|
+
FileUtils.mkdir_p tmpdir
|
12
|
+
ActiveSupport::Cache::FileStore.new tmpdir
|
13
|
+
end
|
14
|
+
|
15
|
+
include SharedTests
|
16
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-04-
|
13
|
+
date: 2012-04-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- cache.gemspec
|
69
69
|
- lib/cache.rb
|
70
70
|
- lib/cache/active_support_cache_dalli_store.rb
|
71
|
+
- lib/cache/active_support_cache_file_store.rb
|
71
72
|
- lib/cache/active_support_cache_memory_store.rb
|
72
73
|
- lib/cache/active_support_cache_store.rb
|
73
74
|
- lib/cache/config.rb
|
@@ -81,6 +82,7 @@ files:
|
|
81
82
|
- test/helper.rb
|
82
83
|
- test/profile/benchmark.rb
|
83
84
|
- test/shared_tests.rb
|
85
|
+
- test/test_active_support_cache_file_store.rb
|
84
86
|
- test/test_dalli_storage.rb
|
85
87
|
- test/test_dalli_store_storage.rb
|
86
88
|
- test/test_default_storage.rb
|
@@ -119,6 +121,7 @@ test_files:
|
|
119
121
|
- test/helper.rb
|
120
122
|
- test/profile/benchmark.rb
|
121
123
|
- test/shared_tests.rb
|
124
|
+
- test/test_active_support_cache_file_store.rb
|
122
125
|
- test/test_dalli_storage.rb
|
123
126
|
- test/test_dalli_store_storage.rb
|
124
127
|
- test/test_default_storage.rb
|