From 4c53653127d7bf426b5850d3113bc209a1b8f23f Mon Sep 17 00:00:00 2001 From: Chad Tolkien Date: Wed, 8 Aug 2018 08:16:25 +1000 Subject: [PATCH] 2.3.0 Release (#8) * Add ISlugHelper interface and move comment (#7) * Version bump --- src/Slugify.Core/ISlugHelper.cs | 12 ++++++++++++ src/Slugify.Core/SlugHelper.cs | 6 ++---- src/Slugify.Core/Slugify.Core.csproj | 3 ++- 3 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 src/Slugify.Core/ISlugHelper.cs diff --git a/src/Slugify.Core/ISlugHelper.cs b/src/Slugify.Core/ISlugHelper.cs new file mode 100644 index 0000000..28cab0a --- /dev/null +++ b/src/Slugify.Core/ISlugHelper.cs @@ -0,0 +1,12 @@ +namespace Slugify +{ + public interface ISlugHelper + { + /// + /// Generates a slug from the provided + /// + /// The string to slugify + /// A slugified version of + string GenerateSlug(string inputString); + } +} \ No newline at end of file diff --git a/src/Slugify.Core/SlugHelper.cs b/src/Slugify.Core/SlugHelper.cs index 57e2489..3836263 100644 --- a/src/Slugify.Core/SlugHelper.cs +++ b/src/Slugify.Core/SlugHelper.cs @@ -6,7 +6,7 @@ namespace Slugify { - public class SlugHelper + public class SlugHelper : ISlugHelper { protected Config _config { get; set; } @@ -18,10 +18,8 @@ public SlugHelper(Config config) } /// - /// Generates a slug from the provided + /// Implements /// - /// The string to slugify - /// A slugified version of public string GenerateSlug(string inputString) { if (_config.ForceLowerCase) diff --git a/src/Slugify.Core/Slugify.Core.csproj b/src/Slugify.Core/Slugify.Core.csproj index 69bd941..3cf8145 100644 --- a/src/Slugify.Core/Slugify.Core.csproj +++ b/src/Slugify.Core/Slugify.Core.csproj @@ -1,12 +1,13 @@  Slugify Core - 2.2.2 + 2.3.0 net40;netstandard1.3;netstandard2.0 Slugify.Core Slugify.Core URL;Slug;Web;Slugify + 2.3.0 - ISlugHelper interface added. Thanks @jcharlesworthuk 2.2.2 - NetStandard 2.0 2.2.1 - NuGet package updates 2.2.0 - Minor tweaks