Skip to content

Commit

Permalink
slumber 2.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 Dec 21, 2024
1 parent 7d61de9 commit 0788db7
Show file tree
Hide file tree
Showing 2 changed files with 35 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 @@ -2814,6 +2814,7 @@ slides
slirp4netns
sloc
slsa-verifier
slumber
slurm
smake
smartdns
Expand Down
34 changes: 34 additions & 0 deletions Formula/s/slumber.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0788db7

Please sign in to comment.