lib/croc.rb
def print_gems
  Gem.source_index.search(Gem::Dependency.new("", nil)).each do |spec|
    puts "#{spec.name} #{spec.version} #{spec.has_rdoc? ? "has rdoc" : ""} #{File.exists?(rdoc_dir) ? "and it exists" : "but it doesn't exist"}"
  end
end
# Print installed gems and whether rdocs are available and indeed installed.
Print installed gems and whether rdocs are available and indeed installed.
Print installed gems and whether rdocs are available and indeed installed .
def print_gems
  Gem.source_index.search(Gem::Dependency.new("", nil)).each do |spec|
    puts "#{spec.name} #{spec.version} #{spec.has_rdoc? ? "has rdoc" : ""} #{File.exists?(rdoc_dir) ? "and it exists" : "but it doesn't exist"}"
  end
end
def print_gems Gem . source_index . search ( Gem :: Dependency . new ( "" , nil ) ) . each do | spec | puts "#{spec.name} #{spec.version} #{spec.has_rdoc? ? "has rdoc" : ""} #{File.exists?(rdoc_dir) ? "and it exists" : "but it doesn't exist"}" end end
Print installed gems and whether rdocs are available and indeed installed.
Print installed gems and whether rdocs are available and indeed installed .