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

Allow packs configuration to be set in one place and defer to packs.yml #48

Merged
merged 2 commits into from
Dec 29, 2022

Conversation

alexevanczuk
Copy link
Contributor

@alexevanczuk alexevanczuk commented Dec 29, 2022

This PR bumps packs, which allows:

  • Stimpack to configure packs directly
  • packs.yml to take precedence for packs configuration if the user is using it, making stimpack's configuration of packs a no-op.


Packs.all.each do |pack|
next if pack.relative_path.glob('*.gemspec').any?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to load factories for packs that are gems.

Later, we could consider a first-class API for packs, so this line could be:

next if pack.gem?

@alexevanczuk alexevanczuk marked this pull request as ready for review December 29, 2022 15:45
@alexevanczuk alexevanczuk merged commit dc11fdb into main Dec 29, 2022
@alexevanczuk alexevanczuk deleted the ae-bump-packs-to-fix-rspec-issue branch December 29, 2022 15:45
@alexevanczuk alexevanczuk changed the title Allow packs configuration to be set in one place Allow packs configuration to be set in one place and defer to packs.yml Dec 29, 2022
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