sorbet-runtime 0.5.5912 → 0.5.5913

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: a6fd3b752235efe67140aae8f1be595fd216ee0e0cba48997ac7e007e11f6520
4
- data.tar.gz: cb8bb6a200170cd93640b445a10061cf3f1747b326a6549434c495aa56e11392
3
+ metadata.gz: 5d4afb0a408f26a4f0ce753fa69d9d120ed98da8efa73c229b55e112c7f5a24d
4
+ data.tar.gz: 172efaccb0dec9648fddbd4b82cb9dfce7206f35601cefad59a06c094545540d
5
5
  SHA512:
6
- metadata.gz: 4332ae22f8ce10fa897518c0684a47dbf62456209c67bedb8691bd3381134162b104264189af53006264b43d6c7e1ef3cd69c1a3c9146fb4fab20bca8d6fcee9
7
- data.tar.gz: '08cb00595d898971c4f7a3270355047d94d7436b44471ed0da363c398347d2caa66300e9f2e829154e59630f0815d2b5277037fe3740f974cc7b494058a5f7a4'
6
+ metadata.gz: 419440730fce821a11a16e20d46d884e03a2a8b61463c005522415827b3363df867a25353c77f0d2d82c749a5cfcead54d4a6a65280b70cdf0315f13b32271b9
7
+ data.tar.gz: 18c7f4dff12289724c1aa8a39b5e5d2764160ad4a28d0c65e1b9967a2fb71767bbe159111b6825e0cc96a329a1cdb25999f65ac38af6186fa735621ca41e8b8a
@@ -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.5913
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-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest