Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zenspider wants to merge 1 commit into ruby:master
base: master
Choose a base branch
Loading
from zenspider:zenspider/unset_verbose_returns_object

Conversation

@zenspider
Copy link
Member

@zenspider zenspider commented May 11, 2024
edited
Loading

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.

jasonkarns reacted with thumbs up emoji
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.
zenspider added a commit to minitest/minitest that referenced this pull request May 11, 2024
..., but until then, compare against true.
[git-p4: depot-paths = "//src/minitest/dev/": change = 14139]
Copy link
Member Author

@hsbt comment pls?

end

def test_verbose
RakeFileUtils.verbose_flag = Rake::FileUtilsExt::DEFAULT
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary? In my understanding, your change is for without above line.

Copy link
Contributor

Additionally Rake.verbose? would be nice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@hsbt hsbt hsbt left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /