Sha256: cb3df0d3e0e0add58944e8a067ae2e3f61408b5c422c5d15e2f9117b9c736c9d
Contents?: true
Size: 485 Bytes
Versions: 4
Compression:
Stored size: 485 Bytes
Contents
namespace :update do desc 'Create ISO 3166-1 code classes from Wikipedia ISO 3166-1 tables.' task :codes do dirname = File.dirname(__FILE__) gen = File.join(dirname, %w{iso_3166_1.rb}) lib = File.expand_path(File.join(dirname, %w{.. lib iso_country_codes iso_3166_1.rb})) require gen modules = IsoCountryCodes::Task::UpdateCodes.get File.open(lib, File::CREAT | File::TRUNC | File::WRONLY) do |f| f.write modules end end end # :currency
Version data entries
4 entries across 4 versions & 1 rubygems