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.2.4 lib/earth/locality/country/data_miner.rb
earth-ruby19-0.2.3 lib/earth/locality/country/data_miner.rb
earth-0.2.3 lib/earth/locality/country/data_miner.rb
earth-0.2.2 lib/earth/locality/country/data_miner.rb
earth-0.2.1 lib/earth/locality/country/data_miner.rb
earth-0.2.0 lib/earth/locality/country/data_miner.rb
earth-0.1.4 lib/earth/locality/country/data_miner.rb
earth-0.1.3 lib/earth/locality/country/data_miner.rb
earth-0.1.2 lib/earth/locality/country/data_miner.rb
earth-0.1.1 lib/earth/locality/country/data_miner.rb
earth-0.1.0 lib/earth/locality/country/data_miner.rb
earth-0.0.43 lib/earth/locality/country/data_miner.rb
earth-0.0.42 lib/earth/locality/country/data_miner.rb
earth-0.0.41 lib/earth/locality/country/data_miner.rb
earth-0.0.40 lib/earth/locality/country/data_miner.rb
earth-0.0.39 lib/earth/locality/country/data_miner.rb
earth-0.0.38 lib/earth/locality/country/data_miner.rb
earth-0.0.37 lib/earth/locality/country/data_miner.rb
earth-0.0.36 lib/earth/locality/country/data_miner.rb
earth-0.0.35 lib/earth/locality/country/data_miner.rb