aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/rbenv-default-gems.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/rbenv-default-gems.rb')
-rw-r--r--Library/Formula/rbenv-default-gems.rb20
1 files changed, 11 insertions, 9 deletions
diff --git a/Library/Formula/rbenv-default-gems.rb b/Library/Formula/rbenv-default-gems.rb
index 6fd86236a..3a9bfd91c 100644
--- a/Library/Formula/rbenv-default-gems.rb
+++ b/Library/Formula/rbenv-default-gems.rb
@@ -1,14 +1,12 @@
-require 'formula'
-
class RbenvDefaultGems < Formula
- homepage 'https://github.com/sstephenson/rbenv-default-gems'
- url 'https://github.com/sstephenson/rbenv-default-gems/archive/v1.0.0.tar.gz'
- sha1 'e79c7073909e24e866df49cf9eb3f18aa8872842'
+ homepage "https://github.com/sstephenson/rbenv-default-gems"
+ url "https://github.com/sstephenson/rbenv-default-gems/archive/v1.0.0.tar.gz"
+ sha1 "e79c7073909e24e866df49cf9eb3f18aa8872842"
- head 'https://github.com/sstephenson/rbenv-default-gems.git'
+ head "https://github.com/sstephenson/rbenv-default-gems.git"
- depends_on 'rbenv'
- depends_on 'ruby-build'
+ depends_on "rbenv"
+ depends_on "ruby-build"
# Upstream patch: https://github.com/sstephenson/rbenv-default-gems/pull/3
patch do
@@ -17,6 +15,10 @@ class RbenvDefaultGems < Formula
end
def install
- prefix.install Dir['*']
+ prefix.install Dir["*"]
+ end
+
+ test do
+ assert shell_output("rbenv hooks install").include? "default-gems.bash"
end
end