Skip to content

Commit

Permalink
projectable 1.3.0 (new formula)
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Jan 9, 2025
1 parent e9de46d commit 563c2c9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2526,6 +2526,7 @@ procps
procs
proftpd
proj
projectable
prometheus
prometheus-cpp
promptfoo
Expand Down
32 changes: 32 additions & 0 deletions Formula/p/projectable.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
class Projectable < Formula

Check failure on line 1 in Formula/p/projectable.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew linkage --test projectable` failed on Linux!

/lib/x86_64-linux-gnu/libz.so.1
desc "TUI file manager built for projects"
homepage "https://dzfrias.dev/blog/projectable"
url "https://github.com/dzfrias/projectable/archive/refs/tags/1.3.0.tar.gz"
sha256 "fe1c0edf9f14f2cd9cfef7e9af921f3e4b307b5c518a7b79f96563d6269a1e72"
license "MIT"
head "https://github.com/dzfrias/projectable.git", branch: "main"

depends_on "pkgconf" => :build
depends_on "rust" => :build
depends_on "openssl@3"

def install
system "cargo", "install", *std_cargo_args
end

test do

Check failure on line 17 in Formula/p/projectable.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew test --verbose projectable` failed on Linux!

/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/bin/bundle clean ==> Testing projectable ==> /home/linuxbrew/.linuxbrew/Cellar/projectable/1.3.0/bin/prj --version ::error::projectable: failed An exception occurred within a child process: Minitest::Assertion: Expected /output\.log/ to match "Error: error enabling raw mode\n\nCaused by:\n No such device or address (os error 6)\n". /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/minitest-5.25.4/lib/minitest/assertions.rb:176:in `assert' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/minitest-5.25.4/lib/minitest/assertions.rb:291:in `assert_match' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/p/projectable.rb:30:in `block in <class:Projectable>' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2903:in `block (3 levels) in run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/extend/kernel.rb:539:in `with_env' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2902:in `block (2 levels) in run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1215:in `with_logging' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2901:in `block in run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:90:in `block in run' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:90:in `chdir' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:90:in `run' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11742/lib/types/private/methods/call_validation.rb:282:in `bind_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11742/lib/types/private/methods/call_validation.rb:282:in `validate_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11742/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:3230:in `mktemp' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11742/lib/types/private/methods/call_validation.rb:282:in `bind_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11742/lib/types/private/methods/call_validation.rb:282:in `validate_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11742/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2895:in `run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test.rb:48:in `block in <main>' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:186:in `block in timeout' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:41:in `handle_timeout' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:195:in `timeout' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test.rb:54:in `<main>'
ENV["NO_COLOR"] = "1"

assert_match version.to_s, shell_output("#{bin}/prj --version")

begin
output_log = testpath/"output.log"
pid = spawn bin/"prj", testpath, [:out, :err] => output_log.to_s
sleep 1
assert_match "output.log", output_log.read
ensure
Process.kill("TERM", pid)
Process.wait(pid)
end
end
end

0 comments on commit 563c2c9

Please sign in to comment.