mongoid-cached-json 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -223,7 +223,7 @@ You may also want to use [this RSpec matcher](https://github.com/dblock/mongoid-
223
223
  ```ruby
224
224
  describe "updating a person" do
225
225
  it "invalidates cache" do
226
- lambda {
226
+ lambda {
227
227
  @person.update_attributes!({ :name => "updated" }
228
228
  }.should invalidate @person
229
229
  end
@@ -233,7 +233,7 @@ end
233
233
  Performance
234
234
  -----------
235
235
 
236
- This implements two interesting optimizations.
236
+ This gem implements two interesting optimizations.
237
237
 
238
238
  ### Bulk Reference Resolving w/ Local Store
239
239
 
@@ -246,9 +246,9 @@ Various cache stores, including Memcached, support bulk read operations. The [Da
246
246
  Contributing
247
247
  ------------
248
248
 
249
- * Fork the project.
250
- * Make your feature addition or bug fix with tests.
251
- * Don't forget to update `CHANGELOG.md`.
249
+ * Fork the project.
250
+ * Make your feature addition or bug fix with tests.
251
+ * Don't forget to update `CHANGELOG.md`.
252
252
  * Send a pull request. Bonus points for topic branches.
253
253
 
254
254
  Copyright and License
@@ -42,7 +42,8 @@ module Mongoid
42
42
  end
43
43
  end
44
44
  end
45
- before_save :expire_cached_json
45
+ after_update :expire_cached_json
46
+ after_destroy :expire_cached_json
46
47
  end
47
48
 
48
49
  # Materialize a cached JSON within a cache block.
@@ -1,6 +1,6 @@
1
1
  module Mongoid
2
2
  module CachedJson
3
- VERSION = '1.4.0'
3
+ VERSION = '1.4.1'
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-cached-json
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-01-20 00:00:00.000000000 Z
14
+ date: 2013-01-22 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -174,7 +174,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  segments:
176
176
  - 0
177
- hash: -1533991509568558766
177
+ hash: -2872401595226156286
178
178
  required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  none: false
180
180
  requirements: