lumoslabs/paxmex — pull request #3 by smanolloff (2014-07-25 15:30:21+00:00)
Title: new scheme for EPA; minor refactor

Hi, this gem is great! It works like a charm and helped me a lot in a time of need. I would like to make a small contribution:

1. add EPA scheme dummy file, schema file
2. modify Paxmex::Parser#new to accept a file path to the schema (allow other schemas)
3. modify Paxmex::Parser#parse_section - separate required and optional parameters
4. add to Paxmex::Schema#fiield a date(..) and time(..) type accepting a pattern (allow other time formats)
5. add to Paxmex::Schema#parse_decimal a simple regexp match (helps to identify incorrect field ranges)
6. remove Paxmex::Parser::SCHEMATA - it is now loaded during initialize (load only required schema)
7. add corresponding rspec tests