lib/earth/industry/mecs_energy/data_miner.rb in earth-0.11.3 vs lib/earth/industry/mecs_energy/data_miner.rb in earth-0.11.4

- old
+ new

@@ -1,9 +1,9 @@ require 'earth/eia' MecsEnergy.class_eval do data_miner do - CENSUS_REGIONS.each do |region, data| + MecsEnergy::CENSUS_REGIONS.each do |region, data| import("MECS table 3.2 #{region}", :url => "http://205.254.135.24/emeu/mecs/mecs2006/excel/Table3_2.xls", :crop => data[:crop]) do key 'name', :synthesize => Proc.new { |row| "#{Industry.format_naics_code(row[0])}-#{data[:code]}" } store 'naics_code', :field_number => 0