[ANN] world.db.codes - 245 Country Codes (Alpha2, Alpha3, FIFA, ISO, TLDs, etc.) - Sample App in Ruby

Hello,

  FYI: I've put together a small Ruby sample web app that shows all
the world's country codes (so far alpha 2, alpha 3, internet top level
domains, fifa, ioc, and motor vehicle license plates codes included).

app.rb:

   class CountryCodesApp < Sinatra::Base

     include WorldDb::Models ## (re)use models from the worlddb gem

     get '/' do
       erb :index
     end
   end

  All code and datasets public domain. See a live country code page
[1] on Heroku
or check the world.db.codes source on GitHub [2].

Cheers.

[1] countrycodes.herokuapp.com
[2] github.com/worlddb/world.db.codes

PS: The sample also shows how to (auto-)download the world.db datasets
as a zip archive (~150k) and load the datasets into an SQL database
(without unzipping). See the Rakefile (Ruby make build script).
Example:

ZIP_PATH = "./tmp"
WORLD_NAME = 'world.db'
WORLD_URL = "https://github.com/openmundi/#{WORLD_NAME}/archive/master.zip"
WORLD_ZIP = "#{ZIP_PATH}/#{WORLD_NAME}.zip"

task :dl_world do ## download world.db dataset
  dowload_archive( WORLD_URL, WORLD_ZIP )
end

task :load_world do ## import world.db dataset
  WorldDb.read_setup_from_zip( WORLD_NAME, 'setups/countrycodes', ZIP_PATH )
end