seamusabshere-errata 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.rdoc +29 -16
  2. data/VERSION +1 -1
  3. data/errata.gemspec +1 -1
  4. metadata +1 -1
data/README.rdoc CHANGED
@@ -1,18 +1,31 @@
1
- = errata
2
-
3
- Description goes here.
4
-
5
- == Note on Patches/Pull Requests
6
-
7
- * Fork the project.
8
- * Make your feature addition or bug fix.
9
- * Add tests for it. This is important so I don't break it in a
10
- future version unintentionally.
11
- * Commit, do not mess with rakefile, version, or history.
12
- (if you want to have your own version, that is fine but
13
- bump version in a commit by itself I can ignore when I pull)
14
- * Send me a pull request. Bonus points for topic branches.
15
-
16
- == Copyright
1
+ =errata
2
+
3
+ Correct strings based on remote errata files.
4
+
5
+ ==Real-life usage
6
+
7
+ Used by data_miner (http://github.com/seamusabshere/data_miner)
8
+
9
+ ==Example
10
+
11
+ Taken from <tt>#{GEMDIR}/test/errata_test.rb</tt>:
12
+
13
+ errata = Errata.new(:url => 'http://static.brighterplanet.com/science/data/transport/automobiles/make_fleet_years/errata.csv')
14
+ rover = { 'manufacturer_name' => 'foobar Austin Rover foobar' }
15
+ mercedes = { 'manufacturer_name' => 'MERCEDES' }
16
+ errata.correct!(mercedes)
17
+ errata.correct!(rover)
18
+
19
+ Now you will have
20
+
21
+ rover['manufacturer_name'] #=> 'Rover' (used to be 'foobar Austin Rover foobar')
22
+ mercedes['manufacturer_name'] #=> 'Mercedes-Benz' (used to be 'MERCEDES')
23
+
24
+ ==Authors
25
+
26
+ * Seamus Abshere <seamus@abshere.net>
27
+ * Andy Rossmeissl <andy@rossmeissl.net>
28
+
29
+ ==Copyright
17
30
 
18
31
  Copyright (c) 2009 Brighter Planet. See LICENSE for details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/errata.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{errata}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Seamus Abshere", "Andy Rossmeissl"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seamusabshere-errata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seamus Abshere