Adam Meehan
|
800b187d08
|
added Date class define write method convert with parser
removed strict_time_type_cast method and use parse method directly
|
2008-07-22 10:11:27 +10:00 |
|
Adam Meehan
|
4d23756b47
|
updated extract method name to parse
|
2008-07-22 08:39:15 +10:00 |
|
Adam Meehan
|
89f12b3a25
|
renamed extract method to parse and updated specs
|
2008-07-22 08:34:14 +10:00 |
|
Adam Meehan
|
e8bba051c9
|
fixed spec with microseconds
|
2008-07-22 08:29:11 +10:00 |
|
Adam Meehan
|
3c9ad4a5ee
|
added microseconds adjustment method and added proc_args
|
2008-07-21 16:50:08 +10:00 |
|
Adam Meehan
|
5e08a10fb0
|
renamed calls to timeliness_date_time_parse to parse_date_time which will correctly an overrided method
|
2008-07-21 13:48:25 +10:00 |
|
Adam Meehan
|
539f823b8b
|
removed usless whitespace check in non-strict regexp match
|
2008-07-21 13:47:19 +10:00 |
|
Adam Meehan
|
4e8007bc65
|
added ignore_datetime_restriction_errors class option and docs
bit more for chronic parser
|
2008-07-21 13:02:21 +10:00 |
|
Adam Meehan
|
1836e4f6ca
|
removed setting of time parts to 0 for date type in parse as any time parts should be valid as well
format proc now returns time array with nil values as 0
|
2008-07-21 10:31:06 +10:00 |
|
Adam Meehan
|
7a16d35e31
|
tweaked readme
changed mixed validation spec to datetime value out of Time range
|
2008-07-20 10:53:09 +10:00 |
|
Adam Meehan
|
80ed110efc
|
tweaked doc examples and added message options
|
2008-07-20 09:38:04 +10:00 |
|
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
|
70ba75a4ae
|
added switching to euro date formats instead of US
|
2008-07-20 08:38:34 +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
|
53d57cb7ac
|
doc refinements
|
2008-07-19 21:52:37 +10:00 |
|
Adam Meehan
|
05abd4e984
|
minor line shifts
|
2008-07-19 19:49:15 +10:00 |
|
Adam Meehan
|
5983622ac8
|
moved extact_date_time_values method in to Formats and added specs
changed Formats to a class
|
2008-07-19 19:47:03 +10:00 |
|
Adam Meehan
|
137ee152e2
|
added changelog and license
|
2008-07-19 17:56:51 +10:00 |
|
Adam Meehan
|
1d2720ca67
|
added less than exhaustive datetime format validation specs
|
2008-07-19 17:25:01 +10:00 |
|
Adam Meehan
|
8ab82411ca
|
added format add and remove methods
fixed slashes and 'd' token matching
specs for time and date format validation
|
2008-07-19 17:17:53 +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
|
e18d0ee9f4
|
moved tokens and proc arg map into class arrays
|
2008-07-18 11:27:32 +10:00 |
|
Adam Meehan
|
c9a3075c35
|
rewrote format regexp hash into time format to regexp generator
|
2008-07-18 08:05:21 +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
|
c37c3e82fa
|
moved formats to own module
|
2008-07-17 15:08:33 +10:00 |
|
Adam Meehan
|
69ed88a086
|
moved formats to root module and retrieve from there in validations
added benchmarks for alternates
|
2008-07-17 15:00:18 +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
|
7cf8f2cbbc
|
refactor parse to just a little simpler and a little more docs and cleanup
|
2008-07-17 06:43:03 +10:00 |
|
Adam Meehan
|
265a3b884a
|
a little more docs
|
2008-07-11 17:42:10 +10:00 |
|
Adam Meehan
|
710ed92721
|
fixed matcher messages and refactored
|
2008-07-11 17:41:50 +10:00 |
|
Adam Meehan
|
1a0a35836f
|
fixed dummy time and added spec
|
2008-07-11 17:41:07 +10:00 |
|
Adam Meehan
|
20ed2b1633
|
ignore time part for dates in validation
|
2008-07-11 17:23:37 +10:00 |
|
Adam Meehan
|
eafce02a73
|
renamed error message key
|
2008-07-11 16:37:37 +10:00 |
|
Adam Meehan
|
89d6d4ac14
|
doc tweak
|
2008-07-11 16:37:02 +10:00 |
|
Adam Meehan
|
899d420b59
|
renamed base to multiparameter attributes
|
2008-07-11 16:35:52 +10:00 |
|
Adam Meehan
|
c283d2eed9
|
rename base to multiparameter attributes
|
2008-07-11 16:31:19 +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
|
bac867cbbb
|
added core extension files for adding to_dummy_time to Date, Time and DateTime classes
|
2008-07-08 10:44:01 +10:00 |
|
Adam Meehan
|
ef68b3d0f9
|
added type to parse method for dummy time check mainly
added default datetime type to call to parse from strict type cast
|
2008-07-08 10:42:02 +10:00 |
|
Adam Meehan
|
3c934efd0d
|
added requires for core_ext files
|
2008-07-08 10:40:57 +10:00 |
|
Adam Meehan
|
8c5b372716
|
added birth_time attribute
|
2008-07-08 10:38:14 +10:00 |
|
Adam Meehan
|
a78da16b8e
|
added default task
|
2008-07-08 10:37:54 +10:00 |
|
Adam Meehan
|
8ac04e8610
|
doc rewording
|
2008-07-07 19:05:27 +10:00 |
|
Adam Meehan
|
228ab29b5f
|
refactored conversion to remove Time class check which is done in type
cast method
|
2008-07-07 19:04:13 +10:00 |
|
Adam Meehan
|
caf92fba13
|
include matcher if test env
|
2008-07-07 19:03:45 +10:00 |
|
Adam Meehan
|
a0583cc6ea
|
added preliminary README docs
|
2008-07-07 15:25:26 +10:00 |
|
Adam Meehan
|
d6cf8f0889
|
fixed require for rspec-rails
|
2008-07-07 15:24:37 +10:00 |
|
Adam Meehan
|
f40bf36bc9
|
allow for custom messages in error message checks
|
2008-07-07 15:23:44 +10:00 |
|
Adam Meehan
|
3f286b9aee
|
refactored restrictions in method
|
2008-07-07 15:19:32 +10:00 |
|
Adam Meehan
|
bb0e64857a
|
changed Dirty check to full name and changed docs
|
2008-07-07 15:18:30 +10:00 |
|