sorbet 0.5.5334 → 0.5.5358
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gem_loader.rb +36 -0
- data/lib/hidden-definition-finder.rb +7 -1
- data/lib/serialize.rb +7 -8
- 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: f4ed1910f45695399bf6f287b26d537279f9636b
|
4
|
+
data.tar.gz: bbb42d5eaa6d5f15b6c383afff7b3f6518c68e26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7d2e3140bfa0c224703ddaa9881704abdde03d4479fdc523cfa85f87e585221b26b83f224eaa60fef1e3db49fa964cc2fdc2a5b04b3f4f3752d442657924adc
|
7
|
+
data.tar.gz: 3a25544efd4173bd2634b5668fcd56cc80b5cb82efc202a43ec1e59357b224bd3b465747ebc9eb74c768cd620c410154adc575ab2a875f9d3cb3a9862efad31d
|
data/lib/gem_loader.rb
CHANGED
@@ -556,6 +556,42 @@ class Sorbet::Private::GemLoader
|
|
556
556
|
SPARQL::VERSION,
|
557
557
|
]
|
558
558
|
end,
|
559
|
+
'selenium-webdriver' => proc do
|
560
|
+
my_require 'selenium/webdriver'
|
561
|
+
[
|
562
|
+
Selenium::WebDriver::Chrome,
|
563
|
+
Selenium::WebDriver::Chrome::Bridge,
|
564
|
+
Selenium::WebDriver::Chrome::Driver,
|
565
|
+
Selenium::WebDriver::Chrome::Profile,
|
566
|
+
Selenium::WebDriver::Chrome::Options,
|
567
|
+
Selenium::WebDriver::Chrome::Service,
|
568
|
+
Selenium::WebDriver::Edge,
|
569
|
+
Selenium::WebDriver::Firefox,
|
570
|
+
Selenium::WebDriver::Firefox::Extension,
|
571
|
+
Selenium::WebDriver::Firefox::ProfilesIni,
|
572
|
+
Selenium::WebDriver::Firefox::Profile,
|
573
|
+
Selenium::WebDriver::Firefox::Driver,
|
574
|
+
Selenium::WebDriver::Firefox::Options,
|
575
|
+
Selenium::WebDriver::Firefox::Service,
|
576
|
+
Selenium::WebDriver::IE,
|
577
|
+
Selenium::WebDriver::IE::Driver,
|
578
|
+
Selenium::WebDriver::IE::Options,
|
579
|
+
Selenium::WebDriver::IE::Service,
|
580
|
+
Selenium::WebDriver::Remote,
|
581
|
+
Selenium::WebDriver::Remote::Bridge,
|
582
|
+
Selenium::WebDriver::Remote::Driver,
|
583
|
+
Selenium::WebDriver::Remote::Response,
|
584
|
+
Selenium::WebDriver::Remote::Capabilities,
|
585
|
+
Selenium::WebDriver::Remote::Http::Common,
|
586
|
+
Selenium::WebDriver::Remote::Http::Default,
|
587
|
+
Selenium::WebDriver::Safari,
|
588
|
+
Selenium::WebDriver::Safari::Bridge,
|
589
|
+
Selenium::WebDriver::Safari::Driver,
|
590
|
+
Selenium::WebDriver::Safari::Options,
|
591
|
+
Selenium::WebDriver::Safari::Service,
|
592
|
+
Selenium::WebDriver::Support,
|
593
|
+
]
|
594
|
+
end,
|
559
595
|
}
|
560
596
|
|
561
597
|
# This is so that the autoloader doesn't treat these as manditory requires
|
@@ -327,7 +327,13 @@ class Sorbet::Private::HiddenMethodFinder
|
|
327
327
|
next
|
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})"
|
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})"
|
334
|
+
else
|
335
|
+
ret << " #{name} = ::T.let(nil, ::T.untyped)"
|
336
|
+
end
|
331
337
|
end
|
332
338
|
ret
|
333
339
|
end
|
data/lib/serialize.rb
CHANGED
@@ -220,17 +220,16 @@ class Sorbet::Private::Serialize
|
|
220
220
|
end
|
221
221
|
|
222
222
|
def constant(const, value)
|
223
|
-
#if Sorbet::Private::RealStdlib.real_is_a?(value, T::Types::TypeTemplate)
|
224
|
-
#" #{const} = type_template"
|
225
|
-
#elsif Sorbet::Private::RealStdlib.real_is_a?(value, T::Types::TypeMember)
|
226
|
-
#" #{const} = type_member"
|
227
|
-
#else
|
228
|
-
#" #{const} = ::T.let(nil, ::T.untyped)"
|
229
|
-
#end
|
230
223
|
if KEYWORDS.include?(const.to_sym)
|
231
224
|
return "# Illegal constant name: #{const}"
|
232
225
|
end
|
233
|
-
|
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})"
|
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})"
|
230
|
+
else
|
231
|
+
" #{const} = ::T.let(nil, ::T.untyped)"
|
232
|
+
end
|
234
233
|
end
|
235
234
|
|
236
235
|
def serialize_method(method, static=false, with_sig: true)
|
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.5358
|
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-09 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.5358
|
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.5358
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|