sorbet 0.5.6539 → 0.5.8993
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hidden-definition-finder.rb +2 -2
- data/lib/serialize.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4acca0722795e08e4618a590aebfe9cf6a34f1af
|
4
|
+
data.tar.gz: e3cc08ef1b7c14d3684d48eb12d955abcdcff035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 723e6a1568bacd9fa57a78ba02a9e1213aa07f596c4b09966f9f469ab12144ced068ee1425c91de7e74707363476ecdbd819c2eb0a55cd11787a2989f13c178c
|
7
|
+
data.tar.gz: d4c31e2844a9251264ce6caddb1a8cab69990e3a73d6d30a5e245c128eafffac44e2f492fc3a94e1cfd13d40e332cb46057e743a1f3933cff69dcd255bb246d5
|
@@ -331,9 +331,9 @@ class Sorbet::Private::HiddenMethodFinder
|
|
331
331
|
next
|
332
332
|
end
|
333
333
|
next if Sorbet::Private::RealStdlib.real_is_a?(my_value, Class) || Sorbet::Private::RealStdlib.real_is_a?(my_value, Module)
|
334
|
-
if defined?(T::Types) && Sorbet::Private::RealStdlib.real_is_a?(my_value, T::Types::TypeMember)
|
334
|
+
if defined?(T::Types::TypeMember) && Sorbet::Private::RealStdlib.real_is_a?(my_value, T::Types::TypeMember)
|
335
335
|
ret << (my_value.variance == :invariant ? " #{name} = type_member" : " #{name} = type_member(#{my_value.variance.inspect})")
|
336
|
-
elsif defined?(T::Types) && Sorbet::Private::RealStdlib.real_is_a?(my_value, T::Types::TypeTemplate)
|
336
|
+
elsif defined?(T::Types::TypeTemplate) && Sorbet::Private::RealStdlib.real_is_a?(my_value, T::Types::TypeTemplate)
|
337
337
|
ret << (my_value.variance == :invariant ? " #{name} = type_template" : " #{name} = type_template(#{my_value.variance.inspect})")
|
338
338
|
else
|
339
339
|
ret << " #{name} = ::T.let(nil, ::T.untyped)"
|
data/lib/serialize.rb
CHANGED
@@ -223,9 +223,9 @@ class Sorbet::Private::Serialize
|
|
223
223
|
if KEYWORDS.include?(const.to_sym)
|
224
224
|
return "# Illegal constant name: #{const}"
|
225
225
|
end
|
226
|
-
if defined?(T::Types) && Sorbet::Private::RealStdlib.real_is_a?(value, T::Types::TypeMember)
|
226
|
+
if defined?(T::Types::TypeMember) && Sorbet::Private::RealStdlib.real_is_a?(value, T::Types::TypeMember)
|
227
227
|
value.variance == :invariant ? " #{const} = type_member" : " #{const} = type_member(#{value.variance.inspect})"
|
228
|
-
elsif defined?(T::Types) && Sorbet::Private::RealStdlib.real_is_a?(value, T::Types::TypeTemplate)
|
228
|
+
elsif defined?(T::Types::TypeTemplate) && Sorbet::Private::RealStdlib.real_is_a?(value, T::Types::TypeTemplate)
|
229
229
|
value.variance == :invariant ? " #{const} = type_template" : " #{const} = type_template(#{value.variance.inspect})"
|
230
230
|
else
|
231
231
|
" #{const} = ::T.let(nil, ::T.untyped)"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorbet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.8993
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-static
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.5.
|
19
|
+
version: 0.5.8993
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.5.
|
26
|
+
version: 0.5.8993
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|