Skip to content

Commit

Permalink
-PrtgAPI 0.9.13
Browse files Browse the repository at this point in the history
-Fix Invoke-PrtgBuild not respecting -SourceLink parameter
-Fix build failure on Travis CI due to differences in floating point decimal places
  • Loading branch information
lordmilko committed May 7, 2020
1 parent bd8ef25 commit 03eef6c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/PrtgAPI.Build/Functions/Invoke-PrtgBuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function Invoke-PrtgBuild

# On Linux you need to have libcurl and some other stuff for libgit2 to work properly;
# users don't care about that, and don't need to include SourceLink anyway so just skip it
if(Test-IsWindows -and !$PSBoundParameters.ContainsKey("SourceLink"))
if((Test-IsWindows) -and ($SourceLink -or !$PSBoundParameters.ContainsKey("SourceLink")))
{
$SourceLink = $true
}
Expand Down
4 changes: 2 additions & 2 deletions build/Version.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

<Project>
<PropertyGroup>
<Version>0.9.12</Version>
<Version>0.9.13</Version>
<AssemblyVersion>0.9.0.0</AssemblyVersion>
<FileVersion>0.9.12.0</FileVersion>
<FileVersion>0.9.13.0</FileVersion>
</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions src/PrtgAPI.PowerShell/PowerShell/Resources/PrtgAPI.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'PrtgAPI.PowerShell.dll'

# Version number of this module.
ModuleVersion = '0.9.12'
ModuleVersion = '0.9.13'

# Supported PSEditions
CompatiblePSEditions = @('Desktop', 'Core')
Expand Down Expand Up @@ -107,7 +107,7 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = 'Release Notes: https://github.com/lordmilko/PrtgAPI/releases/tag/v0.9.12
ReleaseNotes = 'Release Notes: https://github.com/lordmilko/PrtgAPI/releases/tag/v0.9.13
---
Expand Down
2 changes: 1 addition & 1 deletion src/PrtgAPI/Properties/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
using System.Reflection;

[assembly: AssemblyVersion("0.9.0.0")]
[assembly: AssemblyFileVersion("0.9.12.0")]
[assembly: AssemblyFileVersion("0.9.13.0")]
4 changes: 3 additions & 1 deletion src/PrtgAPI/Request/Serialization/TypeHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ internal static DateTime ConvertFromPrtgDateTimeInternal(double datetime)

internal static double ConvertToPrtgDateTime(DateTime dateTime)
{
return dateTime.ToUniversalTime().ToOADate();
//Travis CI started using 12 decimal points, so fix it to 10 to ensure new .NET Core versions don't cause
//issues with unit tests
return Math.Round(dateTime.ToUniversalTime().ToOADate(), 10);
}

internal static DateTime StringToDate(string str)
Expand Down

0 comments on commit 03eef6c

Please sign in to comment.