configurable_engine 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -1
- data/app/models/configurable.rb +2 -2
- data/lib/configurable_engine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6818d2942967d86bf45d1e1c65cb13308baa2895
|
|
4
|
+
data.tar.gz: d8980df6e210571c7ed06b799ac4eb61b36986be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
data/app/models/configurable.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
class Configurable < ActiveRecord::Base
|
|
2
|
-
|
|
3
|
-
|
|
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
|
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.
|
|
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-
|
|
12
|
+
date: 2014-10-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|