Per Spilling's Blog

Software Craftsmanship, DDD, Software Architecture and Agile Methods

A Parser for CREMUL Payment Transaction Files Written in Ruby

For my current project I needed to parse CREMUL payment transaction files, in order to import the payment transactions into our Ruby on Rails application. CREMUL is an EDIFACT file format governed by the UN CEFACT TBG5] organisation.

I searched the web for Ruby and Java libraries that could be used for this purpose, but found no suitable candidates, so I decided to write one myself.

cremul-parser gem

The library is written as Ruby gem. It is a pragmatic library that is written to solve the functionality required in our project, so it is not a complete parser implementation for the whole CREMUL file format, but it is hopefully useful also for others. The source code is available on Github.