Skip to content

Commit aa25b01

Browse files
committed
improvements to formula
1 parent cf9f15c commit aa25b01

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

transitland-lib.rb

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
class TransitlandLib < Formula
2-
desc "Library and tool for reading, writing, and processing transit data"
2+
desc "Library and CLI tool for reading, writing, and processing GTFS transit data"
33
homepage "https://github.com/interline-io/transitland-lib"
44
version "v1.0.0-rc4"
5+
license "GPL-3.0-or-later"
6+
7+
livecheck do
8+
url :stable
9+
strategy :github_releases
10+
regex(/^v?(\d+\.\d+\.\d+(?:-rc\d+)?)$/i)
11+
end
12+
13+
head do
14+
url "https://github.com/interline-io/transitland-lib.git", branch: "main"
15+
end
516

617
if OS.mac? && Hardware::CPU.intel?
718
url "https://github.com/interline-io/transitland-lib/releases/download/#{version}/transitland-macos-intel.zip"
@@ -17,4 +28,12 @@ class TransitlandLib < Formula
1728
def install
1829
bin.install 'transitland'
1930
end
31+
32+
test do
33+
version_output = shell_output("#{bin}/transitland version")
34+
assert_match "transitland-lib version: #{version}", version_output
35+
assert_match %r{transitland-lib commit: https://github\.com/interline-io/transitland-lib/commit/[a-f0-9]{40}}, version_output
36+
assert_match "GTFS specification version: https://github.com/google/transit/", version_output
37+
assert_match "GTFS Realtime specification version: https://github.com/google/transit/", version_output
38+
end
2039
end

0 commit comments

Comments
 (0)