sorbet-runtime 0.5.10746 → 0.5.10751
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/signature_validation.rb +13 -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: 07af5e3971f3c81d749d12759d86df688926d0dbcaec0c79837301901c7887c3
|
|
4
|
+
data.tar.gz: 71dfb5e8ace52b0820a0f6d6329057065bd04dadf38ad965cfd0c17b43f9b5cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d2c55b4e1e354a53a8bef39bf759c62e3e54fd2048eeee1efe55e82641a60b6f05011a7633bfb167257e3cb4efb504c368b9131364624cf0554155d90ebef893
|
|
7
|
+
data.tar.gz: 17942c1421f0093e1fb460cde02dced908b58968942168adea4c31f18e4d870f487f3d3e422bf96b93efb67c926afaec81b9b10862ddcafa05cb2c34405d0118
|
|
@@ -59,6 +59,19 @@ module T::Private::Methods::SignatureValidation
|
|
|
59
59
|
case signature.mode
|
|
60
60
|
when *Modes::OVERRIDE_MODES
|
|
61
61
|
# Peaceful
|
|
62
|
+
when Modes.abstract
|
|
63
|
+
# Either the parent method is abstract, or it's not.
|
|
64
|
+
#
|
|
65
|
+
# If it's abstract, we want to allow overriding abstract with abstract to
|
|
66
|
+
# possibly narrow the type or provide more specific documentation.
|
|
67
|
+
#
|
|
68
|
+
# If it's not, then marking this method `abstract` will silently be a no-op.
|
|
69
|
+
# That's bad and we probably want to report an error, but fixing that
|
|
70
|
+
# will have to be a separate fix (that bad behavior predates this current
|
|
71
|
+
# comment, introduced when we fixed the abstract/abstract case).
|
|
72
|
+
#
|
|
73
|
+
# Therefore:
|
|
74
|
+
# Peaceful (mostly)
|
|
62
75
|
when *Modes::NON_OVERRIDE_MODES
|
|
63
76
|
if super_signature.mode == Modes.standard
|
|
64
77
|
# Peaceful
|
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.10751
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stripe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-04-
|
|
11
|
+
date: 2023-04-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|