sorbet 0.5.5360 → 0.5.5371

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: c09c885753bf619a35023af62a6e4eda654305d0
4
- data.tar.gz: 250c4a66008e61c49693354450638076c56540e0
3
+ metadata.gz: '08915da4b88f0de0a318f54ec7f24ba4681fc809'
4
+ data.tar.gz: 06e12d0061fc03cb44523184029a454d4c5a6d1f
5
5
  SHA512:
6
- metadata.gz: d60d26f335e5894ee1291caa7eec48f227f4f808f39474291fd95f62ea9546b9a8be3d4c9a31059eb29395c2562d9bfebb623a1fe1e354d2794cb04ac7cb2240
7
- data.tar.gz: 0df2d2dfe8dac0f91558b2f2696c2ddb2b90f93c1cb1a95f4c07b52d703cf62b07fcc397574bd0e0c7cc09af102ffb7be2594f23835c35a5206f77f2e9147ed9
6
+ metadata.gz: fc4182a4cc6076867041e12cbd9c9ac1a589b152e166279776c189f6b369c1d344c39408875902c34f16a6a5ecdcee301d547edf7d07e2850c0c0efedfd3eb8b
7
+ data.tar.gz: 4fda3226c2f983e41daa339b876fe8bd4a410b9644814ccd435fefeda98a581337416b5e7b011e601f37847d1ad52288c26dfb5950dbf36949a68f89b6152b46
data/lib/gem_loader.rb CHANGED
@@ -148,6 +148,10 @@ class Sorbet::Private::GemLoader
148
148
  my_require 'sinatra/multi_route'
149
149
  my_require 'sinatra/contrib/version'
150
150
  end,
151
+ 'sqreen' => proc do
152
+ ENV['SQREEN_DISABLE'] = 'true'
153
+ my_require 'sqreen'
154
+ end,
151
155
  'thin-attach_socket' => proc do
152
156
  my_require 'thin'
153
157
  my_require 'thin/attach_socket'
@@ -592,6 +596,19 @@ class Sorbet::Private::GemLoader
592
596
  Selenium::WebDriver::Support,
593
597
  ]
594
598
  end,
599
+ 'friendly_id' => proc do
600
+ my_require 'friendly_id'
601
+ [
602
+ FriendlyId::History,
603
+ FriendlyId::Slug,
604
+ FriendlyId::SimpleI18n,
605
+ FriendlyId::Reserved,
606
+ FriendlyId::Scoped,
607
+ FriendlyId::Slugged,
608
+ FriendlyId::Finders,
609
+ FriendlyId::SequentiallySlugged
610
+ ]
611
+ end,
595
612
  }
596
613
 
597
614
  # This is so that the autoloader doesn't treat these as manditory requires
@@ -328,9 +328,9 @@ class Sorbet::Private::HiddenMethodFinder
328
328
  end
329
329
  next if Sorbet::Private::RealStdlib.real_is_a?(my_value, Class) || Sorbet::Private::RealStdlib.real_is_a?(my_value, Module)
330
330
  if defined?(T::Types) && Sorbet::Private::RealStdlib.real_is_a?(my_value, T::Types::TypeMember)
331
- ret << my_value.variance == :invariant ? " #{name} = type_member" : " #{name} = type_member(#{my_value.variance})"
331
+ ret << my_value.variance == :invariant ? " #{name} = type_member" : " #{name} = type_member(#{my_value.variance.inspect})"
332
332
  elsif defined?(T::Types) && Sorbet::Private::RealStdlib.real_is_a?(my_value, T::Types::TypeTemplate)
333
- ret << my_value.variance == :invariant ? " #{name} = type_template" : " #{name} = type_template(#{my_value.variance})"
333
+ ret << my_value.variance == :invariant ? " #{name} = type_template" : " #{name} = type_template(#{my_value.variance.inspect})"
334
334
  else
335
335
  ret << " #{name} = ::T.let(nil, ::T.untyped)"
336
336
  end
data/lib/serialize.rb CHANGED
@@ -224,9 +224,9 @@ class Sorbet::Private::Serialize
224
224
  return "# Illegal constant name: #{const}"
225
225
  end
226
226
  if defined?(T::Types) && Sorbet::Private::RealStdlib.real_is_a?(value, T::Types::TypeMember)
227
- value.variance == :invariant ? " #{const} = type_member" : " #{const} = type_member(#{value.variance})"
227
+ value.variance == :invariant ? " #{const} = type_member" : " #{const} = type_member(#{value.variance.inspect})"
228
228
  elsif defined?(T::Types) && Sorbet::Private::RealStdlib.real_is_a?(value, T::Types::TypeTemplate)
229
- value.variance == :invariant ? " #{const} = type_template" : " #{const} = type_template(#{value.variance})"
229
+ value.variance == :invariant ? " #{const} = type_template" : " #{const} = type_template(#{value.variance.inspect})"
230
230
  else
231
231
  " #{const} = ::T.let(nil, ::T.untyped)"
232
232
  end
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.5360
4
+ version: 0.5.5371
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-10 00:00:00.000000000 Z
11
+ date: 2020-02-15 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.5360
19
+ version: 0.5.5371
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.5360
26
+ version: 0.5.5371
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement