homebrew-core/Formula/rbenv-bundler-ruby-version.rb

23 lines
631 B
Ruby

class RbenvBundlerRubyVersion < Formula
desc "Pick a ruby version from bundler's Gemfile"
homepage "https://github.com/aripollak/rbenv-bundler-ruby-version"
url "https://github.com/aripollak/rbenv-bundler-ruby-version/archive/v1.0.0.tar.gz"
sha256 "96c6b7eb191d436142fef0bb8c28071d54aca3e1a10ca01a525d1066699b03f2"
license "Unlicense"
revision 1
head "https://github.com/aripollak/rbenv-bundler-ruby-version.git"
bottle :unneeded
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