From bae5d9c10754debc82eb5a5833fcdcf7ec538fa5 Mon Sep 17 00:00:00 2001 From: Alexander Senko Date: Fri, 8 Nov 2024 21:05:10 +0700 Subject: [PATCH] Released 0.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Changed - Renamed checks for related records: `ful` form is now used instead of a passive one (`ed`) to check for related records’ presence. - `.ful` — scope records having associated ones. - `#ful?` — are there any records associated? - Naming: improved passive forms for words ending with `or`/`ant`/`ion`/`ment`/`ing`. ## Added - Checks for related records’ presence on roleless recursive associations: - `.ful` — records having associated ones; - `.less` — records not having associated ones; - `#ful?` — if there are records associated; - `#less?` — if there are no records associated; - `#intermediate?` — whether is only one child record associated (Is the node just a link between two other nodes like?); - `#branching?` — whether are several child records associated. ## Fixed - Naming: passive form for `author`. --- CHANGELOG.md | 37 +++++++++++++++++++++++++++++--- lib/adjustable_schema/version.rb | 2 +- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 618496b..34a0f1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,34 @@ +## [0.8.0] — 2024-11-08 + +### Changed + +- Renamed checks for related records: + `ful` form is now used instead of a passive one (`ed`) to check for related records’ presence. + - `.ful` — scope records having associated ones. + - `#ful?` — are there any records associated? +- Naming: improved passive forms for words ending with `or`/`ant`/`ion`/`ment`/`ing`. + +### Added + +- Checks for related records’ presence on roleless recursive associations: + - `.ful` — + records having associated ones; + - `.less` — + records not having associated ones; + - `#ful?` — + if there are records associated; + - `#less?` — + if there are no records associated; + - `#intermediate?` — + whether is only one child record associated (_Is the node just a link between two other nodes like?_); + - `#branching?` — + whether are several child records associated. + +### Fixed + +- Naming: passive form for `author`. + + ## [0.7.2] — 2024-04-02 ### Fixed @@ -26,11 +57,11 @@ - Checks for related records’ presence: - `.ed` — - records having associated ones, + records having associated ones; - `.less` — - records not having associated ones, + records not having associated ones; - `#ed?` — - if there are records associated, + if there are records associated; - `#less?` — if there are no records associated. - Documentation: self-targeted relationships in README. diff --git a/lib/adjustable_schema/version.rb b/lib/adjustable_schema/version.rb index 1f69ac6..02a98b1 100644 --- a/lib/adjustable_schema/version.rb +++ b/lib/adjustable_schema/version.rb @@ -1,3 +1,3 @@ module AdjustableSchema - VERSION = '0.8.0.alpha' + VERSION = '0.8.0' end