11class FreshEditor < Formula
22 desc "Text editor for your terminal: easy, powerful and fast"
33 homepage "https://sinelaw.github.io/fresh/"
4- url "https://github.com/sinelaw/fresh/archive/refs/tags/v0.1.44 .tar.gz"
5- sha256 "1f57ff792c7886c8c0edd8327c2aa88892a3fb8bd1d331485e9b1d17dd729553 "
4+ url "https://github.com/sinelaw/fresh/archive/refs/tags/v0.1.52 .tar.gz"
5+ sha256 "a454ebf90b53a0e0097b317d13a413f71549e3d1685e6607361dd63c01cd3e35 "
66 license "GPL-2.0-or-later"
77
88 bottle do
9- sha256 cellar : :any_skip_relocation , arm64_tahoe : "f0a14b9a3053da07e5583184dbe7693c18355a224b23224bd53eee141b854e9f "
10- sha256 cellar : :any_skip_relocation , arm64_sequoia : "36de2058d924bb765015710648e568d95f90f270f35262d9c143cae8568e6feb "
11- sha256 cellar : :any_skip_relocation , arm64_sonoma : "22af908c3466f124a64f1bf28046a5262491ab8be26de317c07c153aa210a258 "
12- sha256 cellar : :any_skip_relocation , sonoma : "d1c61f258249f8d1dc9b6c871d06fe4e596c0fbc2d86117f3b93c5d0cd1f274e "
13- sha256 cellar : :any_skip_relocation , arm64_linux : "5a95e907570b22f50345d3a7bc58d22382e7dd5080afab496fd88a4edbb1c5c6 "
14- sha256 cellar : :any_skip_relocation , x86_64_linux : "2542215545fdeb23d375df9bccb3aaaaa4d0ce35f212d8f52ec4cad2e23980e5 "
9+ sha256 cellar : :any_skip_relocation , arm64_tahoe : "279919ad19cf3e395e672138b260c5317ed2786bb56520fbc2612b11442d487c "
10+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "f933fbbdb0e1ff6b6b779bc01c12b23a9907b7661dca2285e7343770d61256b1 "
11+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "39b13e87f1ca3fb15172558c37984183fd9d9c5e20a86b2a9c231af0295622fc "
12+ sha256 cellar : :any_skip_relocation , sonoma : "0b62f9ebe2983f9151417a8fdd99c54e5ea5a76b8acadf57bf6c90bf0c68aee0 "
13+ sha256 cellar : :any_skip_relocation , arm64_linux : "6737ef8665a94eab08f77b36d36e5ec7b679a2d00695d44eb603c6a34d6ea3b8 "
14+ sha256 cellar : :any_skip_relocation , x86_64_linux : "e5f32c178cfd6aacbd2a9c4fd6403249eccb0b7da9342232b49db4b0a917eec3 "
1515 end
1616
1717 depends_on "rust" => :build
@@ -28,7 +28,8 @@ def install
2828 {"type":"quit"}
2929 JSON
3030
31- pipe_output ( "#{ bin } /fresh --script-mode --no-session test.txt" , commands )
32- assert_match "Hello from Homebrew" , ( testpath /"test.txt" ) . read
31+ pipe_output ( "#{ bin } /fresh --no-session test.txt --log-file fresh.log" , commands )
32+ log_output = ( testpath /"fresh.log" ) . read . gsub ( /\e \[ \d +(;\d +)?m/ , "" )
33+ assert_match "INFO fresh: Editor starting" , log_output
3334 end
3435end
0 commit comments