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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c04dc1e693a3cb35abcfbaa7b061aeb42d87fdc743fb595d20c0d812c6d87c4
4
- data.tar.gz: 3b3575f751d57cb3bd13d34afede3f676155141949bdd59b5944ca742e01bff4
3
+ metadata.gz: 4023162adcfa3953a4b917b533a4531141ce70b30c45b1502fc47e360a58d8f6
4
+ data.tar.gz: d95f7deaa3e194114cc21cd6354a1f4fcede72a6f307de7abf210fcf9493f9f2
5
5
  SHA512:
6
- metadata.gz: '09a5aeac00078d6b2883f19351375fcbea884b8244c7de3982a78b6cbefeb10afbf3aac5ab405f00864f9466e591e0e1371fafc0ae81c9eeb3816caced35db43'
7
- data.tar.gz: d2a975be7d690175c9af2b4ada516ffed03b93f601b471f610259f184197ed958eb6dbae40f7d7c44c8303ec4b5545b766a09f194e1e478bd42412dd62958019
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
@@ -1,3 +1,3 @@
1
1
  module RailsJwtAuth
2
- VERSION = '1.1.1'
2
+ VERSION = '1.2.0'
3
3
  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.1.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-02-26 00:00:00.000000000 Z
11
+ date: 2019-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt