Sha256: 652d8a91cd8925d8624ee517133a784e5444d207726c535943e7435d8ffbce5d
Contents?: true
Size: 857 Bytes
Versions: 13
Compression:
Stored size: 857 Bytes
Contents
=errata Correct strings based on remote errata files. ==Real-life usage Used by data_miner (http://github.com/seamusabshere/data_miner) ==Example Taken from <tt>#{GEMDIR}/test/errata_test.rb</tt>: errata = Errata.new(:url => 'http://static.brighterplanet.com/science/data/transport/automobiles/make_fleet_years/errata.csv') rover = { 'manufacturer_name' => 'foobar Austin Rover foobar' } mercedes = { 'manufacturer_name' => 'MERCEDES' } errata.correct!(mercedes) errata.correct!(rover) Now you will have rover['manufacturer_name'] #=> 'Rover' (used to be 'foobar Austin Rover foobar') mercedes['manufacturer_name'] #=> 'Mercedes-Benz' (used to be 'MERCEDES') ==Authors * Seamus Abshere <seamus@abshere.net> * Andy Rossmeissl <andy@rossmeissl.net> ==Copyright Copyright (c) 2009 Brighter Planet. See LICENSE for details.
Version data entries
13 entries across 13 versions & 3 rubygems