ama_validators 0.0.12 → 0.0.13

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7cd0ec1d63d3346d25bf45d17c5f737c7d60e32
4
- data.tar.gz: dee42b51269ea2658cdfe587d825144ee2c928f0
3
+ metadata.gz: 43481e76d8fd15657311d8ceef5496c064da4f62
4
+ data.tar.gz: 50d35c43de0692fe3e274f349689b4a3ad8b9b57
5
5
  SHA512:
6
- metadata.gz: a7afd829bd13299473396796be76a5d4d1dc33482704f6003d9efe1e5bbd2e4f998256df99485486629d0505ecc73f6f10da205fc54181a6d2bdff47201a9250
7
- data.tar.gz: 5118c5f10713386b7ad75fac72d3835a62dd38c3acb02e202498e2f203ececc165215f84d96adb6b115e8968ed4510e081e19ed300a95d660f4f718a4d21ce67
6
+ metadata.gz: 78a126c6effe0f3f6b1a5e263d8e1c546a28bc00c2ea7364cd4544c810eddbf126fb8470d9598aa3d875521faeb2f684a4a9d44efe2fc55fc72e5d8e9aa84350
7
+ data.tar.gz: d72ea79de62945c0c65b3125b748fb74bd5d0216746657b2f15713ad8428bca3b9e55fd6cbd080ea05cf4a9f0891edf805d70baaa35d121d997bf87e49da0f8b
@@ -1,3 +1,4 @@
1
1
  language: ruby
2
+ sudo: false
2
3
  rvm:
3
- - 2.0.0
4
+ - 2.3.1
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's Gemfile:
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
- Or install it yourself as:
21
+ ## Usage
22
22
 
23
- $ gem install ama_validators
23
+ Apply the validator to a model like so:
24
24
 
25
- ## Usage
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
 
@@ -1,3 +1,3 @@
1
1
  module AmaValidators
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
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.12
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: 2016-05-31 00:00:00.000000000 Z
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.4.5.1
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