File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11class 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
2039end
You can’t perform that action at this time.
0 commit comments