brainspec/enumerize
Enumerated attributes with I18n and ActiveRecord/Mongoid support observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 96
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5334
- days_rel: n/a
- days_push: 29
- n_releases_24m: 0
Adoption not part of the score
1762 stars · 202 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Ruby gem that adds enumerated attributes to Ruby classes with support for I18n translations and ORMs like ActiveRecord, Mongoid, MongoMapper, and Sequel. It provides validations, scopes, form integration (SimpleForm, Formtastic), and testing helpers for enum-like fields.
Use cases
- add enum attributes to Rails ActiveRecord models
- define enumerated fields with Mongoid documents
- translate enum values with I18n in a Rails app
- add inclusion validation and default values to status fields
- query models with ActiveRecord scopes on enum attributes
- render enum select inputs in SimpleForm or Formtastic
- test enumerized attributes with RSpec or Shoulda
When to choose
- you're on Ruby 3.1+ / Rails 7.0+ and need rich enum attributes with I18n labels
- you use ActiveRecord, Mongoid, MongoMapper, or Sequel and want consistent enum behavior across ORMs
- you need enum scopes, form integration, and testing helpers beyond Ruby's built-in enum
When to avoid
- you only need simple integer-backed enums and ActiveRecord's built-in enum suffices
- you're on an older Ruby or Rails version unsupported by the gem
- you need enums in a non-Ruby stack
Facets
library · maturity active
orm internationalization form-handling testing web-development backend developer-tools ruby enumerated-attributes activerecord mongoid sequel rails i18n enums localization
1 source
- readme: https://github.com/brainspec/enumerize · fetched 2026-08-28 · 64ca6a20ee9f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| brainspec/enumerize | main | 66 |
For agents
markdown · JSON · MCP: product_card(name="brainspec/enumerize")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem