activevalidators 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +15 -15
- data/activevalidators.gemspec +0 -1
- data/lib/active_validators/version.rb +1 -1
- metadata +11 -42
data/README.md
CHANGED
@@ -1,14 +1,16 @@
|
|
1
|
-
ActiveValidators [](http://travis-ci.org/cesario/activevalidators)
|
2
|
-
================
|
1
|
+
# ActiveValidators [](http://travis-ci.org/cesario/activevalidators)
|
3
2
|
|
4
|
-
|
3
|
+
# Description
|
5
4
|
|
6
|
-
|
7
|
-
----------------------
|
5
|
+
ActiveValidators is a collection of off-the-shelf and tested ActiveModel/ActiveRecord validations.
|
8
6
|
|
9
|
-
|
7
|
+
## Installation
|
10
8
|
|
11
|
-
gem
|
9
|
+
gem install activevalidators
|
10
|
+
|
11
|
+
This projects follows [Semantic Versioning a.k.a SemVer](http://semver.org). If you use Bundler, you can use the stabby specifier `~>` safely.
|
12
|
+
|
13
|
+
## Usage
|
12
14
|
|
13
15
|
In your models, the gem provides new validators like `email`, or `url`:
|
14
16
|
|
@@ -64,16 +66,14 @@ Exhaustive list of supported validators and their implementation:
|
|
64
66
|
* `twitter` : based on a regular expression
|
65
67
|
* `url` : based on a regular expression
|
66
68
|
|
67
|
-
Todo
|
68
|
-
----
|
69
|
+
## Todo
|
69
70
|
|
70
71
|
Lots of improvements can be made:
|
71
72
|
|
72
73
|
* Implement new validators
|
73
74
|
* ...
|
74
75
|
|
75
|
-
Note on Patches/Pull Requests
|
76
|
-
-----------------------------
|
76
|
+
## Note on Patches/Pull Requests
|
77
77
|
|
78
78
|
* Fork the project.
|
79
79
|
* Make your feature addition or bug fix.
|
@@ -84,8 +84,8 @@ Note on Patches/Pull Requests
|
|
84
84
|
* Send me a pull request. Bonus points for topic branches.
|
85
85
|
|
86
86
|
|
87
|
-
Contributors
|
88
|
-
|
87
|
+
## Contributors
|
88
|
+
|
89
89
|
* Franck Verrot
|
90
90
|
* Oriol Gual
|
91
91
|
* Paco Guzmán
|
@@ -94,8 +94,8 @@ Contributors
|
|
94
94
|
* Brian Moseley
|
95
95
|
* Travis Vachon
|
96
96
|
* Rob Zuber
|
97
|
+
* Manuel Menezes de Sequeira
|
97
98
|
|
98
|
-
Copyright
|
99
|
-
---------
|
99
|
+
## Copyright
|
100
100
|
|
101
101
|
Copyright (c) 2010-2011 Franck Verrot. MIT LICENSE. See LICENSE for details.
|
data/activevalidators.gemspec
CHANGED
@@ -16,7 +16,6 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.add_development_dependency "bundler"
|
17
17
|
s.add_development_dependency "minitest"
|
18
18
|
s.add_dependency 'rake' , '>= 0.8.7'
|
19
|
-
s.add_dependency 'activerecord' , '>= 3.0.0'
|
20
19
|
s.add_dependency 'activemodel' , '>= 3.0.0'
|
21
20
|
s.add_dependency 'mail'
|
22
21
|
s.add_dependency 'date_validator'
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activevalidators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
4
|
+
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
7
|
- 8
|
9
|
-
-
|
10
|
-
version: 1.8.
|
8
|
+
- 1
|
9
|
+
version: 1.8.1
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Franck Verrot
|
@@ -20,17 +19,16 @@ autorequire:
|
|
20
19
|
bindir: bin
|
21
20
|
cert_chain: []
|
22
21
|
|
23
|
-
date: 2011-
|
22
|
+
date: 2011-12-17 00:00:00 +01:00
|
23
|
+
default_executable:
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bundler
|
27
27
|
prerelease: false
|
28
28
|
requirement: &id001 !ruby/object:Gem::Requirement
|
29
|
-
none: false
|
30
29
|
requirements:
|
31
30
|
- - ">="
|
32
31
|
- !ruby/object:Gem::Version
|
33
|
-
hash: 3
|
34
32
|
segments:
|
35
33
|
- 0
|
36
34
|
version: "0"
|
@@ -40,11 +38,9 @@ dependencies:
|
|
40
38
|
name: minitest
|
41
39
|
prerelease: false
|
42
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
41
|
requirements:
|
45
42
|
- - ">="
|
46
43
|
- !ruby/object:Gem::Version
|
47
|
-
hash: 3
|
48
44
|
segments:
|
49
45
|
- 0
|
50
46
|
version: "0"
|
@@ -54,11 +50,9 @@ dependencies:
|
|
54
50
|
name: rake
|
55
51
|
prerelease: false
|
56
52
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
53
|
requirements:
|
59
54
|
- - ">="
|
60
55
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 49
|
62
56
|
segments:
|
63
57
|
- 0
|
64
58
|
- 8
|
@@ -67,14 +61,12 @@ dependencies:
|
|
67
61
|
type: :runtime
|
68
62
|
version_requirements: *id003
|
69
63
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
64
|
+
name: activemodel
|
71
65
|
prerelease: false
|
72
66
|
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
67
|
requirements:
|
75
68
|
- - ">="
|
76
69
|
- !ruby/object:Gem::Version
|
77
|
-
hash: 7
|
78
70
|
segments:
|
79
71
|
- 3
|
80
72
|
- 0
|
@@ -83,49 +75,29 @@ dependencies:
|
|
83
75
|
type: :runtime
|
84
76
|
version_requirements: *id004
|
85
77
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
78
|
+
name: mail
|
87
79
|
prerelease: false
|
88
80
|
requirement: &id005 !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
81
|
requirements:
|
91
82
|
- - ">="
|
92
83
|
- !ruby/object:Gem::Version
|
93
|
-
hash: 7
|
94
84
|
segments:
|
95
|
-
- 3
|
96
85
|
- 0
|
97
|
-
|
98
|
-
version: 3.0.0
|
86
|
+
version: "0"
|
99
87
|
type: :runtime
|
100
88
|
version_requirements: *id005
|
101
89
|
- !ruby/object:Gem::Dependency
|
102
|
-
name:
|
90
|
+
name: date_validator
|
103
91
|
prerelease: false
|
104
92
|
requirement: &id006 !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
94
|
- - ">="
|
108
95
|
- !ruby/object:Gem::Version
|
109
|
-
hash: 3
|
110
96
|
segments:
|
111
97
|
- 0
|
112
98
|
version: "0"
|
113
99
|
type: :runtime
|
114
100
|
version_requirements: *id006
|
115
|
-
- !ruby/object:Gem::Dependency
|
116
|
-
name: date_validator
|
117
|
-
prerelease: false
|
118
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
119
|
-
none: false
|
120
|
-
requirements:
|
121
|
-
- - ">="
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
hash: 3
|
124
|
-
segments:
|
125
|
-
- 0
|
126
|
-
version: "0"
|
127
|
-
type: :runtime
|
128
|
-
version_requirements: *id007
|
129
101
|
description: ActiveValidators is a collection of ActiveModel/ActiveRecord validations
|
130
102
|
email:
|
131
103
|
- franck@verrot.fr
|
@@ -169,6 +141,7 @@ files:
|
|
169
141
|
- test/validations/tracking_number_test.rb
|
170
142
|
- test/validations/twitter_test.rb
|
171
143
|
- test/validations/url_test.rb
|
144
|
+
has_rdoc: true
|
172
145
|
homepage: http://github.com/cesario/activevalidators
|
173
146
|
licenses: []
|
174
147
|
|
@@ -178,27 +151,23 @@ rdoc_options: []
|
|
178
151
|
require_paths:
|
179
152
|
- lib
|
180
153
|
required_ruby_version: !ruby/object:Gem::Requirement
|
181
|
-
none: false
|
182
154
|
requirements:
|
183
155
|
- - ">="
|
184
156
|
- !ruby/object:Gem::Version
|
185
|
-
hash: 3
|
186
157
|
segments:
|
187
158
|
- 0
|
188
159
|
version: "0"
|
189
160
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
|
-
none: false
|
191
161
|
requirements:
|
192
162
|
- - ">="
|
193
163
|
- !ruby/object:Gem::Version
|
194
|
-
hash: 3
|
195
164
|
segments:
|
196
165
|
- 0
|
197
166
|
version: "0"
|
198
167
|
requirements: []
|
199
168
|
|
200
169
|
rubyforge_project:
|
201
|
-
rubygems_version: 1.
|
170
|
+
rubygems_version: 1.3.6
|
202
171
|
signing_key:
|
203
172
|
specification_version: 3
|
204
173
|
summary: Collection of ActiveModel/ActiveRecord validations
|