rbs_devise 0.2.1 → 1.0.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: 3879b95db460f238ea805b89aec709db6433e67587be58572294612fdfe56337
4
- data.tar.gz: 529bc991ab6349cb235919e68fb5ae0fbace74776a359c238ac352e4a938fe16
3
+ metadata.gz: 5887b0f7433600cea6277d216265751c6d2bbefbbbdaa002498df14fa4e3492c
4
+ data.tar.gz: cf06057969d3eb9513fe78fb57d4ada268f367033560ce8e41bf5243d9e15132
5
5
  SHA512:
6
- metadata.gz: 0c44228c2bb3e41967b9f5fda159ebf6d8ddcaa90f0f480d75ed809ac329e48e923ef5674cbd6c152c0b3980ab21728f20eddf12140066ca8e37cb4c30073ed7
7
- data.tar.gz: fd5f7aba1e09a1c3c673d9182e85ee17782fdbfa891c764096d9b4e12418d8d603e4fb3122327a6cad00a23babe46b9571e268ea9a7ad9d82f80a05e4f982ea2
6
+ metadata.gz: 7cf1480df5095701a9320b3f20f8355572167339087d6feca19cbbecf6fa77b83105fde15abd39b5d0783a929aee986c46f94b2ccab290e2d4d24d4d96e64ef7
7
+ data.tar.gz: 3bc6f83a9b53aeae823e411f382d5ba92dbd988e0d26b350800da26965528993ac36236cd275cd6b66d3ecd2425e9b7fdbf339504e3d67866033716c7a3851c0
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.6
2
+ TargetRubyVersion: 2.7
3
3
 
4
4
  Style/Documentation:
5
5
  Enabled: false
@@ -100,9 +100,9 @@ module RbsDevise
100
100
  class DeviseController < #{parent_controller}
101
101
  def find_message: (String | Symbol kind, ?Hash[untyped, untyped] options) -> String
102
102
  def navigational_formats: () -> Array[Mime::Type]
