sorbet-runtime 0.5.5911 → 0.5.5920
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 +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: b7cbed9d3d7294ad373072199f8802d61550e35554f8c9ea99ed72ee28642433
|
4
|
+
data.tar.gz: e64faf7a0d13f55f7a5e3b2afe8ce9559da34332e17062024b4e63069a69bf50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ace2b6b4dc5340ad580842522e428d20f6f94ce0ef3261c08b58c04c999898068d14d59b1ed7028f49e21c311f2564383431094f5d88874a3ffb5ea94aa5ef31
|
7
|
+
data.tar.gz: 0c4da44db036f59c8c98044f205a3dc574bc53e054109aa868cc52a1b70e50f56006874648a4deeca0e5ea1beab95804a436e5b147efdbe6e6d66730efc9a981
|
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.5920
|
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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|