-
Notifications
You must be signed in to change notification settings - Fork 227
Closed
Milestone
Description
Using RBS based tools like rbs_rails and steep requires adding gem entries in rbs_collection.yaml.
gems:
- name: rbs
ignore: true
- name: steep
ignore: trueThis is annoying and causes problems, and it looks wired because the gems section is mainly used to ignore libraries.
I'd like to propose changing the library RBS loading protocol:
- Skip loading RBS files from gems that is declared in
Gemfilewithrequire: false
require: false is usually written for gems that is not loaded from the application, especially in Rails apps, and we can use it as a marker that implies RBS files of the gems are unnecessary.
The steps to load RBS of libraries will be as following:
- Require gems that is declared in
gemssection ofrbs_collection.yamlwithoutignore: true - Require gems and their dependencies from Bundler context that doesn't have
require: false(and skip if it's ignored)
With this change, the rbs_rails and steep users would change their Gemfile lines as:
gem 'steep', require: false
gem 'rbs_rails', require: falseIt looks better and more intuitive than having ignore: true lines in rbs_collection.yaml. 😄
Metadata
Metadata
Assignees
Labels
No labels