26 lines
778 B
Ruby
26 lines
778 B
Ruby
class SchemaEvolutionManager < Formula
|
|
desc "Manage postgresql database schema migrations"
|
|
homepage "https://github.com/mbryzek/schema-evolution-manager"
|
|
url "https://github.com/mbryzek/schema-evolution-manager/archive/0.9.45.tar.gz"
|
|
sha256 "268a7a09a2175ed081593843fd03f330afb42710b2af0c9bc456b5e8546057c2"
|
|
license "Apache-2.0"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "3030f5f85bc2fcf07ce294d5ff42ecc1a96f0cb22b90de9d937f587be917f497"
|
|
end
|
|
|
|
uses_from_macos "ruby"
|
|
|
|
def install
|
|
system "./install.sh", prefix
|
|
end
|
|
|
|
test do
|
|
(testpath/"new.sql").write <<~EOS
|
|
CREATE TABLE IF NOT EXISTS test (id text);
|
|
EOS
|
|
system "git", "init", "."
|
|
assert_match "File staged in git", shell_output("#{bin}/sem-add ./new.sql")
|
|
end
|
|
end
|