rails_jwt_auth 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_jwt_auth/spec_helpers.rb +8 -4
- data/lib/rails_jwt_auth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4023162adcfa3953a4b917b533a4531141ce70b30c45b1502fc47e360a58d8f6
|
4
|
+
data.tar.gz: d95f7deaa3e194114cc21cd6354a1f4fcede72a6f307de7abf210fcf9493f9f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05b4fa9c7fb11772014e015dd266ba5e3e99f3d0eb17970cbafefe941635e3eb2ef0d4bdfa696e4c0cd4798f1c6bdbe83610fda784a77ac2a45def7bcc1c63b4
|
7
|
+
data.tar.gz: 938906e3edee4d5647168f0953b5127a810d95776e841f172da4854e17926595d1d9f9d611a74d5f1c3d4b24d78d8ee37fcaf36c48703b491d94a7ea4fc2db88
|
@@ -1,9 +1,5 @@
|
|
1
1
|
module RailsJwtAuth
|
2
2
|
module SpecHelpers
|
3
|
-
def sign_out
|
4
|
-
warn '[DEPRECATION] `sign_out` is deprecated and not needed. Please remove it.'
|
5
|
-
end
|
6
|
-
|
7
3
|
def sign_in(user)
|
8
4
|
allow_any_instance_of(RailsJwtAuth::AuthenticableHelper)
|
9
5
|
.to receive(:authenticate!).and_return(true)
|
@@ -11,5 +7,13 @@ module RailsJwtAuth
|
|
11
7
|
allow_any_instance_of(RailsJwtAuth::AuthenticableHelper)
|
12
8
|
.to receive(:current_user).and_return(user)
|
13
9
|
end
|
10
|
+
|
11
|
+
def sign_out
|
12
|
+
allow_any_instance_of(RailsJwtAuth::AuthenticableHelper)
|
13
|
+
.to receive(:authenticate!).and_call_original
|
14
|
+
|
15
|
+
allow_any_instance_of(RailsJwtAuth::AuthenticableHelper)
|
16
|
+
.to receive(:current_user).and_call_original
|
17
|
+
end
|
14
18
|
end
|
15
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_jwt_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rjurado
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt
|