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

Refactor DSL compiler options to be a flat namespaced hash and document them #1931

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

paracycle
Copy link
Member

@paracycle paracycle commented Jun 17, 2024

I've been thinking about this for a while, and I think namespacing compiler options was a little heavy handed. I've been thinking about cases where a single option might need to be consumed by multiple Active Record compilers, so I think it makes more sense to have a flat hash of options that can be consumed by any compiler.

This makes the code simpler and makes it easier to pass these options on the command line interface, as well.

I've also used this opportunity to improve the documentation, as promised

@paracycle paracycle requested a review from KaanOzkan June 17, 2024 22:54
@paracycle paracycle requested a review from a team as a code owner June 17, 2024 22:54
@paracycle paracycle requested review from egiurleo and Morriar June 17, 2024 22:54
@paracycle paracycle added feature enhancement New feature or request and removed feature labels Jun 17, 2024
README.md Show resolved Hide resolved
lib/tapioca/dsl/compilers/active_record_columns.rb Outdated Show resolved Hide resolved
lib/tapioca/dsl/compilers/active_record_columns.rb Outdated Show resolved Hide resolved
lib/tapioca/dsl/compilers/active_record_columns.rb Outdated Show resolved Hide resolved
I've been thinking about this for a while, and I think namespacing compiler options was a little heavy handed. I've been thinking about cases where a single option might need to be consumed by multiple Active Record compilers, so I think it makes sense to have a flat hash of options that can be consumed by any compiler.

This makes the code simpler and makes it easier to pass these options on the command line interface, as well.
@paracycle paracycle force-pushed the uk-refactor-dsl-options branch from 8ae3d80 to 2597e5b Compare June 18, 2024 23:16
@paracycle paracycle force-pushed the uk-refactor-dsl-options branch from 2597e5b to 4c458b6 Compare June 18, 2024 23:18
@paracycle paracycle requested a review from Morriar June 18, 2024 23:19
@paracycle paracycle merged commit 35a6a43 into main Jun 19, 2024
30 checks passed
@paracycle paracycle deleted the uk-refactor-dsl-options branch June 19, 2024 14:39
@paracycle paracycle added chore and removed enhancement New feature or request labels Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants