Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Jan 24, 2025
1 parent c9c47e3 commit fae1cd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ desc "Build #{Bundler::GemHelper.gemspec.full_name} and move it to local ruby/ru
namespace :build do
task local_ruby: :build do
target = File.join("..", "ruby", "gems")

unless File.directory?(target)
abort("Expected ruby to be cloned at the same level as #{Bundler::GemHelper.gemspec.full_name} to use this task")
abort("Expected Ruby to be cloned under the same parent directory as RDoc to use this task")
end

mv("#{path}.gem", target)
Expand Down

0 comments on commit fae1cd0

Please sign in to comment.