rails / thor

Thor is a toolkit for building powerful command-line interfaces.
http://whatisthor.com/
MIT License
5.12k stars 553 forks source link

Fix inject into file warning #709

Closed nicolas-brousse closed 1 year ago

nicolas-brousse commented 4 years ago

Not sure if the fix implementation is good enough. Let me know if you want some changes.

Closes #706.

dorner commented 3 years ago

@nicolas-brousse can you rebase off master please?

nicolas-brousse commented 3 years ago

For now when I tried locally, the test I added fail. I've to inspect how snippet = (behavior == :after ? after : before).to_s works. When I initially worked on this PR this line wasn't implemented yet.

rafaelfranca commented 3 years ago

Tests are broken