Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f4024fff57
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.601 kb
total = 0.0
unvisited = 0
Dir['*/**/*.md'].each do |destination|
File.open(File.dirname(__FILE__) + "/#{destination}").readlines.each do |line|
next unless line[/^\* /]
total += 1
unvisited += 1 if line[/~~/] || destination[/TBD|Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec/]
end
end
percentage = (unvisited / total * 100)
if percentage > 50.0
puts "The only thing that can keep you from succeeding is yourself. (#{"%.2f" % percentage}% unvisited)"
exit 1
end
puts "To travel is to discover that everyone is wrong about other countries. (#{"%.2f" % percentage}% unvisited)"
Jump to Line
Something went wrong with that request. Please try again.