grape_sorbet 0.0.13 → 0.0.15
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/.rubocop.yml +0 -2
- data/.ruby-version +1 -1
- data/CHANGELOG.md +9 -0
- data/Gemfile +2 -4
- data/Gemfile.lock +182 -85
- data/grape_sorbet.gemspec +1 -1
- data/lib/grape_sorbet/version.rb +1 -1
- data/lib/tapioca/dsl/compilers/grape_endpoints.rb +36 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1a54467238bf8459ed8fb286f3172fb446cac956d7df6c240545a28d79e2b281
|
|
4
|
+
data.tar.gz: 2cc2a8c699839084e5941481d548bc03658578f5fdc4a2b67fb5b4ec2de31594
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dcb0819492d49a470a54b764453824d0ab70bf879ac122826338642732ad8509e66cf0c7cf42ae0352a7043585ddfc5608fd1bb76f68761f97957ee5645bfadc
|
|
7
|
+
data.tar.gz: 1e7ba038c848565befd57294dd0aeb05ae817707144f3a6e91c2b9430fad644a7608e8acaad495426f12bcb12a2cdbca9f0b833f6c7bcb4ec96c85020e75a1e4
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4.0.2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 0.0.15 (2026-03-23)
|
|
2
|
+
|
|
3
|
+
- Bump Sorbet dependency to 0.6 (#32)
|
|
4
|
+
- Bump Tapioca dependency to 0.18 (#32)
|
|
5
|
+
|
|
6
|
+
## 0.0.14 (2025-03-03)
|
|
7
|
+
|
|
8
|
+
- Bump uri dependency to 1.0.3 (#20)
|
|
9
|
+
|
|
1
10
|
## 0.0.13 (2025-02-25)
|
|
2
11
|
|
|
3
12
|
- Bump dependencies and drop support for Ruby 3.1 (#19)
|
data/Gemfile
CHANGED
|
@@ -14,8 +14,8 @@ group :development, :test do
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
group :development do
|
|
17
|
-
gem "sorbet", "
|
|
18
|
-
gem "tapioca", ">= 0.
|
|
17
|
+
gem "sorbet", ">= 0.6"
|
|
18
|
+
gem "tapioca", ">= 0.18", require: false
|
|
19
19
|
|
|
20
20
|
gem "rubocop", require: false
|
|
21
21
|
gem "rubocop-minitest", require: false
|
|
@@ -23,8 +23,6 @@ group :development do
|
|
|
23
23
|
gem "rubocop-rake", require: false
|
|
24
24
|
gem "rubocop-shopify", require: false
|
|
25
25
|
gem "rubocop-sorbet", require: false
|
|
26
|
-
|
|
27
|
-
gem "bundler-audit", require: false
|
|
28
26
|
end
|
|
29
27
|
|
|
30
28
|
group :test do
|
data/Gemfile.lock
CHANGED
|
@@ -1,61 +1,59 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
grape_sorbet (0.0.
|
|
4
|
+
grape_sorbet (0.0.15)
|
|
5
5
|
activesupport
|
|
6
6
|
grape (~> 2.0)
|
|
7
|
-
sorbet-runtime (
|
|
7
|
+
sorbet-runtime (>= 0.6)
|
|
8
8
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
activesupport (8.
|
|
12
|
+
activesupport (8.1.3)
|
|
13
13
|
base64
|
|
14
|
-
benchmark (>= 0.3)
|
|
15
14
|
bigdecimal
|
|
16
15
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
17
16
|
connection_pool (>= 2.2.5)
|
|
18
17
|
drb
|
|
19
18
|
i18n (>= 1.6, < 2)
|
|
19
|
+
json
|
|
20
20
|
logger (>= 1.4.2)
|
|
21
21
|
minitest (>= 5.1)
|
|
22
22
|
securerandom (>= 0.3)
|
|
23
23
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
24
24
|
uri (>= 0.13.1)
|
|
25
|
-
ansi (1.
|
|
26
|
-
ast (2.4.
|
|
27
|
-
base64 (0.
|
|
28
|
-
benchmark (0.
|
|
29
|
-
bigdecimal (
|
|
25
|
+
ansi (1.6.0)
|
|
26
|
+
ast (2.4.3)
|
|
27
|
+
base64 (0.3.0)
|
|
28
|
+
benchmark (0.5.0)
|
|
29
|
+
bigdecimal (4.1.1)
|
|
30
30
|
builder (3.3.0)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
concurrent-ruby (1.3.5)
|
|
35
|
-
connection_pool (2.5.0)
|
|
36
|
-
date (3.4.1)
|
|
31
|
+
concurrent-ruby (1.3.6)
|
|
32
|
+
connection_pool (3.0.2)
|
|
33
|
+
date (3.5.1)
|
|
37
34
|
docile (1.4.1)
|
|
38
|
-
drb (2.2.
|
|
39
|
-
dry-core (1.
|
|
35
|
+
drb (2.2.3)
|
|
36
|
+
dry-core (1.2.0)
|
|
40
37
|
concurrent-ruby (~> 1.0)
|
|
41
38
|
logger
|
|
42
39
|
zeitwerk (~> 2.6)
|
|
43
|
-
dry-inflector (1.
|
|
40
|
+
dry-inflector (1.3.1)
|
|
44
41
|
dry-logic (1.6.0)
|
|
45
42
|
bigdecimal
|
|
46
43
|
concurrent-ruby (~> 1.0)
|
|
47
44
|
dry-core (~> 1.1)
|
|
48
45
|
zeitwerk (~> 2.6)
|
|
49
|
-
dry-types (1.
|
|
50
|
-
bigdecimal (
|
|
46
|
+
dry-types (1.9.1)
|
|
47
|
+
bigdecimal (>= 3.0)
|
|
51
48
|
concurrent-ruby (~> 1.0)
|
|
52
49
|
dry-core (~> 1.0)
|
|
53
50
|
dry-inflector (~> 1.0)
|
|
54
51
|
dry-logic (~> 1.4)
|
|
55
52
|
zeitwerk (~> 2.6)
|
|
53
|
+
erb (6.0.2)
|
|
56
54
|
erubi (1.13.1)
|
|
57
|
-
grape (2.
|
|
58
|
-
activesupport (>= 6)
|
|
55
|
+
grape (2.4.0)
|
|
56
|
+
activesupport (>= 6.1)
|
|
59
57
|
dry-types (>= 1.1)
|
|
60
58
|
mustermann-grape (~> 1.1.0)
|
|
61
59
|
rack (>= 2)
|
|
@@ -63,53 +61,62 @@ GEM
|
|
|
63
61
|
grape-entity (1.0.1)
|
|
64
62
|
activesupport (>= 3.0.0)
|
|
65
63
|
multi_json (>= 1.3.2)
|
|
66
|
-
i18n (1.14.
|
|
64
|
+
i18n (1.14.8)
|
|
67
65
|
concurrent-ruby (~> 1.0)
|
|
68
|
-
io-console (0.8.
|
|
69
|
-
irb (1.
|
|
66
|
+
io-console (0.8.2)
|
|
67
|
+
irb (1.17.0)
|
|
70
68
|
pp (>= 0.6.0)
|
|
69
|
+
prism (>= 1.3.0)
|
|
71
70
|
rdoc (>= 4.0.0)
|
|
72
71
|
reline (>= 0.4.2)
|
|
73
|
-
json (2.
|
|
74
|
-
language_server-protocol (3.17.0.
|
|
72
|
+
json (2.19.3)
|
|
73
|
+
language_server-protocol (3.17.0.5)
|
|
75
74
|
lint_roller (1.1.0)
|
|
76
|
-
logger (1.
|
|
77
|
-
minitest (5.
|
|
78
|
-
minitest-reporters (1.
|
|
75
|
+
logger (1.7.0)
|
|
76
|
+
minitest (5.27.0)
|
|
77
|
+
minitest-reporters (1.8.0)
|
|
79
78
|
ansi
|
|
80
79
|
builder
|
|
81
|
-
minitest (>= 5.0)
|
|
80
|
+
minitest (>= 5.0, < 7)
|
|
82
81
|
ruby-progressbar
|
|
83
|
-
multi_json (1.
|
|
84
|
-
mustermann (3.0.
|
|
82
|
+
multi_json (1.19.1)
|
|
83
|
+
mustermann (3.0.4)
|
|
85
84
|
ruby2_keywords (~> 0.0.1)
|
|
86
85
|
mustermann-grape (1.1.0)
|
|
87
86
|
mustermann (>= 1.0.0)
|
|
88
87
|
netrc (0.11.0)
|
|
89
|
-
parallel (1.
|
|
90
|
-
parser (3.3.
|
|
88
|
+
parallel (1.28.0)
|
|
89
|
+
parser (3.3.11.1)
|
|
91
90
|
ast (~> 2.4.1)
|
|
92
91
|
racc
|
|
93
|
-
pp (0.6.
|
|
92
|
+
pp (0.6.3)
|
|
94
93
|
prettyprint
|
|
95
94
|
prettyprint (0.2.0)
|
|
96
|
-
prism (1.
|
|
97
|
-
psych (5.
|
|
95
|
+
prism (1.9.0)
|
|
96
|
+
psych (5.3.1)
|
|
98
97
|
date
|
|
99
98
|
stringio
|
|
100
99
|
racc (1.8.1)
|
|
101
|
-
rack (3.
|
|
100
|
+
rack (3.2.6)
|
|
102
101
|
rainbow (3.1.1)
|
|
103
|
-
rake (13.
|
|
104
|
-
rbi (0.
|
|
102
|
+
rake (13.3.1)
|
|
103
|
+
rbi (0.3.10)
|
|
105
104
|
prism (~> 1.0)
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
rbs (>= 4.0.1)
|
|
106
|
+
rbs (4.0.2)
|
|
107
|
+
logger
|
|
108
|
+
prism (>= 1.6.0)
|
|
109
|
+
tsort
|
|
110
|
+
rdoc (7.2.0)
|
|
111
|
+
erb
|
|
108
112
|
psych (>= 4.0.0)
|
|
109
|
-
|
|
110
|
-
|
|
113
|
+
tsort
|
|
114
|
+
regexp_parser (2.12.0)
|
|
115
|
+
reline (0.6.3)
|
|
111
116
|
io-console (~> 0.5)
|
|
112
|
-
|
|
117
|
+
require-hooks (0.2.3)
|
|
118
|
+
rexml (3.4.4)
|
|
119
|
+
rubocop (1.86.0)
|
|
113
120
|
json (~> 2.3)
|
|
114
121
|
language_server-protocol (~> 3.17.0.2)
|
|
115
122
|
lint_roller (~> 1.1.0)
|
|
@@ -117,26 +124,28 @@ GEM
|
|
|
117
124
|
parser (>= 3.3.0.2)
|
|
118
125
|
rainbow (>= 2.2.2, < 4.0)
|
|
119
126
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
120
|
-
rubocop-ast (>= 1.
|
|
127
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
121
128
|
ruby-progressbar (~> 1.7)
|
|
122
129
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
123
|
-
rubocop-ast (1.
|
|
124
|
-
parser (>= 3.3.
|
|
125
|
-
|
|
130
|
+
rubocop-ast (1.49.1)
|
|
131
|
+
parser (>= 3.3.7.2)
|
|
132
|
+
prism (~> 1.7)
|
|
133
|
+
rubocop-minitest (0.39.1)
|
|
126
134
|
lint_roller (~> 1.1)
|
|
127
|
-
rubocop (>= 1.
|
|
135
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
128
136
|
rubocop-ast (>= 1.38.0, < 2.0)
|
|
129
|
-
rubocop-performance (1.
|
|
137
|
+
rubocop-performance (1.26.1)
|
|
130
138
|
lint_roller (~> 1.1)
|
|
131
|
-
rubocop (>= 1.
|
|
132
|
-
rubocop-ast (>= 1.
|
|
139
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
140
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
133
141
|
rubocop-rake (0.7.1)
|
|
134
142
|
lint_roller (~> 1.1)
|
|
135
143
|
rubocop (>= 1.72.1)
|
|
136
|
-
rubocop-shopify (2.
|
|
137
|
-
rubocop (~> 1.
|
|
138
|
-
rubocop-sorbet (0.
|
|
139
|
-
|
|
144
|
+
rubocop-shopify (2.18.0)
|
|
145
|
+
rubocop (~> 1.62)
|
|
146
|
+
rubocop-sorbet (0.12.0)
|
|
147
|
+
lint_roller
|
|
148
|
+
rubocop (>= 1.75.2)
|
|
140
149
|
ruby-progressbar (1.13.0)
|
|
141
150
|
ruby2_keywords (0.0.5)
|
|
142
151
|
securerandom (0.4.1)
|
|
@@ -144,46 +153,51 @@ GEM
|
|
|
144
153
|
docile (~> 1.1)
|
|
145
154
|
simplecov-html (~> 0.11)
|
|
146
155
|
simplecov_json_formatter (~> 0.1)
|
|
147
|
-
simplecov-html (0.13.
|
|
156
|
+
simplecov-html (0.13.2)
|
|
148
157
|
simplecov_json_formatter (0.1.4)
|
|
149
|
-
sorbet (0.
|
|
150
|
-
sorbet-static (= 0.
|
|
151
|
-
sorbet-runtime (0.
|
|
152
|
-
sorbet-static (0.
|
|
153
|
-
sorbet-static (0.
|
|
154
|
-
sorbet-static (0.
|
|
155
|
-
sorbet-static-and-runtime (0.
|
|
156
|
-
sorbet (= 0.
|
|
157
|
-
sorbet-runtime (= 0.
|
|
158
|
-
spoom (1.
|
|
158
|
+
sorbet (0.6.13096)
|
|
159
|
+
sorbet-static (= 0.6.13096)
|
|
160
|
+
sorbet-runtime (0.6.13096)
|
|
161
|
+
sorbet-static (0.6.13096-aarch64-linux)
|
|
162
|
+
sorbet-static (0.6.13096-universal-darwin)
|
|
163
|
+
sorbet-static (0.6.13096-x86_64-linux)
|
|
164
|
+
sorbet-static-and-runtime (0.6.13096)
|
|
165
|
+
sorbet (= 0.6.13096)
|
|
166
|
+
sorbet-runtime (= 0.6.13096)
|
|
167
|
+
spoom (1.7.12)
|
|
159
168
|
erubi (>= 1.10.0)
|
|
160
169
|
prism (>= 0.28.0)
|
|
161
|
-
rbi (>= 0.
|
|
170
|
+
rbi (>= 0.3.3)
|
|
171
|
+
rbs (>= 4.0.0.dev.5)
|
|
172
|
+
rexml (>= 3.2.6)
|
|
162
173
|
sorbet-static-and-runtime (>= 0.5.10187)
|
|
163
174
|
thor (>= 0.19.2)
|
|
164
|
-
stringio (3.
|
|
165
|
-
tapioca (0.
|
|
175
|
+
stringio (3.2.0)
|
|
176
|
+
tapioca (0.18.0)
|
|
166
177
|
benchmark
|
|
167
178
|
bundler (>= 2.2.25)
|
|
168
179
|
netrc (>= 0.11.0)
|
|
169
180
|
parallel (>= 1.21.0)
|
|
170
|
-
rbi (
|
|
181
|
+
rbi (>= 0.3.7)
|
|
182
|
+
require-hooks (>= 0.2.2)
|
|
171
183
|
sorbet-static-and-runtime (>= 0.5.11087)
|
|
172
|
-
spoom (>= 1.
|
|
184
|
+
spoom (>= 1.7.9)
|
|
173
185
|
thor (>= 1.2.0)
|
|
186
|
+
tsort
|
|
174
187
|
yard-sorbet
|
|
175
|
-
thor (1.
|
|
188
|
+
thor (1.5.0)
|
|
189
|
+
tsort (0.2.0)
|
|
176
190
|
tzinfo (2.0.6)
|
|
177
191
|
concurrent-ruby (~> 1.0)
|
|
178
|
-
unicode-display_width (3.
|
|
179
|
-
unicode-emoji (~> 4.
|
|
180
|
-
unicode-emoji (4.0
|
|
181
|
-
uri (1.
|
|
182
|
-
yard (0.9.
|
|
192
|
+
unicode-display_width (3.2.0)
|
|
193
|
+
unicode-emoji (~> 4.1)
|
|
194
|
+
unicode-emoji (4.2.0)
|
|
195
|
+
uri (1.1.1)
|
|
196
|
+
yard (0.9.38)
|
|
183
197
|
yard-sorbet (0.9.0)
|
|
184
198
|
sorbet-runtime
|
|
185
199
|
yard
|
|
186
|
-
zeitwerk (2.
|
|
200
|
+
zeitwerk (2.7.5)
|
|
187
201
|
|
|
188
202
|
PLATFORMS
|
|
189
203
|
aarch64-linux
|
|
@@ -191,7 +205,6 @@ PLATFORMS
|
|
|
191
205
|
x86_64-linux
|
|
192
206
|
|
|
193
207
|
DEPENDENCIES
|
|
194
|
-
bundler-audit
|
|
195
208
|
grape-entity
|
|
196
209
|
grape_sorbet!
|
|
197
210
|
irb
|
|
@@ -205,8 +218,92 @@ DEPENDENCIES
|
|
|
205
218
|
rubocop-shopify
|
|
206
219
|
rubocop-sorbet
|
|
207
220
|
simplecov
|
|
208
|
-
sorbet (
|
|
209
|
-
tapioca (>= 0.
|
|
221
|
+
sorbet (>= 0.6)
|
|
222
|
+
tapioca (>= 0.18)
|
|
223
|
+
|
|
224
|
+
CHECKSUMS
|
|
225
|
+
activesupport (8.1.3) sha256=21a5e0dfbd4c3ddd9e1317ec6a4d782fa226e7867dc70b0743acda81a1dca20e
|
|
226
|
+
ansi (1.6.0) sha256=ac9ea0c0ea8d32fb4e271348e609963ac78882f34b73836c2a02b3622e666658
|
|
227
|
+
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
228
|
+
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
229
|
+
benchmark (0.5.0) sha256=465df122341aedcb81a2a24b4d3bd19b6c67c1530713fd533f3ff034e419236c
|
|
230
|
+
bigdecimal (4.1.1) sha256=1c09efab961da45203c8316b0cdaec0ff391dfadb952dd459584b63ebf8054ca
|
|
231
|
+
builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f
|
|
232
|
+
concurrent-ruby (1.3.6) sha256=6b56837e1e7e5292f9864f34b69c5a2cbc75c0cf5338f1ce9903d10fa762d5ab
|
|
233
|
+
connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
|
|
234
|
+
date (3.5.1) sha256=750d06384d7b9c15d562c76291407d89e368dda4d4fff957eb94962d325a0dc0
|
|
235
|
+
docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
|
|
236
|
+
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
|
|
237
|
+
dry-core (1.2.0) sha256=0cc5a7da88df397f153947eeeae42e876e999c1e30900f3c536fb173854e96a1
|
|
238
|
+
dry-inflector (1.3.1) sha256=7fb0c2bb04f67638f25c52e7ba39ab435d922a3a5c3cd196120f63accb682dcc
|
|
239
|
+
dry-logic (1.6.0) sha256=da6fedbc0f90fc41f9b0cc7e6f05f5d529d1efaef6c8dcc8e0733f685745cea2
|
|
240
|
+
dry-types (1.9.1) sha256=baebeecdb9f8395d6c9d227b62011279440943e3ef2468fe8ccc1ba11467f178
|
|
241
|
+
erb (6.0.2) sha256=9fe6264d44f79422c87490a1558479bd0e7dad4dd0e317656e67ea3077b5242b
|
|
242
|
+
erubi (1.13.1) sha256=a082103b0885dbc5ecf1172fede897f9ebdb745a4b97a5e8dc63953db1ee4ad9
|
|
243
|
+
grape (2.4.0) sha256=3d59673e80f11d49ba86270b78344e5348dc057b318c2bbc1c01f3532f9b6aec
|
|
244
|
+
grape-entity (1.0.1) sha256=e00f9e94e407aff77aa2945d741f544d07e48501927942988799913151d02634
|
|
245
|
+
grape_sorbet (0.0.15)
|
|
246
|
+
i18n (1.14.8) sha256=285778639134865c5e0f6269e0b818256017e8cde89993fdfcbfb64d088824a5
|
|
247
|
+
io-console (0.8.2) sha256=d6e3ae7a7cc7574f4b8893b4fca2162e57a825b223a177b7afa236c5ef9814cc
|
|
248
|
+
irb (1.17.0) sha256=168c4ddb93d8a361a045c41d92b2952c7a118fa73f23fe14e55609eb7a863aae
|
|
249
|
+
json (2.19.3) sha256=289b0bb53052a1fa8c34ab33cc750b659ba14a5c45f3fcf4b18762dc67c78646
|
|
250
|
+
language_server-protocol (3.17.0.5) sha256=fd1e39a51a28bf3eec959379985a72e296e9f9acfce46f6a79d31ca8760803cc
|
|
251
|
+
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
|
|
252
|
+
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
253
|
+
minitest (5.27.0) sha256=2d3b17f8a36fe7801c1adcffdbc38233b938eb0b4966e97a6739055a45fa77d5
|
|
254
|
+
minitest-reporters (1.8.0) sha256=8ce5280fb73ad3178ae525454df169b6f28c1b38b1d088ea91815d3a370ba384
|
|
255
|
+
multi_json (1.19.1) sha256=7aefeff8f2c854bf739931a238e4aea64592845e0c0395c8a7d2eea7fdd631b7
|
|
256
|
+
mustermann (3.0.4) sha256=85fadcb6b3c6493a8b511b42426f904b7f27b282835502233dd154daab13aa22
|
|
257
|
+
mustermann-grape (1.1.0) sha256=8d258a986004c8f01ce4c023c0b037c168a9ed889cf5778068ad54398fa458c5
|
|
258
|
+
netrc (0.11.0) sha256=de1ce33da8c99ab1d97871726cba75151113f117146becbe45aa85cb3dabee3f
|
|
259
|
+
parallel (1.28.0) sha256=33e6de1484baf2524792d178b0913fc8eb94c628d6cfe45599ad4458c638c970
|
|
260
|
+
parser (3.3.11.1) sha256=d17ace7aabe3e72c3cc94043714be27cc6f852f104d81aa284c2281aecc65d54
|
|
261
|
+
pp (0.6.3) sha256=2951d514450b93ccfeb1df7d021cae0da16e0a7f95ee1e2273719669d0ab9df6
|
|
262
|
+
prettyprint (0.2.0) sha256=2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193
|
|
263
|
+
prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
|
|
264
|
+
psych (5.3.1) sha256=eb7a57cef10c9d70173ff74e739d843ac3b2c019a003de48447b2963d81b1974
|
|
265
|
+
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
|
|
266
|
+
rack (3.2.6) sha256=5ed78e1f73b2e25679bec7d45ee2d4483cc4146eb1be0264fc4d94cb5ef212c2
|
|
267
|
+
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
|
|
268
|
+
rake (13.3.1) sha256=8c9e89d09f66a26a01264e7e3480ec0607f0c497a861ef16063604b1b08eb19c
|
|
269
|
+
rbi (0.3.10) sha256=a4fd8e7786845ffd6533c512da2bda8722ce8565071ee4ad489b403f77c61d2b
|
|
270
|
+
rbs (4.0.2) sha256=af75671e66cd03434cc546622741ebf83f6197ec4328375805306330bf78ef25
|
|
271
|
+
rdoc (7.2.0) sha256=8650f76cd4009c3b54955eb5d7e3a075c60a57276766ebf36f9085e8c9f23192
|
|
272
|
+
regexp_parser (2.12.0) sha256=35a916a1d63190ab5c9009457136ae5f3c0c7512d60291d0d1378ba18ce08ebb
|
|
273
|
+
reline (0.6.3) sha256=1198b04973565b36ec0f11542ab3f5cfeeec34823f4e54cebde90968092b1835
|
|
274
|
+
require-hooks (0.2.3) sha256=224be5b4be0fd2a47cb73286c500da366704a54ec195b6627366380c950efac8
|
|
275
|
+
rexml (3.4.4) sha256=19e0a2c3425dfbf2d4fc1189747bdb2f849b6c5e74180401b15734bc97b5d142
|
|
276
|
+
rubocop (1.86.0) sha256=4ff1186fe16ebe9baff5e7aad66bb0ad4cabf5cdcd419f773146dbba2565d186
|
|
277
|
+
rubocop-ast (1.49.1) sha256=4412f3ee70f6fe4546cc489548e0f6fcf76cafcfa80fa03af67098ffed755035
|
|
278
|
+
rubocop-minitest (0.39.1) sha256=998398d6da4026d297f0f9bf709a1eac5f2b6947c24431f94af08138510cf7ed
|
|
279
|
+
rubocop-performance (1.26.1) sha256=cd19b936ff196df85829d264b522fd4f98b6c89ad271fa52744a8c11b8f71834
|
|
280
|
+
rubocop-rake (0.7.1) sha256=3797f2b6810c3e9df7376c26d5f44f3475eda59eb1adc38e6f62ecf027cbae4d
|
|
281
|
+
rubocop-shopify (2.18.0) sha256=dafa25e5617ce4600ff86b1de3d5b78e43ab3d58cc5729df38e492b8e10294eb
|
|
282
|
+
rubocop-sorbet (0.12.0) sha256=195521e132500555819313df5accaaf56bf721a63de3e5b7b1d0b25f696b1f39
|
|
283
|
+
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
284
|
+
ruby2_keywords (0.0.5) sha256=ffd13740c573b7301cf7a2e61fc857b2a8e3d3aff32545d6f8300d8bae10e3ef
|
|
285
|
+
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
286
|
+
simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
|
|
287
|
+
simplecov-html (0.13.2) sha256=bd0b8e54e7c2d7685927e8d6286466359b6f16b18cb0df47b508e8d73c777246
|
|
288
|
+
simplecov_json_formatter (0.1.4) sha256=529418fbe8de1713ac2b2d612aa3daa56d316975d307244399fa4838c601b428
|
|
289
|
+
sorbet (0.6.13096) sha256=5dc40058f0839e495a003052bbcd024c6429227282d8b81eff94880784129dd9
|
|
290
|
+
sorbet-runtime (0.6.13096) sha256=7fa48ff2f276998c6f0e6f087b68d4dc7026ba0646d329ff90612d6d0c83a235
|
|
291
|
+
sorbet-static (0.6.13096-aarch64-linux) sha256=5b02cb8f97392c7f301948c81b88cd808e5aa65cc912235cdcd94b5d072c2015
|
|
292
|
+
sorbet-static (0.6.13096-universal-darwin) sha256=6160b36a22a5f408c5d72b4c2b1b2d1974b21b9f9ec77b6b21181c2d1e3715de
|
|
293
|
+
sorbet-static (0.6.13096-x86_64-linux) sha256=3ff6f38dc240e554e689092c0796ac989006ef8dad6bbd3309dd66cfb8da7c6e
|
|
294
|
+
sorbet-static-and-runtime (0.6.13096) sha256=636e15ff1a427b971d269344dff1946f1a441ff4637b335224324b30d663dd99
|
|
295
|
+
spoom (1.7.12) sha256=67f0b1f835158dba4f19c03ff75b7b7e285dce9165b7b77c2c78cbf54ebf3013
|
|
296
|
+
stringio (3.2.0) sha256=c37cb2e58b4ffbd33fe5cd948c05934af997b36e0b6ca6fdf43afa234cf222e1
|
|
297
|
+
tapioca (0.18.0) sha256=6e92516b055e727792c84319d4be59438345b2c11e932495a54636fc043e7dc1
|
|
298
|
+
thor (1.5.0) sha256=e3a9e55fe857e44859ce104a84675ab6e8cd59c650a49106a05f55f136425e73
|
|
299
|
+
tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
|
|
300
|
+
tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
|
|
301
|
+
unicode-display_width (3.2.0) sha256=0cdd96b5681a5949cdbc2c55e7b420facae74c4aaf9a9815eee1087cb1853c42
|
|
302
|
+
unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f
|
|
303
|
+
uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6
|
|
304
|
+
yard (0.9.38) sha256=721fb82afb10532aa49860655f6cc2eaa7130889df291b052e1e6b268283010f
|
|
305
|
+
yard-sorbet (0.9.0) sha256=03d1aa461b9e9c82b886919a13aa3e09fcf4d1852239d2967ed97e92723ffe21
|
|
306
|
+
zeitwerk (2.7.5) sha256=d8da92128c09ea6ec62c949011b00ed4a20242b255293dd66bf41545398f73dd
|
|
210
307
|
|
|
211
308
|
BUNDLED WITH
|
|
212
|
-
|
|
309
|
+
4.0.8
|
data/grape_sorbet.gemspec
CHANGED
|
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
|
33
33
|
# Uncomment to register a new dependency of your gem
|
|
34
34
|
spec.add_dependency("activesupport")
|
|
35
35
|
spec.add_dependency("grape", "~> 2.0")
|
|
36
|
-
spec.add_dependency("sorbet-runtime", "
|
|
36
|
+
spec.add_dependency("sorbet-runtime", ">= 0.6")
|
|
37
37
|
|
|
38
38
|
# For more information and examples about making a new gem, check out our
|
|
39
39
|
# guide at: https://bundler.io/guides/creating_gem.html
|
data/lib/grape_sorbet/version.rb
CHANGED
|
@@ -76,22 +76,30 @@ module Tapioca
|
|
|
76
76
|
class << self
|
|
77
77
|
extend T::Sig
|
|
78
78
|
|
|
79
|
-
sig { override.returns(T::Enumerable[Module]) }
|
|
79
|
+
sig { override.returns(T::Enumerable[T::Module[T.anything]]) }
|
|
80
80
|
def gather_constants
|
|
81
81
|
::Grape::API::Instance.descendants
|
|
82
82
|
end
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
+
# https://github.com/ruby-grape/grape/blob/v2.4.0/lib/grape/dsl/callbacks.rb#L23-L66
|
|
85
86
|
CALLBACKS_METHODS = T.let(
|
|
86
87
|
[:before, :before_validation, :after_validation, :after, :finally].freeze,
|
|
87
88
|
T::Array[Symbol],
|
|
88
89
|
)
|
|
89
90
|
|
|
91
|
+
# https://github.com/ruby-grape/grape/blob/master/lib/grape.rb#L62-L70
|
|
90
92
|
HTTP_VERB_METHODS = T.let(
|
|
91
93
|
[:get, :post, :put, :patch, :delete, :head, :options].freeze,
|
|
92
94
|
T::Array[Symbol],
|
|
93
95
|
)
|
|
94
96
|
|
|
97
|
+
# https://github.com/ruby-grape/grape/blob/v2.4.0/lib/grape/dsl/routing.rb#L173-L198
|
|
98
|
+
NAMESPACE_METHODS = T.let(
|
|
99
|
+
[:namespace, :group, :resource, :resources, :segment].freeze,
|
|
100
|
+
T::Array[Symbol],
|
|
101
|
+
)
|
|
102
|
+
|
|
95
103
|
private
|
|
96
104
|
|
|
97
105
|
sig { returns(RBI::Scope) }
|
|
@@ -196,6 +204,19 @@ module Tapioca
|
|
|
196
204
|
|
|
197
205
|
sig { void }
|
|
198
206
|
def create_routing_methods
|
|
207
|
+
# https://github.com/ruby-grape/grape/blob/v2.4.0/lib/grape/dsl/routing.rb#L135-L163
|
|
208
|
+
routing_methods_module.create_method(
|
|
209
|
+
"route",
|
|
210
|
+
parameters: [
|
|
211
|
+
create_param("methods", type: "T.untyped"),
|
|
212
|
+
create_opt_param("paths", type: "T.untyped", default: "['/']"),
|
|
213
|
+
create_opt_param("route_options", type: "T::Hash[Symbol, T.untyped]", default: "{}"),
|
|
214
|
+
create_block_param("block", type: "T.nilable(T.proc.bind(#{EndpointClassName}).void)"),
|
|
215
|
+
],
|
|
216
|
+
return_type: "void",
|
|
217
|
+
)
|
|
218
|
+
|
|
219
|
+
# https://github.com/ruby-grape/grape/blob/v2.4.0/lib/grape/dsl/routing.rb#L165-L171
|
|
199
220
|
HTTP_VERB_METHODS.each do |verb|
|
|
200
221
|
routing_methods_module.create_method(
|
|
201
222
|
verb.to_s,
|
|
@@ -207,6 +228,20 @@ module Tapioca
|
|
|
207
228
|
)
|
|
208
229
|
end
|
|
209
230
|
|
|
231
|
+
# https://github.com/ruby-grape/grape/blob/v2.4.0/lib/grape/dsl/routing.rb#L173-L193
|
|
232
|
+
NAMESPACE_METHODS.each do |namespace_method|
|
|
233
|
+
routing_methods_module.create_method(
|
|
234
|
+
namespace_method.to_s,
|
|
235
|
+
parameters: [
|
|
236
|
+
create_opt_param("space", type: "T.untyped", default: "nil"),
|
|
237
|
+
create_opt_param("options", type: "T::Hash[Symbol, T.untyped]", default: "{}"),
|
|
238
|
+
create_block_param("block", type: "T.nilable(T.proc.bind(T.class_of(#{APIInstanceClassName})).void)"),
|
|
239
|
+
],
|
|
240
|
+
return_type: "void",
|
|
241
|
+
)
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# https://github.com/ruby-grape/grape/blob/v2.4.0/lib/grape/dsl/routing.rb#L215-L232
|
|
210
245
|
routing_methods_module.create_method(
|
|
211
246
|
"route_param",
|
|
212
247
|
parameters: [
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grape_sorbet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Thatch Health, Inc.
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: activesupport
|
|
@@ -41,16 +41,16 @@ dependencies:
|
|
|
41
41
|
name: sorbet-runtime
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
|
-
- - "
|
|
44
|
+
- - ">="
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 0.
|
|
46
|
+
version: '0.6'
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
|
-
- - "
|
|
51
|
+
- - ">="
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 0.
|
|
53
|
+
version: '0.6'
|
|
54
54
|
description: This gem provides Sorbet signatures and a Tapioca DSL compiler that enable
|
|
55
55
|
using the Grape API framework in a Sorbet-typed Ruby project.
|
|
56
56
|
email:
|
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
98
98
|
- !ruby/object:Gem::Version
|
|
99
99
|
version: '0'
|
|
100
100
|
requirements: []
|
|
101
|
-
rubygems_version:
|
|
101
|
+
rubygems_version: 4.0.6
|
|
102
102
|
specification_version: 4
|
|
103
103
|
summary: Sorbet signatures and Tapioca DSL compiler for Grape.
|
|
104
104
|
test_files: []
|