Any files specified in the "requires" option are only required if the annotate command is run directly.
In reading through the code, it's due to load_requires only being called in Annotate.eager_load, which is only called via the annotate binstub, as far as I can tell. It's also only used in a subset of cases - where Annotate.include_models? evaluates to true.
Version
- annotate version - 3.0.3
- rails version - 4.2.11.1
- ruby version - 2.3.7p456