|
1 | 1 | class Tinysearch < Formula
|
2 | 2 | desc "Tiny, full-text search engine for static websites built with Rust and Wasm"
|
3 | 3 | homepage "https://github.com/tinysearch/tinysearch"
|
4 |
| - url "https://github.com/tinysearch/tinysearch/archive/refs/tags/v0.8.2.tar.gz" |
5 |
| - sha256 "103214d77f0624bbb7e396667136156fdb8c8c7abeb6860adb231bf2a00b256d" |
| 4 | + url "https://github.com/tinysearch/tinysearch/archive/refs/tags/v0.9.0.tar.gz" |
| 5 | + sha256 "90b035d0d41fe166e5a5ce18668d1c3098a7e64c17fcb8bfc7a3ba11c24019a4" |
6 | 6 | license any_of: ["Apache-2.0", "MIT"]
|
7 | 7 | head "https://github.com/tinysearch/tinysearch.git", branch: "master"
|
8 | 8 |
|
9 |
| - no_autobump! because: :requires_manual_review |
10 |
| - |
11 | 9 | bottle do
|
12 | 10 | sha256 cellar: :any_skip_relocation, arm64_sequoia: "604da29b5763cbd83ee3851adf412ebc0683a39f82c4f6fb5db430c21e5804b8"
|
13 | 11 | sha256 cellar: :any_skip_relocation, arm64_sonoma: "22ba810fa21cf5ed9b4b3da171f5c528812ee9a7347ed87f658dd9c6cb930b22"
|
@@ -36,9 +34,10 @@ def install
|
36 | 34 | ENV.prepend_path "PATH", Formula["rustup"].bin
|
37 | 35 | system "rustup", "set", "profile", "minimal"
|
38 | 36 | system "rustup", "default", "stable"
|
| 37 | + system "rustup", "target", "add", "wasm32-unknown-unknown" |
39 | 38 |
|
40 | 39 | system bin/"tinysearch", pkgshare/"fixtures/index.json"
|
41 |
| - assert_path_exists testpath/"wasm_output/tinysearch_engine_bg.wasm" |
42 |
| - assert_match "A tiny search engine for static websites", (testpath/"wasm_output/package.json").read |
| 40 | + assert_path_exists testpath/"wasm_output/tinysearch_engine.wasm" |
| 41 | + assert_match "TinySearch WASM Demo", (testpath/"wasm_output/demo.html").read |
43 | 42 | end
|
44 | 43 | end
|
0 commit comments