Method: Bundler::SharedHelpers#gemspec_path
- Defined in:
- lib/bundler/shared_helpers.rb
permalink #gemspec_path ⇒ Object
[View source]
327 328 329 330 331 332 333 334 335 336 337 338 |
# File 'lib/bundler/shared_helpers.rb', line 327 def gemspec_path # inside a gem repository, typical gem installation gemspec_file = File.join(source_root, "../../specifications/bundler-#{VERSION}.gemspec") # for Ruby core repository testing gemspec_file = File.("bundler.gemspec", __dir__) unless File.exist?(gemspec_file) # bundler is a default gem gemspec_file = File.join(Gem.default_specifications_dir, "bundler-#{VERSION}.gemspec") unless File.exist?(gemspec_file) gemspec_file end |