22 lines
640 B
Ruby
22 lines
640 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.43.tar.gz"
|
|
sha256 "69a3b2b9ef23f2af97b34742c7c33f2f3889a1e7d471cf9e19138b20d8cfe944"
|
|
license "Apache-2.0"
|
|
|
|
bottle :unneeded
|
|
|
|
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
|