devise_multiple_token_auth 0.0.4 → 0.0.5

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: c94f7657cef9f745c81b466a6c22fd41c5ba36c8
4
- data.tar.gz: e1ad0741e2ffa550e39a0e09e63368fa8227007e
3
+ metadata.gz: 22146ddf15c7d422ce8cd6ff4412b3847bbf15f5
4
+ data.tar.gz: a07c8d5052322abbcd1c1bb35d8519656778551e
5
5
  SHA512:
6
- metadata.gz: e01a0c8f11a12ea94f529f6438435cd21b4e9ef7bcdbe9ebb3088d3fbba64e88cc478dbc106856980ef5037d3e7bf7d6e0395f512eb1b079549994c662d24381
7
- data.tar.gz: de062278fa8ed41a367d8405b653dc70bc4ffd18120a94b07f379f89aad819d0b751a2e87fbeb4637a13b7b3fe8d3f865bd4e87b86eba77683529e6c89e5cc25
6
+ metadata.gz: c0c27f17e238151ac6b8eb6ccccda91f02730601bdb1f787963a8a9b7657d8de2def4a2f6711c9bd38405ae02d5372556018c9c3bca4c58039d2be7d75a7b54f
7
+ data.tar.gz: 5b7d25aa907ec75efcf6d405322f74837cff69f3d035455e5fefb3d824cfa31e3ec39147f7f05ad7629cbc8fd93468765734a86f7967cdf8bbc07805f5b75805
@@ -8,10 +8,7 @@ module DeviseMultipleTokenAuth
8
8
  end
9
9
  @device = Device.find_by_auth_token(token)
10
10
  if !@device || @device.expired? || @device.user == nil
11
- respond_to do |format|
12
- format.html { redirect_to new_user_session_path }
13
- format.json { render status: :unauthorized, nothing: true }
14
- end
11
+ render json: { }, status: :unauthorized
15
12
  else
16
13
  @device.expires_at = Time.now + (DeviseMultipleTokenAuth.device_expires_in_days || 14).days
17
14
  @device.save
@@ -1,3 +1,3 @@
1
1
  module DeviseMultipleTokenAuth
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_multiple_token_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Juncker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-16 00:00:00.000000000 Z
11
+ date: 2015-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails