We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a9e50 commit 962bf54Copy full SHA for 962bf54
lib/language_pack/ruby.rb
@@ -637,7 +637,7 @@ def rake_task_defined?(task)
637
task_check = "ruby -S rake -p 'Rake.application.load_rakefile; Rake::Task.task_defined?(ARGV[0])' #{task}"
638
out = run("env PATH=$PATH:bin bundle exec #{task_check}")
639
if $?.success?
640
- out.split($/).any? {|line| line.strip == "true" }
+ out.split($/).last.strip == "true"
641
elsif ["No Rakefile found", "rake is not part of the bundle.", "no such file to load -- rake"].any? {|e| out.include?(e) }
642
false
643
else
0 commit comments