Releases: westfieldlabs/datetime_helper
Add aliasing to serializer formatting
API attribute names don't always match the database column names. This release adds the ability to specify separate api attribute and optional database attribute names.
ensure_zulu_time api_attribute, db_attribute
ensure_zulu_time enabled_at # both are the same
ensure_zulu_time enabled_at, enabled_date # API is enabled_at, DB is enabled_date
and this works similarly with enforce_iso8601_date
V1.0.4 Release
Add anchors to strings in RSpec matchers. This prevents a datetime string from being a valid date-only string.
V1.0.3 Release
Change enforce_iso8601_date
to work on both date and datetime objects to serialize as an iso8601 formatted date string. Previously while a date object would serialize the date a datetime object would also serialize the time.
Add enforce_iso8601_date
Adds enforce_iso8601_date
serializer helper.
Now with more matchers, and millisecond awareness.
Added new matchers for iso date and time formats, as well as more flexible zulu time matcher.
Enhanced the validator
Made the tests independent of time zone
Fixed the readme.
Initial Release
Merge pull request #11 from mcinerney/travis_rubygems Add rubygems deploy
Cleaned up and feature complete
Last pre-release release.
Now with an active_model validator
We've added the ActiveModel::Validator
zulu_time
which enforces that your Time
and DateTime
fields are in fact in UTC-0
.
Initial Release
Includes be_zulu_time
rspec matchers only.