From e20c982d1a62f0cc30866422399ff9a058fb32ba Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 15:53:33 +0200 Subject: [PATCH] Inline `utils.rbi`. --- Library/Homebrew/sorbet/rbi/utils/utils.rbi | 20 -------------------- Library/Homebrew/utils/link.rb | 2 ++ Library/Homebrew/utils/shebang.rb | 2 ++ Library/Homebrew/utils/tar.rb | 2 ++ 4 files changed, 6 insertions(+), 20 deletions(-) delete mode 100644 Library/Homebrew/sorbet/rbi/utils/utils.rbi diff --git a/Library/Homebrew/sorbet/rbi/utils/utils.rbi b/Library/Homebrew/sorbet/rbi/utils/utils.rbi deleted file mode 100644 index cc0c9848ed..0000000000 --- a/Library/Homebrew/sorbet/rbi/utils/utils.rbi +++ /dev/null @@ -1,20 +0,0 @@ -# typed: strict - -module Utils - include Kernel - - module Bottles - end - - module Link - include Kernel - end - - module Shebang - include Kernel - end - - module Tar - include Kernel - end -end diff --git a/Library/Homebrew/utils/link.rb b/Library/Homebrew/utils/link.rb index 8078390f60..1a726d5939 100644 --- a/Library/Homebrew/utils/link.rb +++ b/Library/Homebrew/utils/link.rb @@ -6,6 +6,8 @@ module Utils # # @api private module Link + include Kernel + module_function def link_src_dst_dirs(src_dir, dst_dir, command, link_dir: false) diff --git a/Library/Homebrew/utils/shebang.rb b/Library/Homebrew/utils/shebang.rb index 762ddf5804..2fdb721cad 100644 --- a/Library/Homebrew/utils/shebang.rb +++ b/Library/Homebrew/utils/shebang.rb @@ -6,6 +6,8 @@ module Utils # # @api private module Shebang + include Kernel + module_function # Specification on how to rewrite a given shebang. diff --git a/Library/Homebrew/utils/tar.rb b/Library/Homebrew/utils/tar.rb index df29bf9adb..fe65d32999 100644 --- a/Library/Homebrew/utils/tar.rb +++ b/Library/Homebrew/utils/tar.rb @@ -6,6 +6,8 @@ module Utils # # @api private module Tar + include Kernel + module_function TAR_FILE_EXTENSIONS = %w[.tar .tb2 .tbz .tbz2 .tgz .tlz .txz .tZ].freeze