Skip to content

Releases: westfieldlabs/datetime_helper

Add aliasing to serializer formatting

19 Jun 07:49
Compare
Choose a tag to compare

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

27 May 01:56
Compare
Choose a tag to compare

Add anchors to strings in RSpec matchers. This prevents a datetime string from being a valid date-only string.

V1.0.3 Release

19 May 23:47
Compare
Choose a tag to compare

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

18 May 21:27
Compare
Choose a tag to compare

Adds enforce_iso8601_date serializer helper.

Now with more matchers, and millisecond awareness.

13 May 05:30
Compare
Choose a tag to compare

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

02 May 07:37
Compare
Choose a tag to compare
Merge pull request #11 from mcinerney/travis_rubygems

Add rubygems deploy

Cleaned up and feature complete

30 Apr 07:38
Compare
Choose a tag to compare
Pre-release

Last pre-release release.

Now with an active_model validator

29 Apr 05:04
Compare
Choose a tag to compare
Pre-release

We've added the ActiveModel::Validator zulu_time which enforces that your Time and DateTime fields are in fact in UTC-0.

Initial Release

28 Apr 23:58
Compare
Choose a tag to compare
Initial Release Pre-release
Pre-release

Includes be_zulu_time rspec matchers only.