jt-rails-generator-user 1.2.2 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 190bed342bd03da41e903da475f855de5936db09
4
- data.tar.gz: 226213f111c08d0f95ace706efb8699ae72fd8fa
2
+ SHA256:
3
+ metadata.gz: 2928f52f932b61aef4c10c222f478e9faccee8ab18b7dcb66a7b7de3cf3f1fd1
4
+ data.tar.gz: 009aaf37a7b1c85577e911c1b7972ff101630ca9e9dc82ab470a41fbe2883652
5
5
  SHA512:
6
- metadata.gz: d18fcf2abd36441a8eab4e5dc961712a4b83906afff886b998b02bd745acaa2fe6a6b2d1c33be8d83ac6fbf5a92f95e061e25097f712e4aa9f794f86da69f566
7
- data.tar.gz: a0c85a019afbcbbd1030af180a3280c38b2ee270ef2bbba3d5475d4d2372514b4da2cdf41af541183eb59486b48159bd3957ca0ced9f4e9962b4c72f48a9f5cd
6
+ metadata.gz: 9ad6fcece2b1c42803ae5ed902aa3b52f8e6176ac995372dda3e92f19751804252c24cb30b11f8b1332db1223acc968503edea855159a888cf972d911b28f016
7
+ data.tar.gz: 759643b72f822be782a62f9e6b1c28f305bada23130544e290f76c3e39544500e1d9396247cde295b01588dd76e3f625078f50f8c2db8d4662ccddeadb14fc07
data/README.md CHANGED
@@ -37,7 +37,7 @@ end
37
37
 
38
38
  ## Author
39
39
 
40
- - [Jonathan Tribouharet](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johntribouharet))
40
+ - [Jonathan VUKOVICH TRIBOUHARET](https://github.com/jonathantribouharet) ([@johnvuko](https://twitter.com/johnvuko))
41
41
 
42
42
  ## License
43
43
 
@@ -3,10 +3,10 @@ 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.2.2'
6
+ s.version = '1.3.0'
7
7
  s.files = `git ls-files`.split("\n")
8
8
  s.require_paths = ['lib']
9
- s.authors = ['Jonathan TRIBOUHARET']
9
+ s.authors = ['Jonathan VUKOVICH TRIBOUHARET']
10
10
  s.email = 'jonathan.tribouharet@gmail.com'
11
11
  s.license = 'MIT'
12
12
  s.platform = Gem::Platform::RUBY
@@ -9,7 +9,7 @@ module JT::User::Authentication
9
9
 
10
10
  validates :email, presence: true, email_format: true, uniqueness: { case_sensitive: false }
11
11
 
12
- before_save :downcase_email
12
+ before_validation :downcase_email
13
13
 
14
14
  scope :search_by_email, ->(email) { where(email: email.to_s.downcase.strip) }
15
15
  scope :search_by_email_for_authentication, ->(email) { search_by_email(email).where.not(password_digest: nil) }
@@ -25,7 +25,7 @@ module JT::User::Authentication
25
25
  end
26
26
 
27
27
  def downcase_email
28
- self.email = self.email.downcase.strip if self.email
28
+ self.email = self.email.downcase.strip.presence if self.email
29
29
  end
30
30
 
31
31
  def increment_login_stats!(remote_ip)
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jt-rails-generator-user
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - Jonathan TRIBOUHARET
7
+ - Jonathan VUKOVICH TRIBOUHARET
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-12 00:00:00.000000000 Z
11
+ date: 2018-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: validates_email_format_of
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bcrypt
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 3.1.7
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 3.1.7
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jt-rails-tokenizable
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.0'
55
55
  description: JTRailsGeneratorUser is a generator for user authentication. You have
@@ -59,7 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - .gitignore
62
+ - ".gitignore"
63
63
  - Gemfile
64
64
  - LICENSE
65
65
  - README.md
@@ -87,17 +87,17 @@ require_paths:
87
87
  - lib
88
88
  required_ruby_version: !ruby/object:Gem::Requirement
89
89
  requirements:
90
- - - '>='
90
+ - - ">="
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - '>='
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  requirements: []
99
99
  rubyforge_project:
100
- rubygems_version: 2.0.14.1
100
+ rubygems_version: 2.7.7
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Generate a scaffold for user authentication in Ruby On Rails