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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec4bb7c6fa5f0765b046204b52fc749e4e2b691c
4
- data.tar.gz: 6567469a779c333801e11f3b87005787c416e1bd
3
+ metadata.gz: a34456f10d23a888a02be9b3f641b98aa6cc80ef
4
+ data.tar.gz: e8e0a2755308097c530c7e8680cc320ed963ab77
5
5
  SHA512:
6
- metadata.gz: 2071d40253de882b347472343462eb5884a54296d63b3db2ce3588afc6167a912661bfd1c7de0f3fd5bd5bf6c45478cf4333ac255a80038ee182bd27a20e996e
7
- data.tar.gz: 2fda7cfc4a65f3a0ebc6a5707ebf0f2be9fccca676743af9ca506616c69a28ada1aa73a072136c49aa638e97ff8187c5533ced14a22411523264fc4523eb0ecc
6
+ metadata.gz: 12cb3f5a4d7eec151c4666e2f6268ef46a796554a2afcef5bc9065aee3e1b637ac5daeafe3654c6016df9e5cf1c140eb266dfdbf330796b584e96c7edd87a986
7
+ data.tar.gz: 92b48a4cf0293909525d4042c1857bf1696750025918cbe6eaef61b9e2115e7f7e9203f7dc3f35ca6e0ee0aab4e6aa5bcbfa011e100ce9905dac95c3dcabd46e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minimalist_authentication (0.6.12)
4
+ minimalist_authentication (0.6.14)
5
5
  bcrypt (~> 3.1, >= 3.1.3)
6
6
 
7
7
  GEM
@@ -19,12 +19,12 @@ module Minimalist
19
19
  attr_accessor :password
20
20
  before_save :encrypt_password
21
21
 
22
- validates_presence_of :email, :if => :validate_email_presence?
23
- validates_uniqueness_of :email, :if => :validate_email_uniqueness?
24
- validates_format_of :email, :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?
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
 
@@ -1,3 +1,3 @@
1
1
  module MinimalistAuthentication
2
- VERSION = '0.6.12'
2
+ VERSION = '0.6.14'
3
3
  end
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.12
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-06 00:00:00.000000000 Z
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.5.1
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.