Class: Bundler::Dsl
- Inherits:
-
Object
- Object
- Bundler::Dsl
- Defined in:
- lib/bundler/local_development.rb
Instance Method Summary collapse
- #gem_with_development(name, *args) ⇒ Object (also: #gem)
Instance Method Details
#gem_with_development(name, *args) ⇒ Object Also known as: gem
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/bundler/local_development.rb', line 24 def gem_with_development(name, *args) if ENV['GEM_DEV'] && Bundler.development_gems.any?{ |s| name[s] } gem_dev_dir = ENV['GEM_DEV_DIR'] || "#{`echo $HOME`.strip}/code/gems" path = File.join(gem_dev_dir, name) if File.exist?(path) return gem_without_development name, :path => path end end gem_without_development(name, *args) end |