sorbet-runtime 0.5.6084 → 0.5.6100
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/_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: 122e88ab9a171a37e39812f5b49c0e8893411fd4e8c201ff8ca966a42c308fb7
|
4
|
+
data.tar.gz: 255e1b87071e47caf82430bddb23ef87c5ac21e19bc695715ea13257590dcdb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74a375285b05613d2229d83a3dcd3707a3f033c79070e4bfd89f5ccecb164f1885cf730558495dc86f694501b58b43f9df514b7961733e9ee9cb06b499ccccf2
|
7
|
+
data.tar.gz: 2c9caa8d6e8cdfe521adfcb64bfbb9cfbeb26d2a5471d33513537d31bc5c43c107ab88efaa8340bf8ec89cd05481d049ae82a21f36019e5d0e7ba623820bd128
|
@@ -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.6100
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|