Skip to content

Commit

Permalink
[email protected]: clean up caveats
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Linnane <[email protected]>
  • Loading branch information
p-linnane committed Jan 9, 2024
1 parent 1bb92ad commit a68d147
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 a68d147

Please sign in to comment.