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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08dd691a8f038f811f0fa85d1e99a38a4be3729d60df0dc78cd7455aec78ece2'
4
- data.tar.gz: fa226445dcf0f97cde9598499b17bef02509bb77c0bb3780aa71a834d069bee6
3
+ metadata.gz: 8dafe37d38c6866a82af54d137fbcc8edaf36069f56102793f95bc3aa9044e5d
4
+ data.tar.gz: 3979e58f38c53794c72f1afa44a25b1705586d0d79b74da1685960e1d08099ed
5
5
  SHA512:
6
- metadata.gz: 40198fea0e5ec6605ef1e4d95aab2a55cda76988dea498a6f589791ac061da9f14790730beba28727be82655223bc50c7f195f5234a1094ee038bfe10fa8bb30
7
- data.tar.gz: 7b9e361dd480bd18d0c29c6540d67822279448fcd3510a040bb159384c25d9641a43164fecfbbeba1145d235c1153e4fde659e95d4fcfb45c35f93689f670647
6
+ metadata.gz: 53a45411c3da3f173f6f49ec6c8c3911ce8a428845203d77684b39553c15a7d886b83a0adeccc02576a469421660676a02d70b624fca6b0032352426dca7f276
7
+ data.tar.gz: ef58061ff72492f68f3f481b3cf8177ca3ddd01701151a7c8eaf64227fb9ee5ebab6b4d3ed1ab45b8f6e7b54ba1bab6a80aa092ae0c3bfbcb7af1ed20134018e
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RbsDevise
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
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.1.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-30 00:00:00.000000000 Z
11
+ date: 2023-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise