sorbet-runtime 0.6.13258 → 0.6.13261
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/lib/types/private/methods/call_validation.rb +4 -4
- 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: 2b162e34e2d1c8b640f2b27bab6d3a372611d3529e412195a4082d7d8554908c
|
|
4
|
+
data.tar.gz: 6fb813091c1620176f14971be806c2a1ebe2298ab60e8422ce8cad413256cdef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71363671bb2e61a28d44a958236f40a606dcccb2a1379b68d53dfa41607a6d7e02af519125ecb498914f1175fdeaf237f1c603bca5237931e722ffa3eae8ceb3
|
|
7
|
+
data.tar.gz: 103699ab76f5b32eaae5e3930353ecc8f3bf3ae6b4a3264144b6b392fefda4843d5a96bcb4e8588ca2879bced3a6753fe7d8f4e48c0b5c37e70cc84a7b5ab83f
|
|
@@ -18,7 +18,7 @@ module T::Private::Methods::CallValidation
|
|
|
18
18
|
def self.wrap_method_if_needed(mod, method_sig, original_method)
|
|
19
19
|
original_visibility = T::Private::ClassUtils.visibility_method_name(mod, method_sig.method_name)
|
|
20
20
|
if method_sig.mode == T::Private::Methods::Modes.abstract
|
|
21
|
-
create_abstract_wrapper(mod, method_sig,
|
|
21
|
+
create_abstract_wrapper(mod, method_sig.method_name, original_visibility)
|
|
22
22
|
# Do nothing in this case; this method was not wrapped in _on_method_added.
|
|
23
23
|
elsif method_sig.defined_raw
|
|
24
24
|
# Note, this logic is duplicated (intentionally, for micro-perf) at `Methods._on_method_added`,
|
|
@@ -49,20 +49,20 @@ module T::Private::Methods::CallValidation
|
|
|
49
49
|
@is_allowed_to_have_fast_path = false
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
-
def self.create_abstract_wrapper(mod,
|
|
52
|
+
def self.create_abstract_wrapper(mod, method_name, original_visibility)
|
|
53
53
|
T::Configuration.without_ruby_warnings do
|
|
54
54
|
T::Private::DeclState.current.without_on_method_added do
|
|
55
55
|
mod.module_eval(<<~METHOD, __FILE__, __LINE__ + 1)
|
|
56
56
|
#{original_visibility}
|
|
57
57
|
|
|
58
|
-
def #{
|
|
58
|
+
def #{method_name}(...)
|
|
59
59
|
# We allow abstract methods to be implemented by things further down the ancestor chain.
|
|
60
60
|
# So, if a super method exists, call it.
|
|
61
61
|
if defined?(super)
|
|
62
62
|
super
|
|
63
63
|
else
|
|
64
64
|
raise NotImplementedError.new(
|
|
65
|
-
"The method `#{
|
|
65
|
+
"The method `#{method_name}` on #{mod} is declared as `abstract`. It does not have an implementation."
|
|
66
66
|
)
|
|
67
67
|
end
|
|
68
68
|
end
|
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.6.
|
|
4
|
+
version: 0.6.13261
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stripe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: benchmark
|