Commit Graph

355 Commits

Author SHA1 Message Date
Adam Meehan
4523138c3c Add Rails initializer to set Timeliness.ambiguous_date_format for Timeliness v0.4+ 2019-08-03 12:38:39 +10:00
Adam Meehan
9daf12c4a1 README typo of Rails version support 2019-06-14 09:59:39 +10:00
Adam Meehan
2a80683683
Merge pull request #183 from kamille-gz/use_AS_on_load_hook
use ActiveSupport.on_load hook for extend ActiveRecord
2019-03-09 17:16:11 +11:00
kamille-321
3a2882be75 use ActiveSupport on_load hook for extend ActiveRecord 2019-03-09 01:14:08 +09:00
Adam Meehan
bf1c808846 fix appraisals 2019-02-09 12:23:57 +11:00
Adam Meehan
d0fcf754ec Update build to ruby 2.5.3 and fix sqlite 2019-02-09 12:15:58 +11:00
Adam Meehan
7233ff66dd v5.0.0.alpha4 2019-02-09 12:00:31 +11:00
Adam Meehan
f0ba09f278 relax timeliness dependency, assuming semver 2019-02-09 11:57:31 +11:00
Adam Meehan
80ee285b3a bump minimum timeliness version 2019-02-03 11:58:11 +11:00
Adam Meehan
cf20576253 readme version bump 2018-07-31 09:08:42 +10:00
Adam Meehan
f39fbb0ad2 v5.0.0.alpha3
Bump with fixed file permissions only.
2018-07-31 09:07:09 +10:00
Adam Meehan
67106b0212 bump gem version in readme 2018-07-02 21:13:24 +10:00
Adam Meehan
bc6d4fe5fc v5.0.0.alpha2 2018-07-02 21:12:12 +10:00
Adam Meehan
70335cd0ba Use prepend for Type overrides /ht @jasl closes #179 2018-07-02 21:08:47 +10:00
Adam Meehan
af406cdedc remove old sqlite-ruby gem. Thanks @jasl 2018-07-02 21:08:47 +10:00
Adam Meehan
837de0d212 v5.0.0.alpha1 2018-07-02 21:08:47 +10:00
Adam Meehan
116930d633
Merge pull request #178 from xMartin/patch-1
update README with actually working 5.x gem version
2018-06-28 09:43:40 +10:00
xMartin
f025d58073
update README with actually working 5.x gem version 2018-06-27 11:22:40 +02:00
Adam Meehan
e645a938b6 remove skipped specs which no longer apply 2018-06-06 13:34:20 -10:00
Adam Meehan
3bc583b200 add Rails 5.1 and 5.2 appraisals 2018-06-06 13:33:44 -10:00
Adam Meehan
4a824e94cd add breaking change for multiparam value format 2018-06-06 13:32:40 -10:00
Adam Meehan
093e33fbed Move conversion module methods in Converter class
Encapsulate conversion helper methods
2018-05-19 16:28:35 +10:00
Adam Meehan
e5bb096161 Move method generation to ActiveModel only and use type system in AR
The ActiveModel type system with extensions in ActiveRecord provide
us a lot of convenience. Some general attribute code is now moved to
ActiveModel only as the AR types provide raw value capturing
(before_type_cast) and type classes to handle type specific string
value parsing if enabled.

In my view, we need to go futher and strip out more from ActiveModel
extension but at least we should have compatibility at the moment.
2018-05-19 15:22:23 +10:00
Adam Meehan
4582c96c42 Time only values are zone aware from AR 5.0 2018-05-18 09:27:16 +10:00
Adam Meehan
38899712c5 update gemfile 2018-05-18 09:14:26 +10:00
Adam Meehan
1c2f4c1b05 turn off timezone aware check specs for now 2018-05-18 09:13:46 +10:00
Adam Meehan
402a6b6e3e Change multiparamter extension to use AR type classes
Multiparamter extension used to do a lot of crappy work to ensure that
the invalid Date dates were not accepted, but also to store a
before_type_cast value in cases when it was invalid. We no longer need
to handle the before_type_cast value as ActiveRecord does that nicely.

Now we just ensure values to cast with a invalid date parts is not
accepted.
2018-05-18 08:58:00 +10:00
Adam Meehan
a1f42fce28 Remove old version checks 2018-05-16 13:12:30 +10:00
Adam Meehan
076714d648 update hash syntax in spec 2018-05-16 12:54:32 +10:00
Adam Meehan
a40a758848 Update CHANGELOG 2018-05-16 12:47:18 +10:00
Adam Meehan
941055c16e Restore usage of DateTime substitute value object
Remove initialize override. Not sure why what was added.
2018-05-16 09:27:27 +10:00
Adam Meehan
4fef42ac24 Rails 5.x compatible Tag value method signature 2018-05-16 09:06:36 +10:00
Adam Meehan
84b1885b6b cannot use POSITION in actionview to map value key 2018-05-15 19:59:59 +10:00
Adam Meehan
90501a8e56 Tag value method takes objects 2018-05-15 19:27:15 +10:00
Adam Meehan
8dc191a4cd Update TextModel method_missing with current ActiveModel methods 2018-05-15 19:26:54 +10:00
Adam Meehan
7d006bd3bd not a fix but stops stack recursion problem 2018-05-15 17:22:43 +10:00
Adam Meehan
973090df85
Merge pull request #167 from AquisTech/fix-issue166-alias_method_chain_not_working_in_rails5
Fix issue#166 alias_method_chain not working in Rails 5
2018-05-15 17:09:07 +10:00
Adam Meehan
596bc87ffd fix rails 5 gemfile 2018-05-15 16:54:53 +10:00
Adam Meehan
5f8604e393 update README with travis badge and 4.x branch 2018-05-15 16:49:38 +10:00
Adam Meehan
a20bfd31ee remove old rails 4 gem and add rails 5.0 2018-05-15 16:45:25 +10:00
AquisTech
c9ca900abf Fix issue#166 alias_method_chain not working in Rails 5 2018-05-14 19:52:24 +05:30
Adam Meehan
a88ae0829c MultiparameterAttribute does not exist anymore 2018-05-13 21:46:26 +10:00
Adam Meehan
6cc47d84e8 setting up for rails 5 work 2018-05-13 21:45:06 +10:00
Adam Meehan
a05f091a42 drop rails 4.0 and 4.1 both EOLed 2018-05-13 21:30:20 +10:00
Adam Meehan
faf708e3be force nokigiri version up 2018-05-13 21:25:31 +10:00
Adam Meehan
38bb74844d need travis bundler fix 2018-05-13 21:15:11 +10:00
Adam Meehan
e275b63203 Merge branch 'master' of github.com:adzap/validates_timeliness 2018-05-13 21:01:36 +10:00
Adam Meehan
e73e0eb30f change travis command to rspec bin 2018-05-13 21:01:12 +10:00
Adam Meehan
43554d8bf0
Merge pull request #152 from aditya-kapoor/allow-generic-msg
Allow the validator to take in the `message` option too.
2018-05-13 20:50:08 +10:00
Adam Meehan
da473b7eea
Update validator.rb
tweak message key lookup
2018-05-13 20:49:25 +10:00