sorbet 0.4.4458 → 0.4.4461
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/suggest-typed.rb +18 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be1d08ccec379bc0af1d6c8af93ac36c9692d5cb
|
4
|
+
data.tar.gz: a2743da01459efa9151cba1b08fed1124f952b37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2be1f40f94a8704f5ca014a9b1a6554ff7a15283867a1aad9acae0e9586f67cbd223864a86573fadcc93471b691e412c7f2731c9662b439c21708917c31bdaa4
|
7
|
+
data.tar.gz: 6daeb17e152f8ec2a258b5717df236e827fd2b2e66a69ef9be353aec261e2f9b0d817a5bed9d39f368e0d47b6d508b609434bd9d3665beffd9838a3e185b2890
|
data/lib/suggest-typed.rb
CHANGED
@@ -15,7 +15,25 @@ class Sorbet::Private::SuggestTyped
|
|
15
15
|
if suggest_typed
|
16
16
|
return true
|
17
17
|
end
|
18
|
+
|
19
|
+
if count == 50
|
20
|
+
puts "Adding `typed:` sigils did not converge after 50 tries."
|
21
|
+
STDOUT.write("Would you like to continue anyway? [Y/n] ")
|
22
|
+
if STDIN.isatty && STDOUT.isatty
|
23
|
+
begin
|
24
|
+
input = STDIN.gets&.strip
|
25
|
+
if input.nil? || (input != '' && input != 'y' && input != 'Y')
|
26
|
+
return false
|
27
|
+
end
|
28
|
+
rescue Interrupt
|
29
|
+
return false
|
30
|
+
end
|
31
|
+
else
|
32
|
+
puts "Not running interactively, continuing."
|
33
|
+
end
|
34
|
+
end
|
18
35
|
end
|
36
|
+
|
19
37
|
puts "Adding `typed:` sigils did not converge after 100 tries."
|
20
38
|
false
|
21
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorbet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4461
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.4.
|
19
|
+
version: 0.4.4461
|
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.4.
|
26
|
+
version: 0.4.4461
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|