rbs_rails 0.12.0 → 0.12.1
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 +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/CHANGELOG.md +8 -0
- data/Gemfile +3 -3
- data/Gemfile.lock +179 -124
- data/README.md +1 -0
- data/Steepfile +5 -0
- data/lib/generators/rbs_rails/install_generator.rb +16 -12
- data/lib/rbs_rails/active_record.rb +51 -43
- data/lib/rbs_rails/dependency_builder.rb +5 -1
- data/lib/rbs_rails/rake_task.rb +7 -7
- data/lib/rbs_rails/util.rb +7 -12
- data/lib/rbs_rails/version.rb +1 -1
- data/rbs_collection.lock.yaml +228 -48
- data/rbs_collection.yaml +0 -2
- data/rbs_rails.gemspec +1 -1
- data/sig/rbs_rails/active_record.rbs +7 -3
- data/sig/rbs_rails/dependency_builder.rbs +4 -0
- data/sig/rbs_rails/rake_task.rbs +1 -1
- data/sig/rbs_rails/util.rbs +1 -1
- metadata +4 -9
- data/sig/_internal/fileutils.rbs +0 -4
- data/sig/_internal/thor.rbs +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 548705372663c4a155d0af70f4e0a3fb3541e19f87494810423730133b9f8f03
|
4
|
+
data.tar.gz: 408c17d1cc880a7e842f8924a8a8fa4e03c249cad492c9841b07a25946c4bd86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b14c2090fa99f4ad9e6aee151dde75902bbf25cd113502c43971eb3cb0bf8b85a211b5b2775c34da292f310d71ef6ace1593abb9bf7e82a8d96cc303e41cc24e
|
7
|
+
data.tar.gz: 70795ec8af65615efa4db6e018f3f14c06aee9d87a57020d367034ec29cb72494df431467f8619afe81710486a48178bc6b5fb9ece5b773953ea082a2627065e
|
data/.github/workflows/ci.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
## master (unreleased)
|
4
4
|
|
5
|
+
## 0.12.1
|
6
|
+
|
7
|
+
* Drop support for old Rubies. [#284](https://github.com/pocke/rbs_rails/pull/284)
|
8
|
+
* Make type names absolute to avoid referring to incorrect class. [#265](https://github.com/pocke/rbs_rails/pull/265)
|
9
|
+
* Avoid to create directory on initialization. [#261](https://github.com/pocke/rbs_rails/pull/261)
|
10
|
+
* Make `build_*` methods parameters optional. [#258](https://github.com/pocke/rbs_rails/pull/258)
|
11
|
+
* Skip to define rake tasks when rbs_rails is not able to load. [#251](https://github.com/pocke/rbs_rails/pull/251)
|
12
|
+
|
5
13
|
## 0.12.0
|
6
14
|
|
7
15
|
* Support RBS v3. [#246](https://github.com/pocke/rbs_rails/pull/246)
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,176 +1,231 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rbs_rails (0.12.
|
4
|
+
rbs_rails (0.12.1)
|
5
5
|
parser
|
6
6
|
rbs (>= 1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actioncable (
|
12
|
-
actionpack (=
|
13
|
-
activesupport (=
|
11
|
+
actioncable (7.2.2)
|
12
|
+
actionpack (= 7.2.2)
|
13
|
+
activesupport (= 7.2.2)
|
14
14
|
nio4r (~> 2.0)
|
15
15
|
websocket-driver (>= 0.6.1)
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
16
|
+
zeitwerk (~> 2.6)
|
17
|
+
actionmailbox (7.2.2)
|
18
|
+
actionpack (= 7.2.2)
|
19
|
+
activejob (= 7.2.2)
|
20
|
+
activerecord (= 7.2.2)
|
21
|
+
activestorage (= 7.2.2)
|
22
|
+
activesupport (= 7.2.2)
|
23
|
+
mail (>= 2.8.0)
|
24
|
+
actionmailer (7.2.2)
|
25
|
+
actionpack (= 7.2.2)
|
26
|
+
actionview (= 7.2.2)
|
27
|
+
activejob (= 7.2.2)
|
28
|
+
activesupport (= 7.2.2)
|
29
|
+
mail (>= 2.8.0)
|
30
|
+
rails-dom-testing (~> 2.2)
|
31
|
+
actionpack (7.2.2)
|
32
|
+
actionview (= 7.2.2)
|
33
|
+
activesupport (= 7.2.2)
|
34
|
+
nokogiri (>= 1.8.5)
|
35
|
+
racc
|
36
|
+
rack (>= 2.2.4, < 3.2)
|
37
|
+
rack-session (>= 1.0.1)
|
34
38
|
rack-test (>= 0.6.3)
|
35
|
-
rails-dom-testing (~> 2.
|
36
|
-
rails-html-sanitizer (~> 1.
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
rails-dom-testing (~> 2.2)
|
40
|
+
rails-html-sanitizer (~> 1.6)
|
41
|
+
useragent (~> 0.16)
|
42
|
+
actiontext (7.2.2)
|
43
|
+
actionpack (= 7.2.2)
|
44
|
+
activerecord (= 7.2.2)
|
45
|
+
activestorage (= 7.2.2)
|
46
|
+
activesupport (= 7.2.2)
|
47
|
+
globalid (>= 0.6.0)
|
42
48
|
nokogiri (>= 1.8.5)
|
43
|
-
actionview (
|
44
|
-
activesupport (=
|
49
|
+
actionview (7.2.2)
|
50
|
+
activesupport (= 7.2.2)
|
45
51
|
builder (~> 3.1)
|
46
|
-
erubi (~> 1.
|
47
|
-
rails-dom-testing (~> 2.
|
48
|
-
rails-html-sanitizer (~> 1.
|
49
|
-
activejob (
|
50
|
-
activesupport (=
|
52
|
+
erubi (~> 1.11)
|
53
|
+
rails-dom-testing (~> 2.2)
|
54
|
+
rails-html-sanitizer (~> 1.6)
|
55
|
+
activejob (7.2.2)
|
56
|
+
activesupport (= 7.2.2)
|
51
57
|
globalid (>= 0.3.6)
|
52
|
-
activemodel (
|
53
|
-
activesupport (=
|
54
|
-
activerecord (
|
55
|
-
activemodel (=
|
56
|
-
activesupport (=
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
58
|
+
activemodel (7.2.2)
|
59
|
+
activesupport (= 7.2.2)
|
60
|
+
activerecord (7.2.2)
|
61
|
+
activemodel (= 7.2.2)
|
62
|
+
activesupport (= 7.2.2)
|
63
|
+
timeout (>= 0.4.0)
|
64
|
+
activestorage (7.2.2)
|
65
|
+
actionpack (= 7.2.2)
|
66
|
+
activejob (= 7.2.2)
|
67
|
+
activerecord (= 7.2.2)
|
68
|
+
activesupport (= 7.2.2)
|
62
69
|
marcel (~> 1.0)
|
63
|
-
|
64
|
-
|
65
|
-
|
70
|
+
activesupport (7.2.2)
|
71
|
+
base64
|
72
|
+
benchmark (>= 0.3)
|
73
|
+
bigdecimal
|
74
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
75
|
+
connection_pool (>= 2.2.5)
|
76
|
+
drb
|
66
77
|
i18n (>= 1.6, < 2)
|
78
|
+
logger (>= 1.4.2)
|
67
79
|
minitest (>= 5.1)
|
68
|
-
|
69
|
-
|
80
|
+
securerandom (>= 0.3)
|
81
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
70
82
|
ast (2.4.2)
|
71
|
-
|
72
|
-
|
83
|
+
base64 (0.2.0)
|
84
|
+
benchmark (0.3.0)
|
85
|
+
bigdecimal (3.1.8)
|
86
|
+
builder (3.3.0)
|
87
|
+
concurrent-ruby (1.3.4)
|
88
|
+
connection_pool (2.4.1)
|
73
89
|
crass (1.0.6)
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
90
|
+
csv (3.3.0)
|
91
|
+
date (3.4.0)
|
92
|
+
drb (2.2.1)
|
93
|
+
erubi (1.13.0)
|
94
|
+
ffi (1.17.0)
|
95
|
+
fileutils (1.7.3)
|
96
|
+
globalid (1.2.1)
|
97
|
+
activesupport (>= 6.1)
|
98
|
+
i18n (1.14.6)
|
79
99
|
concurrent-ruby (~> 1.0)
|
80
|
-
|
81
|
-
|
100
|
+
io-console (0.7.2)
|
101
|
+
irb (1.14.1)
|
102
|
+
rdoc (>= 4.0.0)
|
103
|
+
reline (>= 0.4.2)
|
104
|
+
json (2.7.5)
|
105
|
+
language_server-protocol (3.17.0.3)
|
106
|
+
listen (3.9.0)
|
82
107
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
83
108
|
rb-inotify (~> 0.9, >= 0.9.10)
|
84
|
-
|
109
|
+
logger (1.6.1)
|
110
|
+
loofah (2.23.1)
|
85
111
|
crass (~> 1.0.2)
|
86
|
-
nokogiri (>= 1.
|
87
|
-
mail (2.
|
112
|
+
nokogiri (>= 1.12.0)
|
113
|
+
mail (2.8.1)
|
88
114
|
mini_mime (>= 0.1.1)
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
115
|
+
net-imap
|
116
|
+
net-pop
|
117
|
+
net-smtp
|
118
|
+
marcel (1.0.4)
|
119
|
+
mini_mime (1.1.5)
|
120
|
+
mini_portile2 (2.8.7)
|
121
|
+
minitest (5.25.1)
|
122
|
+
net-imap (0.5.0)
|
123
|
+
date
|
124
|
+
net-protocol
|
125
|
+
net-pop (0.1.2)
|
126
|
+
net-protocol
|
127
|
+
net-protocol (0.2.2)
|
128
|
+
timeout
|
129
|
+
net-smtp (0.5.0)
|
130
|
+
net-protocol
|
131
|
+
nio4r (2.7.4)
|
132
|
+
nokogiri (1.16.7)
|
133
|
+
mini_portile2 (~> 2.8.2)
|
97
134
|
racc (~> 1.4)
|
98
|
-
|
99
|
-
parser (3.1.1.0)
|
135
|
+
parser (3.3.5.1)
|
100
136
|
ast (~> 2.4.1)
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
137
|
+
racc
|
138
|
+
psych (5.1.2)
|
139
|
+
stringio
|
140
|
+
racc (1.8.1)
|
141
|
+
rack (3.1.8)
|
142
|
+
rack-session (2.0.0)
|
143
|
+
rack (>= 3.0.0)
|
144
|
+
rack-test (2.1.0)
|
145
|
+
rack (>= 1.3)
|
146
|
+
rackup (2.2.0)
|
147
|
+
rack (>= 3)
|
148
|
+
rails (7.2.2)
|
149
|
+
actioncable (= 7.2.2)
|
150
|
+
actionmailbox (= 7.2.2)
|
151
|
+
actionmailer (= 7.2.2)
|
152
|
+
actionpack (= 7.2.2)
|
153
|
+
actiontext (= 7.2.2)
|
154
|
+
actionview (= 7.2.2)
|
155
|
+
activejob (= 7.2.2)
|
156
|
+
activemodel (= 7.2.2)
|
157
|
+
activerecord (= 7.2.2)
|
158
|
+
activestorage (= 7.2.2)
|
159
|
+
activesupport (= 7.2.2)
|
117
160
|
bundler (>= 1.15.0)
|
118
|
-
railties (=
|
119
|
-
|
120
|
-
|
121
|
-
|
161
|
+
railties (= 7.2.2)
|
162
|
+
rails-dom-testing (2.2.0)
|
163
|
+
activesupport (>= 5.0.0)
|
164
|
+
minitest
|
122
165
|
nokogiri (>= 1.6)
|
123
|
-
rails-html-sanitizer (1.
|
124
|
-
loofah (~> 2.
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
166
|
+
rails-html-sanitizer (1.6.0)
|
167
|
+
loofah (~> 2.21)
|
168
|
+
nokogiri (~> 1.14)
|
169
|
+
railties (7.2.2)
|
170
|
+
actionpack (= 7.2.2)
|
171
|
+
activesupport (= 7.2.2)
|
172
|
+
irb (~> 1.13)
|
173
|
+
rackup (>= 1.0.0)
|
129
174
|
rake (>= 12.2)
|
130
|
-
thor (~> 1.0)
|
175
|
+
thor (~> 1.0, >= 1.2.2)
|
176
|
+
zeitwerk (~> 2.6)
|
131
177
|
rainbow (3.1.1)
|
132
|
-
rake (13.
|
133
|
-
rb-fsevent (0.11.
|
134
|
-
rb-inotify (0.
|
178
|
+
rake (13.2.1)
|
179
|
+
rb-fsevent (0.11.2)
|
180
|
+
rb-inotify (0.11.1)
|
135
181
|
ffi (~> 1.0)
|
136
|
-
rbs (
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
steep (0.49.1)
|
182
|
+
rbs (3.6.1)
|
183
|
+
logger
|
184
|
+
rdoc (6.7.0)
|
185
|
+
psych (>= 4.0.0)
|
186
|
+
reline (0.5.10)
|
187
|
+
io-console (~> 0.5)
|
188
|
+
securerandom (0.3.1)
|
189
|
+
steep (1.8.3)
|
145
190
|
activesupport (>= 5.1)
|
191
|
+
concurrent-ruby (>= 1.1.10)
|
192
|
+
csv (>= 3.0.9)
|
193
|
+
fileutils (>= 1.1.0)
|
194
|
+
json (>= 2.1.0)
|
146
195
|
language_server-protocol (>= 3.15, < 4.0)
|
147
196
|
listen (~> 3.0)
|
148
|
-
|
149
|
-
parser (>= 3.
|
197
|
+
logger (>= 1.3.0)
|
198
|
+
parser (>= 3.1)
|
150
199
|
rainbow (>= 2.2.2, < 4.0)
|
151
|
-
rbs (
|
200
|
+
rbs (~> 3.6.0)
|
201
|
+
securerandom (>= 0.1)
|
202
|
+
strscan (>= 1.0.0)
|
152
203
|
terminal-table (>= 2, < 4)
|
204
|
+
stringio (3.1.1)
|
205
|
+
strscan (3.1.0)
|
153
206
|
terminal-table (3.0.2)
|
154
207
|
unicode-display_width (>= 1.1.1, < 3)
|
155
|
-
thor (1.2
|
156
|
-
|
208
|
+
thor (1.3.2)
|
209
|
+
timeout (0.4.1)
|
210
|
+
tzinfo (2.0.6)
|
157
211
|
concurrent-ruby (~> 1.0)
|
158
|
-
unicode-display_width (2.
|
159
|
-
|
212
|
+
unicode-display_width (2.6.0)
|
213
|
+
useragent (0.16.10)
|
214
|
+
websocket-driver (0.7.6)
|
160
215
|
websocket-extensions (>= 0.1.0)
|
161
216
|
websocket-extensions (0.1.5)
|
162
|
-
zeitwerk (2.
|
217
|
+
zeitwerk (2.7.1)
|
163
218
|
|
164
219
|
PLATFORMS
|
165
220
|
ruby
|
166
221
|
|
167
222
|
DEPENDENCIES
|
168
223
|
minitest
|
169
|
-
rails (>=
|
224
|
+
rails (>= 7.0)
|
170
225
|
rake (~> 13.0)
|
171
|
-
rbs (>=
|
226
|
+
rbs (>= 3)
|
172
227
|
rbs_rails!
|
173
|
-
steep
|
228
|
+
steep (>= 1.4)
|
174
229
|
|
175
230
|
BUNDLED WITH
|
176
|
-
2.
|
231
|
+
2.4.13
|
data/README.md
CHANGED
data/Steepfile
CHANGED
@@ -1,7 +1,12 @@
|
|
1
|
+
D = Steep::Diagnostic
|
1
2
|
target :lib do
|
2
3
|
signature "sig"
|
3
4
|
signature 'assets/sig'
|
4
5
|
|
5
6
|
check "lib" # Directory name
|
6
7
|
repo_path ENV['RBS_REPO_DIR'] if ENV['RBS_REPO_DIR']
|
8
|
+
|
9
|
+
configure_code_diagnostics do |hash|
|
10
|
+
hash[D::Ruby::UnreachableBranch] = :information
|
11
|
+
end
|
7
12
|
end
|
@@ -4,21 +4,25 @@ module RbsRails
|
|
4
4
|
class InstallGenerator < Rails::Generators::Base
|
5
5
|
def create_raketask
|
6
6
|
create_file "lib/tasks/rbs.rake", <<~RUBY
|
7
|
-
|
7
|
+
begin
|
8
|
+
require 'rbs_rails/rake_task'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
RbsRails::RakeTask.new do |task|
|
11
|
+
# If you want to avoid generating RBS for some classes, comment in it.
|
12
|
+
# default: nil
|
13
|
+
#
|
14
|
+
# task.ignore_model_if = -> (klass) { klass == MyClass }
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
16
|
+
# If you want to change the rake task namespace, comment in it.
|
17
|
+
# default: :rbs_rails
|
18
|
+
# task.name = :cool_rbs_rails
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
|
20
|
+
# If you want to change where RBS Rails writes RBSs into, comment in it.
|
21
|
+
# default: Rails.root / 'sig/rbs_rails'
|
22
|
+
# task.signature_root_dir = Rails.root / 'my_sig/rbs_rails'
|
23
|
+
end
|
24
|
+
rescue LoadError
|
25
|
+
# failed to load rbs_rails. Skip to load rbs_rails tasks.
|
22
26
|
end
|
23
27
|
RUBY
|
24
28
|
end
|