Class: BundleDev::Dsl

Inherits:
Bundler::Dsl
  • Object
show all
Defined in:
lib/bundle_dev/dsl.rb

Instance Method Summary collapse

Instance Method Details

#gem(name, *args) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/bundle_dev/dsl.rb', line 4

def gem(name, *args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  if options[:type] == :development
    options[:type] = :runtime
    super name, *args, options
  end
end