Commit Graph

11 Commits

Author SHA1 Message Date
Adam Meehan
9cf994564e fixed fallback for out of range dates which Rails does not handle automatically
aliased timeliness_date_time_parse to parse_date_time for nicer interface
2008-07-20 09:06:39 +10:00
Adam Meehan
5f55fad076 added :before option to add_formats to insert above existing format 2008-07-20 07:45:22 +10:00
Adam Meehan
ec46a3bd35 added specs for formats and more docs
renamed valid_time_formats etc to time_formats
2008-07-18 16:29:26 +10:00
Adam Meehan
33c298163e moved format proc helper methods into formats module so they work 2008-07-17 16:25:54 +10:00
Adam Meehan
0dcc255901 changed parsing to use hash of regexp with optional processor blocks. Allows easy addition and removal of preffered formats 2008-07-17 14:29:59 +10:00
Adam Meehan
20ed2b1633 ignore time part for dates in validation 2008-07-11 17:23:37 +10:00
Adam Meehan
7f1ada4d0e refactored specs into type validations, added some more examples for boundary checks 2008-07-08 10:44:43 +10:00
Adam Meehan
494f3bdef4 added time_travel plugin for validation specs to fix time from Time.now 2008-07-07 15:12:28 +10:00
Adam Meehan
d035de1d7c refactored restrictions validation into own method
added validates_*type methods for forcing the value type used when doing restriction validation
2008-07-01 11:31:17 +10:00
Adam Meehan
8e4c4098b7 added spec for values before epoch 2008-05-14 09:09:41 +10:00
Adam Meehan
d3e278069e added validations specs 2008-05-05 09:12:36 +10:00