# File lib/rubygems/commands/lock_command.rb, line 102 def spec_path(gem_full_name) gemspecs = Gem.path.map do |path| File.join path, "specifications", "#{gem_full_name}.gemspec" end gemspecs.find { |gemspec| File.exist? gemspec } end