active_validators 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.rdoc +5 -1
  3. data/{MIT-LICENSE → LICENSE} +1 -1
  4. data/README.rdoc +14 -1
  5. data/app/validators/not_equals_validator.rb +21 -0
  6. data/lib/active_validators/version.rb +1 -1
  7. data/spec/dummy/README.rdoc +28 -0
  8. data/spec/dummy/Rakefile +6 -0
  9. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  10. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  11. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  12. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  13. data/spec/dummy/app/models/test.rb +2 -0
  14. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  15. data/spec/dummy/bin/bundle +3 -0
  16. data/spec/dummy/bin/rails +4 -0
  17. data/spec/dummy/bin/rake +4 -0
  18. data/spec/dummy/config/application.rb +28 -0
  19. data/spec/dummy/config/boot.rb +5 -0
  20. data/spec/dummy/config/database.yml +25 -0
  21. data/spec/dummy/config/environment.rb +5 -0
  22. data/spec/dummy/config/environments/development.rb +29 -0
  23. data/spec/dummy/config/environments/production.rb +80 -0
  24. data/spec/dummy/config/environments/test.rb +36 -0
  25. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  26. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  27. data/spec/dummy/config/initializers/inflections.rb +16 -0
  28. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  29. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  30. data/spec/dummy/config/initializers/session_store.rb +3 -0
  31. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  32. data/spec/dummy/config/locales/en.yml +23 -0
  33. data/spec/dummy/config/routes.rb +2 -0
  34. data/spec/dummy/config.ru +4 -0
  35. data/spec/dummy/db/migrate/20140408144900_create_tests.rb +10 -0
  36. data/spec/dummy/db/schema.rb +23 -0
  37. data/spec/dummy/db/test.sqlite3 +0 -0
  38. data/spec/dummy/log/development.log +0 -0
  39. data/spec/dummy/log/test.log +5039 -0
  40. data/spec/dummy/public/404.html +58 -0
  41. data/spec/dummy/public/422.html +58 -0
  42. data/spec/dummy/public/500.html +57 -0
  43. data/spec/dummy/public/favicon.ico +0 -0
  44. data/spec/spec_helper.rb +29 -0
  45. data/spec/validators/date_validator_spec.rb +194 -0
  46. data/spec/validators/not_equals_validator_spec.rb +68 -0
  47. data/spec/validators/time_validator_spec.rb +196 -0
  48. metadata +102 -16
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kozin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-11 00:00:00.000000000 Z
11
+ date: 2014-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,72 +16,116 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4'
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.3.9
33
+ version: '1.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.3.9
40
+ version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.14.2
47
+ version: '2.14'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.14.2
54
+ version: '2.14'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: database_cleaner
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2.0
61
+ version: '1.2'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.2.0
68
+ version: '1.2'
69
69
  description: Contains validators for date and time values.
70
- email:
71
- - andrew.kozin@gmail.com
70
+ email: andrew.kozin@gmail.com
72
71
  executables: []
73
72
  extensions: []
74
- extra_rdoc_files: []
73
+ extra_rdoc_files:
74
+ - CHANGELOG.rdoc
75
+ - LICENSE
76
+ - README.rdoc
75
77
  files:
76
78
  - CHANGELOG.rdoc
77
- - MIT-LICENSE
79
+ - LICENSE
78
80
  - README.rdoc
79
81
  - Rakefile
80
82
  - app/validators/date_validator.rb
83
+ - app/validators/not_equals_validator.rb
81
84
  - app/validators/time_validator.rb
82
85
  - lib/active_validators.rb
83
86
  - lib/active_validators/engine.rb
84
87
  - lib/active_validators/version.rb
