Commit Graph

  • d71f581e10 refactored error message handling and specs Adam Meehan 2008-12-02 19:36:03 +1100
  • aa42fb76b6 get the model to add errors to record returned from validation instead of validator Adam Meehan 2008-11-30 08:34:17 +1100
  • b0647d456e refactored validations in validation methods for model and validator class Adam Meehan 2008-11-30 07:40:11 +1100
  • 9610d79d7d move core extension spec to namespace folder Adam Meehan 2008-11-29 18:55:18 +1100
  • 412ff22dd9 namespaced ActiveRecord and ActionView specifc modules and specs with a mind to making the plugin framework agnostic in the future Adam Meehan 2008-11-29 18:32:32 +1100
  • 21d26ee2b1 remove multiparameter time format example for 2.0.x because sqlite didn't support time column types in that version 0.1.0 Adam Meehan 2008-11-29 10:52:03 +1100
  • 5a4be4a91e added ginger scenarios to run specs against all supported rails versions Adam Meehan 2008-11-24 05:25:05 +1100
  • 705e787775 small cleanup and correction of docs Adam Meehan 2008-11-23 17:42:34 +1100
  • a54d562a69 refactored version checks for method aliasing Adam Meehan 2008-11-23 17:41:58 +1100
  • 6a0cece4d7 a little README cleanup Adam Meehan 2008-11-23 16:58:48 +1100
  • a425555de6 remove explicit interop require which is done in rspec-rails Adam Meehan 2008-11-22 10:38:36 +1100
  • 34c3f8602b removing some spec cruft as now using rpec-rails gem Adam Meehan 2008-11-22 10:33:49 +1100
  • abbf79faae removed unnecessary version condition Adam Meehan 2008-11-22 09:46:28 +1100
  • aa92ad8788 added Alex to changelog Adam Meehan 2008-11-13 10:31:14 +1100
  • 889bdc3ae3 allow uppercase meridian to be valid Adam Meehan 2008-11-13 10:26:16 +1100
  • 604a792e25 Rails 2.2 compatibility fixes with more version check hackery (yuck, will fix later) Adam Meehan 2008-10-28 22:05:25 +1100
  • 2f162ca500 little spec house cleaning Adam Meehan 2008-10-28 20:03:37 +1100
  • 49cd69e565 merging attribute method refactor branch Adam Meehan 2008-10-28 19:59:31 +1100
  • ced61929da fixed dirty attributes when old value incorrectly read and added more examples for dirty attributes Adam Meehan 2008-10-28 19:54:52 +1100
  • cffb466e20 added refactoring to changelog Adam Meehan 2008-09-24 21:48:43 +1000
  • 8f950d5ac6 refactored attribute write method definitions in single definition and added write_date_time_attribute method to unify value writing Adam Meehan 2008-09-24 15:58:08 +1000
  • 1b1d17ebd8 updated changelog Adam Meehan 2008-08-25 14:32:44 +1000
  • f23d2a0c2d fixed non-timezone write method not updating changed attributes hash Adam Meehan 2008-08-25 14:30:36 +1000
  • 68e7adc028 more specific changes description Adam Meehan 2008-08-22 15:20:33 +1000
  • 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 Adam Meehan 2008-08-22 15:12:38 +1000
  • aecaa7baca silence migration in specs Adam Meehan 2008-08-22 14:21:05 +1000
  • b9f11a1f7b fixed bug with attribute cache not clearing on write for date and time columns Adam Meehan 2008-08-22 14:06:08 +1000
  • cd9f4d2d54 added invalid date and time error message options to options list Adam Meehan 2008-08-14 12:32:51 +1000
  • d61249d6f5 fixed instance_tag value method when attribute value is nil and improved specs Adam Meehan 2008-08-14 11:44:18 +1000
  • 22ade45114 updated changelog with latest changes Adam Meehan 2008-08-07 12:31:48 +1000
  • 9a76d06309 parse using timeliness_restriction_value method on matcher option values to allow all possible value types Adam Meehan 2008-08-07 12:24:17 +1000
  • 097e2c58ba refactored matcher a little and cleaned up a little Adam Meehan 2008-08-03 14:29:54 +1000
  • dff45bc6ec refactored restriction validation conversion_method case statement into restriction_type_cast_method method Adam Meehan 2008-08-03 14:28:02 +1000
  • a666c35ccd moved restriction value evaluation into own method with recursive calls for Symbol and Proc in case they return string Adam Meehan 2008-08-03 12:53:59 +1000
  • 3347a91856 updated CHANGELOG with latest change Adam Meehan 2008-07-30 12:27:24 +1000
  • 8cad1b880e remove setting attribute to nil in validations when invalid to preserve before_type_cast value Adam Meehan 2008-07-30 12:22:06 +1000
  • 037c3ea5c5 minor README correction Adam Meehan 2008-07-30 10:39:22 +1000
  • 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 Adam Meehan 2008-07-30 10:24:52 +1000
  • 9fa3e3fa1d README tweaks and clarity Adam Meehan 2008-07-28 07:12:41 +1000
  • 2ddc54b78d polishing README Adam Meehan 2008-07-26 09:40:04 +1000
  • 4fbb4cafd0 minor REAMDE spelling fix Adam Meehan 2008-07-26 08:58:58 +1000
  • c06daf2a2f added matcher docs to README Adam Meehan 2008-07-26 08:56:45 +1000
  • ef51d8c3d6 refacrtored option tests into test_option_method Adam Meehan 2008-07-26 08:31:36 +1000
  • 29d61320e8 prettied up failure messages by formatting values Adam Meehan 2008-07-26 08:12:25 +1000
  • 7fd251dddf added rest of specs for matcher Adam Meehan 2008-07-26 07:49:26 +1000
  • 766e0f3bac fixed method name for parsing Adam Meehan 2008-07-26 07:49:05 +1000
  • 9e689746f3 improved some example descriptions Adam Meehan 2008-07-26 00:16:51 +1000
  • 79460dc39b added specs for matcher and fixed up bugs Adam Meehan 2008-07-26 00:16:17 +1000
  • ed165d3f9d minor doc changes Adam Meehan 2008-07-25 22:30:24 +1000
  • 555748fac9 minor doc tweak Adam Meehan 2008-07-25 21:52:18 +1000
  • 56a95ebd62 add paths to front of loadpath Adam Meehan 2008-07-25 21:51:44 +1000
  • 23360dde08 doc tweaks Adam Meehan 2008-07-25 21:51:25 +1000
  • 7858632502 added docs for global restriction error value formats Adam Meehan 2008-07-25 19:23:22 +1000
  • 32621ceebe added restriction value error message formats as global accessor for customisation added each invalid type to error messages rather than shortcut way Adam Meehan 2008-07-25 19:21:30 +1000
  • 608f3b569f more date value standardisation Adam Meehan 2008-07-25 19:19:47 +1000
  • 24db8ab774 changed to using accessor for model instance and using specific validation method for each type Adam Meehan 2008-07-25 19:17:55 +1000
  • 5567f920f7 standardising test values Adam Meehan 2008-07-24 18:55:20 +1000
  • 698ea29ff7 removed references to pluggable parser not going to bother with it, too compromising Adam Meehan 2008-07-23 20:41:24 +1000
  • 59caa86618 changed spec to be like rails behaviour Adam Meehan 2008-07-23 20:40:34 +1000
  • 69ac9e678d using date and time string convert methods from validates_date_time plugin which handles different array lengths Adam Meehan 2008-07-23 20:39:25 +1000
  • 55333d6ca3 standardising test date values Adam Meehan 2008-07-23 20:38:18 +1000
  • 776e3008d2 added extra check to see if time zone attributes in enabled Adam Meehan 2008-07-23 12:43:42 +1000
  • 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 Adam Meehan 2008-07-23 12:42:03 +1000
  • 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 Adam Meehan 2008-07-23 12:39:20 +1000
  • 85ac2bfc69 changed method to check type and compose string for specific type to properly validate refactored specs Adam Meehan 2008-07-23 12:35:42 +1000
  • 057014fcb2 added more benchmarks for special cases Adam Meehan 2008-07-23 12:35:06 +1000
  • 2be6c639d6 changed 2008 to 2000 in effort to standard test date values Adam Meehan 2008-07-22 18:57:45 +1000
  • 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 Adam Meehan 2008-07-22 12:59:37 +1000
  • b6187b5b50 made benchmark fairer for time comparison to ensure valid time must date as well Adam Meehan 2008-07-22 12:18:57 +1000
  • 2464540264 Merge branch 'date_convert' Adam Meehan 2008-07-22 11:51:04 +1000
  • 28b44b4ca6 some docs tweaks and spec value changes Adam Meehan 2008-07-22 11:47:17 +1000
  • 727f3dc8e3 added make_time method to do time object creation with correct timezone handling for Rails 2.1 and 2.0 Adam Meehan 2008-07-22 11:45:33 +1000
  • 8082b5ce1c added specs for checking call to parse method to verify read and write attribute methods are defined Adam Meehan 2008-07-22 11:39:17 +1000
  • a674089c00 return Date object for date type timeliness_date_time_parse method Adam Meehan 2008-07-22 10:13:52 +1000
  • 175b5c8d36 moved type cast conversion specs from attribute_methods to validations Adam Meehan 2008-07-22 10:12:53 +1000
  • 800b187d08 added Date class define write method convert with parser removed strict_time_type_cast method and use parse method directly Adam Meehan 2008-07-22 10:11:27 +1000
  • 4d23756b47 updated extract method name to parse Adam Meehan 2008-07-22 08:39:15 +1000
  • 89f12b3a25 renamed extract method to parse and updated specs Adam Meehan 2008-07-22 08:34:14 +1000
  • e8bba051c9 fixed spec with microseconds Adam Meehan 2008-07-22 08:29:11 +1000
  • 3c9ad4a5ee added microseconds adjustment method and added proc_args Adam Meehan 2008-07-21 16:50:08 +1000
  • 5e08a10fb0 renamed calls to timeliness_date_time_parse to parse_date_time which will correctly an overrided method Adam Meehan 2008-07-21 13:48:25 +1000
  • 539f823b8b removed usless whitespace check in non-strict regexp match Adam Meehan 2008-07-21 13:47:19 +1000
  • 4e8007bc65 added ignore_datetime_restriction_errors class option and docs bit more for chronic parser Adam Meehan 2008-07-21 13:02:21 +1000
  • 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 Adam Meehan 2008-07-21 10:31:06 +1000
  • 7a16d35e31 tweaked readme changed mixed validation spec to datetime value out of Time range Adam Meehan 2008-07-20 10:53:09 +1000
  • 80ed110efc tweaked doc examples and added message options Adam Meehan 2008-07-20 09:38:04 +1000
  • 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 Adam Meehan 2008-07-20 09:06:39 +1000
  • 70ba75a4ae added switching to euro date formats instead of US Adam Meehan 2008-07-20 08:38:34 +1000
  • 5f55fad076 added :before option to add_formats to insert above existing format Adam Meehan 2008-07-20 07:45:22 +1000
  • 53d57cb7ac doc refinements Adam Meehan 2008-07-19 21:52:37 +1000
  • 05abd4e984 minor line shifts Adam Meehan 2008-07-19 19:49:15 +1000
  • 5983622ac8 moved extact_date_time_values method in to Formats and added specs changed Formats to a class Adam Meehan 2008-07-19 19:47:03 +1000
  • 137ee152e2 added changelog and license Adam Meehan 2008-07-19 17:56:51 +1000
  • 1d2720ca67 added less than exhaustive datetime format validation specs Adam Meehan 2008-07-19 17:25:01 +1000
  • 8ab82411ca added format add and remove methods fixed slashes and 'd' token matching specs for time and date format validation Adam Meehan 2008-07-19 17:17:53 +1000
  • ec46a3bd35 added specs for formats and more docs renamed valid_time_formats etc to time_formats Adam Meehan 2008-07-18 16:29:26 +1000
  • e18d0ee9f4 moved tokens and proc arg map into class arrays Adam Meehan 2008-07-18 11:27:32 +1000
  • c9a3075c35 rewrote format regexp hash into time format to regexp generator Adam Meehan 2008-07-18 08:05:21 +1000
  • 33c298163e moved format proc helper methods into formats module so they work Adam Meehan 2008-07-17 16:25:54 +1000
  • c37c3e82fa moved formats to own module Adam Meehan 2008-07-17 15:08:33 +1000