This library has been used successfully in production for a while now, so I decided it was ok to bump the version to 1.0.0.
- CremulParser.to_csv_file(csv_filename) : Converts a Cremul file to CSV.
- CremulParser::get_file_hash_value(file) : Returns a unique MD5 hash value for a file
- CremulParser.create_unique_tx_index(cremul_msg, cremul_msg_line, cremul_tx) : Creates a unique id for each TX in the file
Fixed an error related to logging when used in Rails.
Added logging with default settings that may be overridden. In a Rails environment it will default use the Rails logger.
Pushed a new version because I got an error message when pushing version 0.9.0...
Added index numbers to CremulMessage, CremulLine and CremulPaymentTx. The hash of the file + the index numbers can be used to create unique ids for each payment transaction. This can be useful for instance when importing a large Cremul file into a database when you want to make sure that none of the transactions have already been imported.
Bumped to version 0.8.0 to indicate that it is getting close to finished as a 1.0 version.
- Corrected a bug in the regular expressions
- Added support for multiple CREMUL messages in a single file
- Changed CremulParser.msg attr to CremulParser.messages (an array)
- Corrected a bug in CremulPaymentTx so that it is now able to handle empty FII segments.
- Corrected a bug in CremulNameAndAddress so that it is now also able to handle addresses in structured form.
- Refactored the ParserHelper to make it more DRY, and fixed a bug in CremulHeader regarding the parsing the optional NAD-element in the header.
- Fixed a bug in CremulMoney which caused amounts with decimal mark to be parsed without the fractional part.
- Fixed a bug in CremulPaymentTx related to parsing the FII+OR segment when it contains a payer account holder name in addition to the account number.
Added support for files using a CNT:LIN symbol instead of CNT:LI as the standard says.
Added support for converting files to UTF-8 format on the fly.
Updated doc only.
Initial version