diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f98944..3e0ab44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # PSGemini ChangeLog +## Version 1.0.5 +Code cleanup. + ## Version 1.0.4 * The `-Fingerprint` parameter to `Remove-PSGeminiKnownCertificate` did not work. This has been corrected. * `Remove-PSGeminiKnownCertificate` now supports `ShouldProcess` (`-Confirm` and `-WhatIf`). diff --git a/NEWS b/NEWS index c324e03..07c112b 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,4 @@ -VERSION 1.0.4 +VERSIONS 1.0.5 and 1.0.4 Fixed a bug in Remove-PSGeminiKnownCertificate where certificates could not be deleted by fingerprint. diff --git a/PSGemini.psd1 b/PSGemini.psd1 index 2794c09..a5badf2 100644 --- a/PSGemini.psd1 +++ b/PSGemini.psd1 @@ -4,7 +4,7 @@ RootModule = 'src/PSGemini.psm1' # Version number of this module. -ModuleVersion = '1.0.4' +ModuleVersion = '1.0.5' # Supported PSEditions CompatiblePSEditions = @('Core', 'Desktop') diff --git a/src/PSGemini.psm1 b/src/PSGemini.psm1 index 10691fa..f19eecf 100644 --- a/src/PSGemini.psm1 +++ b/src/PSGemini.psm1 @@ -454,8 +454,7 @@ Function Invoke-GeminiRequest } Else { - $response -Split "([`r`n]+)" | ForEach-Object -ScriptBlock - { + $response -Split "([`r`n]+)" | ForEach-Object { #Write-Debug "OUTPUT: $($_ -Replace "`r",'' -Replace "`n",'')" # Build content variable @@ -582,8 +581,7 @@ Function Get-PSGeminiKnownCertificate { Write-Debug "Found a certificate store at ${env:PSGeminiTOFUPath}." $AllCerts = @() - Import-CSV -Path $env:PSGeminiTOFUPath | ForEach-Object -ScriptBlock - { + Import-CSV -Path $env:PSGeminiTOFUPath | ForEach-Object { If ($null -eq $HostName -or $HostName -In @('', $_.HostName)) { $NotAfter = [DateTime]::FromFileTimeUTC($_.ExpirationDate)