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 +4 -4
- data/lib/types/private/sealed.rb +1 -1
- data/lib/types/props/decorator.rb +1 -1
- data/lib/types/props/generated_code_validation.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d4afb0a408f26a4f0ce753fa69d9d120ed98da8efa73c229b55e112c7f5a24d
|
4
|
+
data.tar.gz: 172efaccb0dec9648fddbd4b82cb9dfce7206f35601cefad59a06c094545540d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 419440730fce821a11a16e20d46d884e03a2a8b61463c005522415827b3363df867a25353c77f0d2d82c749a5cfcead54d4a6a65280b70cdf0315f13b32271b9
|
7
|
+
data.tar.gz: 18c7f4dff12289724c1aa8a39b5e5d2764160ad4a28d0c65e1b9967a2fb71767bbe159111b6825e0cc96a329a1cdb25999f65ac38af6186fa735621ca41e8b8a
|
data/lib/types/private/sealed.rb
CHANGED
@@ -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(':')
|
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
|
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.
|
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-
|
11
|
+
date: 2020-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|