sorbet-runtime 0.5.6249 → 0.5.6251
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/types/private/methods/signature.rb +4 -0
- 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: d5d0208392d3642c22383c8b27938498f260cb8ed055be995f8435a09fdc025b
|
4
|
+
data.tar.gz: 4bf122342c3137ed30d3a09bb6ee4670f356d7807a22e675aad78669182e24f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cee550c1ad5f1630c4f62aeb27eee93b940dfe3580e5ff2aa0296accd7eb9e58afa0ac15bb62e5f5bd92bfae8c5732515f4c86da326ca74bad4082b08ce6a5c
|
7
|
+
data.tar.gz: 2d150ffa5b77bd65a280713b05be51c416b1a272d21a081850c0e90f8e74a2f2f4a36eedf753d6fadf7750cb0e65546904d2d661fcdf89a8f5e4c07e2a129147
|
@@ -11,6 +11,10 @@ class T::Private::Methods::Signature
|
|
11
11
|
# Using `Untyped` ensures we'll get an error if we ever try validation on these.
|
12
12
|
not_typed = T::Private::Types::NotTyped.new
|
13
13
|
raw_return_type = not_typed
|
14
|
+
# Map missing parameter names to "argN" positionally
|
15
|
+
parameters = parameters.each_with_index.map do |(param_kind, param_name), index|
|
16
|
+
[param_kind, param_name || "arg#{index}"]
|
17
|
+
end
|
14
18
|
raw_arg_types = parameters.map do |_param_kind, param_name|
|
15
19
|
[param_name, not_typed]
|
16
20
|
end.to_h
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorbet-runtime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6251
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|