25 lines
761 B
Ruby
25 lines
761 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", branch: "master"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "a08de996e3e539b9f48812d60fac7195ef5f65e20025ea5f7dec173ad8fe8ba3"
|
|
end
|
|
|
|
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
|