sorbet-runtime 0.5.5912 → 0.5.5923

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: a6fd3b752235efe67140aae8f1be595fd216ee0e0cba48997ac7e007e11f6520
4
- data.tar.gz: cb8bb6a200170cd93640b445a10061cf3f1747b326a6549434c495aa56e11392
3
+ metadata.gz: da8f1dd7f7ac0bc13c1131309eac74c8f5dc5cb424546eef9e778984abbfba2c
4
+ data.tar.gz: eda54189abf3dafd76b61ca88d8e94c5f83032224bc135cbb2758cb6dd3e7f78
5
5
  SHA512:
6
- metadata.gz: 4332ae22f8ce10fa897518c0684a47dbf62456209c67bedb8691bd3381134162b104264189af53006264b43d6c7e1ef3cd69c1a3c9146fb4fab20bca8d6fcee9
7
- data.tar.gz: '08cb00595d898971c4f7a3270355047d94d7436b44471ed0da363c398347d2caa66300e9f2e829154e59630f0815d2b5277037fe3740f974cc7b494058a5f7a4'
6
+ metadata.gz: 147a764af6562a8fe120351535c612bad146e80bdb5b9ff05e54bb55ad31f02b5e0cbb593de07c934d0611c2d2a4a6cc3d1339f676b86c37a57d7fe67240b4d8
7
+ data.tar.gz: e65f42ca4ffee2f464e43c509b2eace998903a9324665cc51a763943c48ebd627e83c48a5d4d55e87b0462ed29529bba86c5951cb42cd30f0543e8b87498862b
@@ -46,7 +46,7 @@ module T::Private::Sealed
46
46
  end
47
47
 
48
48
  def self.validate_inheritance(this_line, parent, verb)
49
- this_file = this_line&.split(':').first
49
+ this_file = this_line&.split(':')&.first
50
50
  decl_file = parent.instance_variable_get(:@sorbet_sealed_module_decl_file)
51
51
 
52
52
  if !this_file || !decl_file
@@ -427,7 +427,7 @@ class T::Props::Decorator
427
427
  # TODO(PRIVACYENG-982) Ideally we'd also check for 'password' and possibly
428
428
  # other terms, but this interacts badly with ProtoDefinedDocument because
429
429
  # the proto syntax currently can't declare "sensitivity: []"
430
- if prop_name =~ /\bsecret\b/
430
+ if /\bsecret\b/.match?(prop_name)
431
431
  T::Configuration.hard_assert_handler(
432
432
  "#{@class}##{prop_name} has the word 'secret' in its name, but no " \
433
433
  "'sensitivity:' annotation. This is probably wrong, because if a " \
@@ -170,7 +170,7 @@ module T::Props
170
170
 
171
171
  private_class_method def self.validate_deserialize_handle_nil(node)
172
172
  case node.type
173
- when :hash, :array, :str, :sym, :int, :float, :true, :false, :nil, :const
173
+ when :hash, :array, :str, :sym, :int, :float, :true, :false, :nil, :const # rubocop:disable Lint/BooleanSymbol
174
174
  # Primitives and constants are safe
175
175
  when :send
176
176
  receiver, method, arg = node.children
@@ -209,7 +209,7 @@ module T::Props
209
209
  when :const
210
210
  # This is ok, because we'll have validated what method has been called
211
211
  # if applicable
212
- when :hash, :array, :str, :sym, :int, :float, :true, :false, :nil, :self
212
+ when :hash, :array, :str, :sym, :int, :float, :true, :false, :nil, :self # rubocop:disable Lint/BooleanSymbol
213
213
  # Primitives & self are ok
214
214
  when :lvar, :arg, :ivar
215
215
  # Reading local & instance variables & arguments is ok
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.5912
4
+ version: 0.5.5923
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-17 00:00:00.000000000 Z
11
+ date: 2020-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest