sorbet-runtime 0.6.12526 → 0.6.12534

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d815b2b7e2352415abe2127044152e8d28b6f87baa3bf11003358eb8d6af3e1
4
- data.tar.gz: 62600ed18e370788099c7f29a33e487746ff244e851ace845b969b9c0400c733
3
+ metadata.gz: 1900ecda1ce9ca314432d848c560bae9b92a3c2e7bc35b4f5ffe22de96b52f0a
4
+ data.tar.gz: 6998645309e0a99fafc14a1aafefff0ecd89c73d3c67d9a2888a7d363dd5edbd
5
5
  SHA512:
6
- metadata.gz: fbf9db51889d9a3b40f06fa28f1b2e1f2627d087eb8247d2f684f597dfdcd6b50c49134a004d0adba1a672ec48069fa45a32692abf1bcd18afc5187a0235500f
7
- data.tar.gz: d86e55d7329a9553dc3c01e167cea82ea1f33fbcf915d18b609234b193dcd6b3755e157141d898dfc705107b148e2e4be4885458b7bbe4db65eaf19858950e12
6
+ metadata.gz: 835eb9ce4cf8d80e75e81ec0fb960b886d6eaec5164dd87fff5e992a0dc0116c888be1f822828d45be0a9b345de15a0dc06b270c91303fe91fe3a2180d3a1af0
7
+ data.tar.gz: db8644d8f53f632b6b302341af7299d776accd4ec46b937e0217f909eca5ae908763b658c475ad0cbae46c850061bb54207dbf4b223343a5987449078f6e4555
@@ -277,7 +277,7 @@ module T::Private::Methods::SignatureValidation
277
277
  end
278
278
  end
279
279
 
280
- ALLOW_INCOMPATIBLE_VISIBILITY = [:visibility, true]
280
+ ALLOW_INCOMPATIBLE_VISIBILITY = [:visibility, true].freeze
281
281
  private_constant :ALLOW_INCOMPATIBLE_VISIBILITY
282
282
 
283
283
  def self.validate_override_visibility(signature, super_signature)
@@ -308,7 +308,7 @@ module T::Private::Methods::SignatureValidation
308
308
  end
309
309
 
310
310
  # Higher = more restrictive.
311
- METHOD_VISIBILITIES = %i[public protected private]
311
+ METHOD_VISIBILITIES = %i[public protected private].freeze
312
312
  private_constant :METHOD_VISIBILITIES
313
313
 
314
314
  private_class_method def self.visibility_strength(vis)
@@ -323,9 +323,9 @@ class T::Props::Decorator
323
323
  sig(:final) { params(name: Symbol).returns(T::Boolean).checked(:never) }
324
324
  private def method_defined_on_ancestor?(name)
325
325
  (@class.method_defined?(name) || @class.private_method_defined?(name)) &&
326
- # Unfortunately, older versions of ruby don't allow the second parameter on
327
- # `private_method_defined?`.
328
- (!@class.method_defined?(name, false) && !@class.private_method_defined?(name, false))
326
+ # Unfortunately, older versions of ruby don't allow the second parameter on
327
+ # `private_method_defined?`.
328
+ (!@class.method_defined?(name, false) && !@class.private_method_defined?(name, false))
329
329
  end
330
330
 
331
331
  sig(:final) { params(name: Symbol, rules: Rules).void.checked(:never) }
@@ -406,8 +406,6 @@ class T::Props::Decorator
406
406
 
407
407
  # extra arbitrary metadata attached by the code defining this property
408
408
 
409
- validate_not_missing_sensitivity(name, rules)
410
-
411
409
  # for backcompat (the `:array` key is deprecated but because the name is
412
410
  # so generic it's really hard to be sure it's not being relied on anymore)
413
411
  if type.is_a?(T::Types::TypedArray)
@@ -483,35 +481,6 @@ class T::Props::Decorator
483
481
  end
484
482
  end
485
483
 
486
- # checked(:never) - Rules hash is expensive to check
487
- sig { params(prop_name: Symbol, rules: Rules).void.checked(:never) }
488
- private def validate_not_missing_sensitivity(prop_name, rules)
489
- if rules[:sensitivity].nil?
490
- if rules[:redaction]
491
- T::Configuration.hard_assert_handler(
492
- "#{@class}##{prop_name} has a 'redaction:' annotation but no " \
493
- "'sensitivity:' annotation. This is probably wrong, because if a " \
494
- "prop needs redaction then it is probably sensitive. Add a " \
495
- "sensitivity annotation like 'sensitivity: Opus::Sensitivity::PII." \
496
- "whatever', or explicitly override this check with 'sensitivity: []'."
497
- )
498
- end
499
- # TODO(PRIVACYENG-982) Ideally we'd also check for 'password' and possibly
500
- # other terms, but this interacts badly with ProtoDefinedDocument because
501
- # the proto syntax currently can't declare "sensitivity: []"
502
- if /\bsecret\b/.match?(prop_name)
503
- T::Configuration.hard_assert_handler(
504
- "#{@class}##{prop_name} has the word 'secret' in its name, but no " \
505
- "'sensitivity:' annotation. This is probably wrong, because if a " \
506
- "prop is named 'secret' then it is probably sensitive. Add a " \
507
- "sensitivity annotation like 'sensitivity: Opus::Sensitivity::NonPII." \
508
- "security_token', or explicitly override this check with " \
509
- "'sensitivity: []'."
510
- )
511
- end
512
- end
513
- end
514
-
515
484
  # Create `#{prop_name}_redacted` method
516
485
  sig do
517
486
  params(
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.6.12526
4
+ version: 0.6.12534
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-13 00:00:00.000000000 Z
11
+ date: 2025-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest