From ac56390221b0317885a29850a8fd2ec4baad8b1f Mon Sep 17 00:00:00 2001 From: Jacob Brady Date: Mon, 3 Apr 2023 11:23:45 -0400 Subject: [PATCH 1/4] Release v4.1.1 (#11) * Initialize library * Update README * Update workflow to publish to NuGet.org * Update README * Clarify package is available from nuget.org * Fix workflow step name * Handle detour road events without throwing an exception * Fix typo in publish-package.yml * Remove pull request trigger from workflow * Add trigger for PRs to develop * Change chevron from plural to singular to match spec (#10) --- .../Models/FieldDevices/ArrowBoardPattern.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/IBI.WZDx/Models/FieldDevices/ArrowBoardPattern.cs b/src/IBI.WZDx/Models/FieldDevices/ArrowBoardPattern.cs index c9e4d87..4edae61 100644 --- a/src/IBI.WZDx/Models/FieldDevices/ArrowBoardPattern.cs +++ b/src/IBI.WZDx/Models/FieldDevices/ArrowBoardPattern.cs @@ -29,18 +29,18 @@ public enum ArrowBoardPattern /// /// Merge right represented by a pattern of chevrons (e.g. >>>) that does not flash or move. /// - RightChevronsStatic, + RightChevronStatic, /// /// Merge right represented by a pattern of chevrons (e.g. >>>) that that flashes on/off. /// - RightChevronsFlashing, + RightChevronFlashing, /// /// Merge right represented by a pattern of chevrons that is displayed in a progressing /// sequence. /// - RightChevronsSequential, + RightChevronSequential, /// /// Merge left represented by an arrow pattern (e.g. <--) that does not flash or move. @@ -61,19 +61,19 @@ public enum ArrowBoardPattern /// /// Merge left represented by a pattern of chevrons (e.g. <<<) that does not flash or move. /// - LeftChevronsStatic, + LeftChevronStatic, /// /// Merge left represented by a pattern of chevrons (e.g. <<<) that that flashes on/off. /// - LeftChevronsFlashing, - + LeftChevronFlashing, + /// /// Merge left represented by a pattern of chevrons that is displayed in a progressing /// sequence. /// - LeftChevronsSequential, - + LeftChevronSequential, + /// /// Split (merge left or right) represented by arrows pointing both left and right /// (e.g. <-->) that does not flash or move. From 2b0c6d6f3c2cdf74316add791f274642a4702c8a Mon Sep 17 00:00:00 2001 From: Jacob Brady Date: Mon, 3 Apr 2023 11:27:13 -0400 Subject: [PATCH 2/4] Update package version to 4.1.1 --- src/IBI.WZDx/IBI.WZDx.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IBI.WZDx/IBI.WZDx.csproj b/src/IBI.WZDx/IBI.WZDx.csproj index cc1bd0e..b216920 100644 --- a/src/IBI.WZDx/IBI.WZDx.csproj +++ b/src/IBI.WZDx/IBI.WZDx.csproj @@ -7,7 +7,7 @@ Models and utitlies for producing and consuming Work Zone Data Exchange (WZDx) data feeds. WZDx;Work Zone Data Exchange;Work Zone Feed;Road Event;Device Feed;Field Device;GeoJSON IBI Group - 4.1.0 + 4.1.1 true README.md git From 4582fc1d04550a374c4fd8f03c5e17e2cfd92ef8 Mon Sep 17 00:00:00 2001 From: Jacob Brady Date: Fri, 8 Dec 2023 16:49:41 -0500 Subject: [PATCH 3/4] Change wording in README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8899d77..92b7c92 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# IBI WZDx .NET Library +# WZDx .NET Library This repository contains the source code for IBI Group's [.NET 6.0](https://docs.microsoft.com/en-us/dotnet/core/whats-new/dotnet-6) [WZDx (Work Zone Data Exchange)](https://github.com/usdot-jpo-ode/wzdx) class library, `IBI.WZDx`. @@ -14,7 +14,7 @@ The library provides the following functionality: ### WZDx Version Support -WZDx versions 4.0, 4.1 & 4.2 are supported; the [WzdxSerializer](./src/IBI.WZDx/Serialization/WzdxSerializer.cs) defaults to outputting v4.2 (latest WZDx). +WZDx versions 4.0, 4.1, and 4.2 are supported; the [WzdxSerializer](./src/IBI.WZDx/Serialization/WzdxSerializer.cs) defaults to outputting v4.2 (latest WZDx). [Detour road events](https://github.com/usdot-jpo-ode/wzdx/blob/main/spec-content/objects/DetourRoadEvent.md) are not supported. When provided with a Work Zone Feed that includes detour road events, the WzdxSerializer.DeserializeFeed method will deserialize the detour events into a [RoadEventFeature](./src/IBI.WZDx/Models/RoadEvents/RoadEventFeature.cs) with `Properties` as `null`. @@ -75,4 +75,4 @@ This solution includes a [IBI.WZDx.UnitTests](/tests/IBI.WZDx.UnitTests/) Xunit ``` dotnet test -``` \ No newline at end of file +``` From bcec5f5d5caf53d09b5154418e2aada52843f241 Mon Sep 17 00:00:00 2001 From: Jacob Brady Date: Fri, 8 Dec 2023 16:51:02 -0500 Subject: [PATCH 4/4] Add spaces around curly braces --- tests/IBI.WZDx.UnitTests/WzdxSerializerTests.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/IBI.WZDx.UnitTests/WzdxSerializerTests.cs b/tests/IBI.WZDx.UnitTests/WzdxSerializerTests.cs index 6c5fb23..709aac6 100644 --- a/tests/IBI.WZDx.UnitTests/WzdxSerializerTests.cs +++ b/tests/IBI.WZDx.UnitTests/WzdxSerializerTests.cs @@ -810,7 +810,7 @@ string expectedFeedJson ImpactedCdsCurbZones: new CdsCurbZonesReference[] { new CdsCurbZonesReference( - CdsCurbZoneIds: new string[] {"Zone Id 1", "Zone Id 2"}, + CdsCurbZoneIds: new string[] { "Zone Id 1", "Zone Id 2" }, CdsCurbsApiUrl: "API Url" ) }, @@ -818,7 +818,8 @@ string expectedFeedJson ), Geometry: new RoadEventFeatureGeometry( Type: RoadEventFeatureGeometryType.LineString, - Coordinates: new double[][] { + Coordinates: new double[][] + { new double[] { -93.77668405099996, @@ -1908,4 +1909,4 @@ private static void DeserializeFeed_JsonNotValid_ThrowsJsonException( Assert.Throws(action); } -} \ No newline at end of file +}