Skip to content

Commit

Permalink
keep-sorted: set version in build info
Browse files Browse the repository at this point in the history
  • Loading branch information
alebcay committed Feb 27, 2025
1 parent db07c6b commit db5550b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Formula/k/keep-sorted.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
class KeepSorted < Formula
desc "Language-agnostic formatter that sorts selected lines"
homepage "https://github.com/google/keep-sorted"
url "https://github.com/google/keep-sorted/archive/refs/tags/v0.6.0.tar.gz"
sha256 "28a8290da4908999712896ed0a94a0e26f290f22b565f290a0782220379a033c"
url "https://github.com/google/keep-sorted.git",
tag: "v0.6.0",
revision: "df93c2722b6126556183749880f16a9beb664bb4"
license "Apache-2.0"

bottle do
Expand All @@ -21,6 +22,7 @@ def install
end

test do
assert_match version.to_s, shell_output("#{bin}/keep-sorted --version")
test_file = testpath + "test_input"
test_file.write <<~EOS
line will not be touched.
Expand Down

0 comments on commit db5550b

Please sign in to comment.