Skip to content

Commit

Permalink
Ensure Premium DataSets load with new Get(category, path) overload.
Browse files Browse the repository at this point in the history
  • Loading branch information
bchavez committed Sep 14, 2020
1 parent c82b9a2 commit 597d6f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
## v31.0.1
## v31.0.2
Release Date: 2020-09-13

* Ensures Bogus Premium datasets load with new `DataSet.Get(category, path)` overload.

## v31.0.1
Release Date: 2020-09-13, UNPUBLISHED FROM NUGET

* Locale data parity with faker-js@91dc8a3.
* Added `Music` dataset with `.Genre()` method.
* Added `Date.TimeZoneString()`.
Expand Down
6 changes: 6 additions & 0 deletions Source/Bogus/Premium/PremiumDataSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ protected internal override BValue Get(string path)
return base.Get(path);
}

protected internal override BValue Get(string category, string path)
{
CheckLicense();
return base.Get(category, path);
}

protected internal override bool HasKey(string path, bool includeFallback = true)
{
CheckLicense();
Expand Down

0 comments on commit 597d6f8

Please sign in to comment.