Commit Graph

202 Commits

Author SHA1 Message Date
Adam Meehan
1b1d17ebd8 updated changelog 2008-08-25 14:32:44 +10:00
Adam Meehan
f23d2a0c2d fixed non-timezone write method not updating changed attributes hash 2008-08-25 14:30:36 +10:00
Adam Meehan
68e7adc028 more specific changes description 2008-08-22 15:20:33 +10:00
Adam Meehan
0ef34c7d28 parse_date_time method returns for date column to return Date object when assigned string as per normal Rails
parse_date_time method returns same object when assigned Date or Time object
2008-08-22 15:12:38 +10:00
Adam Meehan
aecaa7baca silence migration in specs 2008-08-22 14:21:05 +10:00
Adam Meehan
b9f11a1f7b fixed bug with attribute cache not clearing on write for date and time columns 2008-08-22 14:06:08 +10:00
Adam Meehan
cd9f4d2d54 added invalid date and time error message options to options list 2008-08-14 12:32:51 +10:00
Adam Meehan
d61249d6f5 fixed instance_tag value method when attribute value is nil and improved specs 2008-08-14 11:44:18 +10:00
Adam Meehan
22ade45114 updated changelog with latest changes 2008-08-07 12:31:48 +10:00
Adam Meehan
9a76d06309 parse using timeliness_restriction_value method on matcher option values to allow all possible value types 2008-08-07 12:24:17 +10:00
Adam Meehan
097e2c58ba refactored matcher a little and cleaned up a little 2008-08-03 14:29:54 +10:00
Adam Meehan
dff45bc6ec refactored restriction validation conversion_method case statement into restriction_type_cast_method method 2008-08-03 14:28:02 +10:00
Adam Meehan
a666c35ccd moved restriction value evaluation into own method with recursive calls for Symbol and Proc in case they return string 2008-08-03 12:53:59 +10:00
Adam Meehan
3347a91856 updated CHANGELOG with latest change 2008-07-30 12:27:24 +10:00
Adam Meehan
8cad1b880e remove setting attribute to nil in validations when invalid to preserve before_type_cast value 2008-07-30 12:22:06 +10:00
Adam Meehan
037c3ea5c5 minor README correction 2008-07-30 10:39:22 +10:00
Adam Meehan
e1409ead25 added :if and :unless options to list of regular options in case it wasn't obvious they are supported
also some minor touch ups
2008-07-30 10:24:52 +10:00
Adam Meehan
9fa3e3fa1d README tweaks and clarity 2008-07-28 07:12:41 +10:00
Adam Meehan
2ddc54b78d polishing README 2008-07-26 09:40:04 +10:00
Adam Meehan
4fbb4cafd0 minor REAMDE spelling fix 2008-07-26 08:58:58 +10:00
Adam Meehan
c06daf2a2f added matcher docs to README 2008-07-26 08:56:45 +10:00
Adam Meehan
ef51d8c3d6 refacrtored option tests into test_option_method 2008-07-26 08:31:36 +10:00
Adam Meehan
29d61320e8 prettied up failure messages by formatting values 2008-07-26 08:12:25 +10:00
Adam Meehan
7fd251dddf added rest of specs for matcher 2008-07-26 07:49:26 +10:00
Adam Meehan
766e0f3bac fixed method name for parsing 2008-07-26 07:49:05 +10:00
Adam Meehan
9e689746f3 improved some example descriptions 2008-07-26 00:16:51 +10:00
Adam Meehan
79460dc39b added specs for matcher and fixed up bugs 2008-07-26 00:16:17 +10:00
Adam Meehan
ed165d3f9d minor doc changes 2008-07-25 22:30:24 +10:00
Adam Meehan
555748fac9 minor doc tweak 2008-07-25 21:52:18 +10:00
Adam Meehan
56a95ebd62 add paths to front of loadpath 2008-07-25 21:51:44 +10:00
Adam Meehan
23360dde08 doc tweaks 2008-07-25 21:51:25 +10:00
Adam Meehan
7858632502 added docs for global restriction error value formats 2008-07-25 19:23:22 +10:00
Adam Meehan
32621ceebe added restriction value error message formats as global accessor for customisation
added each invalid type to error messages rather than shortcut way
2008-07-25 19:21:30 +10:00
Adam Meehan
608f3b569f more date value standardisation 2008-07-25 19:19:47 +10:00
Adam Meehan
24db8ab774 changed to using accessor for model instance and using specific validation method for each type 2008-07-25 19:17:55 +10:00
Adam Meehan
5567f920f7 standardising test values 2008-07-24 18:55:20 +10:00
Adam Meehan
698ea29ff7 removed references to pluggable parser not going to bother with it, too compromising 2008-07-23 20:41:24 +10:00
Adam Meehan
59caa86618 changed spec to be like rails behaviour 2008-07-23 20:40:34 +10:00
Adam Meehan
69ac9e678d using date and time string convert methods from validates_date_time plugin which handles different array lengths 2008-07-23 20:39:25 +10:00
Adam Meehan
55333d6ca3 standardising test date values 2008-07-23 20:38:18 +10:00
Adam Meehan
776e3008d2 added extra check to see if time zone attributes in enabled 2008-07-23 12:43:42 +10:00
Adam Meehan
5c03d3d645 added define_write_method with simple parse and cace for dates, times and datetimes when time zone conversion is off and default for Rails 2.0 2008-07-23 12:42:03 +10:00
Adam Meehan
7500781887 added compile_set method to get expressions and combine date and datetime expressions to allow a date string to parse when type is datetime
made internal methods private
2008-07-23 12:39:20 +10:00
Adam Meehan
85ac2bfc69 changed method to check type and compose string for specific type to properly validate
refactored specs
2008-07-23 12:35:42 +10:00
Adam Meehan
057014fcb2 added more benchmarks for special cases 2008-07-23 12:35:06 +10:00
Adam Meehan
2be6c639d6 changed 2008 to 2000 in effort to standard test date values 2008-07-22 18:57:45 +10:00
Adam Meehan
5885290304 added back Rails 2.1 check for time zone conversion attribute in define_attributes_methods and check for Rails 2.0 to return true if Time class column 2008-07-22 12:59:37 +10:00
Adam Meehan
b6187b5b50 made benchmark fairer for time comparison to ensure valid time must date as well 2008-07-22 12:18:57 +10:00
Adam Meehan
2464540264 Merge branch 'date_convert' 2008-07-22 11:51:04 +10:00
Adam Meehan
28b44b4ca6 some docs tweaks and spec value changes 2008-07-22 11:47:17 +10:00