103
- def resource: () -> #{resource_classes.join(" | ")}
103
+ def resource: () -> (#{resource_classes.join(" | ")})
104
104
  def resource=: #{resource_classes.map { |klass| "(#{klass}) -> #{klass}" }.join(" | ")}
105
- def resource_class: () -> #{resource_classes.map { |klass| "singleton(#{klass})" }.join(" | ")}
105
+ def resource_class: () -> (#{resource_classes.map { |klass| "singleton(#{klass})" }.join(" | ")})
106
106
  def resource_name: () -> Symbol
107
107
  end
108
108
  RBS
@@ -119,7 +119,7 @@ module RbsDevise
119
119
  def activerecord_base_decl
120
120
  <<~RBS
121
121
  class ActiveRecord::Base
122
- include Devise::Models
122
+ extend Devise::Models
123
123
  end
124
124
  RBS
125
125
  end
@@ -28,7 +28,7 @@ module RbsDevise
28
28
  def define_generate_task
29
29
  desc "Generate a RBS file for Devise"
30
30
  task("#{name}:generate": :environment) do
31
- require "rbs_devise" # load RbsDevise lazily
31
+ require "rbs_devise" # load RbsDevise lazily
32
32
 
33
33
  next unless RbsDevise::Devise.available?
34
34
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RbsDevise
4
- VERSION = "0.2.1"
4
+ VERSION = "1.0.0"
5
5
  end
@@ -2,7 +2,7 @@
2
2
  sources:
3
3
  - type: git
4
4
  name: ruby/gem_rbs_collection
5
- revision: 5666e737d2b27a8425b4e3855c1a38cae54989f7
5
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
6
6
  remote: https://github.com/ruby/gem_rbs_collection.git
7
7
  repo_dir: gems
8
8
  path: ".gem_rbs_collection"
@@ -12,7 +12,7 @@ gems:
12
12
  source:
13
13
  type: git
14
14
  name: ruby/gem_rbs_collection
15
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
15
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
16
16
  remote: https://github.com/ruby/gem_rbs_collection.git
17
17
  repo_dir: gems
18
18
  - name: actionpack
@@ -20,7 +20,7 @@ gems:
20
20
  source:
21
21
  type: git
22
22
  name: ruby/gem_rbs_collection
23
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
23
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
24
24
  remote: https://github.com/ruby/gem_rbs_collection.git
25
25
  repo_dir: gems
26
26
  - name: actionview
@@ -28,7 +28,7 @@ gems:
28
28
  source:
29
29
  type: git
30
30
  name: ruby/gem_rbs_collection
31
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
31
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
32
32
  remote: https://github.com/ruby/gem_rbs_collection.git
33
33
  repo_dir: gems
34
34
  - name: activejob
@@ -36,7 +36,7 @@ gems:
36
36
  source:
37
37
  type: git
38
38
  name: ruby/gem_rbs_collection
39
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
39
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
40
40
  remote: https://github.com/ruby/gem_rbs_collection.git
41
41
  repo_dir: gems
42
42
  - name: activemodel
@@ -44,23 +44,15 @@ gems:
44
44
  source:
45
45
  type: git
46
46
  name: ruby/gem_rbs_collection
47
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
47
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
48
48
  remote: https://github.com/ruby/gem_rbs_collection.git
49
49
  repo_dir: gems
50
50
  - name: activerecord
51
- version: '7.0'
51
+ version: '7.1'
52
52
  source:
53
53
  type: git
54
54
  name: ruby/gem_rbs_collection
55
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
56
- remote: https://github.com/ruby/gem_rbs_collection.git
57
- repo_dir: gems
58
- - name: activestorage
59
- version: '6.1'
60
- source:
61
- type: git
62
- name: ruby/gem_rbs_collection
63
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
55
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
64
56
  remote: https://github.com/ruby/gem_rbs_collection.git
65
57
  repo_dir: gems
66
58
  - name: activesupport
@@ -68,7 +60,7 @@ gems:
68
60
  source:
69
61
  type: git
70
62
  name: ruby/gem_rbs_collection
71
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
63
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
72
64
  remote: https://github.com/ruby/gem_rbs_collection.git
73
65
  repo_dir: gems
74
66
  - name: ast
@@ -76,7 +68,7 @@ gems:
76
68
  source:
77
69
  type: git
78
70
  name: ruby/gem_rbs_collection
79
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
71
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
80
72
  remote: https://github.com/ruby/gem_rbs_collection.git
81
73
  repo_dir: gems
82
74
  - name: base64
@@ -88,9 +80,13 @@ gems:
88
80
  source:
89
81
  type: git
90
82
  name: ruby/gem_rbs_collection
91
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
83
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
92
84
  remote: https://github.com/ruby/gem_rbs_collection.git
93
85
  repo_dir: gems
86
+ - name: bigdecimal
87
+ version: '0'
88
+ source:
89
+ type: stdlib
94
90
  - name: cgi
95
91
  version: '0'
96
92
  source:
@@ -100,19 +96,35 @@ gems:
100
96
  source:
101
97
  type: git
102
98
  name: ruby/gem_rbs_collection
103
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
99
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
100
+ remote: https://github.com/ruby/gem_rbs_collection.git
101
+ repo_dir: gems
102
+ - name: connection_pool
103
+ version: '2.4'
104
+ source:
105
+ type: git
106
+ name: ruby/gem_rbs_collection
107
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
104
108
  remote: https://github.com/ruby/gem_rbs_collection.git
105
109
  repo_dir: gems
106
110
  - name: date
107
111
  version: '0'
108
112
  source:
109
113
  type: stdlib
114
+ - name: erb
115
+ version: '0'
116
+ source:
117
+ type: stdlib
118
+ - name: fileutils
119
+ version: '0'
120
+ source:
121
+ type: stdlib
110
122
  - name: globalid
111
123
  version: '1.1'
112
124
  source:
113
125
  type: git
114
126
  name: ruby/gem_rbs_collection
115
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
127
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
116
128
  remote: https://github.com/ruby/gem_rbs_collection.git
117
129
  repo_dir: gems
118
130
  - name: i18n
@@ -120,9 +132,13 @@ gems:
120
132
  source:
121
133
  type: git
122
134
  name: ruby/gem_rbs_collection
123
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
135
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
124
136
  remote: https://github.com/ruby/gem_rbs_collection.git
125
137
  repo_dir: gems
138
+ - name: io-console
139
+ version: '0'
140
+ source:
141
+ type: stdlib
126
142
  - name: json
127
143
  version: '0'
128
144
  source:
@@ -136,7 +152,15 @@ gems:
136
152
  source:
137
153
  type: git
138
154
  name: ruby/gem_rbs_collection
139
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
155
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
156
+ remote: https://github.com/ruby/gem_rbs_collection.git
157
+ repo_dir: gems
158
+ - name: mini_mime
159
+ version: '0.1'
160
+ source:
161
+ type: git
162
+ name: ruby/gem_rbs_collection
163
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
140
164
  remote: https://github.com/ruby/gem_rbs_collection.git
141
165
  repo_dir: gems
142
166
  - name: minitest
@@ -156,7 +180,7 @@ gems:
156
180
  source:
157
181
  type: git
158
182
  name: ruby/gem_rbs_collection
159
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
183
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
160
184
  remote: https://github.com/ruby/gem_rbs_collection.git
161
185
  repo_dir: gems
162
186
  - name: openssl
@@ -168,7 +192,15 @@ gems:
168
192
  source:
169
193
  type: git
170
194
  name: ruby/gem_rbs_collection
171
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
195
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
196
+ remote: https://github.com/ruby/gem_rbs_collection.git
197
+ repo_dir: gems
198
+ - name: parser
199
+ version: '3.2'
200
+ source:
201
+ type: git
202
+ name: ruby/gem_rbs_collection
203
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
172
204
  remote: https://github.com/ruby/gem_rbs_collection.git
173
205
  repo_dir: gems
174
206
  - name: pathname
@@ -180,7 +212,7 @@ gems:
180
212
  source:
181
213
  type: git
182
214
  name: ruby/gem_rbs_collection
183
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
215
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
184
216
  remote: https://github.com/ruby/gem_rbs_collection.git
185
217
  repo_dir: gems
186
218
  - name: rails-dom-testing
@@ -188,7 +220,7 @@ gems:
188
220
  source:
189
221
  type: git
190
222
  name: ruby/gem_rbs_collection
191
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
223
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
192
224
  remote: https://github.com/ruby/gem_rbs_collection.git
193
225
  repo_dir: gems
194
226
  - name: railties
@@ -196,7 +228,7 @@ gems:
196
228
  source:
197
229
  type: git
198
230
  name: ruby/gem_rbs_collection
199
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
231
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
200
232
  remote: https://github.com/ruby/gem_rbs_collection.git
201
233
  repo_dir: gems
202
234
  - name: rainbow
@@ -204,7 +236,43 @@ gems:
204
236
  source:
205
237
  type: git
206
238
  name: ruby/gem_rbs_collection
207
- revision: 306d1aec19defeb177e217d8aad9812a52bcd5eb
239
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
240
+ remote: https://github.com/ruby/gem_rbs_collection.git
241
+ repo_dir: gems
242
+ - name: rake
243
+ version: '13.0'
244
+ source:
245
+ type: git
246
+ name: ruby/gem_rbs_collection
247
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
248
+ remote: https://github.com/ruby/gem_rbs_collection.git
249
+ repo_dir: gems
250
+ - name: rdoc
251
+ version: '0'
252
+ source:
253
+ type: stdlib
254
+ - name: regexp_parser
255
+ version: '2.8'
256
+ source:
257
+ type: git
258
+ name: ruby/gem_rbs_collection
259
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
260
+ remote: https://github.com/ruby/gem_rbs_collection.git
261
+ repo_dir: gems
262
+ - name: rubocop
263
+ version: '1.57'
264
+ source:
265
+ type: git
266
+ name: ruby/gem_rbs_collection
267
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
268
+ remote: https://github.com/ruby/gem_rbs_collection.git
269
+ repo_dir: gems
270
+ - name: rubocop-ast
271
+ version: '1.30'
272
+ source:
273
+ type: git
274
+ name: ruby/gem_rbs_collection
275
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
208
276
  remote: https://github.com/ruby/gem_rbs_collection.git
209
277
  repo_dir: gems
210
278
  - name: securerandom
@@ -223,6 +291,14 @@ gems:
223
291
  version: '0'
224
292
  source:
225
293
  type: stdlib
294
+ - name: thor
295
+ version: '1.2'
296
+ source:
297
+ type: git
298
+ name: ruby/gem_rbs_collection
299
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
300
+ remote: https://github.com/ruby/gem_rbs_collection.git
301
+ repo_dir: gems
226
302
  - name: time
227
303
  version: '0'
228
304
  source:
@@ -235,6 +311,14 @@ gems:
235
311
  version: '0'
236
312
  source:
237
313
  type: stdlib
314
+ - name: tzinfo
315
+ version: '2.0'
316
+ source:
317
+ type: git
318
+ name: ruby/gem_rbs_collection
319
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
320
+ remote: https://github.com/ruby/gem_rbs_collection.git
321
+ repo_dir: gems
238
322
  - name: uri
239
323
  version: '0'
240
324
  source:
data/rbs_devise.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = "A RBS files generator for discard gem"
13
13
  spec.homepage = "https://github.com/tk0miya/rbs_devise"
14
14
  spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.6.0"
15
+ spec.required_ruby_version = ">= 2.7.0"
16
16
 
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
18
  spec.metadata["source_code_uri"] = spec.homepage
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.2.1
4
+ version: 1.0.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-09-02 00:00:00.000000000 Z
11
+ date: 2024-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise
@@ -66,8 +66,6 @@ files:
66
66
  - sig/rbs_devise.rbs
67
67
  - sig/rbs_devise/devise.rbs
68
68
  - sig/rbs_devise/rake_task.rbs
69
- - sig/shims/rake.rbs
70
- - sig/shims/thor.rbs
71
69
  homepage: https://github.com/tk0miya/rbs_devise
72
70
  licenses:
73
71
  - MIT
@@ -83,14 +81,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
83
81
  requirements:
84
82
  - - ">="
85
83
  - !ruby/object:Gem::Version
86
- version: 2.6.0
84
+ version: 2.7.0
87
85
  required_rubygems_version: !ruby/object:Gem::Requirement
88
86
  requirements:
89
87
  - - ">="
90
88
  - !ruby/object:Gem::Version
91
89
  version: '0'
92
90
  requirements: []
93
- rubygems_version: 3.4.10
91
+ rubygems_version: 3.4.19
94
92
  signing_key:
95
93
  specification_version: 4
96
94
  summary: A RBS files generator for discard gem
data/sig/shims/rake.rbs DELETED
@@ -1,18 +0,0 @@
1
- module Rake
2
- class TaskLib
3
- include Rake::DSL
4
- end
5
-
6
- module DSL
7
- private
8
-
9
- def desc: (String description) -> void
10
- def file: (*untyped args) ?{ () -> void } -> void
11
- def import: (*String fns) -> void
12
- def multitask: (*untyped args) ?{ () -> void } -> void
13
- def namespace: (?String? name) ?{ () -> void } -> void
14
- def rule: (*untyped args) ?{ () -> void } -> void
15
- def task: (*untyped args) ?{ () -> void } -> void
16
- def sh: (*String cmd) ?{ (bool, Process::Status) -> void } -> void
17
- end
18
- end
data/sig/shims/thor.rbs DELETED
@@ -1,5 +0,0 @@
1
- class Thor
2
- module Actions
3
- def create_file: (String destination, *String? args, ?config: bool) ?{ () -> void } -> untyped
4
- end
5
- end