devise-jwt 0.4.2 → 0.4.3

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: 66974850b27fc3abc56c6cf03371586ae904497d
4
- data.tar.gz: 543a25059b547c467e8838f3a99b68639a34f1a4
3
+ metadata.gz: 72630685db4c137840dac73ab7e796710be64898
4
+ data.tar.gz: 84719131b0ce80f08f902a4e0686b4168127385b
5
5
  SHA512:
6
- metadata.gz: 5c350a4dc41d0fdecfc2a7ddff792a370260e51cd5c12a6f8e630e081cf70de6c71e49fdb2a169e3fd99c4b485acd13714ff2bf0d6f76588e0abcb295a55149e
7
- data.tar.gz: 2ebfb1ca077029c0c5bfad5602d12aa69c18be28902df6d813bbed8d436fbfbf9a4d3e5fe23a947ea52e1430cfac3b1e475b3a3422a7aa1a27c4e710a813f184
6
+ metadata.gz: c0092074424ee011f398267517e366f0b389ac3e398d9b1a2bf8538d80c592b027e4ec6e5111e8f45e8e2c65bed0db210a4d2dfe22db20bce4e0e6879de02e2b
7
+ data.tar.gz: b46b85585e2eddcbd4e3a73a859b8ebc92737fe4abc71183ad31fba4379e82f4b9689dc779d1d8179e98cb0c99bef39b7ef7979458c947d4b8c857030543e38c
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [0.4.3] - 2017-11-23
8
+ ### Fixed
9
+ - Return `nil` and not raise when user is not found in model
10
+
7
11
  ## [0.4.2] - 2017-11-21
8
12
  ### Fixed
9
13
  - Update `warden-jwt_auth` dependency
data/README.md CHANGED
@@ -26,7 +26,7 @@ You can read about which security concerns this library takes into account and a
26
26
  Add this line to your application's Gemfile:
27
27
 
28
28
  ```ruby
29
- gem 'devise-jwt', '~> 0.4.2'
29
+ gem 'devise-jwt', '~> 0.4.3'
30
30
  ```
31
31
 
32
32
  And then execute:
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.require_paths = ["lib"]
23
23
 
24
24
  spec.add_dependency 'devise', '~> 4.0'
25
- spec.add_dependency 'warden-jwt_auth', '~> 0.1.4'
25
+ spec.add_dependency 'warden-jwt_auth', '~> 0.2.0'
26
26
 
27
27
  spec.add_development_dependency "bundler", "~> 1.12"
28
28
  spec.add_development_dependency "rake", "~> 10.0"
@@ -17,7 +17,7 @@ module Devise
17
17
 
18
18
  included do
19
19
  def self.find_for_jwt_authentication(sub)
20
- find(sub)
20
+ find_by(id: sub)
21
21
  end
22
22
  end
23
23
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Devise
4
4
  module JWT
5
- VERSION = '0.4.2'
5
+ VERSION = '0.4.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-jwt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Busqué
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-21 00:00:00.000000000 Z
11
+ date: 2017-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.4
33
+ version: 0.2.0
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
- version: 0.1.4
40
+ version: 0.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement