devise_multiple_token_auth 0.0.2 → 0.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe12b0947eb60f89a2360798ed2cafa40cbd2333
|
4
|
+
data.tar.gz: c4e2b8cf3d829f9444b20babcd2b051d20134a25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c607f64086fd7f188c64e142a0ace63cea9fcb1b8902c171069115b6cce7e0a13774676b41e8016cff5e4cb877c04a8e11f9f0568131802725187786ba3f694
|
7
|
+
data.tar.gz: 550e5840d052da1cb5fd5c12f564954a6b83fb3de9a7de9c18da64e98711b7c8197988d341daf2a411b4993a80c59e2708bc0368e50eea2e1b55eab2e6a175df
|
@@ -13,19 +13,15 @@ module DeviseMultipleTokenAuth
|
|
13
13
|
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
14
14
|
end
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
def insert_into_user_model
|
17
|
+
inject_into_file "app/models/user.rb", after: /^class\sUser < ActiveRecord::Base/ do
|
18
|
+
<<-'RUBY'
|
19
19
|
|
20
|
-
#
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
# RUBY
|
27
|
-
# end
|
28
|
-
# end
|
20
|
+
# Allows token auth devices to be created by calling user.create_device
|
21
|
+
devise_token_authenticable
|
22
|
+
RUBY
|
23
|
+
end
|
24
|
+
end
|
29
25
|
|
30
26
|
def copy_initializer
|
31
27
|
template "devise_multiple_token_auth.rb", "config/initializers/devise_multiple_token_auth.rb"
|
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
|
+
version: 0.0.3
|
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-08-
|
11
|
+
date: 2015-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|