sorbet-runtime 0.5.6064 → 0.5.6100

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: b74af2ff681838d1b0fb1cb32c47d6711e25fefe124a84b62d30f4422dec5862
4
- data.tar.gz: 8ffcd072fb5cc0d9f0b8297d48e06447b25770491706b8bd711047d9cf48ecb2
3
+ metadata.gz: 122e88ab9a171a37e39812f5b49c0e8893411fd4e8c201ff8ca966a42c308fb7
4
+ data.tar.gz: 255e1b87071e47caf82430bddb23ef87c5ac21e19bc695715ea13257590dcdb2
5
5
  SHA512:
6
- metadata.gz: 2b1fc16bb37526307ea978281819b95e5b6167643059db346a85e3b951b015c3ad559c1590a55a8aa095e43429113e44dbcb3e459310b58e23cbd1b018b6c96c
7
- data.tar.gz: fb543f33c5e1f53ace6b6b5cc4bfbfc288dd9d943a369b7838c23105dbb0892b57152b65e0cc6fc520f5fd5b24b801ff300b7846ebfc9aaabcd769e3e610e9db
6
+ metadata.gz: 74a375285b05613d2229d83a3dcd3707a3f033c79070e4bfd89f5ccecb164f1885cf730558495dc86f694501b58b43f9df514b7961733e9ee9cb06b499ccccf2
7
+ data.tar.gz: 2c9caa8d6e8cdfe521adfcb64bfbb9cfbeb26d2a5471d33513537d31bc5c43c107ab88efaa8340bf8ec89cd05481d049ae82a21f36019e5d0e7ba623820bd128
@@ -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.6064
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-15 00:00:00.000000000 Z
11
+ date: 2020-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest