lib/europe/countries/countries.rb in europe-0.0.6 vs lib/europe/countries/countries.rb in europe-0.0.7

- old
+ new

@@ -1,8 +1,5 @@ -#!/bin/env ruby -# encoding: utf-8 - # Source: http://publications.europa.eu/code/pdf/370000en.htm require 'europe/countries/reversed' # Europe Gem @@ -25,11 +22,11 @@ DE: { name: 'Germany', source_name: 'Deutschland', official_name: 'Federal Republic of Germany', tld: '.de', currency: :EUR, capital: 'Berlin' }, EE: { name: 'Estonia', source_name: 'Eesti', official_name: 'Republic of Estonia', - tld: '.ee', currency: :EUR, capital: 'Tallinn' }, + tld: '.ee', currency: :EEK, capital: 'Tallinn' }, IE: { name: 'Ireland', source_name: 'Éire', official_name: 'Ireland', tld: '.ie', currency: :EUR, capital: 'Dublin' }, EL: { name: 'Greece', source_name: 'Ελλάδα', official_name: 'Hellenic Republic', @@ -52,11 +49,11 @@ LV: { name: 'Latvia', source_name: 'Latvija', official_name: 'Republic of Latvia', tld: '.lv', currency: :EUR, capital: 'Riga' }, LT: { name: 'Lithuania', source_name: 'Lietuva', official_name: 'Republic of Lithuania', - tld: '.lt', currency: :EUR, capital: 'Vilnius' }, + tld: '.lt', currency: :LTL, capital: 'Vilnius' }, LU: { name: 'Luxembourg', source_name: 'Luxembourg', official_name: 'Grand Duchy of Luxembourg', tld: '.lu', currency: :EUR, capital: 'Luxembourg City' }, HU: { name: 'Hungary', source_name: 'Magyarország', official_name: 'Hungary', @@ -88,13 +85,17 @@ FI: { name: 'Finland', source_name: 'Suomi', official_name: 'Republic of Finland', tld: '.fi', currency: :EUR, capital: 'Helsinki' }, SE: { name: 'Sweden', source_name: 'Sverige', official_name: 'Kingdom of Sweden', - tld: '.se', currency: :EUR, capital: 'Stockholm' }, + tld: '.se', currency: :SEK, capital: 'Stockholm' }, UK: { name: 'United Kingdom', source_name: 'United Kingdom', official_name: 'United Kingdom of Great ' \ 'Britain and Northern Ireland', tld: '.uk', currency: :GBP, capital: 'London' } }.freeze + + def self.eurozone + Reversed.generate(:currency)[:EUR] + end end end