record_cache 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -199,6 +199,10 @@ module RecordCache
199
199
  @record_cache_config ||= RecordCache.config.clone
200
200
  end
201
201
  end
202
+
203
+ def record_cache_class
204
+ self
205
+ end
202
206
  end
203
207
 
204
208
  module ActiveRecordExtension
@@ -57,7 +57,8 @@ module RecordCache
57
57
  end
58
58
 
59
59
  def namespace
60
- "#{model_class.name}_#{model_class.version}_#{RecordCache.version}_#{fields_hash}:#{name}"
60
+ record_cache_class = model_class.record_cache_class
61
+ "#{record_cache_class.name}_#{record_cache_class.version}_#{RecordCache.version}_#{fields_hash}:#{name}"
61
62
  end
62
63
 
63
64
  def fields_hash
@@ -9,6 +9,7 @@ Gem::Specification.new do |gem|
9
9
  gem.description = %q{Active Record caching and indexing in memcache.}
10
10
  gem.summary = gem.description
11
11
  gem.homepage = "https://github.com/ninjudd/record_cache"
12
+ gem.license = 'MIT'
12
13
 
13
14
  gem.add_development_dependency 'shoulda', '3.0.1'
14
15
  gem.add_development_dependency 'mocha'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: record_cache
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Balthrop
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-06-03 00:00:00 -07:00
19
- default_executable:
18
+ date: 2013-10-25 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: shoulda
@@ -209,10 +208,9 @@ files:
209
208
  - record_cache.gemspec
210
209
  - test/record_cache_test.rb
211
210
  - test/test_helper.rb
212
- has_rdoc: true
213
211
  homepage: https://github.com/ninjudd/record_cache
214
- licenses: []
215
-
212
+ licenses:
213
+ - MIT
216
214
  post_install_message:
217
215
  rdoc_options: []
218
216
 
@@ -239,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
237
  requirements: []
240
238
 
241
239
  rubyforge_project:
242
- rubygems_version: 1.5.2
240
+ rubygems_version: 1.8.15
243
241
  signing_key:
244
242
  specification_version: 3
245
243
  summary: Active Record caching and indexing in memcache.