homebrew-core/Formula/rbenv-bundler-ruby-version.rb
Xu Cheng f129cb6f0d modernize and add test for rbenv and its family
Closes Homebrew/homebrew#36496.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-03 16:20:42 +00:00

18 lines
497 B
Ruby

class RbenvBundlerRubyVersion < Formula
homepage "https://github.com/aripollak/rbenv-bundler-ruby-version"
url "https://github.com/aripollak/rbenv-bundler-ruby-version/archive/v0.1.tar.gz"
sha1 "4a5190d896aaebdb103ffeae61dd4eace7c0fd4c"
head "https://github.com/aripollak/rbenv-bundler-ruby-version.git"
depends_on "rbenv"
def install
prefix.install Dir["*"]
end
test do
(testpath/"Gemfile").write("ruby \"2.1.5\"")
system "rbenv", "bundler-ruby-version"
end
end