Sha256: 31b68041b4d164da25abbd981d30fec3514373091f5ca191de553ee30f37be71

Contents?: true

Size: 480 Bytes

Versions: 36

Compression:

Stored size: 480 Bytes

Contents

Country.class_eval do
  data_miner do
    schema Earth.database_options do
      string   'iso_3166_code'
      string   'name'
    end
    
    import 'the official ISO country list',
           :url => 'http://www.iso.org/iso/list-en1-semic-3.txt',
           :skip => 2,
           :headers => false,
           :delimiter => ';',
           :encoding => 'ISO-8859-1' do
      key   'iso_3166_code', :field_number => 1
      store 'name', :field_number => 0
    end
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
earth-0.0.34 lib/earth/locality/country/data_miner.rb
earth-0.0.33 lib/earth/locality/country/data_miner.rb
earth-0.0.32 lib/earth/locality/country/data_miner.rb
earth-0.0.31 lib/earth/locality/country/data_miner.rb
earth-0.0.30 lib/earth/locality/country/data_miner.rb
earth-0.0.29 lib/earth/locality/country/data_miner.rb
earth-0.0.28 lib/earth/locality/country/data_miner.rb
earth-0.0.27 lib/earth/locality/country/data_miner.rb
earth-0.0.26 lib/earth/locality/country/data_miner.rb
earth-0.0.24 lib/earth/locality/country/data_miner.rb
earth-0.0.23 lib/earth/locality/country/data_miner.rb
earth-0.0.22 lib/earth/locality/country/data_miner.rb
earth-0.0.21 lib/earth/locality/country/data_miner.rb
earth-0.0.20 lib/earth/locality/country/data_miner.rb
earth-0.0.19 lib/earth/locality/country/data_miner.rb
earth-0.0.18 lib/earth/locality/country/data_miner.rb