dry-inflector 1.3.0 → 1.3.1
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 +11 -2
- data/lib/dry/inflector/inflections/defaults.rb +1 -0
- data/lib/dry/inflector/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e21e6bdd43527f9c443e40eaa1177af2effb59a4af5d4c092fa239e27c4171d
|
|
4
|
+
data.tar.gz: 915df3de975122d2c4fb19e8c95721fc4aa36955e7c98a915c5209bd0d6cde15
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b93d956d7915af3955c2e29af23dbd956b9a5d4cd9df7a9186f2057bd632647b8eb1166c03fd6aad9a51ab30c7cb6a9a5c752ba4f5644766a987f247f042df15
|
|
7
|
+
data.tar.gz: 61c8bbe11e7ef997079475d7d1b8ffe921064e0b5df7535a8248f1ab1837e05ea96b15ea76f63b1c20d7fe2f5a25c746425593e94e109bf9438f46f11420629b
|
data/CHANGELOG.md
CHANGED
|
@@ -11,7 +11,6 @@ and this project adheres to [Break Versioning](https://www.taoensso.com/break-ve
|
|
|
11
11
|
|
|
12
12
|
### Changed
|
|
13
13
|
|
|
14
|
-
|
|
15
14
|
### Deprecated
|
|
16
15
|
|
|
17
16
|
### Removed
|
|
@@ -20,7 +19,15 @@ and this project adheres to [Break Versioning](https://www.taoensso.com/break-ve
|
|
|
20
19
|
|
|
21
20
|
### Security
|
|
22
21
|
|
|
23
|
-
[Unreleased]: https://github.com/dry-rb/dry-inflector/compare/v1.
|
|
22
|
+
[Unreleased]: https://github.com/dry-rb/dry-inflector/compare/v1.3.1...main
|
|
23
|
+
|
|
24
|
+
## [1.3.1] - 2026-01-13
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- Improve pluralization of "-um" vs "-ium" words. "Premium" is now pluralized correctly. (@hmaddocks in #60)
|
|
29
|
+
|
|
30
|
+
[1.3.1]: https://github.com/dry-rb/dry-inflector/compare/v1.3.0...v1.3.1
|
|
24
31
|
|
|
25
32
|
## [1.3.0] - 2026-01-09
|
|
26
33
|
|
|
@@ -41,6 +48,8 @@ and this project adheres to [Break Versioning](https://www.taoensso.com/break-ve
|
|
|
41
48
|
- Fix pluralization of words ending in "f" that should _not_ have their ending turn into "ves", e.g. "roof"->"roofs" and "chief"->"chiefs". (@hmaddocks in #59)
|
|
42
49
|
- Fix pluralization of "virus" into "viruses". (@hmaddocks in #59)
|
|
43
50
|
|
|
51
|
+
[1.3.0]: https://github.com/dry-rb/dry-inflector/compare/v1.2.0...v1.3.0
|
|
52
|
+
|
|
44
53
|
## [1.2.0] - 2025-01-04
|
|
45
54
|
|
|
46
55
|
### Changed
|
|
@@ -31,6 +31,7 @@ module Dry
|
|
|
31
31
|
inflect.plural(/(alias|status)\z/i, '\1es')
|
|
32
32
|
inflect.plural(/(buffal|domin|ech|embarg|her|mosquit|potat|tomat)o\z/i, '\1oes')
|
|
33
33
|
inflect.plural(/(?<!b|for)um\z/i, "a")
|
|
34
|
+
inflect.plural(/(premi|.*[aio]ni|.*ori|.*ari|.*[no]di|.*[pt]i|.*si)um\z/i, '\1ums')
|
|
34
35
|
inflect.plural(/([ti])a\z/i, '\1a')
|
|
35
36
|
inflect.plural(/sis\z/i, "ses")
|
|
36
37
|
inflect.plural(/(.*)(?:([^f]))fe?\z/i, '\1\2ves')
|