README.md in excel-esv-0.0.2 vs README.md in excel-esv-0.0.3

- old
+ new

@@ -1,25 +1,34 @@ # ESV -Ruby library/gem for Excel generation with the ease of CSV generation. +Ruby library/gem for Excel parsing and generation with the ease of CSV. Exporting CSVs because Excel generation is too complex? No more! CSVs can be difficult to open correctly, e.g. in Excel on Mac. ## Usage +### Generate + ``` data = ESV.generate do |esv| esv << [ "Name", "Dogs", "Cats" ] esv << [ "Victor", 1, 4 ] end File.write("/tmp/test.xls", data) ``` -### Ruby on Rails +### Parse + +``` +excel = File.read("/tmp/test.xls") +output = ESV.parse(data) # => [ [ "Name", "Dogs", … ], … ] +``` + +### Generate in Ruby on Rails In `config/initializers/mime_types.rb`: ``` Mime::Type.register ESV::MIME_TYPE, "xls"