sorbet-runtime 0.5.11708 → 0.5.11820

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: 87a029cc24743eb2ad5dee4c2bf7916a348d2d4259117194f3c9e66923bafde7
4
- data.tar.gz: fcd6a50285b656efacf1b3b1ff46f0b975056ca8c90fd7bdf208da14ac500522
3
+ metadata.gz: b966458c460953903a768811a4c4c42baa625ea01395097c5c6754d082c4ec63
4
+ data.tar.gz: 71e74702abd774edf506eff126e829a79c9ca37007b31b4e198c7544f878b354
5
5
  SHA512:
6
- metadata.gz: 821b9c49cd79af4787fe7bfac024ce22211922a7f3296e6e65d04522577ce210460a03846e54309905d6f6c03e668b98f9e61bc8e747804bc1fe50255a4f46be
7
- data.tar.gz: 9ab5de64b7139f8fb9b1af473685655a704a49f5134e1c542b96e4e6fd2b392501b61d9f914504a9d5b861ef51b2d4b5febf2ec3e650487d07394801a51cc492
6
+ metadata.gz: 86576616e8dabb9cc06a4c523bd9ccaa1c28d6a46cbb3a181012bfbda8c7ba29257f94c7916ed23010d33efbceaef1e35ddc1bfd7cdfcdb6cbd25f0625329b21
7
+ data.tar.gz: dc83348680b7a3eacb1e6409c04a54b33f8980078813d6ff6cec8e6a2c7032a231c77506a6c77db7426eaf7e078886b8a9849d2c405ad98cbc09bf3ce768c984
@@ -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.11708
4
+ version: 0.5.11820
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-21 00:00:00.000000000 Z
11
+ date: 2025-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest