validators 2.4.2 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c8b6da51895c47e9292d6a9f3e69e1344f048b9e
4
- data.tar.gz: 00ce9db1e34727a6e1dd45d0c1664555a75de332
3
+ metadata.gz: a975ecc3bdf98226dc3079671f87436a795418e3
4
+ data.tar.gz: 4027ec27214fc255ed5c81294f588e8f63a12b6f
5
5
  SHA512:
6
- metadata.gz: a95bfe1cd0d18157e457c349e47712b486980c75dfb31caf92e7a7ec7ee45bfe824807a35b0acdcc682c6bf3ad821153d4789cda1fe59224df9deba13528f3c2
7
- data.tar.gz: d0d92d572381475e0c252bdafe45f3fc2f71c9cf98d5d553081ef9be9027ba8a251a14ca2298655d6584bca98afec13320ae574fc1ffee902fbceb424726c4c2
6
+ metadata.gz: ebf48747e0d37e41b47c80c72f884e4ff04f4b819a11c7bc96c9ccc2f523fa6b44c1bd9ea310964976455718bbf0340b2c12399a90a5fd5683099538e5e94421
7
+ data.tar.gz: 94b2c41b85bd3d0a8e685c0b34f10ebe0fb03ffbc5e1f0bbe943a5ad31c6ed08261ed2437020bd9de42e43a67f1713ec18e6a32f52d58d20c0832737ff20bf92
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  pkg/*
2
2
  *.gem
3
3
  .bundle
4
+ Gemfile.lock
data/README.md CHANGED
@@ -32,6 +32,14 @@ class User < ActiveRecord::Base
32
32
  end
33
33
  ```
34
34
 
35
+ By default, it rejects disposable e-mails (e.g. mailinator). This loads ~15kb, but you can disable this validation by settings `disposable: true`.
36
+
37
+ ```ruby
38
+ class User < ActiveRecord::Base
39
+ validates_email_format_of :email, disposable: true
40
+ end
41
+ ```
42
+
35
43
  ### validates_url_format_of
36
44
 
37
45
  ```ruby