sorbet-runtime 0.5.11708 → 0.5.11820
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: b966458c460953903a768811a4c4c42baa625ea01395097c5c6754d082c4ec63
|
4
|
+
data.tar.gz: 71e74702abd774edf506eff126e829a79c9ca37007b31b4e198c7544f878b354
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86576616e8dabb9cc06a4c523bd9ccaa1c28d6a46cbb3a181012bfbda8c7ba29257f94c7916ed23010d33efbceaef1e35ddc1bfd7cdfcdb6cbd25f0625329b21
|
7
|
+
data.tar.gz: dc83348680b7a3eacb1e6409c04a54b33f8980078813d6ff6cec8e6a2c7032a231c77506a6c77db7426eaf7e078886b8a9849d2c405ad98cbc09bf3ce768c984
|
@@ -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.11820
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|