88
+ - spec/dummy/README.rdoc
89
+ - spec/dummy/Rakefile
90
+ - spec/dummy/app/assets/javascripts/application.js
91
+ - spec/dummy/app/assets/stylesheets/application.css
92
+ - spec/dummy/app/controllers/application_controller.rb
93
+ - spec/dummy/app/helpers/application_helper.rb
94
+ - spec/dummy/app/models/test.rb
95
+ - spec/dummy/app/views/layouts/application.html.erb
96
+ - spec/dummy/bin/bundle
97
+ - spec/dummy/bin/rails
98
+ - spec/dummy/bin/rake
99
+ - spec/dummy/config.ru
100
+ - spec/dummy/config/application.rb
101
+ - spec/dummy/config/boot.rb
102
+ - spec/dummy/config/database.yml
103
+ - spec/dummy/config/environment.rb
104
+ - spec/dummy/config/environments/development.rb
105
+ - spec/dummy/config/environments/production.rb
106
+ - spec/dummy/config/environments/test.rb
107
+ - spec/dummy/config/initializers/backtrace_silencers.rb
108
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
109
+ - spec/dummy/config/initializers/inflections.rb
110
+ - spec/dummy/config/initializers/mime_types.rb
111
+ - spec/dummy/config/initializers/secret_token.rb
112
+ - spec/dummy/config/initializers/session_store.rb
113
+ - spec/dummy/config/initializers/wrap_parameters.rb
114
+ - spec/dummy/config/locales/en.yml
115
+ - spec/dummy/config/routes.rb
116
+ - spec/dummy/db/migrate/20140408144900_create_tests.rb
117
+ - spec/dummy/db/schema.rb
118
+ - spec/dummy/db/test.sqlite3
119
+ - spec/dummy/log/development.log
120
+ - spec/dummy/log/test.log
121
+ - spec/dummy/public/404.html
122
+ - spec/dummy/public/422.html
123
+ - spec/dummy/public/500.html
124
+ - spec/dummy/public/favicon.ico
125
+ - spec/spec_helper.rb
126
+ - spec/validators/date_validator_spec.rb
127
+ - spec/validators/not_equals_validator_spec.rb
128
+ - spec/validators/time_validator_spec.rb
85
129
  homepage: https://github.com/nepalez/active_validators
86
130
  licenses:
87
131
  - MIT
@@ -105,6 +149,48 @@ rubyforge_project:
105
149
  rubygems_version: 2.2.2
106
150
  signing_key:
107
151
  specification_version: 4
108
- summary: A collection of additional validators for activerecord models.
109
- test_files: []
152
+ summary: Custom validators for activerecord models.
153
+ test_files:
154
+ - spec/validators/time_validator_spec.rb
155
+ - spec/validators/not_equals_validator_spec.rb
156
+ - spec/validators/date_validator_spec.rb
157
+ - spec/spec_helper.rb
158
+ - spec/dummy/config/boot.rb
159
+ - spec/dummy/config/environments/development.rb
160
+ - spec/dummy/config/environments/production.rb
161
+ - spec/dummy/config/environments/test.rb
162
+ - spec/dummy/config/routes.rb
163
+ - spec/dummy/config/initializers/session_store.rb
164
+ - spec/dummy/config/initializers/wrap_parameters.rb
165
+ - spec/dummy/config/initializers/mime_types.rb
166
+ - spec/dummy/config/initializers/inflections.rb
167
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
168
+ - spec/dummy/config/initializers/secret_token.rb
169
+ - spec/dummy/config/initializers/backtrace_silencers.rb
170
+ - spec/dummy/config/application.rb
171
+ - spec/dummy/config/locales/en.yml
172
+ - spec/dummy/config/database.yml
173
+ - spec/dummy/config/environment.rb
174
+ - spec/dummy/Rakefile
175
+ - spec/dummy/bin/rails
176
+ - spec/dummy/bin/rake
177
+ - spec/dummy/bin/bundle
178
+ - spec/dummy/log/test.log
179
+ - spec/dummy/log/development.log
180
+ - spec/dummy/db/test.sqlite3
181
+ - spec/dummy/db/migrate/20140408144900_create_tests.rb
182
+ - spec/dummy/db/schema.rb
183
+ - spec/dummy/README.rdoc
184
+ - spec/dummy/config.ru
185
+ - spec/dummy/public/favicon.ico
186
+ - spec/dummy/public/404.html
187
+ - spec/dummy/public/500.html
188
+ - spec/dummy/public/422.html
189
+ - spec/dummy/app/assets/stylesheets/application.css
190
+ - spec/dummy/app/assets/javascripts/application.js
191
+ - spec/dummy/app/helpers/application_helper.rb
192
+ - spec/dummy/app/models/test.rb
193
+ - spec/dummy/app/controllers/application_controller.rb
194
+ - spec/dummy/app/views/layouts/application.html.erb
195
+ - Rakefile
110
196
  has_rdoc: