sorbet-runtime 0.5.6079 → 0.5.6105
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: 299b0b4dce288341e7bdb362e014bf4224a0d5e40c0a13cd7b015b6ed3f64712
|
4
|
+
data.tar.gz: 0a068a678ed882f1ab7ff1fd4e632b6d54f2337e4331b68f9d84ae3a42720ef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccdd31cee488beb7f6e2cabac2e1979c62c6a7df113a0389fba0c735532426e437147152cf346616946313f1d0af0fb55ee81ab0064fcbe7002061ecfda7d870
|
7
|
+
data.tar.gz: 77caad3f157f448215cfe6942d5d77cd43d03c9bc4d132eabfaaefc8feee430f2df380a5badba21e8deedbbbc986a629af556a1af7585877b454397f1a9d697c
|
@@ -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.6105
|
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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|