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: 2ff493b67a4701d70bbc56086e9b27b87c77811b
4
- data.tar.gz: 1e57af80ab57100aed35f73f3a1dfdfdd6434339
3
+ metadata.gz: fe12b0947eb60f89a2360798ed2cafa40cbd2333
4
+ data.tar.gz: c4e2b8cf3d829f9444b20babcd2b051d20134a25
5
5
  SHA512:
6
- metadata.gz: 65006e27f33f226c9af873f279d942edd417dbd9f9864ae5742f87926604c06a9bca5c6e2b67dd648f6a1700dadf56658c8e6297138f362dfde4d98c4ba13571
7
- data.tar.gz: 9589d7ae29e52d20ba9693b5a7a6f5ff9d05ef55464c31aa9ba1c538f313e3fcd8aa35d26c9633fe0e2c69ed15d966103d1057fffdba4711db0c2b07d5b44c58
6
+ metadata.gz: 6c607f64086fd7f188c64e142a0ace63cea9fcb1b8902c171069115b6cce7e0a13774676b41e8016cff5e4cb877c04a8e11f9f0568131802725187786ba3f694
7
+ data.tar.gz: 550e5840d052da1cb5fd5c12f564954a6b83fb3de9a7de9c18da64e98711b7c8197988d341daf2a411b4993a80c59e2708bc0368e50eea2e1b55eab2e6a175df
@@ -1,3 +1,3 @@
1
1
  module DeviseMultipleTokenAuth
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -13,19 +13,15 @@ module DeviseMultipleTokenAuth
13
13
  Time.now.utc.strftime("%Y%m%d%H%M%S")
14
14
  end
15
15
 
16
- # def insert_into_user_model
17
- # inject_into_file "app/models/user.rb", after: /^class\sUser < ActiveRecord::Base/ do
18
- # <<-'RUBY'
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
- # ## PeterGate Roles
22
- # ## The :user role is added by default and shouldn't be included in this list.
23
- # has_many :devices, class_name: DeviseMultipleTokenAuth::Device
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.2
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-29 00:00:00.000000000 Z
11
+ date: 2015-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails