File tree Expand file tree Collapse file tree 3 files changed +6
-16
lines changed
sorbet/rbi/dsl/homebrew/bundle Expand file tree Collapse file tree 3 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 1
- # typed: true
1
+ # typed: false # rubocop:todo Sorbet/TrueSigil
2
2
# frozen_string_literal: true
3
3
4
4
require "json"
@@ -189,12 +189,7 @@ def formula_to_hash(formula)
189
189
190
190
class Topo < Hash
191
191
include TSort
192
-
193
- def each_key ( &block )
194
- keys . each ( &block )
195
- end
196
192
alias tsort_each_node each_key
197
-
198
193
def tsort_each_child ( node , &block )
199
194
fetch ( node . downcase ) . sort . each ( &block )
200
195
end
@@ -235,8 +230,8 @@ def sort!(formulae)
235
230
236
231
odie <<~EOS
237
232
Formulae dependency graph sorting failed (likely due to a circular dependency):
238
- #{ cycle_first } : #{ topo [ cycle_first ] if topo }
239
- #{ cycle_last } : #{ topo [ cycle_last ] if topo }
233
+ #{ cycle_first } : #{ topo [ cycle_first ] }
234
+ #{ cycle_last } : #{ topo [ cycle_last ] }
240
235
Please run the following commands and try again:
241
236
brew update
242
237
brew uninstall --ignore-dependencies --force #{ cycle_first } #{ cycle_last }
Original file line number Diff line number Diff line change 1
- # typed: true
1
+ # typed: false # rubocop:todo Sorbet/TrueSigil
2
2
# frozen_string_literal: true
3
3
4
4
module Homebrew
@@ -23,7 +23,7 @@ def failure_reason(name, no_upgrade:)
23
23
else
24
24
"needs to be installed or updated."
25
25
end
26
- "#{ self . class . const_get ( : PACKAGE_TYPE_NAME) } #{ name } #{ reason } "
26
+ "#{ self . class :: PACKAGE_TYPE_NAME } #{ name } #{ reason } "
27
27
end
28
28
29
29
def full_check ( packages , no_upgrade :)
@@ -33,7 +33,7 @@ def full_check(packages, no_upgrade:)
33
33
34
34
def checkable_entries ( all_entries )
35
35
require "bundle/skipper"
36
- all_entries . select { |e | e . type == self . class . const_get ( : PACKAGE_TYPE) }
36
+ all_entries . select { |e | e . type == self . class :: PACKAGE_TYPE }
37
37
. reject ( &Bundle ::Skipper . method ( :skip? ) )
38
38
end
39
39
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments