Skip to content

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

Merged
rafaelfranca merged 2 commits into
rails:masterfrom
jordan-brough:return-value-from-inside
Jun 2, 2021
Merged

🌈 Update Thor::Actions#inside to return the value yielded by the block#712
rafaelfranca merged 2 commits into
rails:masterfrom
jordan-brough:return-value-from-inside

Conversation

@jordan-brough

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

Copy link
Copy Markdown
Contributor

🌈
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
Copy Markdown
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

@dorner dorner left a comment

Copy link
Copy Markdown

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