Skip to content

Commit 7558f11

Browse files
Merge branch 'development' into strings
2 parents 666a12a + ec76234 commit 7558f11

File tree

7 files changed

+12
-8
lines changed

7 files changed

+12
-8
lines changed

PSModuleDevelopment/PSModuleDevelopment.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
RootModule = 'PSModuleDevelopment.psm1'
55

66
# Version number of this module.
7-
ModuleVersion = '2.2.8.104'
7+
ModuleVersion = '2.2.9.106'
88

99
# ID used to uniquely identify this module
1010
GUID = '37dd5fce-e7b5-4d57-ac37-832055ce49d6'
@@ -27,7 +27,7 @@
2727
# Modules that must be imported into the global environment prior to importing
2828
# this module
2929
RequiredModules = @(
30-
@{ ModuleName = 'PSFramework'; ModuleVersion = '1.1.59' }
30+
@{ ModuleName = 'PSFramework'; ModuleVersion = '1.4.149' }
3131
@{ ModuleName = 'string'; ModuleVersion = '0.6.1' }
3232
)
3333

PSModuleDevelopment/changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## ???
3+
## 2.2.9.106 (September 10th, 2020)
44

55
- New: Convert-PSMDMessage - Converts a file's use of PSFramework messages to strings.
66
- Upd: Export-PSMDString - Adding support for Test-PSFShouldProcess.

PSModuleDevelopment/functions/refactor/Convert-PSMDMessage.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#region Utility Functions
4444
function Get-Text
4545
{
46+
[OutputType([string])]
4647
[CmdletBinding()]
4748
param (
4849
$Value
@@ -79,6 +80,7 @@
7980

8081
function Get-Insert
8182
{
83+
[OutputType([string])]
8284
[CmdletBinding()]
8385
param (
8486
$Value

PSModuleDevelopment/functions/refactor/Set-PSMDEncoding.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
Write-PSFMessage -Level Verbose -Message "Setting encoding for $resolvedPath" -Target $pathItem
6363
try
6464
{
65-
if (Test-PSFShouldProcess -PSCmdlet $PSCmdlet -Target $resolvedPath -Action "Set encoding to $($Encoding.EncodingName)")
65+
if (Test-PSFShouldProcess -PSCmdlet $PSCmdlet -Target $resolvedPath -Action "Set encoding to $($Encoding.Encoding.EncodingName)")
6666
{
6767
$text = [System.IO.File]::ReadAllText($resolvedPath)
6868
[System.IO.File]::WriteAllText($resolvedPath, $text, $Encoding)

PSModuleDevelopment/internal/configurations/template.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Set-PSFConfig -Module 'PSModuleDevelopment' -Name 'Template.ParameterDefault.Com
99
Set-PSFConfig -Module 'PSModuleDevelopment' -Name 'Template.BinaryExtensions' -Value @('.dll', '.exe', '.pdf', '.doc', '.docx', '.xls', '.xlsx') -Initialize -Description "When creating a template, files with these extensions will be included as raw bytes and not interpreted for parameter insertion."
1010

1111
# Define the default store. To add more stores, just add a similar setting with a different last name segment
12-
Set-PSFConfig -Module 'PSModuleDevelopment' -Name 'Template.Store.Default' -Value "$path_FileUserShared\WindowsPowerShell\PSModuleDevelopment\Templates" -Initialize -Validation "string" -Description "Path to the default directory where PSModuleDevelopment will store its templates. You can add additional stores by creating the same setting again, only changing the last name segment to a new name and configuring a separate path."
13-
Set-PSFConfig -Module 'PSModuleDevelopment' -Name 'Template.Store.PSModuleDevelopment' -Value "$script:ModuleRoot\internal\templates" -Initialize -Validation "string" -Description "Path to the templates shipped in PSModuleDevelopment"
12+
Set-PSFConfig -Module 'PSModuleDevelopment' -Name 'Template.Store.Default' -Value "$path_FileUserShared/WindowsPowerShell/PSModuleDevelopment/Templates" -Initialize -Validation "string" -Description "Path to the default directory where PSModuleDevelopment will store its templates. You can add additional stores by creating the same setting again, only changing the last name segment to a new name and configuring a separate path."
13+
Set-PSFConfig -Module 'PSModuleDevelopment' -Name 'Template.Store.PSModuleDevelopment' -Value "$script:ModuleRoot/internal/templates" -Initialize -Validation "string" -Description "Path to the templates shipped in PSModuleDevelopment"
1414

1515
# Define the default path to create from templates in
1616
Set-PSFConfig -Module 'PSModuleDevelopment' -Name 'Template.OutPath' -Value '.' -Initialize -Validation 'string' -Description "The path where new files & projects should be created from templates by default."

PSModuleDevelopment/internal/scripts/variables.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$fileUserShared = @($Env:XDG_CONFIG_DIRS -split ([IO.Path]::PathSeparator))[0]
55
if (-not $fileUserShared) { $fileUserShared = Join-Path $HOME .local/share/ }
66

7-
$path_FileUserShared = Join-Path (Join-Path $fileUserShared $psVersionName) "PSFramework/"
7+
$path_FileUserShared = Join-Path (Join-Path $fileUserShared $psVersionName) "PSFramework"
88
}
99
else
1010
{

build/vsts-prerequisites.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ Install-Module Pester -Force -SkipPublisherCheck
33
Write-Host "Installing PSScriptAnalyzer" -ForegroundColor Cyan
44
Install-Module PSScriptAnalyzer -Force -SkipPublisherCheck
55
Write-Host "Installing PSFramework" -ForegroundColor Cyan
6-
Install-Module PSFramework -Force -SkipPublisherCheck
6+
Install-Module PSFramework -Force -SkipPublisherCheck
7+
Write-Host "Installing String" -ForegroundColor Cyan
8+
Install-Module String -Force -SkipPublisherCheck

0 commit comments

Comments
 (0)