active_metadata 0.8.7.1 → 0.8.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,7 @@ module ActiveMetadata
2
2
 
3
3
  CONFIG = File.exists?('config/active_metadata.yml') ? YAML.load_file('config/active_metadata.yml')[Rails.env] : {}
4
4
  CONFIG['cache_expires_in'] ||= 60
5
+ CONFIG['cache_prefix'] ||= ""
5
6
 
6
7
  def self.skip_history?
7
8
  false
@@ -54,7 +55,7 @@ module ActiveMetadata
54
55
 
55
56
  [:notes, :attachments, :history].each do |item|
56
57
  klass.send(:define_method, "#{item.to_s}_cache_key".to_sym) do |field|
57
- "#{Rails.env}/active_metadata/#{item.to_s}/#{self.class}/#{metadata_id}/#{field}/"
58
+ "#{CONFIG['cache_prefix'] + Rails.env}:active_metadata/#{item.to_s}/#{self.class}/#{metadata_id}/#{field}/"
58
59
  end
59
60
  end
60
61
 
@@ -1,3 +1,3 @@
1
1
  module ActiveMetadata
2
- VERSION = "0.8.7.1"
2
+ VERSION = "0.8.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7.1
4
+ version: 0.8.8
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: 2013-01-16 00:00:00.000000000 Z
13
+ date: 2013-01-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -140,7 +140,7 @@ dependencies:
140
140
  - - ! '>='
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
- description: First implementation will write metadata on mongodb
143
+ description: Pulled out of a bigger codebase. Still not ready to be easily reused!
144
144
  email:
145
145
  - acampolonghi@gmail.com
146
146
  - giancarlo.pace@gmail.com
@@ -277,7 +277,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
277
277
  version: '0'
278
278
  segments:
279
279
  - 0
280
- hash: -264193675356772785
280
+ hash: 1789498662383493622
281
281
  required_rubygems_version: !ruby/object:Gem::Requirement
282
282
  none: false
283
283
  requirements:
@@ -286,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  version: '0'
287
287
  segments:
288
288
  - 0
289
- hash: -264193675356772785
289
+ hash: 1789498662383493622
290
290
  requirements: []
291
291
  rubyforge_project: active_metadata
292
292
  rubygems_version: 1.8.24