wheresalice / tcc_countries

A listing of all Travelers Century Club countries and regions, in ruby gem format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TccCountries

Build Status

This gem gives you all of the countries recognised by the Travelers Century Club (TCC), organised by region.

This data comes from their website and exists here purely to save you from having to parse this out yourself.

Installation

Add this line to your application's Gemfile:

gem 'tcc_countries'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tcc_countries

Usage

require 'tcc_countries'
TccCountries.all # an Array of all TCC countries
TccCountries::REGIONS # an Array of all TCC regions
TccCountries::COUNTRIES # a Hash of all TCC countries with the regions as keys

screenshot of the above code being used

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/wheresalice/tcc_countries. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The data is © 2019 The Travelers' Century Club

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the TccCountries project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

A listing of all Travelers Century Club countries and regions, in ruby gem format

License:MIT License


Languages

Language:Ruby 97.5%Language:Shell 2.5%