Skip to content

Commit

Permalink
Release v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KUTlime committed Jul 7, 2019
1 parent ec4f0b8 commit 3dad7a9
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion UltimateTemperatureLibrary/Celsius.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public sealed override double Value
/// <summary>
/// Gets an array of the Celsius unit identifications for a in-string scale matching.
/// </summary>
public override string[] RegexPatterns { get; protected set; } = { "C", "Cel", "CEL", "cel", "Celsius", "celsius", "CELSIUS" };
protected internal override string[] RegexPatterns { get; set; } = { "C", "Cel", "CEL", "cel", "Celsius", "celsius", "CELSIUS" };

#region Interface implementation

Expand Down
2 changes: 1 addition & 1 deletion UltimateTemperatureLibrary/Delisle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public sealed override double Value
/// <summary>
/// Gets an array of the Delisle unit identifications for a in-string scale matching.
/// </summary>
public override string[] RegexPatterns { get; protected set; } = { "D", "De", "Delisle", "DELISLE", "delisle" };
protected internal override string[] RegexPatterns { get; set; } = { "D", "De", "Delisle", "DELISLE", "delisle" };

#region Interface implementation

Expand Down
2 changes: 1 addition & 1 deletion UltimateTemperatureLibrary/Fahrenheit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public sealed override double Value
/// <summary>
/// Gets an array of the Fahrenheit unit identifications for a in-string scale matching.
/// </summary>
public override string[] RegexPatterns { get; protected set; } = { "F", "Fahrenheit", "Fah", "fahrenheit", "fah", "FAHRENHEIT" };
protected internal override string[] RegexPatterns { get; set; } = { "F", "Fahrenheit", "Fah", "fahrenheit", "fah", "FAHRENHEIT" };

#region Interface implementation

Expand Down
2 changes: 1 addition & 1 deletion UltimateTemperatureLibrary/Kelvin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public sealed override double Value
/// <summary>
/// Gets an array of the Kelvin unit identifications for a in-string scale matching.
/// </summary>
public override string[] RegexPatterns { get; protected set; } = { "K", "Kel", "Kelvin", "kel", "kelvin", "KELVIN" };
protected internal override string[] RegexPatterns { get; set; } = { "K", "Kel", "Kelvin", "kel", "kelvin", "KELVIN" };

/// <summary>
/// Return stored temperature value with unit identification.
Expand Down
2 changes: 1 addition & 1 deletion UltimateTemperatureLibrary/Newton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public sealed override double Value
/// <summary>
/// Gets an array of the Newton unit identifications for a in-string scale matching.
/// </summary>
public override string[] RegexPatterns { get; protected set; } = { "N", "Newton", "newton", "NEWTON" };
protected internal override string[] RegexPatterns { get; set; } = { "N", "Newton", "newton", "NEWTON" };

#region Interface implementation

Expand Down
2 changes: 1 addition & 1 deletion UltimateTemperatureLibrary/Rankine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public sealed override double Value
/// <summary>
/// Gets an array of the Rankine unit identifications for a in-string scale matching.
/// </summary>
public override string[] RegexPatterns { get; protected set; } = { "R", "Ra", "Ran", "Rankine", "ra", "ran", "rankine", "RANKINE" };
protected internal override string[] RegexPatterns { get; set; } = { "R", "Ra", "Ran", "Rankine", "ra", "ran", "rankine", "RANKINE" };

#region Interface implementation

Expand Down
2 changes: 1 addition & 1 deletion UltimateTemperatureLibrary/Réaumur.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public sealed override double Value
/// <summary>
/// Gets an array of the Réaumur unit identifications for a in-string scale matching.
/// </summary>
public override string[] RegexPatterns { get; protected set; } = { "Re", "", "re", "", "Réau", "Reau", "réau", "reau", "RÉAU", "REAU", "Réaumur", "Reaumur", "réaumur", "reaumur", "RÉAUMUR", "REAUMUR" };
protected internal override string[] RegexPatterns { get; set; } = { "Re", "", "re", "", "Réau", "Reau", "réau", "reau", "RÉAU", "REAU", "Réaumur", "Reaumur", "réaumur", "reaumur", "RÉAUMUR", "REAUMUR" };

#region Interface implementation

Expand Down
2 changes: 1 addition & 1 deletion UltimateTemperatureLibrary/Rømer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public sealed override double Value
/// <summary>
/// Gets an array of the Rømer unit identifications for a in-string scale matching.
/// </summary>
public override string[] RegexPatterns { get; protected set; } = { "", "", "", "Rømer", "rømer", "RØMER", "Ro", "ro", "Ro", "Romer", "romer", "ROMER" };
protected internal override string[] RegexPatterns { get; set; } = { "", "", "", "Rømer", "rømer", "RØMER", "Ro", "ro", "Ro", "Romer", "romer", "ROMER" };

#region Interface implementation

Expand Down
4 changes: 2 additions & 2 deletions UltimateTemperatureLibrary/TemperatureUnit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ public override int GetHashCode()
/// <summary>
/// Gets or sets Regex patterns which are used for unit parsing from string.
/// </summary>
public virtual string[] RegexPatterns { get; protected set; } = { String.Empty };
protected internal virtual string[] RegexPatterns { get; set; } = { String.Empty };

/// <summary>
/// Gets or sets an user Regex pattern which are used for unit parsing from string.
/// <para>This overrides the RegexPatterns property.</para>
/// </summary>
public virtual string RegexPatternRaw { get; protected set; } = String.Empty;
protected internal virtual string RegexPatternRaw { get; set; } = String.Empty;

#region Static methods

Expand Down
11 changes: 7 additions & 4 deletions UltimateTemperatureLibrary/UltimateTemperatureLibrary.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@
<RepositoryType>Git</RepositoryType>
<Title>Ultimate Temperature Library</Title>
<Product>Ultimate Temperature Library</Product>
<PackageReleaseNotes>
v1.0.0.0:
Initial public release.
</PackageReleaseNotes>
<PackageReleaseNotes>v1.1.0.0:
- Removed public modifier to Regex patterns.

v1.0.0.0:
- Initial public release.
</PackageReleaseNotes>
<PackageIconUrl>https://raw.githubusercontent.com/KUTlime/Ultimate-Temperature-Library/master/Resources/thermometer.png</PackageIconUrl>
<PackageLicenseUrl></PackageLicenseUrl>
<Version>1.1.0</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand Down

0 comments on commit 3dad7a9

Please sign in to comment.