Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.3.0 Release #8

Merged
merged 2 commits into from
Aug 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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