aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/rbenv-bundler-ruby-version.rb
blob: a71c5fcf4ed991f1da3b780554452b57628d5530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require "formula"

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