From 87e3111c55e6ed82e611d35ffcc682203e89fae9 Mon Sep 17 00:00:00 2001 From: Gregor Heine Date: Sun, 1 Jul 2018 18:05:42 +0200 Subject: [PATCH] schema-evolution-manager 0.9.40 (new formula) (#28816) --- Aliases/sem | 1 + Formula/schema-evolution-manager.rb | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 120000 Aliases/sem create mode 100644 Formula/schema-evolution-manager.rb diff --git a/Aliases/sem b/Aliases/sem new file mode 120000 index 0000000000..6ed2ae61bd --- /dev/null +++ b/Aliases/sem @@ -0,0 +1 @@ +../Formula/schema-evolution-manager.rb \ No newline at end of file diff --git a/Formula/schema-evolution-manager.rb b/Formula/schema-evolution-manager.rb new file mode 100644 index 0000000000..6a5b5d2ecb --- /dev/null +++ b/Formula/schema-evolution-manager.rb @@ -0,0 +1,20 @@ +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.40.tar.gz" + sha256 "cf5aab3f2fe81e3daca400811f46a11d4ebd25d7325eca92a83dbe0494e25d5a" + + 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