lib/omnibus/fetchers/net_fetcher.rb in omnibus-6.1.7 vs lib/omnibus/fetchers/net_fetcher.rb in omnibus-6.1.9
- old
+ new
@@ -29,11 +29,11 @@
TAR_EXTENSIONS = COMPRESSED_TAR_EXTENSIONS + [".tar"]
ALL_EXTENSIONS = WIN_7Z_EXTENSIONS + TAR_EXTENSIONS
# Digest types used for verifying file checksums
- DIGESTS = [:sha512, :sha256, :sha1, :md5].freeze
+ DIGESTS = %i{sha512 sha256 sha1 md5}.freeze
#
# A fetch is required if the downloaded_file (such as a tarball) does not
# exist on disk, or if the checksum of the downloaded file is different
# than the given checksum.
@@ -312,11 +312,10 @@
#
# The command to use for extracting this piece of software.
#
# @return [[String]]
#
- def extract_command
- end
+ def extract_command; end
#
# Primitively determine whether we should use gtar or tar to untar a file.
# If gtar is present, we will use gtar (AIX). Otherwise, we fallback to tar.
#