mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-01-09 12:19:09 +00:00
Updated lune.rb to latest formula on Homebrew
This commit is contained in:
parent
b239e73e2f
commit
c3f7a2be19
1 changed files with 2 additions and 8 deletions
|
@ -5,20 +5,14 @@ class Lune < Formula
|
||||||
sha256 "e8191df5d6844026772cc7afab1083235a265c506474c4c4dee0a7724b04f775"
|
sha256 "e8191df5d6844026772cc7afab1083235a265c506474c4c4dee0a7724b04f775"
|
||||||
license "MPL-2.0"
|
license "MPL-2.0"
|
||||||
|
|
||||||
livecheck do
|
|
||||||
url :stable
|
|
||||||
regex(/^v?(\d+(?:\.\d+)+)$/i)
|
|
||||||
end
|
|
||||||
|
|
||||||
depends_on "rust" => :build
|
depends_on "rust" => :build
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "cargo", "install", *std_cargo_args
|
system "cargo", "install", "--all-features", *std_cargo_args
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
(testpath/"test.lua").write("print(2 + 2)")
|
(testpath/"test.lua").write("print(2 + 2)")
|
||||||
output = shell_output("#{bin}/lune test.lua")
|
assert_equal "4", shell_output("#{bin}/lune test.lua").chomp
|
||||||
assert_equal "4", output.chomp
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue