Sha256: fc37d49c95b655cfc9e03dff550d82f2416f1bf6dc331cfd2e5ddfb564b80197
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 Bytes
Contents
module Iso module Country module Data CORE_FILE = File.expand_path(File.join(File.dirname(__FILE__), 'data', '20120215', 'ISO_3166-1.core.json')) I18N_FILE = File.expand_path(File.join(File.dirname(__FILE__), 'data', '20120215', 'ISO_3166-1.i18n.json')) CORE = JSON.parse(File.open(CORE_FILE, 'rb') { |file| file.read }) I18N = JSON.parse(File.open(I18N_FILE, 'rb') { |file| file.read }) DICTIONARY = { countries: CORE, localizations: I18N } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iso-country-0.1.1 | lib/iso-country/data.rb |