sorbet-runtime 0.5.6076 → 0.5.6101
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/types/compatibility_patches.rb +0 -2
- data/lib/types/private/methods/_methods.rb +4 -1
- 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: 3151cc544730e99ce806d845ee312086eaed14b4fc5900f65c7690c2b88afa2a
|
4
|
+
data.tar.gz: '0844a31adeca59a43caedf49001445ad809659251ee5b7e8bc13c30df4fa5e2e'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c0beb07d35fcf703bf03865f6adca01902995227e922e8fe21b8f159cdfbf56b59e6662716e44255618c683f4dc771a0649ea0f470a5356d1d62dcd21616364
|
7
|
+
data.tar.gz: 198336b49b397d035fbda6ea5f22c064f7c2fc012d0b739c7314c9b56cf5e035ab009ca55d13d9fae7337d04a5118f75f17a2852e94c5d09ae0aa8a9742e2bfa
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
# typed: ignore
|
3
3
|
|
4
|
-
require_relative 'private/methods/_methods'
|
5
|
-
|
6
4
|
# Work around an interaction bug with sorbet-runtime and rspec-mocks,
|
7
5
|
# which occurs when using message expectations (*_any_instance_of,
|
8
6
|
# expect, allow) and and_call_original.
|
@@ -142,7 +142,10 @@ module T::Private::Methods
|
|
142
142
|
# method_to_key(ancestor.instance_method(method_name)) is not (just) an optimization, but also required for
|
143
143
|
# correctness, since ancestor.method_defined?(method_name) may return true even if method_name is not defined
|
144
144
|
# directly on ancestor but instead an ancestor of ancestor.
|
145
|
-
if ancestor.method_defined?(method_name)
|
145
|
+
if (ancestor.method_defined?(method_name) ||
|
146
|
+
ancestor.private_method_defined?(method_name) ||
|
147
|
+
ancestor.protected_method_defined?(method_name)) &&
|
148
|
+
final_method?(method_owner_and_name_to_key(ancestor, method_name))
|
146
149
|
raise(
|
147
150
|
"The method `#{method_name}` on #{ancestor} was declared as final and cannot be " +
|
148
151
|
(target == ancestor ? "redefined" : "overridden in #{target}")
|
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.6101
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|