Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

setting up the stage and getting the clearance to make this a useful …

…library
  • Loading branch information...
commit 98b4fa8a3a3e61e0b362e81471e944b0c10ca193 1 parent 4b61d45
Andrew McElroy Sophrinix authored
3  AUTHORS
... ... @@ -1 +1,2 @@
1   -Chris Parker <chris.p@adelpo.com>, <mrcsparker@gmail.com>
  1 +Chris Parker <mrcsparker@gmail.com>,
  2 +Andrew McElroy <sophrinix@gmail.com>
9 README
... ... @@ -1,5 +1,14 @@
1 1 == Ruby EDI X12 Parser
2 2
  3 +== Usage
  4 +When you include this library be sure to set EDI_PATH otherwise
  5 +expect failures.
  6 +EDI_PATH is where your EDI files are located.
  7 +If the demand exist, I might make this dependent on Fog so that
  8 +EDIs can sit in a s3 bucket or rackspace storage.
  9 +
  10 +More changes are pending.
  11 +
3 12 == General Information
4 13
5 14 This is a direct port of Prasad Poruporuthan's X12::Parser Perl
2  lib/dirtest.rb
... ... @@ -1,6 +1,6 @@
1 1 require 'x12'
2 2
3   -Dir["/opt/adelpo/data/edi/*"].each do |d|
  3 +Dir[EDI_PATH].each do |d|
4 4
5 5 parser = X12::Parser.new
6 6 edi_type = parser.get_edi_type(d)
3  lib/x12_parser.rb
@@ -2,6 +2,9 @@
2 2 #
3 3 # Copyright (C) 2008 Chris Parker
4 4 # All rights reserved
  5 +# Copyright (C) 2010 Andrew McElroy
  6 +# All changes not Chris Parker are MIT/LGPL dual licensed.
  7 +# Granted 99% of the code at this stage is Chris Parker's code.
5 8 #
6 9 # Based on Perl X12::Parser by
7 10 # Prasad Poruporuthan
5 test/test_810.rb
... ... @@ -0,0 +1,5 @@
  1 +require 'test/unit'
  2 +require 'x12'
  3 +
  4 +class Test810
  5 +end
5 test/test_850.rb
... ... @@ -0,0 +1,5 @@
  1 +require 'test/unit'
  2 +require 'x12'
  3 +
  4 +class Test850
  5 +end
5 test/test_855.rb
... ... @@ -0,0 +1,5 @@
  1 +require 'test/unit'
  2 +require 'x12'
  3 +
  4 +class Test855
  5 +end

0 comments on commit 98b4fa8

Please sign in to comment.
Something went wrong with that request. Please try again.