diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b250c0..b12ff11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +##### Version: 0.1.35 +* Minor code style fixes +* Edited CI in repo +* Added Preview version autopublishing +* Fixed error with comment-help. Get-Help \ shows help description now ##### Version: 0.1.30 * Added getting token from certificate diff --git a/Output/GraphApiRequests/0.1.34/GraphApiRequests.psd1 b/Output/GraphApiRequests/0.1.35/GraphApiRequests.psd1 similarity index 98% rename from Output/GraphApiRequests/0.1.34/GraphApiRequests.psd1 rename to Output/GraphApiRequests/0.1.35/GraphApiRequests.psd1 index d0dbcb7..44be36f 100644 --- a/Output/GraphApiRequests/0.1.34/GraphApiRequests.psd1 +++ b/Output/GraphApiRequests/0.1.35/GraphApiRequests.psd1 @@ -12,7 +12,7 @@ RootModule = 'GraphApiRequests.psm1' # Version number of this module. -ModuleVersion = '0.1.34' +ModuleVersion = '0.1.35' # Supported PSEditions # CompatiblePSEditions = @() @@ -27,7 +27,7 @@ Author = 'Aslan Imanalin' CompanyName = '' # Copyright statement for this module -Copyright = '(c) 2021 Aslan Imanalin. All rights reserved.' +Copyright = '(c) 2022 Aslan Imanalin. All rights reserved.' # Description of the functionality provided by this module Description = 'Module for GraphApi requests invocation.' diff --git a/Output/GraphApiRequests/0.1.34/GraphApiRequests.psm1 b/Output/GraphApiRequests/0.1.35/GraphApiRequests.psm1 similarity index 100% rename from Output/GraphApiRequests/0.1.34/GraphApiRequests.psm1 rename to Output/GraphApiRequests/0.1.35/GraphApiRequests.psm1 diff --git a/Output/GraphApiRequests/0.1.34/en-US/GraphApiRequests-help.xml b/Output/GraphApiRequests/0.1.35/en-US/GraphApiRequests-help.xml similarity index 100% rename from Output/GraphApiRequests/0.1.34/en-US/GraphApiRequests-help.xml rename to Output/GraphApiRequests/0.1.35/en-US/GraphApiRequests-help.xml diff --git a/Source/GraphApiRequests.psd1 b/Source/GraphApiRequests.psd1 index 9f3c874..fba2970 100644 --- a/Source/GraphApiRequests.psd1 +++ b/Source/GraphApiRequests.psd1 @@ -12,7 +12,7 @@ RootModule = 'GraphApiRequests.psm1' # Version number of this module. -ModuleVersion = '0.1.34' +ModuleVersion = '0.1.35' # Supported PSEditions # CompatiblePSEditions = @() @@ -27,7 +27,7 @@ Author = 'Aslan Imanalin' CompanyName = '' # Copyright statement for this module -Copyright = '(c) 2021 Aslan Imanalin. All rights reserved.' +Copyright = '(c) 2022 Aslan Imanalin. All rights reserved.' # Description of the functionality provided by this module Description = 'Module for GraphApi requests invocation.' diff --git a/Tests/TestResults.xml b/Tests/TestResults.xml index d784232..afd5474 100644 --- a/Tests/TestResults.xml +++ b/Tests/TestResults.xml @@ -1,75 +1,75 @@  - - + + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - - + + - + - - - - + + + + - + - + - - - + + + diff --git a/build.ps1 b/build.ps1 index eb7b890..ca51bca 100644 --- a/build.ps1 +++ b/build.ps1 @@ -87,14 +87,14 @@ task DebugBuild -if ($Configuration -eq "debug") { } Write-Verbose -Message "Updating Module Manifest with Public Functions" - $publicFunctions = Get-ChildItem -Path ".\Source\Public\*.ps1" - $privateFunctions = Get-ChildItem -Path ".\Source\Private\*.ps1" + $PublicFunctions = Get-ChildItem -Path ".\Source\Public\*.ps1" + $PrivateFunctions = Get-ChildItem -Path ".\Source\Private\*.ps1" try { Write-Verbose -Message "Appending Public functions to the psm file" - $functionsToExport = New-Object -TypeName System.Collections.ArrayList - foreach($function in $publicFunctions.Name){ - write-Verbose -Message "Exporting function: $(($function.split('.')[0]).ToString())" - $functionsToExport.Add(($function.split('.')[0]).ToString()) + $FunctionsToExport = New-Object -TypeName System.Collections.ArrayList + foreach($Function in $PublicFunctions.Name){ + write-Verbose -Message "Exporting function: $(($Function.split('.')[0]).ToString())" + $FunctionsToExport.Add(($Function.split('.')[0]).ToString()) } Update-ModuleManifest -Path ".\Output\temp\$($ModuleName)\$($ModuleVersion)\$($ModuleName).psd1" -FunctionsToExport $functionsToExport } @@ -105,17 +105,17 @@ task DebugBuild -if ($Configuration -eq "debug") { Write-Verbose -Message "Building the .psm1 file" Write-Verbose -Message "Appending Public Functions" Add-Content -Path $ModuleFile -Value "### --- PUBLIC FUNCTIONS --- ###" - foreach($function in $publicFunctions.Name){ + foreach($Function in $PublicFunctions.Name){ try { - Write-Verbose -Message "Updating the .psm1 file with function: $($function)" - $content = Get-Content -Path ".\Source\Public\$($function)" - Add-Content -Path $ModuleFile -Value "#Region - $function" + Write-Verbose -Message "Updating the .psm1 file with function: $($Function)" + $Content = Get-Content -Path ".\Source\Public\$($Function)" + Add-Content -Path $ModuleFile -Value "#Region - $Function" Add-Content -Path $ModuleFile -Value $content if($ExportAlias.IsPresent){ $AliasSwitch = $false $Sel = Select-String -Path ".\Source\Public\$($function)" -Pattern "CmdletBinding" -Context 0,1 $mylist = $Sel.ToString().Split([Environment]::NewLine) - foreach($s in $mylist){ + foreach($s in $Mylist){ if($s -match "Alias"){ $alias = (($s.split(":")[2]).split("(")[1]).split(")")[0] Write-Verbose -Message "Exporting Alias: $($alias) to Function: $($function)"