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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 460b6b8bb031b733520441f0670caeba4d945165f6ff3fbcda8f7217c6beffa5
4
- data.tar.gz: dd6682f6f44d0f48881ce803266b174d69fae5befc891c257e1b4d1dadc92862
3
+ metadata.gz: 3151cc544730e99ce806d845ee312086eaed14b4fc5900f65c7690c2b88afa2a
4
+ data.tar.gz: '0844a31adeca59a43caedf49001445ad809659251ee5b7e8bc13c30df4fa5e2e'
5
5
  SHA512:
6
- metadata.gz: 1137c7ca1cb2bb314d10777abf769e890a8b1a71c0e79ad1a66cb8b1c2193d655ae9bb8ef13f16e0f0d3ed81a32b95e232f8470df75397dfca13206381d6d89e
7
- data.tar.gz: 993c96045ceeb67a50cd8865b92a41a3a09bdd6beb2b5886db45955d6dcdd4a6fb4134c4260191b937afa07a42781d24f4fdc8d0eb7fa8b31005831af0fa1e7f
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) && final_method?(method_owner_and_name_to_key(ancestor, 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.6076
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-17 00:00:00.000000000 Z
11
+ date: 2020-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest