Skip to content

Commit

Permalink
version bump to v1.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
cleftheris committed Aug 4, 2016
1 parent 10b8b3e commit 29380e6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 21 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ PM> Install-Package "indice.Edi"

## Example usage:

There are available configurations (`EdiGrammar`) for `EDIFact`, `Tradacoms` and `X12`. Working examples for all supported EDI formats can be found in the source code under [tests](https://github.com/indice-co/EDI.Net/tree/master/test/indice.Edi.Tests).

- EdiFact [sample POCO classes](https://github.com/indice-co/EDI.Net/blob/master/test/indice.Edi.Tests/Models/EdiFact01.cs)
- TRADACOMS [sample classes](https://github.com/indice-co/EDI.Net/blob/master/test/indice.Edi.Tests/Models/UtilityBill.cs) (UtilityBill)
- X12 [sample classes](https://github.com/indice-co/EDI.Net/blob/master/test/indice.Edi.Tests/Models/X12_850.cs) (850 Purchase Order)

_Note that all examples may be partialy implemented transmissions for demonstration purposes although they are a good starting point. If someone has complete poco classes for any transmition please feel free to contribute a complete test._

The following example makes use of the `Tradacoms` grammar.


```csharp
var grammar = EdiGrammar.NewTradacoms();
var interchange = default(Interchange);
Expand Down
29 changes: 12 additions & 17 deletions src/indice.Edi/EdiWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,23 +274,18 @@ public void WriteToken(EdiToken token, object value) {
case EdiToken.None:
// read to next
break;
//case EdiToken.SegmentStart:
// WriteStartObject();
// break;
//case EdiToken.StartArray:
// WriteStartArray();
// break;
//case EdiToken.StartConstructor:
// ValidationUtils.ArgumentNotNull(value, nameof(value));
// WriteStartConstructor(value.ToString());
// break;
//case EdiToken.PropertyName:
// ValidationUtils.ArgumentNotNull(value, nameof(value));
// WritePropertyName(value.ToString());
// break;
//case EdiToken.Comment:
// WriteComment((value != null) ? value.ToString() : null);
// break;
case EdiToken.SegmentStart:
// read to next
break;
case EdiToken.SegmentName:
// read to next
break;
case EdiToken.ElementStart:
// read to next
break;
case EdiToken.ComponentStart:
// read to next
break;
case EdiToken.Integer:
ValidationUtils.ArgumentNotNull(value, nameof(value));
#if !PORTABLE
Expand Down
6 changes: 3 additions & 3 deletions src/indice.Edi/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.8-*",
"version": "1.0.9-*",
"description": "Edi.Net Class Library",
"copyright": "Copyright (c) 2015 Indice",
"authors": [ "c.leftheris" ],
Expand All @@ -12,8 +12,8 @@
"type": "git",
"url": "https://github.com/indice-co/EDI.Net"
},
"releaseNotes": "Updated to dotnet core 1.0",
"summary": "Edi.Net Class Library for Reading Deserializing EDIFact and Tradacoms files into Clr Objects."
"releaseNotes": "Support for EDI X12. Plus bug fixes",
"summary": "Edi.Net Class Library for Reading Deserializing EDIFact, Tradacoms and X12 files into Clr Objects."
},
"scripts": {
"postcompile": [
Expand Down
2 changes: 1 addition & 1 deletion test/indice.Edi.Tests/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"xunit": "2.1.0",
"dotnet-test-xunit": "1.0.0-rc2-build10025",
"indice.Edi": "1.0.8"
"indice.Edi": "1.0.9"
},
"buildOptions": {
"embed": [ "Samples/**/*.edi" ],
Expand Down

0 comments on commit 29380e6

Please sign in to comment.