2014-11-16 17:45:05 +00:00
|
|
|
class RbenvBundlerRubyVersion < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Pick a ruby version from bundler's Gemfile"
|
2014-11-16 17:45:05 +00:00
|
|
|
homepage "https://github.com/aripollak/rbenv-bundler-ruby-version"
|
2015-06-01 19:27:00 +00:00
|
|
|
url "https://github.com/aripollak/rbenv-bundler-ruby-version/archive/v0.2.tar.gz"
|
|
|
|
sha256 "b6abca1097bd9e99be89dd46e7bd855f47c6522c97546e43049cf38f6aea6c9a"
|
2014-11-16 17:45:05 +00:00
|
|
|
|
|
|
|
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\"")
|
2015-02-03 12:08:28 +00:00
|
|
|
system "rbenv", "bundler-ruby-version"
|
2014-11-16 17:45:05 +00:00
|
|
|
end
|
|
|
|
end
|