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

Add an abstract collection option to the configuration class #3189

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Feb 11, 2025

What is this pull request for?

Some of the configurations left in lib/alchemy.rb are sets of Pathname, or even sets of Configuration. This replacement for the InterListOption and StringListOption can deal with any collection of any type.

Found the need for this while trying to move the importmap configuration to the new configuration object...

Screenshots

Remove if no visual changes have been made.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

This option type takes a collection_class and an item_class argument. It
is designed to supersede the previous `*_list` classes and wrap any item
type with either an Array or a Set.
This is a bit more abstract, but allows for Sets.
@mamhoff mamhoff requested a review from a team as a code owner February 11, 2025 10:11
Copy link

codecov bot commented Feb 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.69%. Comparing base (73618ab) to head (03df66c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3189      +/-   ##
==========================================
- Coverage   96.70%   96.69%   -0.01%     
==========================================
  Files         256      254       -2     
  Lines        6613     6605       -8     
==========================================
- Hits         6395     6387       -8     
  Misses        218      218              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant