devise_code_authenticatable 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a45fecc7c5ffa1bc9f4b9861efc1867cedb67220db7430853d5da473a599a64
4
- data.tar.gz: 2a5b3b4438e4b56c2344912983e3fd908289921a05fc6b4942fa10b84480230c
3
+ metadata.gz: 92aeed0596899fc54c2f4055f0973d3a5abfc78154934af614b2f8d9beb66151
4
+ data.tar.gz: 89f80c474d061b03bc8715023f27b54ebdd1197562af5d1f603a32679b409489
5
5
  SHA512:
6
- metadata.gz: 1148959e6e80fddd3c44b9f6a0b7691a68e32f35dcdf25a8d3955c496d014b0d01208d1c43de3add30a6279d7ca738ed13b182398247f9238efcf30a990c387a
7
- data.tar.gz: e2f8b627882ca7b7fbf6b19f848600fad35b69dc75d78c0615a45500f0ddee4983607163c8777dc06ee7941ff8aa43acccee45cec5715d7b57ca040f420f51c5
6
+ metadata.gz: 9c03c02dd6728b7ba3b18b2d5e55a168157d146ad5b395116ad1bcbaa23489a50e0fdee33d584847846f442d4ad373a26d54245b5b71338f8d0ab7954d861949
7
+ data.tar.gz: '09107222a306a85ac035d8fc8c1095e46f1be0ede2d774ba32f511bccabf69c3eb0bfccf859b41d7392e88a21e74448dcbaf59a06ffd2dd032b6a9decf7ee66d'
@@ -4,6 +4,15 @@ module ActionDispatch::Routing
4
4
  protected
5
5
 
6
6
  def devise_login_code(mapping, controllers)
7
+ resource :session, only: [], path: "",
8
+ controller: controllers[:sessions] do
9
+ collection do
10
+ get :new, path: mapping.path_names[:sign_in], as: :new
11
+ post :create, path: mapping.path_names[:sign_in]
12
+ delete :destroy, path: mapping.path_names[:sign_out], as: :destroy
13
+ end
14
+ end
15
+
7
16
  resources :login_codes, only: [:show],
8
17
  controller: controllers[:login_codes] do
9
18
  member do
@@ -1,3 +1,3 @@
1
1
  module DeviseCodeAuthenticatable
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_code_authenticatable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - vincentying15
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-20 00:00:00.000000000 Z
11
+ date: 2020-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails