devise_token_auth 1.0.0.rc2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of devise_token_auth might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 477ab5522b51d1e2f435ec19c213a1a1e628dfec
4
- data.tar.gz: 2237143fb8b5f0103dfc37226f59cf12965e5ef0
3
+ metadata.gz: 916c84285bb6b805d3a70a5adc8e86d83efb348e
4
+ data.tar.gz: 38deed793c1466de04cd75ab4861627a5eb18447
5
5
  SHA512:
6
- metadata.gz: f764c8cdef2e374f8160c77b27e89f0acc992db32a187bd61ebe8cedb5ddfb3ffd0978f76a104399a4709a5644862b258973584a68a07cfc7865bc7209bdb8c4
7
- data.tar.gz: 91f359fb389845f3df447f192f226d5d88e8acdf39d0ec8ede773b7e6ef006e6f59abe268fd0a2dff352c2253e41ae7100d4b54e8ee05e35876fde812b54514d
6
+ metadata.gz: 4b631710faf5afc08a2f0f0fc89a96e63c7fe07d0c7a985a19d3b5c0a18801401afe67525aa6e0a078195ca4d24c58b6a6651da667c2a7a7f40723d4974dc850
7
+ data.tar.gz: 8707ad62656749fc88de275533456b93c17545f854e40f03920365c2ba9a11c170af44787118c4d8bc59ef593c5535ce8e09c512338c0de8af860c7e2500746f
data/README.md CHANGED
@@ -57,7 +57,7 @@ Please use [StackOverflow](https://stackoverflow.com/questions/tagged/devise-tok
57
57
 
58
58
  Please open GitHub issues for bugs and enhancements only, not general help requests. Please search previous issues (and Google and StackOverflow) before creating a new issue.
59
59
 
60
- Please read the [ISSUE_TEMPLATE.md] before posting issues.
60
+ Please read the [issue template](https://github.com/lynndylanhurley/devise_token_auth/blob/master/.github/ISSUE_TEMPLATE.md) before posting issues.
61
61
 
62
62
  ## [FAQ](docs/faq.md)
63
63
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeviseTokenAuth
4
- VERSION = '1.0.0.rc2'.freeze
4
+ VERSION = '1.0.0'.freeze
5
5
  end
@@ -0,0 +1,5 @@
1
+ <p><%= t(:welcome).capitalize + ' ' + @email %>!</p>
2
+
3
+ <p><%= t '.confirm_link_msg' %> </p>
4
+
5
+ <p><%= link_to t('.confirm_account_link'), confirmation_url(@resource, {confirmation_token: @token, config: message['client-config'].to_s, redirect_url: message['redirect-url']}).html_safe %></p>
@@ -0,0 +1,8 @@
1
+ <p><%= t(:hello).capitalize %> <%= @resource.email %>!</p>
2
+
3
+ <p><%= t '.request_reset_link_msg' %></p>
4
+
5
+ <p><%= link_to t('.password_change_link'), edit_password_url(@resource, reset_password_token: @token, config: message['client-config'].to_s, redirect_url: message['redirect-url'].to_s).html_safe %></p>
6
+
7
+ <p><%= t '.ignore_mail_msg' %></p>
8
+ <p><%= t '.no_changes_msg' %></p>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_token_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lynn Hurley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-21 00:00:00.000000000 Z
11
+ date: 2018-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -251,10 +251,8 @@ files:
251
251
  - test/dummy/db/migrate/20160629184441_devise_token_auth_create_lockable_users.rb
252
252
  - test/dummy/db/schema.rb
253
253
  - test/dummy/lib/migration_database_helper.rb
254
- - test/dummy/tmp/generators/app/models/user.rb
255
- - test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
256
- - test/dummy/tmp/generators/config/routes.rb
257
- - test/dummy/tmp/generators/db/migrate/20180920132503_devise_token_auth_create_users.rb
254
+ - test/dummy/tmp/generators/app/views/devise/mailer/confirmation_instructions.html.erb
255
+ - test/dummy/tmp/generators/app/views/devise/mailer/reset_password_instructions.html.erb
258
256
  - test/factories/users.rb
259
257
  - test/lib/devise_token_auth/url_test.rb
260
258
  - test/lib/generators/devise_token_auth/install_generator_test.rb
@@ -279,9 +277,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
279
277
  version: 2.2.0
280
278
  required_rubygems_version: !ruby/object:Gem::Requirement
281
279
  requirements:
282
- - - ">"
280
+ - - ">="
283
281
  - !ruby/object:Gem::Version
284
- version: 1.3.1
282
+ version: '0'
285
283
  requirements: []
286
284
  rubyforge_project:
287
285
  rubygems_version: 2.6.14.1
@@ -348,10 +346,8 @@ test_files:
348
346
  - test/dummy/db/migrate/20160103235141_devise_token_auth_create_scoped_users.rb
349
347
  - test/dummy/db/migrate/20140715061447_devise_token_auth_create_users.rb
350
348
  - test/dummy/db/migrate/20140715061805_devise_token_auth_create_mangs.rb
351
- - test/dummy/tmp/generators/app/models/user.rb
352
- - test/dummy/tmp/generators/config/routes.rb
353
- - test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
354
- - test/dummy/tmp/generators/db/migrate/20180920132503_devise_token_auth_create_users.rb
349
+ - test/dummy/tmp/generators/app/views/devise/mailer/confirmation_instructions.html.erb
350
+ - test/dummy/tmp/generators/app/views/devise/mailer/reset_password_instructions.html.erb
355
351
  - test/dummy/README.rdoc
356
352
  - test/models/only_email_user_test.rb
357
353
  - test/models/user_test.rb
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class User < ActiveRecord::Base
4
- # Include default devise modules. Others available are:
5
- # :confirmable, :lockable, :timeoutable and :omniauthable
6
- devise :database_authenticatable, :registerable,
7
- :recoverable, :rememberable, :trackable, :validatable
8
- include DeviseTokenAuth::Concerns::User
9
- end
@@ -1,50 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- DeviseTokenAuth.setup do |config|
4
- # By default the authorization headers will change after each request. The
5
- # client is responsible for keeping track of the changing tokens. Change
6
- # this to false to prevent the Authorization header from changing after
7
- # each request.
8
- # config.change_headers_on_each_request = true
9
-
10
- # By default, users will need to re-authenticate after 2 weeks. This setting
11
- # determines how long tokens will remain valid after they are issued.
12
- # config.token_lifespan = 2.weeks
13
-
14
- # Sets the max number of concurrent devices per user, which is 10 by default.
15
- # After this limit is reached, the oldest tokens will be removed.
16
- # config.max_number_of_devices = 10
17
-
18
- # Sometimes it's necessary to make several requests to the API at the same
19
- # time. In this case, each request in the batch will need to share the same
20
- # auth token. This setting determines how far apart the requests can be while
21
- # still using the same auth token.
22
- # config.batch_request_buffer_throttle = 5.seconds
23
-
24
- # This route will be the prefix for all oauth2 redirect callbacks. For
25
- # example, using the default '/omniauth', the github oauth2 provider will
26
- # redirect successful authentications to '/omniauth/github/callback'
27
- # config.omniauth_prefix = "/omniauth"
28
-
29
- # By default sending current password is not needed for the password update.
30
- # Uncomment to enforce current_password param to be checked before all
31
- # attribute updates. Set it to :password if you want it to be checked only if
32
- # password is updated.
33
- # config.check_current_password_before_update = :attributes
34
-
35
- # By default we will use callbacks for single omniauth.
36
- # It depends on fields like email, provider and uid.
37
- # config.default_callbacks = true
38
-
39
- # Makes it possible to change the headers names
40
- # config.headers_names = {:'access-token' => 'access-token',
41
- # :'client' => 'client',
42
- # :'expiry' => 'expiry',
43
- # :'uid' => 'uid',
44
- # :'token-type' => 'token-type' }
45
-
46
- # By default, only Bearer Token authentication is implemented out of the box.
47
- # If, however, you wish to integrate with legacy Devise authentication, you can
48
- # do so by enabling this flag. NOTE: This feature is highly experimental!
49
- # config.enable_standard_devise_support = false
50
- end
@@ -1,4 +0,0 @@
1
- Rails.application.routes.draw do
2
- mount_devise_token_auth_for 'User', at: 'auth'
3
- patch '/chong', to: 'bong#index'
4
- end
@@ -1,56 +0,0 @@
1
- class DeviseTokenAuthCreateUsers < ActiveRecord::Migration[5.1]
2
- def change
3
-
4
- create_table(:users) do |t|
5
- ## Required
6
- t.string :provider, :null => false, :default => "email"
7
- t.string :uid, :null => false, :default => ""
8
-
9
- ## Database authenticatable
10
- t.string :encrypted_password, :null => false, :default => ""
11
-
12
- ## Recoverable
13
- t.string :reset_password_token
14
- t.datetime :reset_password_sent_at
15
- t.boolean :allow_password_change, :default => false
16
-
17
- ## Rememberable
18
- t.datetime :remember_created_at
19
-
20
- ## Trackable
21
- t.integer :sign_in_count, :default => 0, :null => false
22
- t.datetime :current_sign_in_at
23
- t.datetime :last_sign_in_at
24
- t.string :current_sign_in_ip
25
- t.string :last_sign_in_ip
26
-
27
- ## Confirmable
28
- t.string :confirmation_token
29
- t.datetime :confirmed_at
30
- t.datetime :confirmation_sent_at
31
- t.string :unconfirmed_email # Only if using reconfirmable
32
-
33
- ## Lockable
34
- # t.integer :failed_attempts, :default => 0, :null => false # Only if lock strategy is :failed_attempts
35
- # t.string :unlock_token # Only if unlock strategy is :email or :both
36
- # t.datetime :locked_at
37
-
38
- ## User Info
39
- t.string :name
40
- t.string :nickname
41
- t.string :image
42
- t.string :email
43
-
44
- ## Tokens
45
- t.text :tokens
46
-
47
- t.timestamps
48
- end
49
-
50
- add_index :users, :email, unique: true
51
- add_index :users, [:uid, :provider], unique: true
52
- add_index :users, :reset_password_token, unique: true
53
- add_index :users, :confirmation_token, unique: true
54
- # add_index :users, :unlock_token, unique: true
55
- end
56
- end