No commit activity in last 3 years
No release in over 3 years
Generates a list of all the countries and provinces using Yahoo's YQL.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
 Project Readme

YahooCountriesAndProvinces

A Ruby gem for generating a list of all the countries and provinces using Yahoo's YQL.

Installation

Add this line to your application's Gemfile:

gem 'yahoo_countries_and_provinces'

And then execute:

$ bundle

Or install it yourself as:

$ gem install yahoo_countries_and_provinces

Usage

#require the file
require "yahoo_countries_and_provinces"

#To get a list of the countries in english
country_array = YahooCountriesAndProvinces::countries("en")

#To get a list of the countries in swedish
country_array = YahooCountriesAndProvinces::countries("sv")

#To get Germany's provinces in english
provinces_array = YahooCountriesAndProvinces::provinces("Germany", "en")

About the language parameter

Please read Yahoo's support section regarding the internationalization...