Skip to content

Commit 962bf54

Browse files
committed
Revert "need to check any line not just the last."
This reverts commit 676391b.
1 parent 36a9e50 commit 962bf54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/language_pack/ruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def rake_task_defined?(task)
637637
task_check = "ruby -S rake -p 'Rake.application.load_rakefile; Rake::Task.task_defined?(ARGV[0])' #{task}"
638638
out = run("env PATH=$PATH:bin bundle exec #{task_check}")
639639
if $?.success?
640-
out.split($/).any? {|line| line.strip == "true" }
640+
out.split($/).last.strip == "true"
641641
elsif ["No Rakefile found", "rake is not part of the bundle.", "no such file to load -- rake"].any? {|e| out.include?(e) }
642642
false
643643
else

0 commit comments

Comments
 (0)