class Gem::Commands::LockCommand

def spec_path(gem_full_name)

def spec_path(gem_full_name)
  gemspecs = Gem.path.map { |path|
    File.join path, "specifications", "#{gem_full_name}.gemspec"
  }
  gemspecs.find { |path| File.exist? path }
end