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

Feature/add db dir config and refactor #182

Merged
merged 5 commits into from
Nov 17, 2023

Conversation

Pysis868
Copy link
Contributor

@Pysis868 Pysis868 commented Nov 15, 2023

Close #181.

Version advance to 7.2 with this new feature?
That's by semver, but if you're still matching Rails version numbers, then 7.1.3 then?

to help eliminate ActiveRecord creating an extra, erroneous directory when a custom path is specified.

Moved the defaults data, as a constant, to a method, to help minimize another.

Using ruby Hash access method to make config loading code more readable, and taking care not to overwrite defaults when new options have key, but only nil values.

Removed parameter to use class access strategy instead.
at least internally to make each change more obviously connected, separating the naming from the arbitrary override configuration names and organization.

Made dynamically producing the name of that file more readable as a single line, string interpolation statement.

Removing schema from main config object as that does not get applied to the Rails config object later like other related settings.

Cleaning other redundant/extra code since using instance variables anyway.
to help eliminate error when working on several parts of the software; possible future configuration override additions require edits to less sections now; it is more automated.

Continuing the use of convenient variable short-name pattern.

Updating string literal syntax to only use double quotes when special handling is necessary.
per readme guidance.
Add generic error check test case.

Make sure defaults are still being applied when configuration file does not exist.

Move defaults section high in order of increasing dependency usage and complexity.

Convert to checking entire, internal configuration and its members, along with the Rails configuration-matching path style.

Add test cases for new 'db dir' property.

Organize whitespace and other content in file within a narrow, more readable horizontal boundary, and align common data values in a similar, table format.

Added to gitignore file where I had lingering files after running a broader `rspec` command, and also seems to never complete.  `bundle exec rake spec` does not have this problem, and must be more specifically configured not to.

Also added proper, and careful, handling for the init options, since there is no deep_merge.., without all of Rails?
@thuss thuss merged commit 4a542f2 into thuss:master Nov 17, 2023
12 checks passed
@thuss
Copy link
Owner

thuss commented Nov 17, 2023

Thanks for the PR!

@Pysis868 Pysis868 deleted the feature/add-db-dir-config-and-refactor branch November 20, 2023 17:45
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.

db directory is created automatically when custom other path is specified
2 participants