ama_validators 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/README.md +11 -6
- data/lib/ama_validators/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43481e76d8fd15657311d8ceef5496c064da4f62
|
4
|
+
data.tar.gz: 50d35c43de0692fe3e274f349689b4a3ad8b9b57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78a126c6effe0f3f6b1a5e263d8e1c546a28bc00c2ea7364cd4544c810eddbf126fb8470d9598aa3d875521faeb2f684a4a9d44efe2fc55fc72e5d8e9aa84350
|
7
|
+
data.tar.gz: d72ea79de62945c0c65b3125b748fb74bd5d0216746657b2f15713ad8428bca3b9e55fd6cbd080ea05cf4a9f0891edf805d70baaa35d121d997bf87e49da0f8b
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -10,21 +10,26 @@ Compile the following validators: - Credit card - Email - Membership number - Ph
|
|
10
10
|
|
11
11
|
## Installation
|
12
12
|
|
13
|
-
Add this line to your application
|
13
|
+
Add this line to your Gemfile within your rails application:
|
14
14
|
|
15
15
|
gem 'ama_validators'
|
16
16
|
|
17
17
|
And then execute:
|
18
18
|
|
19
|
-
$ bundle
|
19
|
+
$ bundle install
|
20
20
|
|
21
|
-
|
21
|
+
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
Apply the validator to a model like so:
|
24
24
|
|
25
|
-
|
25
|
+
```
|
26
|
+
class TeamMember < ApplicationRecord
|
27
|
+
validates :email, presence: true, email_format: { allow_blank: false }
|
28
|
+
end
|
29
|
+
```
|
30
|
+
|
31
|
+
All of the validators are here: https://github.com/amaabca/ama_validators/tree/master/lib/ama_validators/
|
26
32
|
|
27
|
-
TODO: Write usage instructions here
|
28
33
|
|
29
34
|
## Contributing
|
30
35
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ama_validators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van den Beuken
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date:
|
16
|
+
date: 2017-05-17 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: bundler
|
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
175
|
version: '0'
|
176
176
|
requirements: []
|
177
177
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.
|
178
|
+
rubygems_version: 2.5.1
|
179
179
|
signing_key:
|
180
180
|
specification_version: 4
|
181
181
|
summary: This gem will compile the following validators - Credit card - Email - Membership
|