discriminable 2.2.4 → 2.2.5
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 +7 -0
- data/TODO.md +8 -4
- data/lib/discriminable/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b497fdb2a24f47cb09e211407bb91fb07fd02c7566702e64ed7d02609d430ec
|
4
|
+
data.tar.gz: 8dd4464ff4cad4e6235e02bc8dde5eefe3f0ea4f9b0b32e94624e25188aa3f0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87c3f76d275be7dc83ed812fd06fa5f9b302b2709920342a17ec7cdcff24a688be648fe29f7c7b1f426270119f5350ec74f7feb09eca684ecb8f2b30000cefde
|
7
|
+
data.tar.gz: 8f8367a33ce5bd14c11664bc08dac19d6bc32614f355a69aafd0c7c67a1de164e93f3890ff99f2933e284761ce797adfbf757b66ace722685a6308d364c6e44f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
### [2.2.5](https://github.com/gregorw/discriminable/compare/v2.2.4...v2.2.5) (2022-04-29)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* updated description ([d14f366](https://github.com/gregorw/discriminable/commit/d14f366129b31a0b02d8e2314911a45e20ce1f92))
|
9
|
+
|
3
10
|
### [2.2.4](https://github.com/gregorw/discriminable/compare/v2.2.3...v2.2.4) (2022-04-25)
|
4
11
|
|
5
12
|
|
data/TODO.md
CHANGED
@@ -2,11 +2,15 @@
|
|
2
2
|
- [x] default to first value when using hash syntax
|
3
3
|
- [x] open-closed principle
|
4
4
|
- [x] Bug: multiple values: Child.all query (double-check)
|
5
|
-
- [
|
5
|
+
- [x] can we use `type` column? => yes
|
6
|
+
- [x] Factory Bot: create :property, kind: 3 => should instantiate a child OptionProperty… => Works if constant OptionProperty is loaded
|
7
|
+
- [x] use `type` column with enum, int, string, etc.
|
8
|
+
- [x] ~~`self.abstract_class = true` ➔ This results in separate tables~~
|
9
|
+
- [x] What if value is not a “discriminable” value and class cannot be found?
|
6
10
|
- [ ] rubocop-minitest
|
7
|
-
- [ ] more tests / examples
|
11
|
+
- [ ] more tests / examples. [alias, non-alias] ⨉ [integer, string, boolean] ⨉ [enum, non-enum] ⨉ [type-column, non-type-column] ⨉ [multiple-values, single-values] ⨉ [subclasses, subsubclasses] ⨉ [hash-syntax, ocp-syntax]
|
8
12
|
- [ ] Documentation
|
9
13
|
- [ ] test permitted attributes
|
10
14
|
- [ ] scoping… should work OOTB
|
11
|
-
- [ ]
|
12
|
-
- [ ]
|
15
|
+
- [ ] At least document `.descendants` issue in Rails development: https://stackoverflow.com/questions/29662518/loading-class-descendants-in-rails-development
|
16
|
+
- [ ] Rails 5 support (see rails-5 branch)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discriminable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregor Wassmann
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -108,8 +108,8 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '1.4'
|
111
|
-
description:
|
112
|
-
|
111
|
+
description: A Ruby gem that implements single-table inheritance (STI) for ActiveRecord
|
112
|
+
models using string, integer and boolean column types.
|
113
113
|
email:
|
114
114
|
- gregor.wassmann@gmail.com
|
115
115
|
executables: []
|