rbs icon indicating copy to clipboard operation
rbs copied to clipboard

Identify and skip `development` dependencies

Open ParadoxV5 opened this issue 1 year ago • 0 comments

There are practices to differentiate “development apps” (e.g., use Rake to automate, use RBS to test) and “runtime libraries” (e.g., Rake plugin, RBS processor) in Gemfiles and .gemspecs.

# Gemfile
group :development do
  gem 'rake', …
  gem 'rbs', …
end

# *.gemspec
…
  add_development_dependency 'rake', …
  add_development_dependency 'rbs', …
…

RBS – both rbs collection as well as when looking for sig/s in general – should learn to identify those patterns.

  • Relates to https://github.com/ruby/rbs/issues/1148#issuecomment-1426756981

Originally posted by @ParadoxV5 in https://github.com/soutaro/rbs-inline/issues/11#issuecomment-2101120845

ParadoxV5 avatar May 08 '24 18:05 ParadoxV5