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

Version Path
seamusabshere-errata-0.1.4 README.rdoc
errata-0.2.4 README.rdoc
errata-ruby19-0.2.3 README.rdoc
errata-0.2.3 README.rdoc
errata-0.2.2 README.rdoc
errata-0.2.1 README.rdoc
errata-0.2.0 README.rdoc
errata-0.1.9 README.rdoc
errata-0.1.8 README.rdoc
errata-0.1.7 README.rdoc
errata-0.1.6 README.rdoc
errata-0.1.5 README.rdoc
errata-0.1.4 README.rdoc