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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ce53c13de3b3f3692152aac4360072df01f840a
4
- data.tar.gz: aa4df5646053d606c1c3ad166a9e646ec95bf7ec
3
+ metadata.gz: 4acca0722795e08e4618a590aebfe9cf6a34f1af
4
+ data.tar.gz: e3cc08ef1b7c14d3684d48eb12d955abcdcff035
5
5
  SHA512:
6
- metadata.gz: 3da31da1321194e13ffdedeb7f0d8b060a2fae6073766b66d12f7df7f7dc49603f137dffd9c8c96c0c0fb4c074961dc430f9bcb31d9db024162c048222423daf
7
- data.tar.gz: 52cb33c1d2d63066712a10cb64e1df372af8e004b8957d194d0efe5e446a6019b1fe8047bf4d383ed0594c755ae1ddd395542a9f12c380b412c2b98fbd9718af
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.6539
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-30 00:00:00.000000000 Z
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.6539
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.6539
26
+ version: 0.5.8993
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement