Skip to content

Commit

Permalink
Merge pull request Homebrew#159435 from p-linnane/[email protected]
Browse files Browse the repository at this point in the history
[email protected]: clean up caveats
  • Loading branch information
p-linnane authored Jan 9, 2024
2 parents 1bb92ad + a68d147 commit 4a3fbe5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Formula/r/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,6 @@ def self.default_specifications_dir
end

def caveats
return unless latest_version_installed?

<<~EOS
By default, binaries installed by gem will be placed into:
#{rubygems_bindir}
Expand All @@ -234,6 +232,9 @@ def caveats
test do
hello_text = shell_output("#{bin}/ruby -e 'puts :hello'")
assert_equal "hello\n", hello_text

assert_equal api_version, shell_output("#{bin}/ruby -e 'print Gem.ruby_api_version'")

ENV["GEM_HOME"] = testpath
system "#{bin}/gem", "install", "json"

Expand Down

0 comments on commit 4a3fbe5

Please sign in to comment.