Skip to content
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

🌈 Update Thor::Actions#inside to return the value yielded by the block #712

Merged
merged 2 commits into from
Jun 2, 2021

Conversation

jordan-brough
Copy link
Contributor

@jordan-brough jordan-brough commented Jan 28, 2020

🌈
So that calling code can more conveniently inspect & use this value.

The value previously returned by this method doesn't seem useful so this seems like a safe change to make.

If this looks OK, should I also update the CHANGELOG?

So that calling code can inspect & use the value.
`FileUtils.cd` only returns the value of the block in Ruby >= 2.6.
@jordan-brough
Copy link
Contributor Author

@rafaelfranca any thoughts on this?

@jordan-brough jordan-brough changed the title Update Thor::Actions#inside to return the value yielded by the block 🌈 Update Thor::Actions#inside to return the value yielded by the block Feb 21, 2020
Copy link

@dorner dorner left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@rafaelfranca rafaelfranca merged commit 84c57f6 into rails:master Jun 2, 2021
@jordan-brough jordan-brough deleted the return-value-from-inside branch January 5, 2022 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants