prql-compiler 0.4.0

* prql-compiler 0.4.0
* Update prql-compiler.rb
* prql-compiler: fix build

Closes #120709.

Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
Co-authored-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Patrick Linnane 2023-01-15 22:07:45 -08:00 committed by BrewTestBot
parent 51af3819de
commit 5a01ada0ba
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
class PrqlCompiler < Formula
desc "Simple, powerful, pipelined SQL replacement"
homepage "https://prql-lang.org"
url "https://github.com/prql/prql/archive/refs/tags/0.3.1.tar.gz"
sha256 "c086c47dd501806727b0d1c741e2d6d747c8e4f00c0a55647f381c8225259740"
url "https://github.com/prql/prql/archive/refs/tags/0.4.0.tar.gz"
sha256 "7387b529071fbc89944649d9a9b9cb1b919ca7288560cc96f428c0a77337e752"
license "Apache-2.0"
bottle do
@ -18,12 +18,12 @@ class PrqlCompiler < Formula
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args(path: "prql-compiler")
system "cargo", "install", *std_cargo_args(path: "prql-compiler"), "--features", "cli"
end
test do
stdin = "from employees | filter has_dog | select salary"
stdout = pipe_output("#{bin}/prql-compiler compile", stdin)
stdout = pipe_output("#{bin}/prqlc compile", stdin)
assert_match "SELECT", stdout
end
end