validates_timeliness 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +43 -0
- data/LICENSE +20 -0
- data/README.rdoc +320 -0
- data/Rakefile +58 -0
- data/TODO +8 -0
- data/lib/validates_timeliness.rb +66 -0
- data/lib/validates_timeliness/action_view/instance_tag.rb +45 -0
- data/lib/validates_timeliness/active_record/attribute_methods.rb +157 -0
- data/lib/validates_timeliness/active_record/multiparameter_attributes.rb +64 -0
- data/lib/validates_timeliness/core_ext/date.rb +13 -0
- data/lib/validates_timeliness/core_ext/date_time.rb +13 -0
- data/lib/validates_timeliness/core_ext/time.rb +13 -0
- data/lib/validates_timeliness/formats.rb +310 -0
- data/lib/validates_timeliness/locale/en.yml +11 -0
- data/lib/validates_timeliness/spec/rails/matchers/validate_timeliness.rb +121 -0
- data/lib/validates_timeliness/validation_methods.rb +82 -0
- data/lib/validates_timeliness/validator.rb +120 -0
- data/spec/action_view/instance_tag_spec.rb +38 -0
- data/spec/active_record/attribute_methods_spec.rb +204 -0
- data/spec/active_record/multiparameter_attributes_spec.rb +48 -0
- data/spec/core_ext/dummy_time_spec.rb +31 -0
- data/spec/formats_spec.rb +274 -0
- data/spec/ginger_scenarios.rb +19 -0
- data/spec/resources/application.rb +2 -0
- data/spec/resources/person.rb +3 -0
- data/spec/resources/schema.rb +10 -0
- data/spec/resources/sqlite_patch.rb +19 -0
- data/spec/spec/rails/matchers/validate_timeliness_spec.rb +178 -0
- data/spec/spec_helper.rb +54 -0
- data/spec/time_travel/MIT-LICENSE +20 -0
- data/spec/time_travel/time_extensions.rb +33 -0
- data/spec/time_travel/time_travel.rb +12 -0
- data/spec/validation_methods_spec.rb +61 -0
- data/spec/validator_spec.rb +438 -0
- metadata +105 -0
metadata
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: validates_timeliness
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Adam Meehan
|
8
|
+
autorequire: validates_timeliness
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-12-07 00:00:00 +11:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Date and time validation plugin for Rails 2.x which allows custom formats
|
17
|
+
email: adam.meehan@gmail.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README.rdoc
|
24
|
+
- LICENSE
|
25
|
+
- TODO
|
26
|
+
- CHANGELOG
|
27
|
+
files:
|
28
|
+
- LICENSE
|
29
|
+
- README.rdoc
|
30
|
+
- Rakefile
|
31
|
+
- TODO
|
32
|
+
- CHANGELOG
|
33
|
+
- lib/validates_timeliness
|
34
|
+
- lib/validates_timeliness/core_ext
|
35
|
+
- lib/validates_timeliness/core_ext/date.rb
|
36
|
+
- lib/validates_timeliness/core_ext/date_time.rb
|
37
|
+
- lib/validates_timeliness/core_ext/time.rb
|
38
|
+
- lib/validates_timeliness/action_view
|
39
|
+
- lib/validates_timeliness/action_view/instance_tag.rb
|
40
|
+
- lib/validates_timeliness/locale
|
41
|
+
- lib/validates_timeliness/locale/en.yml
|
42
|
+
- lib/validates_timeliness/validation_methods.rb
|
43
|
+
- lib/validates_timeliness/active_record
|
44
|
+
- lib/validates_timeliness/active_record/attribute_methods.rb
|
45
|
+
- lib/validates_timeliness/active_record/multiparameter_attributes.rb
|
46
|
+
- lib/validates_timeliness/formats.rb
|
47
|
+
- lib/validates_timeliness/validator.rb
|
48
|
+
- lib/validates_timeliness/spec
|
49
|
+
- lib/validates_timeliness/spec/rails
|
50
|
+
- lib/validates_timeliness/spec/rails/matchers
|
51
|
+
- lib/validates_timeliness/spec/rails/matchers/validate_timeliness.rb
|
52
|
+
- lib/validates_timeliness.rb
|
53
|
+
- spec/core_ext
|
54
|
+
- spec/core_ext/dummy_time_spec.rb
|
55
|
+
- spec/validator_spec.rb
|
56
|
+
- spec/action_view
|
57
|
+
- spec/action_view/instance_tag_spec.rb
|
58
|
+
- spec/ginger_scenarios.rb
|
59
|
+
- spec/validation_methods_spec.rb
|
60
|
+
- spec/spec_helper.rb
|
61
|
+
- spec/formats_spec.rb
|
62
|
+
- spec/active_record
|
63
|
+
- spec/active_record/attribute_methods_spec.rb
|
64
|
+
- spec/active_record/multiparameter_attributes_spec.rb
|
65
|
+
- spec/time_travel
|
66
|
+
- spec/time_travel/time_travel.rb
|
67
|
+
- spec/time_travel/time_extensions.rb
|
68
|
+
- spec/time_travel/MIT-LICENSE
|
69
|
+
- spec/spec
|
70
|
+
- spec/spec/rails
|
71
|
+
- spec/spec/rails/matchers
|
72
|
+
- spec/spec/rails/matchers/validate_timeliness_spec.rb
|
73
|
+
- spec/resources
|
74
|
+
- spec/resources/person.rb
|
75
|
+
- spec/resources/sqlite_patch.rb
|
76
|
+
- spec/resources/schema.rb
|
77
|
+
- spec/resources/application.rb
|
78
|
+
has_rdoc: true
|
79
|
+
homepage: http://github.com/adzap/validates_timeliness
|
80
|
+
post_install_message:
|
81
|
+
rdoc_options: []
|
82
|
+
|
83
|
+
require_paths:
|
84
|
+
- lib
|
85
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: "0"
|
90
|
+
version:
|
91
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: "0"
|
96
|
+
version:
|
97
|
+
requirements: []
|
98
|
+
|
99
|
+
rubyforge_project: validatestime
|
100
|
+
rubygems_version: 1.3.1
|
101
|
+
signing_key:
|
102
|
+
specification_version: 2
|
103
|
+
summary: Date and time validation plugin for Rails 2.x which allows custom formats
|
104
|
+
test_files: []
|
105
|
+
|