Skip to content

Commit

Permalink
Merge branch 'master' into feature/conflict-alleviation-changes
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
#	shortid/ShortId.cs
#	shortid/Utils/Constants.cs
#	shortid/shortid.csproj
  • Loading branch information
Winner-Timothy Bolorunduro committed Aug 26, 2020
2 parents b387e74 + c3c8717 commit 6ab3c6a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ using shortid.Configuration;

This gives your code access the classes and methods of the `shortid` namespace.

To generate a unique id of any length between 8 and 14, you call the `Generate` method without parameters.
To generate a unique id of any length between 8 and 15, you call the `Generate` method without parameters.

```csharp
string id = ShortId.Generate();
Expand Down Expand Up @@ -85,7 +85,7 @@ string id = ShortId.Generate(options);
To change the character set in use, run the following:

```csharp
string characters = //whatever you want;
string characters = "ⒶⒷⒸⒹⒺⒻⒼⒽⒾⒿⓀⓁⓂⓃⓄⓅⓆⓇⓈⓉⓊⓋⓌⓍⓎⓏⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ①②③④⑤⑥⑦⑧⑨⑩⑪⑫"; //whatever you want;
ShortId.SetCharacters(characters);
```

Expand All @@ -104,4 +104,4 @@ Finally, `ShortId` allows for all customizations to be reset using the following

```csharp
ShortId.Reset();
```
```
2 changes: 1 addition & 1 deletion shortid.Test/Configuration/GenerationOptions.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void ShouldAssignRandomLengthOnInstantiation()
options
.Length
.Should()
.BeGreaterThan(7);
.BeGreaterThan(6);
options
.Length
.Should()
Expand Down
8 changes: 4 additions & 4 deletions shortid/shortid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
<PackageIconUrl>https://members.orcid.org/sites/default/files/vector_iD_icon.svg</PackageIconUrl>
<RepositoryUrl>https://github.com/bolorundurowb/shortid/</RepositoryUrl>
<PackageTags>shortid short id databse identifier key primarykey mongodb sql</PackageTags>
<PackageReleaseNotes>- fix thread safety issues
<PackageReleaseNotes>-
- add in further restrictions to maintain uniqueness</PackageReleaseNotes>
<Authors>Bolorunduro Winner-Timothy</Authors>
<Description>A library that generates random identifiers from 7 to 14 characters. Identifiers generated can be used as primary keys for databases or unique identifiers.</Description>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Title>shortid</Title>
<RepositoryType>git</RepositoryType>
<PackageVersion>3.0.0</PackageVersion>
<AssemblyVersion>3.0.0</AssemblyVersion>
<FileVersion>3.0.0</FileVersion>
<PackageVersion>3.0.0.0</PackageVersion>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<FileVersion>3.0.0.0</FileVersion>
<NeutralLanguage>en-NG</NeutralLanguage>
</PropertyGroup>
</Project>

0 comments on commit 6ab3c6a

Please sign in to comment.