sorbet-runtime 0.5.11718 → 0.5.11725
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/call_validation.rb +18 -14
- 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: 15db1be0f3df05e634c7bf4b213ebbc64ca1c5ec23a0ae3bc762bfc48aeff4d0
|
4
|
+
data.tar.gz: 10fba5fea1faabaa3190c232a1f89be7023745188ec8271e036b28ce72bfbce9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd0dafdfacbb2f33920ad2844e342955de3d26cd9b909c91cd6d382c1984dbb69a02c97bf8f8f71fcf85dc9cefaf93ebda7650c4f69f068f3f8f3b32bf4b6786
|
7
|
+
data.tar.gz: c034ec6a84bc276b6f9792c1f1e5fd34fe17339b0857f14d959e991f015f6d11bb568c15a29d789577a9c0be842152311db6bd0635863c16a648b859eb20a826
|
@@ -46,21 +46,25 @@ module T::Private::Methods::CallValidation
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def self.create_abstract_wrapper(mod, method_sig, original_method, original_visibility)
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
49
|
+
T::Configuration.without_ruby_warnings do
|
50
|
+
T::Private::DeclState.current.without_on_method_added do
|
51
|
+
mod.module_eval(<<~METHOD, __FILE__, __LINE__ + 1)
|
52
|
+
#{original_visibility}
|
53
|
+
|
54
|
+
def #{method_sig.method_name}(...)
|
55
|
+
# We allow abstract methods to be implemented by things further down the ancestor chain.
|
56
|
+
# So, if a super method exists, call it.
|
57
|
+
if defined?(super)
|
58
|
+
super
|
59
|
+
else
|
60
|
+
raise NotImplementedError.new(
|
61
|
+
"The method `#{method_sig.method_name}` on #{mod} is declared as `abstract`. It does not have an implementation."
|
62
|
+
)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
METHOD
|
62
66
|
end
|
63
|
-
|
67
|
+
end
|
64
68
|
end
|
65
69
|
|
66
70
|
def self.create_validator_method(mod, original_method, method_sig, original_visibility)
|
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.11725
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|