Recent Releases of https://github.com/dry-rb/dry-inflector
https://github.com/dry-rb/dry-inflector - v1.3.1
Fixed
- Improve pluralization of "-um" vs "-ium" words. "Premium" is now pluralized correctly. (@hmaddocks in #60)
- Ruby
Published by timriley about 2 months ago
https://github.com/dry-rb/dry-inflector - v1.3.0
Changed
- Require Ruby 3.2 or later. (@alassek)
- Support characters with diacritics. (@cllns in #51)
- Improve performance of #singularize. (@sandbergja in #53)
- Remove redundant regexps for default inflections. (@hmaddocks in #59)
Fixed
- Correctly handle pluralized aconyms in
#underscore. For example, underscoring "CustomerAPIs" now gives "customer_apis". (@hmaddocks in #54) - Correctly singularize "uses" and pluralize "use". (@hmaddocks in #55)
- Fix singularization of plurals ending in a vowel and "xes", such as "taxes" -> "tax". (@hmaddocks in #56)
- Fix pluralization of words ending in "ee", such as "fee" -> "fees". (@hmaddocks in #57)
- Fix singularizing of words like "leaves" and "thieves". (@hmaddocks in #58)
- 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)
- Fix pluralization of "virus" into "viruses". (@hmaddocks in #59)
- Ruby
Published by timriley about 2 months ago
https://github.com/dry-rb/dry-inflector - v1.2.0
Changed
- Bumped required Ruby version to 3.1 (@flash-gordon)
- Ruby
Published by dry-bot about 1 year ago
https://github.com/dry-rb/dry-inflector - v1.1.0
Added
- Added "DB" as a default acronym (#49) (@timriley)
Fixed
- Fix incorrect inflections on words separated by spaces, underscores or hyphens (#47) (@parndt)
- Ruby
Published by dry-bot over 1 year ago
https://github.com/dry-rb/dry-inflector - v1.0.0
Changed
- Bumped version to 1.0.0 (@solnic)
- Ruby
Published by dry-bot over 3 years ago
https://github.com/dry-rb/dry-inflector - v0.3.0
Added
- Add CSV as default acronym (via #43) (@waiting-for-dev)
Changed
- Extra dashes are now omitted when converting to camelcase (via #40) (@postmodern)
- Ruby
Published by dry-bot over 3 years ago
https://github.com/dry-rb/dry-inflector - v0.2.1
Added
- Add default acronyms: API and CSRF (#35) (@jodosha)
Fixed
- Fix singularizing -us suffix (issue #33 via #38) (@cllns)
- Ruby
Published by dry-bot over 4 years ago
https://github.com/dry-rb/dry-inflector -
v0.2.0 - 2019-10-13
Added
- [Abinoam P. Marques Jr. & Andrii Savchenko] Introduced
Dry::Inflector#camelize_upperandDry::Inflector#camelize_lower.Dry::Inflector#camelizeis now an alias forDry::Inflector#upper_camelize.inflector.camelize_upper("data_mapper") # => "DataMapper" inflector.camelize_lower("data_mapper") # => "dataMapper"
Fixed
- [ecnal] Fixed singularization rules for words like "alias" or "status"
- Ruby
Published by flash-gordon over 6 years ago
https://github.com/dry-rb/dry-inflector -
v0.1.2 - 2018-04-25
Added
- [Gustavo Caso & Nikita Shilnikov] Added support for acronyms
- Ruby
Published by flash-gordon almost 8 years ago