minimalist_authentication 0.6.12 → 0.6.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/minimalist/authentication.rb +6 -6
- data/lib/minimalist/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: a34456f10d23a888a02be9b3f641b98aa6cc80ef
|
4
|
+
data.tar.gz: e8e0a2755308097c530c7e8680cc320ed963ab77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12cb3f5a4d7eec151c4666e2f6268ef46a796554a2afcef5bc9065aee3e1b637ac5daeafe3654c6016df9e5cf1c140eb266dfdbf330796b584e96c7edd87a986
|
7
|
+
data.tar.gz: 92b48a4cf0293909525d4042c1857bf1696750025918cbe6eaef61b9e2115e7f7e9203f7dc3f35ca6e0ee0aab4e6aa5bcbfa011e100ce9905dac95c3dcabd46e
|
data/Gemfile.lock
CHANGED
@@ -19,12 +19,12 @@ module Minimalist
|
|
19
19
|
attr_accessor :password
|
20
20
|
before_save :encrypt_password
|
21
21
|
|
22
|
-
validates_presence_of :email, :
|
23
|
-
validates_uniqueness_of :email, :
|
24
|
-
validates_format_of :email, :with
|
25
|
-
validates_presence_of :password,
|
26
|
-
validates_confirmation_of :password,
|
27
|
-
validates_length_of :password, :
|
22
|
+
validates_presence_of :email, if: :validate_email_presence?
|
23
|
+
validates_uniqueness_of :email, allow_blank: true, if: :validate_email_uniqueness?
|
24
|
+
validates_format_of :email, allow_blank: true, with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i, if: :validate_email_format?
|
25
|
+
validates_presence_of :password, if: :password_required?
|
26
|
+
validates_confirmation_of :password, if: :password_required?
|
27
|
+
validates_length_of :password, within: 6..40, if: :password_required?
|
28
28
|
|
29
29
|
scope :active, ->(active = true) { where active: active }
|
30
30
|
|
data/lib/minimalist/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimalist_authentication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Baldwin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-06-
|
12
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bcrypt
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
170
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.
|
171
|
+
rubygems_version: 2.4.8
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: A Rails authentication plugin that takes a minimalist approach.
|