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 declaration of project addons #2601

Merged
merged 2 commits into from
Oct 2, 2024
Merged

Conversation

vinistock
Copy link
Member

Motivation

Users may want to define project-specific addons for behaviour that only applies to a particular application. Supporting it is quite straight forward, so I think we should move forward and allow it.

Implementation

All of the mechanism to load the addons is already in place, the only limitation is that Gem.find_files won't find files that aren't in gems.

We just need to run a glob pattern on the workspace path to find project specific ones.

Automated Tests

Added a test.

@vinistock vinistock added enhancement New feature or request server This pull request should be included in the server gem's release notes labels Sep 23, 2024
@vinistock vinistock self-assigned this Sep 23, 2024
@vinistock vinistock requested a review from a team as a code owner September 23, 2024 19:31
@vinistock vinistock force-pushed the vs-allow-project-addons branch from 112041d to f55f9c0 Compare September 25, 2024 14:01
jekyll/add-ons.markdown Outdated Show resolved Hide resolved
jekyll/add-ons.markdown Outdated Show resolved Hide resolved
@vinistock vinistock force-pushed the vs-allow-project-addons branch from f55f9c0 to 08008fc Compare September 25, 2024 14:07
@vinistock vinistock requested a review from andyw8 September 25, 2024 14:08
@vinistock vinistock force-pushed the vs-allow-project-addons branch from 08008fc to b0b8247 Compare September 25, 2024 14:36
@vinistock vinistock force-pushed the vs-allow-project-addons branch 8 times, most recently from 5d1f31b to 2fbb862 Compare October 1, 2024 20:48
Copy link

netlify bot commented Oct 1, 2024

Deploy Preview for ruby-lsp failed.

Name Link
🔨 Latest commit d43ec43
🔍 Latest deploy log https://app.netlify.com/sites/ruby-lsp/deploys/66fd74e6c64ce00008f26633

@vinistock vinistock force-pushed the vs-allow-project-addons branch 2 times, most recently from 28aeaa9 to bd83a91 Compare October 2, 2024 14:49
@vinistock vinistock force-pushed the vs-allow-project-addons branch 4 times, most recently from f9ad63b to dfced72 Compare October 2, 2024 18:52
@vinistock vinistock force-pushed the vs-allow-project-addons branch from 7c50f3e to 1bb4eec Compare October 2, 2024 19:59
@vinistock vinistock merged commit af0b46d into main Oct 2, 2024
35 checks passed
@vinistock vinistock deleted the vs-allow-project-addons branch October 2, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants