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

Configurable option to parse the yaml erb files with the rails runner #5

Open
wassimk opened this issue Mar 11, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@wassimk
Copy link
Owner

wassimk commented Mar 11, 2023

This plugin regex parses fixture YAML files. This usually works, but the fixture files are more than YAML files. They are ERB too. I've encountered cases where a Ruby loop is used to generate fixtures.

One fix for this is to use the Rails runner to process the ERB and output only YAML. A downside to this is the documentation window will show the final YAML output, it's more helpful to see the ERB. Another option is to improve the regex.

@wassimk wassimk added the enhancement New feature or request label Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant