README.md in europe-0.0.2 vs README.md in europe-0.0.3

- old
+ new

@@ -101,50 +101,59 @@ ```ruby Europe::Countries::COUNTRIES ``` Response ```ruby -{ :BE=>{ - :name=>"Belgium", - :source_name=>"Belgique/België", - :official_name=>"Kingdom of Belgium" }, - :BG=>{ - :name=>"Bulgaria", - :source_name=>"България", - :official_name=>"Republic of Bulgaria" }, +{ + :BE=> + {:name=>"Belgium", + :source_name=>"Belgique/België", + :official_name=>"Kingdom of Belgium", + :tld=>".be", + :currency=>:EUR, + :capital=>"Brussels"}, + :BG=> + {:name=>"Bulgaria", + :source_name=>"България", + :official_name=>"Republic of Bulgaria", + :tld=>".bg", + :currency=>:BGN, + :capital=>"Sofia"}, +... ``` ## Retrieving country information reversed -Call +Call with optional parameters (name, currency, source_name, official_name, tld, currency and capital) ```ruby -Europe::Countries.name_to_code +Europe::Countries::Reversed.generate('name') ``` Response ```ruby { "Belgium" => :BE, "Bulgaria" => :BG, "Czech Republic" => :CZ, "Denmark" => :DK, "Germany" => :DE, "Estonia" => :EE, +... ``` ## Compatibility This gem is tested with the following Ruby versions on Linux and Mac OS X: - Ruby MRI 1.9.3, 2.0.0, 2.1.8, 2.2.0, 2.2.3, 2.2.4 ## Todo -- Add more country information +- ~~VAT number format validation (http://ec.europa.eu/taxation_customs/vies/faqvies.do#item11)~~ +- ~~Add more country information~~ - Eurostat integration (http://ec.europa.eu/eurostat/) -- ~~ VAT number format validation (http://ec.europa.eu/taxation_customs/vies/faqvies.do#item11)~~ - .. ## Contributing 1. Fork it ( https://github.com/VvanGemert/europe/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) -5. Create a new Pull Request +5. Create a new Pull Request \ No newline at end of file