From a37ef1f1f54b6d510b079acd22771f263d311568 Mon Sep 17 00:00:00 2001 From: Aslan Imanalin Date: Mon, 29 Aug 2022 23:12:09 +0600 Subject: [PATCH 1/2] Minor changes. See changelog version 0.1.35 --- CHANGELOG.md | 5 +++++ Source/GraphApiRequests.psd1 | 2 +- build.ps1 | 22 +++++++++++----------- 3 files changed, 17 insertions(+), 12 deletions(-) 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/Source/GraphApiRequests.psd1 b/Source/GraphApiRequests.psd1 index 9f3c874..8840f90 100644 --- a/Source/GraphApiRequests.psd1 +++ b/Source/GraphApiRequests.psd1 @@ -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/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)" From 852de1a53898b9ba97b9cfaf8d9af9c0fd6998b0 Mon Sep 17 00:00:00 2001 From: aslan-im Date: Mon, 29 Aug 2022 17:14:19 +0000 Subject: [PATCH 2/2] Pushing Artifacts --- .../{0.1.34 => 0.1.35}/GraphApiRequests.psd1 | 4 +- .../{0.1.34 => 0.1.35}/GraphApiRequests.psm1 | 0 .../en-US/GraphApiRequests-help.xml | 0 Source/GraphApiRequests.psd1 | 2 +- Tests/TestResults.xml | 62 +++++++++---------- 5 files changed, 34 insertions(+), 34 deletions(-) rename Output/GraphApiRequests/{0.1.34 => 0.1.35}/GraphApiRequests.psd1 (98%) rename Output/GraphApiRequests/{0.1.34 => 0.1.35}/GraphApiRequests.psm1 (100%) rename Output/GraphApiRequests/{0.1.34 => 0.1.35}/en-US/GraphApiRequests-help.xml (100%) 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 8840f90..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 = @() 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 @@  - - + + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - - + + - + - - - - + + + + - + - + - - - + + +