README.md in cnab-0.3.0 vs README.md in cnab-0.4.0

- old
+ new

@@ -1,11 +1,11 @@ # Cnab [![Gem Version](https://badge.fury.io/rb/cnab.png)](http://badge.fury.io/rb/cnab) [![Build Status](https://travis-ci.org/zertico/cnab.png)](https://travis-ci.org/zertico/cnab) [![Coverage Status](https://coveralls.io/repos/zertico/cnab/badge.png?branch=master)](https://coveralls.io/r/zertico/cnab) [![Code Climate](https://codeclimate.com/github/zertico/cnab.png)](https://codeclimate.com/github/zertico/cnab) -Gem used to parse return from Brazil banks in format of cnab files. It is based on the version 08.7 of the cnab. -Right now it has support only for Segmento T and Segmento U. +Gem used to parse return from Brazil banks in format of cnab files. +Right now it has support only for Segmento T and Segmento U. By default, it will parse based on the version 08.7. ## Installation Add this line to your application's Gemfile: @@ -31,12 +31,20 @@ ```ruby cnab = Cnab.parse('path/to/your/file', true) ``` +If you need to parse a cnab file of another version, just pass it as the second optional parameter: + +```ruby +cnab = Cnab.parse('path/to/your/file', true, 'santander') +``` + ## TODO * Add support for another type of segments +* Add support for another cnab versions +* Refactor classes and mix headers and trailers ## Mantainers [@plribeiro3000](https://github.com/plribeiro3000) [@mfbmina](https://github.com/mfbmina)