From 0788db74162af2976f0da6c987df84478e4e947e Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sat, 21 Dec 2024 13:16:54 -0500 Subject: [PATCH] slumber 2.3.0 (new formula) Signed-off-by: Rui Chen --- .github/autobump.txt | 1 + Formula/s/slumber.rb | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 Formula/s/slumber.rb diff --git a/.github/autobump.txt b/.github/autobump.txt index 7cf035074fa40..3abe58179fdc5 100644 --- a/.github/autobump.txt +++ b/.github/autobump.txt @@ -2814,6 +2814,7 @@ slides slirp4netns sloc slsa-verifier +slumber slurm smake smartdns diff --git a/Formula/s/slumber.rb b/Formula/s/slumber.rb new file mode 100644 index 0000000000000..917b13f6449e0 --- /dev/null +++ b/Formula/s/slumber.rb @@ -0,0 +1,34 @@ +class Slumber < Formula + desc "Terminal-based HTTP/REST client" + homepage "https://slumber.lucaspickering.me/" + url "https://github.com/LucasPickering/slumber/archive/refs/tags/v2.3.0.tar.gz" + sha256 "9e3266d825180367997e2d2b049e40d74a5d1044e882a14b682bba3780d4883b" + license "MIT" + head "https://github.com/LucasPickering/slumber.git", branch: "master" + + depends_on "rust" => :build + + def install + system "cargo", "install", *std_cargo_args + end + + test do + assert_match version.to_s, shell_output("#{bin}/slumber --version") + + system bin/"slumber", "new" + assert_match <<~YAML, (testpath/"slumber.yml").read + # For basic usage info, see: + # https://slumber.lucaspickering.me/book/getting_started.html + # For all collection options, see: + # https://slumber.lucaspickering.me/book/api/request_collection/index.html + + # Profiles are groups of data you can easily switch between. A common usage is + # to define profiles for various environments of a REST service + profiles: + example: + name: Example Profile + data: + host: https://httpbin.org + YAML + end +end