bpluser 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/bpluser/user.rb +4 -0
- data/app/models/bpluser/validatable.rb +2 -2
- data/lib/bpluser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d9eb4b0d7716bc672c931660dc4afad717b0a1f
|
4
|
+
data.tar.gz: 4335705a3f1e957e0160298b606fe9ab124c5c57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d27a3b6206ac9e438be9e42605280a4811d486fb4494b9d5b529886106c47ebc0554b022e2e43e46d392bfa9537f3ea9e130ae94ebabc21b4b2ac99415353397
|
7
|
+
data.tar.gz: dbc9ac06e1084ffa3f8fdd9629bac0d83a1b29043522eac78354a6e4c66e9ef0b20bdb89469ec41dba887b758709231f2964d41a5514118a6ad94f9be48f12e6
|
data/app/models/bpluser/user.rb
CHANGED
@@ -25,9 +25,9 @@ module Bpluser::Validatable
|
|
25
25
|
assert_validations_api!(base)
|
26
26
|
|
27
27
|
base.class_eval do
|
28
|
-
validates_presence_of :email, if: [:email_required?, :
|
28
|
+
validates_presence_of :email, if: [:email_required?, :email_not_required?]
|
29
29
|
#validates_uniqueness_of :email, allow_blank: true, if: :email_changed?
|
30
|
-
validates_format_of :email, with: email_regexp, allow_blank: true, if: [:email_changed?, :
|
30
|
+
validates_format_of :email, with: email_regexp, allow_blank: true, if: [:email_changed?, :email_not_required?]
|
31
31
|
|
32
32
|
validates_presence_of :password, if: :password_required?
|
33
33
|
validates_confirmation_of :password, if: :password_required?
|
data/lib/bpluser/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bpluser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boston Public Library Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|