25 lines
722 B
Ruby
25 lines
722 B
Ruby
class Eless < Formula
|
|
desc "Better `less` using Emacs view-mode and Bash"
|
|
homepage "https://eless.scripter.co/"
|
|
url "https://github.com/kaushalmodi/eless/archive/v0.7.tar.gz"
|
|
sha256 "de7a7891a20a5e7f25c0b5df812edaea87ab0d3336d41821a24e2d248aaf4abc"
|
|
license "MIT"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "cc720394c1e88326fb9a2f76457a1edb4efa081313fe7fc914e1e9375b1e5ade"
|
|
end
|
|
|
|
depends_on "emacs"
|
|
|
|
def install
|
|
bin.install "eless"
|
|
info.install "docs/eless.info"
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/eless -V")
|
|
expected = "This script is not supposed to send output to a pipe"
|
|
assert_equal expected, pipe_output("#{bin}/eless").chomp
|
|
end
|
|
end
|