README.md in cnab-0.3.0 vs README.md in cnab-0.4.0
- old
+ new
@@ -1,11 +1,11 @@
# Cnab
[](http://badge.fury.io/rb/cnab) [](https://travis-ci.org/zertico/cnab) [](https://coveralls.io/r/zertico/cnab) [](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)