ruby / rake

A make-like build utility for Ruby.
https://ruby.github.io/rake
MIT License
2.32k stars 614 forks source link

Fix Rake.verbose to return true/false even if unset #567

Open zenspider opened 2 months ago

zenspider commented 2 months ago

Unset returns FileUtilsExt.verbose_flag which is set to Object.new by default, which is truthy. Compare against DEFAULT and return verbose_flag only if set.

This is made extra confusing by the fact that this project uses its own TestTask which sets verbose outside of the test run... so this extends the verbose test by setting it back to DEFAULT.

zenspider commented 1 month ago

@hsbt comment pls?