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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hidden-definition-finder.rb +23 -24
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9004ed78da1d564a720c7e79e8d7341d0c6fe2a
4
- data.tar.gz: 3d9b134a53ca6b71f288296e5a49dff7b1e613b3
3
+ metadata.gz: f2f762a2f554abd782f1a504542cec9d20a9d3a2
4
+ data.tar.gz: 2ebfb57190cbb830d93dd8a91d9c97b0596b0ef7
5
5
  SHA512:
6
- metadata.gz: 43568b205b24918559b69b250dccbd0d2ce9b9e67ead87ed20997b0f3059b0721ac060af4e6e3a79e83be40dba1bb4dbf31c5473b89be47b50cd1fa65ef4bd0b
7
- data.tar.gz: 6546db1c308ae39db0c00b4acb74eaf090557957a6220d1dcff76600acba6db22ab7390d2dbca7b224abbf63f32eb0b5e1a61241e2c4928042a521c70d08cfd6
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
- # Change dir to deal with you having a sorbet/config in your cwd
121
- Dir.chdir(TMP_PATH) do
122
- io = IO.popen(
123
- [
124
- File.realpath("#{__dir__}/../bin/srb"),
125
- 'tc',
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
- )
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.4319
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.4319
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.4319
26
+ version: 0.4.4320
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement