cache 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 0.3.2 / 2012-04-11
2
+
3
+ * Enhancements
4
+
5
+ * Compatibility with Rails 3.2.x that uses ActiveSupport::Cache::FileStore
6
+
1
7
  0.3.1 / 2012-04-10
2
8
 
3
9
  * Bug fixes
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "http://rubygems.org"
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
@@ -0,0 +1,10 @@
1
+ require 'cache/active_support_cache_store'
2
+ module Cache::ActiveSupportCacheFileStore
3
+ def self.extended(base)
4
+ base.extend Cache::ActiveSupportCacheStore
5
+ end
6
+
7
+ def _stats
8
+ {}
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  class Cache
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -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.1
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-10 00:00:00.000000000 Z
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