sorbet-runtime 0.5.11718 → 0.5.11725

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: a9a57d0e7aaaa49a76212129b2691832e3c8238ff0d39ab5ece01b2a49223c44
4
- data.tar.gz: 464ec69967aa04286f957d71b9fd8cb9c5f9f0cb1bf1f28b6dbbadbfb70b7e66
3
+ metadata.gz: 15db1be0f3df05e634c7bf4b213ebbc64ca1c5ec23a0ae3bc762bfc48aeff4d0
4
+ data.tar.gz: 10fba5fea1faabaa3190c232a1f89be7023745188ec8271e036b28ce72bfbce9
5
5
  SHA512:
6
- metadata.gz: c25e36fe743dcb727a7a4d35025eca134ca0ebb9cab8577cad6da5ebba56f5b9d071c2de194bfbc159453aaf85a311689edb96f3583f1aed282f5d56f118bd9e
7
- data.tar.gz: 54c582375e4a48f2bc7c8dad81a117382b279b89832f315b89367c3cb5a93bbc4ffdb11d92a3d5524088058c4e1f9cdb9f9a9c0088ef8f801e0827f733427f60
6
+ metadata.gz: dd0dafdfacbb2f33920ad2844e342955de3d26cd9b909c91cd6d382c1984dbb69a02c97bf8f8f71fcf85dc9cefaf93ebda7650c4f69f068f3f8f3b32bf4b6786
7
+ data.tar.gz: c034ec6a84bc276b6f9792c1f1e5fd34fe17339b0857f14d959e991f015f6d11bb568c15a29d789577a9c0be842152311db6bd0635863c16a648b859eb20a826
@@ -46,21 +46,25 @@ module T::Private::Methods::CallValidation
46
46
  end
47
47
 
48
48
  def self.create_abstract_wrapper(mod, method_sig, original_method, original_visibility)
49
- mod.module_eval(<<~METHOD, __FILE__, __LINE__ + 1)
50
- #{original_visibility}
51
-
52
- def #{method_sig.method_name}(...)
53
- # We allow abstract methods to be implemented by things further down the ancestor chain.
54
- # So, if a super method exists, call it.
55
- if defined?(super)
56
- super
57
- else
58
- raise NotImplementedError.new(
59
- "The method `#{method_sig.method_name}` on #{mod} is declared as `abstract`. It does not have an implementation."
60
- )
61
- end
49
+ T::Configuration.without_ruby_warnings do
50
+ T::Private::DeclState.current.without_on_method_added do
51
+ mod.module_eval(<<~METHOD, __FILE__, __LINE__ + 1)
52
+ #{original_visibility}
53
+
54
+ def #{method_sig.method_name}(...)
55
+ # We allow abstract methods to be implemented by things further down the ancestor chain.
56
+ # So, if a super method exists, call it.
57
+ if defined?(super)
58
+ super
59
+ else
60
+ raise NotImplementedError.new(
61
+ "The method `#{method_sig.method_name}` on #{mod} is declared as `abstract`. It does not have an implementation."
62
+ )
63
+ end
64
+ end
65
+ METHOD
62
66
  end
63
- METHOD
67
+ end
64
68
  end
65
69
 
66
70
  def self.create_validator_method(mod, original_method, method_sig, original_visibility)
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.11718
4
+ version: 0.5.11725
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-05 00:00:00.000000000 Z
11
+ date: 2025-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest