sorbet 0.4.4319 → 0.4.4320
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/hidden-definition-finder.rb +23 -24
- 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: f2f762a2f554abd782f1a504542cec9d20a9d3a2
|
4
|
+
data.tar.gz: 2ebfb57190cbb830d93dd8a91d9c97b0596b0ef7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daa1c920cfb4de0ae273d14d8d9ded78fbaf2045a40faf7416296558a7ed719a6c9c0b186345df9ce143525efebc1a2dc930d78ff997d0c49c9464ff80abd0b3
|
7
|
+
data.tar.gz: fd2c4334735750b69f6fd3adcab7b26eccf0ccd3d4ca4d2bec5789fadd83f6386b951fd949b001ffda1298bf7c2e7ff93bdcfab3a753865fc96cf4ed37d99eb0
|
@@ -117,30 +117,29 @@ class Sorbet::Private::HiddenMethodFinder
|
|
117
117
|
raise "Your source can't be read by Sorbet.\nYou can try `find . -type f | xargs -L 1 -t srb tc --no-config --error-white-list 1000` and hopefully the last file it is processing before it dies is the culprit.\nIf not, maybe the errors in this file will help: #{SOURCE_CONSTANTS_ERR}" if File.read(SOURCE_CONSTANTS).empty?
|
118
118
|
|
119
119
|
puts "Printing #{TMP_RBI}'s symbol table into #{RBI_CONSTANTS}"
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
end
|
120
|
+
io = IO.popen(
|
121
|
+
[
|
122
|
+
File.realpath("#{__dir__}/../bin/srb"),
|
123
|
+
'tc',
|
124
|
+
# Make sure we don't load a sorbet/config in your cwd
|
125
|
+
'--no-config',
|
126
|
+
'--print=symbol-table-json',
|
127
|
+
# Method redefined with mismatched argument is ok since sometime
|
128
|
+
# people monkeypatch over method
|
129
|
+
'--error-black-list=4010',
|
130
|
+
# Redefining constant is needed because we serialize things both as
|
131
|
+
# aliases and in-class constants.
|
132
|
+
'--error-black-list=4012',
|
133
|
+
# Invalid nesting is ok because we don't generate all the intermediate
|
134
|
+
# namespaces for aliases
|
135
|
+
'--error-black-list=4015',
|
136
|
+
'--stdout-hup-hack',
|
137
|
+
'--silence-dev-message',
|
138
|
+
'--no-error-count',
|
139
|
+
TMP_RBI,
|
140
|
+
],
|
141
|
+
err: RBI_CONSTANTS_ERR
|
142
|
+
)
|
144
143
|
File.write(RBI_CONSTANTS, io.read)
|
145
144
|
io.close
|
146
145
|
raise "#{TMP_RBI} had unexpected errors. Check this file for a clue: #{RBI_CONSTANTS_ERR}" unless $?.success?
|
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.4320
|
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.4320
|
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.4320
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|