Skip to content

Commit d95fdad

Browse files
author
Friedrich Weinmann
committed
template updates
1 parent 4b3bc16 commit d95fdad

File tree

11 files changed

+11
-7
lines changed

11 files changed

+11
-7
lines changed

PSModuleDevelopment/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
## ???
3+
- Upd: Template PSFProject - some fixes and improvements to the installer
4+
- Fix: Template function - encoding error
5+
26
## 2.2.4.18 (May 04rd, 2018)
37
- Upd: New-PSMDFormatTableDefinition - Update to add parameters `-IncludePropertyAttribute` and `-ExcludePropertyAttribute`
48

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

templates/PSFProject/PSMDTemplate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@{
22
TemplateName = 'PSFProject'
3-
Version = "1.0.0.0"
3+
Version = "1.0.1.0"
44
AutoIncrementVersion = $true
55
Tags = 'module','psframework'
66
Author = 'Friedrich Weinmann'

templates/PSFProject/install.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<#
22
.SYNOPSIS
3-
Installs the PSModuleDevelopment Module from github
3+
Installs the þnameþ Module from github
44
55
.DESCRIPTION
6-
This script installs the PSModuleDevelopment Module from github.
6+
This script installs the þnameþ Module from github.
77
88
It does so by ...
99
- downloading the specified branch as zip to $env:TEMP
@@ -2378,7 +2378,7 @@ try
23782378

23792379
# Determine output path
23802380
$path = "$($env:ProgramFiles)\WindowsPowerShell\Modules\$($ModuleName)"
2381-
if ($UserMode) { $path = "$($HOME)\Documents\WindowsPowerShell\Modules\$($ModuleName)" }
2381+
if ($doUserMode) { $path = "$(Split-Path $profile.CurrentUserAllHosts)\Modules\$($ModuleName)" }
23822382
if ($PSVersionTable.PSVersion.Major -ge 5) { $path += "\$moduleVersion" }
23832383

23842384
if ((Test-Path $path) -and (-not $Force))

templates/PSFProject/þnameþ/tests/general/PSScriptAnalyzer.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Describe 'Invoking PSScriptAnalyzer against commandbase' {
2020
foreach ($file in $commandFiles)
2121
{
2222
Context "Analyzing $($file.BaseName)" {
23-
$analysis = Invoke-ScriptAnalyzer -Path $file.FullName
23+
$analysis = Invoke-ScriptAnalyzer -Path $file.FullName -ExcludeRule PSAvoidTrailingWhitespace
2424

2525
forEach ($rule in $scriptAnalyzerRules)
2626
{

templates/PSFProject/þnameþ/tests/pester.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ foreach ($file in (Get-ChildItem "$PSScriptRoot\general" -Filter "*.Tests.ps1"))
4545
}
4646

4747
Write-PSFMessage -Level Important -Message "Proceeding with individual tests"
48-
foreach ($file in (Get-ChildItem "$PSScriptRoot\functions" -Recurse -File -Filter "*Tests..ps1"))
48+
foreach ($file in (Get-ChildItem "$PSScriptRoot\functions" -Recurse -File -Filter "*Tests.ps1"))
4949
{
5050
Write-PSFMessage -Level Significant -Message " Executing $($file.Name)"
5151
$results = Invoke-Pester -Script $file.FullName -Show None -PassThru

0 commit comments

Comments
 (0)