forked from larsch/ocra
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor file selection logic in Ocran.find_gem_files method
- Simplify file selection logic using the `map` method for better readability and maintainability. - Ensure `gem_root_files` is initialized only when necessary. - Use `path.extname` for checking file extensions in the `:scripts` case, improving clarity. - Improve error handling by providing specific messages for invalid file sets.
- Loading branch information
Showing
1 changed file
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters