RubyFlow The Ruby and Rails community linklog

worldlite v0.1 - public domain country data (all data incl. as good ol' ruby code) - no db, no deps

Hello, I’ve put together a new world data gem, that is, worldlite, that includes all the world countries as good ol’ ruby code - no database required, no dependency, and all code and data is public domain, that is, no copyright and no rights reserverd. Try it. Use require 'worldlite'; include WorldLite and >> WORLD.size # => 245 >> WORLD_UN.size # => 193 >> WORLD_G20.size # => 20 and so on. For countries try: >> AT.class.name # => WorldLite::Country >> AT.name # => Austria >> AT.alpha3 # => AUT Still early and rough but all the world’s countries and territories (246 total) included. Cheers.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in