From 8a36e0e8532c13242fbd30a8d9d7a814e9fd3eb3 Mon Sep 17 00:00:00 2001 From: James Charlesworth Date: Mon, 6 Aug 2018 22:44:14 +0100 Subject: [PATCH 1/2] Add ISlugHelper interface and move comment (#7) --- src/Slugify.Core/ISlugHelper.cs | 12 ++++++++++++ src/Slugify.Core/SlugHelper.cs | 6 ++---- 2 files changed, 14 insertions(+), 4 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) From 73dee69ddfacd1d2e754435187c8c7e22b9c5ffa Mon Sep 17 00:00:00 2001 From: Chad Tolkien Date: Tue, 7 Aug 2018 07:46:46 +1000 Subject: [PATCH 2/2] Version bump --- src/Slugify.Core/Slugify.Core.csproj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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