brew style --fix

This commit is contained in:
Douglas Eichelberger 2023-03-20 13:16:31 -07:00
parent 82dc57dfea
commit f38a672938
35 changed files with 7 additions and 73 deletions

View File

@ -11,8 +11,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
include SystemCommand::Mixin include SystemCommand::Mixin
sig { override.params(unpack_dir: Pathname, basename: Pathname, verbose: T::Boolean).returns(T.untyped) } sig { override.params(unpack_dir: Pathname, basename: Pathname, verbose: T::Boolean).returns(T.untyped) }
def extract_to_dir(unpack_dir, basename:, verbose:) def extract_to_dir(unpack_dir, basename:, verbose:)
with_env(TZ: "UTC") do with_env(TZ: "UTC") do

View File

@ -8,8 +8,6 @@ module UnpackStrategy
class Bazaar < Directory class Bazaar < Directory
extend T::Sig extend T::Sig
def self.can_extract?(path) def self.can_extract?(path)
super && (path/".bzr").directory? super && (path/".bzr").directory?
end end

View File

@ -8,8 +8,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".bz2"] [".bz2"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".cab"] [".cab"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
class Compress < Tar class Compress < Tar
extend T::Sig extend T::Sig
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".Z"] [".Z"]

View File

@ -6,8 +6,6 @@ require_relative "directory"
module UnpackStrategy module UnpackStrategy
# Strategy for unpacking CVS repositories. # Strategy for unpacking CVS repositories.
class Cvs < Directory class Cvs < Directory
def self.can_extract?(path) def self.can_extract?(path)
super && (path/"CVS").directory? super && (path/"CVS").directory?
end end

View File

@ -8,8 +8,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[] []

View File

@ -8,8 +8,6 @@ module UnpackStrategy
class Executable < Uncompressed class Executable < Uncompressed
extend T::Sig extend T::Sig
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".sh", ".bash"] [".sh", ".bash"]

View File

@ -11,8 +11,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
extend SystemCommand::Mixin extend SystemCommand::Mixin
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[] []

View File

@ -8,8 +8,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[] []

View File

@ -6,8 +6,6 @@ require_relative "directory"
module UnpackStrategy module UnpackStrategy
# Strategy for unpacking Git repositories. # Strategy for unpacking Git repositories.
class Git < Directory class Git < Directory
def self.can_extract?(path) def self.can_extract?(path)
super && (path/".git").directory? super && (path/".git").directory?
end end

View File

@ -8,8 +8,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".gz"] [".gz"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
class Jar < Uncompressed class Jar < Uncompressed
extend T::Sig extend T::Sig
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".apk", ".jar"] [".apk", ".jar"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".lha", ".lzh"] [".lha", ".lzh"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
class LuaRock < Uncompressed class LuaRock < Uncompressed
extend T::Sig extend T::Sig
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".rock"] [".rock"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".lz"] [".lz"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".lzma"] [".lzma"]

View File

@ -6,8 +6,6 @@ require_relative "directory"
module UnpackStrategy module UnpackStrategy
# Strategy for unpacking Mercurial repositories. # Strategy for unpacking Mercurial repositories.
class Mercurial < Directory class Mercurial < Directory
def self.can_extract?(path) def self.can_extract?(path)
super && (path/".hg").directory? super && (path/".hg").directory?
end end

View File

@ -8,8 +8,6 @@ module UnpackStrategy
class MicrosoftOfficeXml < Uncompressed class MicrosoftOfficeXml < Uncompressed
extend T::Sig extend T::Sig
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[ [

View File

@ -8,8 +8,6 @@ module UnpackStrategy
class Otf < Uncompressed class Otf < Uncompressed
extend T::Sig extend T::Sig
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".otf"] [".otf"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".7z"] [".7z"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".pax"] [".pax"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
class Pkg < Uncompressed class Pkg < Uncompressed
extend T::Sig extend T::Sig
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".pkg", ".mkpg"] [".pkg", ".mkpg"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".rar"] [".rar"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
class SelfExtractingExecutable < GenericUnar class SelfExtractingExecutable < GenericUnar
extend T::Sig extend T::Sig
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[] []

View File

@ -8,8 +8,6 @@ module UnpackStrategy
class Sit < GenericUnar class Sit < GenericUnar
extend T::Sig extend T::Sig
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".sit"] [".sit"]

View File

@ -6,8 +6,6 @@ require_relative "directory"
module UnpackStrategy module UnpackStrategy
# Strategy for unpacking Subversion repositories. # Strategy for unpacking Subversion repositories.
class Subversion < Directory class Subversion < Directory
def self.can_extract?(path) def self.can_extract?(path)
super && (path/".svn").directory? super && (path/".svn").directory?
end end

View File

@ -11,8 +11,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
extend SystemCommand::Mixin extend SystemCommand::Mixin
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[ [

View File

@ -8,8 +8,6 @@ module UnpackStrategy
class Ttf < Uncompressed class Ttf < Uncompressed
extend T::Sig extend T::Sig
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".ttc", ".ttf"] [".ttc", ".ttf"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".xar"] [".xar"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".xz"] [".xz"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".zip"] [".zip"]

View File

@ -8,8 +8,6 @@ module UnpackStrategy
include UnpackStrategy include UnpackStrategy
sig { returns(T::Array[String]) } sig { returns(T::Array[String]) }
def self.extensions def self.extensions
[".zst"] [".zst"]