Skip to content

Commit

Permalink
2.3.0 Release (#8)
Browse files Browse the repository at this point in the history
* Add ISlugHelper interface and move comment (#7)

* Version bump
  • Loading branch information
ctolkien authored Aug 7, 2018
1 parent bce35b7 commit 4c53653
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
12 changes: 12 additions & 0 deletions src/Slugify.Core/ISlugHelper.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace Slugify
{
public interface ISlugHelper
{
/// <summary>
/// Generates a slug from the provided <paramref name="inputString"/>
/// </summary>
/// <param name="inputString">The string to slugify</param>
/// <returns>A slugified version of <paramref name="inputString"/></returns>
string GenerateSlug(string inputString);
}
}
6 changes: 2 additions & 4 deletions src/Slugify.Core/SlugHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Slugify
{
public class SlugHelper
public class SlugHelper : ISlugHelper
{
protected Config _config { get; set; }

Expand All @@ -18,10 +18,8 @@ public SlugHelper(Config config)
}

/// <summary>
/// Generates a slug from the provided <paramref name="inputString"/>
/// Implements <see cref="ISlugHelper.GenerateSlug(string)"/>
/// </summary>
/// <param name="inputString">The string to slugify</param>
/// <returns>A slugified version of <paramref name="inputString"/></returns>
public string GenerateSlug(string inputString)
{
if (_config.ForceLowerCase)
Expand Down
3 changes: 2 additions & 1 deletion src/Slugify.Core/Slugify.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyTitle>Slugify Core</AssemblyTitle>
<VersionPrefix>2.2.2</VersionPrefix>
<VersionPrefix>2.3.0</VersionPrefix>
<TargetFrameworks>net40;netstandard1.3;netstandard2.0</TargetFrameworks>
<AssemblyName>Slugify.Core</AssemblyName>
<PackageId>Slugify.Core</PackageId>
<PackageTags>URL;Slug;Web;Slugify</PackageTags>
<PackageReleaseNotes>
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
Expand Down

0 comments on commit 4c53653

Please sign in to comment.