jt-rails-generator-user 1.1.1 → 1.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40a09a3d740423650911a41f76ce257982f49dfa
|
4
|
+
data.tar.gz: 68211b102fac186b49aeaefd9e79031c51a06356
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50ef3aab720c075a4b81cacc2bed952e66971f715738e2fffda8fa771b63d23c5432e501c75d79ec57975d7c27f77ffa2d9eec9fc6bcad2aae4f792ca706a276
|
7
|
+
data.tar.gz: ac9c6c5e9ecbf4e846fd80842fc01da84c27e2a1f4732e07f72a13ed7a0ed027f4ffad3acf5d716154900b785bcf8dedcfc4238248c9f55b1beb3e9e410a1cd8
|
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
|
|
3
3
|
s.summary = "Generate a scaffold for user authentication in Ruby On Rails"
|
4
4
|
s.description = "JTRailsGeneratorUser is a generator for user authentication. You have the login and sign up page, password forgot feature."
|
5
5
|
s.homepage = 'https://github.com/jonathantribouharet/jt-rails-generator-user'
|
6
|
-
s.version = '1.1.
|
6
|
+
s.version = '1.1.2'
|
7
7
|
s.files = `git ls-files`.split("\n")
|
8
8
|
s.require_paths = ['lib']
|
9
9
|
s.authors = ['Jonathan TRIBOUHARET']
|
@@ -12,7 +12,7 @@ module JT::User::Authentication
|
|
12
12
|
before_save :downcase_email
|
13
13
|
|
14
14
|
scope :search_by_email, ->(email) { where(email: email.to_s.downcase) }
|
15
|
-
scope :search_by_email_for_authentication, ->(email) { search_by_email(email).where(
|
15
|
+
scope :search_by_email_for_authentication, ->(email) { search_by_email(email).where.not(password_digest: nil) }
|
16
16
|
|
17
17
|
end
|
18
18
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jt-rails-generator-user
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan TRIBOUHARET
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: validates_email_format_of
|