adzap/validates_timeliness
65.2
Adequate · 6 November 2026
496
lines of production code
Ruby
primary language
4
measurements over time
What this system is
Removals
Removal of autotest RSpec2 discovery configuration
The autotest/discover.rb file has been removed, eliminating the automatic discovery configuration for RSpec2 within the autotest framework. This change indicates that the project is no longer relying on autotest for test discovery, aligning with the stated intent to stop using autotest.
autotest · high confidence
Behavioural changes
Improved form redisplay and multiparameter time handling for Rails compatibility
The DateTimeSelect extension now intercepts form helpers to reuse raw parameter values, ensuring that invalid date and time inputs are redisplayed to the user for correction rather than appearing as blanks. Additionally, the multiparameter handler has been updated to integrate with ActiveModel type classes (Date, Time, DateTime), allowing these types to correctly process and validate multiparameter assignments while maintaining backward compatibility.
_lib/validates\timeliness/extensions · high confidence
Install generator now creates local configuration files
The ValidatesTimeliness install generator has been updated to copy default configuration files directly into the application during installation. Specifically, it now generates a local initializer at config/initializers/validates\_timeliness.rb and a locale file at config/locales/validates\_timeliness.en.yml, allowing users to customize these settings locally rather than relying on the gem's internal defaults.
_lib/generators/validates\timeliness · high confidence
Installer now generates a local configuration file
The installation process has been updated to generate a local \validates\_timeliness.rb\ configuration file in the application directory rather than loading a shared default. This new template includes commented-out options for extending ORMs (defaulting to Active Record), setting timezones, enabling date/time select extensions, handling multiparameter values, and configuring the parser, allowing users to customize behavior directly in their own codebase. The English locale file has also been moved into the generator templates directory to support this new installation structure.
_lib/generators/validates\timeliness/templates · high confidence
Migrates to Timeliness gem and introduces configurable ORM extension
The library now delegates core parsing and configuration to the external 'timeliness' gem, replacing the previous internal conversion module. Users can now configure whether to extend specific ORMs (like Active Record) via a new \extend\_orms\ setting and a \setup\ block, rather than having extensions applied automatically. The change also introduces configuration options for ignoring restriction errors, using shorthand symbols for date/time restrictions, and selecting between the default or plugin-based date parsers.
lib · high confidence
Refactored ORM integration to use ActiveSupport on\_load hooks and separate ActiveModel support
The ActiveRecord extension now uses an ActiveSupport on\_load hook to include validation modules, ensuring proper initialization timing, and provides a specific implementation for reading attribute values before type casting via read\_attribute\_before\_type\_cast. A new ActiveModel ORM module was added to support validations without ActiveRecord, implementing read\_timeliness\_attribute\_before\_type\_cast using the @attributes hash. These changes replace previous method override logic with a cleaner, hook-based approach that improves compatibility and reduces thread-safety issues.
_lib/validates\timeliness/orm · high confidence
ValidatesTimeliness 8.0.0 adds Rails 8 support and refactors build tooling
This release updates the gem to support Rails 8.x, as indicated by the new Appraisals configuration for rails 8.0.0 and the CHANGELOG entry for version 8.0.0. The build infrastructure has been modernized by switching from manual Rake tasks to Bundler gem helper tasks and the Appraisal gem for managing multi-version testing. Additionally, the test suite configuration has been updated to use the 'documentation' format and the 'debug' gem instead of 'byebug'.
(repo-wide) · high confidence
ValidatesTimeliness upgraded to v8.0.0 with ActiveModel type system integration
The validates\_timeliness gem has been upgraded to version 8.0.0, introducing a significant architectural shift by integrating with the ActiveModel type system. This change replaces the previous conversion module with new \AttributeMethods\ that prepend to \ActiveModel::Type::Date\, \Time\, and \DateTime\ to handle parsing and timezone awareness directly within the type casting layer. The validator now utilizes a dedicated \Converter\ class for parsing and type casting, supports restriction shorthand symbols, and allows non-reserved validation options to be passed to error messages. Additionally, the helper methods have been moved into the \ActiveModel::Validations\ namespace, and the gem now includes a Railtie to initialize configuration defaults and handle ambiguous date formats for Timeliness v0.4+.
_lib/validates\timeliness · high confidence
Test coverage
Added and updated tests for validates\_timeliness core components; Added and updated tests for validator options; Added test coverage for ActiveRecord validation and attribute parsing; Added test coverage for DateTimeSelect and Multiparameter extensions; Migrate test suite to RSpec 3 and modernize test infrastructure; New spec support helpers for configuration, model validation, and HTML matching.
Dependencies
75 commits updating dependencies (3 manifests)
A dependency / build maintenance change in (dependencies) — 75 commits (5 fixs), 3 files.
(dependencies) · medium confidence · unverified
Added Rails 8.0 compatibility gemfile
A new gemfile (gemfiles/rails\_8\_0.gemfile) has been added to support testing against Rails 8.0. This file specifies Rails 8.0.0, RSpec 6.0, SQLite3 2.0, and the 'debug' gem (replacing the previous 'byebug' dependency often used in older Rails versions), along with Appraisal and Nokogiri, allowing the project to validate compatibility with the upcoming Rails 8 release.
gemfiles · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 65 → 65 (-0.3)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 76 → 76 (+0.0)
- Architecture 69 → 69 (+0.0)
- Maturity 56 → 56 (+0.0)
- Readiness 75 → 75 (+0.1)
- Security 95 → 89 (-6.6)
Resolved (2)
- Inconsistent naming convention for validation helpers. Three methods follow a specific type pattern (validates_date, validates_time, validates_datetime), while the fourth uses a generic 'of' suffix (validates_timeliness_of). This breaks the parallel structure expected by users familiar with the first three.
- Outdated: activemodel
New (2)
- High secret: WD-SECRET-0005 (lib/validates_timeliness/validate_timeliness_matcher.rb)
- Rotate the exposed credentials — git history can't be un-committed
Changes since last survey
- 2 commits — 0 feature/other, 2 fixes
By area
- (repo) — 1 commit
- lib/validates_timeliness — 1 commit
Notable commits
- fix: Merge pull request #253 from ydah/fix/strict-restriction-validation
- fix: fix: preserve strict restriction validation failures
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
adzap/validates_timeliness was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 6 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 776d48af13834e9783b1ef94aaae083b49110bbd — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.2+preprod-5c4e66d9318b.