rbs_devise 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbs_devise/devise.rb +18 -0
- data/lib/rbs_devise/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dafe37d38c6866a82af54d137fbcc8edaf36069f56102793f95bc3aa9044e5d
|
4
|
+
data.tar.gz: 3979e58f38c53794c72f1afa44a25b1705586d0d79b74da1685960e1d08099ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53a45411c3da3f173f6f49ec6c8c3911ce8a428845203d77684b39553c15a7d886b83a0adeccc02576a469421660676a02d70b624fca6b0032352426dca7f276
|
7
|
+
data.tar.gz: ef58061ff72492f68f3f481b3cf8177ca3ddd01701151a7c8eaf64227fb9ee5ebab6b4d3ed1ab45b8f6e7b54ba1bab6a80aa092ae0c3bfbcb7af1ed20134018e
|
data/lib/rbs_devise/devise.rb
CHANGED
@@ -28,11 +28,13 @@ module RbsDevise
|
|
28
28
|
module Devise
|
29
29
|
#{devise_controllers_signinout_decl}
|
30
30
|
#{device_helpers_decl}
|
31
|
+
#{device_models_decl}
|
31
32
|
#{devise_sessions_controller_decl}
|
32
33
|
end
|
33
34
|
|
34
35
|
#{devise_controller_decl}
|
35
36
|
#{actioncontroller_base_decl}
|
37
|
+
#{activerecord_base_decl}
|
36
38
|
RBS
|
37
39
|
end
|
38
40
|
|
@@ -75,6 +77,14 @@ module RbsDevise
|
|
75
77
|
end.join("\n")
|
76
78
|
end
|
77
79
|
|
80
|
+
def device_models_decl
|
81
|
+
<<~RBS
|
82
|
+
module Models
|
83
|
+
def devise: (*Symbol) -> void
|
84
|
+
end
|
85
|
+
RBS
|
86
|
+
end
|
87
|
+
|
78
88
|
def devise_sessions_controller_decl
|
79
89
|
<<~RBS
|
80
90
|
class SessionsController < DeviseController
|
@@ -104,6 +114,14 @@ module RbsDevise
|
|
104
114
|
RBS
|
105
115
|
end
|
106
116
|
|
117
|
+
def activerecord_base_decl
|
118
|
+
<<~RBS
|
119
|
+
class ActiveRecord::Base
|
120
|
+
include Devise::Models
|
121
|
+
end
|
122
|
+
RBS
|
123
|
+
end
|
124
|
+
|
107
125
|
def parent_controller
|
108
126
|
::Devise.parent_controller
|
109
127
|
end
|
data/lib/rbs_devise/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbs_devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takeshi KOMIYA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|