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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91332d7c33b8d092f2071dd5d4a59b12786058d8347ba844a8426354133f4e2c
4
- data.tar.gz: b743b5f2db1ea1690a5bad69b6b046a58dd14e76c64e47de03dd18a8b57b8003
3
+ metadata.gz: 8b497fdb2a24f47cb09e211407bb91fb07fd02c7566702e64ed7d02609d430ec
4
+ data.tar.gz: 8dd4464ff4cad4e6235e02bc8dde5eefe3f0ea4f9b0b32e94624e25188aa3f0a
5
5
  SHA512:
6
- metadata.gz: f0a230f1257e8a53e914c8ac39b879143a897ca0d909441403494afa2e0ba2a48ea529b58efb85b8946c97416dc407ac7bf5cda60a12482cec0aceff22cc6169
7
- data.tar.gz: abcc79722fafc181c21f1e27220c4ce46de790e90499de8dd97c94f568b1143d094d6498c93d5975836ec3781fba5e38d8ba51e8b8f002ba1e8dfb4d1d20bb25
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
- - [ ] Rails 5 support (see rails-5 branch)
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
- - [ ] ~~`self.abstract_class = true` This results in separate tables~~
12
- - [ ] ~~use `type` column with enum, int, string, etc.~~
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Discriminable
4
- VERSION = "2.2.4"
4
+ VERSION = "2.2.5"
5
5
  end
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
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-25 00:00:00.000000000 Z
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: Single Table Inheritencs (STI) like functionality using _any_ column,
112
- like e.g. enums, etc.
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: []