configurable_engine 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f02a18fcb303b5b130db98893a3d0e5977fb2017
4
- data.tar.gz: 8cd584d266b1a2824c62c74f519567194cf42acd
3
+ metadata.gz: 6818d2942967d86bf45d1e1c65cb13308baa2895
4
+ data.tar.gz: d8980df6e210571c7ed06b799ac4eb61b36986be
5
5
  SHA512:
6
- metadata.gz: 4984b350d139195314f8749eb82833c9232fb37ef2322f4fc3b3a2a98d28c5e52f6529f0b0aaf065c232a32b664f9cfbbb93abf5ab301ba9229e92bbc629d752
7
- data.tar.gz: e64e0fa495ee59fbe59d7acb99eb835b8004401d4850cded6636a218d463a3db0e427b4145aaefd30f34065fe944f1d8932c1a17c47c61289274c359ebf5f874
6
+ metadata.gz: 671f136a982caff40684be36d236506fd2621eb2eba35d35f16f3b771a5b00eac9f21967ca2a12d1982bc731c83d06a8c7dbef9dcca2ea7b943c58ccf9498c7d
7
+ data.tar.gz: 3c5a422c4cc0ef2304f80f9d8cf7cbf8136075079cdecae88c96a4b3a063e7607043f1a31b27fda6c1b1640b478da8d098fc718341bb23f4e9d6f92126c8e4b3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### v0.4.6 - October 28, 2014
2
+ **cleanup**
3
+ When using Configurable with cache, destroying a configurable instance erases it from cache
4
+
1
5
  ### v0.4.5 - October 13, 2014
2
6
  **bug fixes**
3
7
  Configurable can store false values when the default is true (https://github.com/paulca/configurable_engine/pull/24, thanks @lilliealbert)
data/README.md CHANGED
@@ -117,7 +117,8 @@ The tests for this rails engine are in the `spec` and `features` directories. T
117
117
  From the top level run:
118
118
 
119
119
  ```bash
120
- $ bundle exec rake app:db:schema:load app:db:test:prepare
120
+ $ bundle exec rake app:db:schema:load
121
+ $ bundle exec rake app:db:test:prepare
121
122
  $ bundle exec rake
122
123
  ```
123
124
 
@@ -1,6 +1,6 @@
1
1
  class Configurable < ActiveRecord::Base
2
-
3
- after_save :invalidate_cache, if: -> { ConfigurableEngine::Engine.config.use_cache }
2
+ after_save :invalidate_cache, if: -> { ConfigurableEngine::Engine.config.use_cache }
3
+ after_destroy :invalidate_cache, if: -> { ConfigurableEngine::Engine.config.use_cache }
4
4
 
5
5
  validates_presence_of :name
6
6
  validates_uniqueness_of :name
@@ -1,3 +1,3 @@
1
1
  module ConfigurableEngine
2
- VERSION = '0.4.5'
2
+ VERSION = '0.4.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configurable_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Campbell
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-13 00:00:00.000000000 Z
12
+ date: 2014-10-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails