sorbet 0.5.5357 → 0.5.5368
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gem-generator-tracepoint/tracepoint_serializer.rb +1 -1
- data/lib/gem_loader.rb +17 -0
- 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: 4a91f9ca7f16643943343294fb04b2c6be5cd456
|
4
|
+
data.tar.gz: 59e03a1e441dd48080fc41b55351740a662700db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c58f794bc051dafd877b123174625eeb4accd6470e1032ad79c87131d3c6d0906569a6ac1470a5ca1cf2c7323b4038bebd18909e2f7793180ada17b68c0de8e
|
7
|
+
data.tar.gz: ff987783c7c59759ae70895ebf78e57934aebeab6c3c53e128309afbd1c83da8eb49510b83798ef50579460771915049dd823619d49b0501a09e311fac2d67dc
|
@@ -55,7 +55,7 @@ module Sorbet::Private
|
|
55
55
|
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/#{gem[:gem]}/all/#{gem[:gem]}.rbi
|
56
56
|
#
|
57
57
|
")
|
58
|
-
f.write("# #{gem[:gem]}-#{gem[:version]}\n")
|
58
|
+
f.write("# #{gem[:gem]}-#{gem[:version]}\n\n")
|
59
59
|
klass_ids.each do |klass_id, class_def|
|
60
60
|
klass = class_def.klass
|
61
61
|
|
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.
|
4
|
+
version: 0.5.5368
|
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-
|
11
|
+
date: 2020-02-13 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.5368
|
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.5368
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|