2019-04-18 08:22:16 +00:00
|
|
|
class Gel < Formula
|
|
|
|
desc "Modern gem manager"
|
|
|
|
homepage "https://gel.dev"
|
2019-04-26 17:48:10 +00:00
|
|
|
url "https://github.com/gel-rb/gel/archive/v0.3.0.tar.gz"
|
|
|
|
sha256 "fe7c4bd67a2ea857b85b754f5b4d336e26640eda7199bc99b9a1570043362551"
|
2019-08-08 04:44:54 +00:00
|
|
|
head "https://github.com/gel-rb/gel.git"
|
2019-04-18 08:22:16 +00:00
|
|
|
|
2019-04-25 19:41:49 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2019-04-26 20:35:18 +00:00
|
|
|
sha256 "7b08b9ca28185ab4ae1befb9f62d3d3a0d094f72629c0742b7135a521eac3381" => :mojave
|
|
|
|
sha256 "7b08b9ca28185ab4ae1befb9f62d3d3a0d094f72629c0742b7135a521eac3381" => :high_sierra
|
|
|
|
sha256 "a4a5e3f1b6eb3ea8511adbf12f9b22482c392616bdd37c801be2fd100a1b886f" => :sierra
|
2019-04-25 19:41:49 +00:00
|
|
|
end
|
|
|
|
|
2019-04-18 08:22:16 +00:00
|
|
|
def install
|
2019-04-25 19:08:00 +00:00
|
|
|
ENV["PATH"] = "bin:#{ENV["HOME"]}/.local/gel/bin:#{ENV["PATH"]}"
|
|
|
|
system "gel", "install"
|
|
|
|
system "rake", "man"
|
2019-04-24 01:18:54 +00:00
|
|
|
bin.install "exe/gel"
|
2019-04-25 19:08:00 +00:00
|
|
|
prefix.install "lib"
|
|
|
|
man1.install Pathname.glob("man/man1/*.1")
|
2019-04-18 08:22:16 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"Gemfile").write <<~EOS
|
|
|
|
source "https://rubygems.org"
|
|
|
|
gem "gel"
|
|
|
|
EOS
|
|
|
|
system "#{bin}/gel", "install"
|
|
|
|
end
|
|
|
|
end
|