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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f34cbe220bca1cd8cf90491f48c23647dccfb1338408dac83ca08db6e69d8b0d
4
- data.tar.gz: e5302637e13c7dd9cb38e27d21408c0c6ae0e96b5d95fc93cced8bf4295dba0f
3
+ metadata.gz: 2e21e6bdd43527f9c443e40eaa1177af2effb59a4af5d4c092fa239e27c4171d
4
+ data.tar.gz: 915df3de975122d2c4fb19e8c95721fc4aa36955e7c98a915c5209bd0d6cde15
5
5
  SHA512:
6
- metadata.gz: b4136666509bb43cbf4e941dd942faecf5dad95929f6d58dcad84d243f7bcb531f2525d5b453773575291ea9bdb581148ad5ba81f1592323684526479785cffe
7
- data.tar.gz: 75d455f4e237b48298303943118e738b9b1b1dcbce4596593fee8a7fd394ba0bf6edc4f6b2e47616cd9ae5c6319fd574d8b4c3ab12ffe91ee00edacf7151ea54
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.2.0...main
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')
@@ -3,6 +3,6 @@
3
3
  module Dry
4
4
  class Inflector
5
5
  # @since 0.1.0
6
- VERSION = "1.3.0"
6
+ VERSION = "1.3.1"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-inflector
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hanakai team