Skip to content

Commit e2a42c9

Browse files
v0.17.0
1 parent bc68909 commit e2a42c9

9 files changed

Lines changed: 75 additions & 53 deletions

File tree

PSProjectStatus.psd1

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
@{
44
RootModule = 'PSProjectStatus.psm1'
5-
ModuleVersion = '0.16.0'
5+
ModuleVersion = '0.17.0'
66
CompatiblePSEditions = 'Desktop', 'Core'
77
GUID = 'ec249544-dc4e-4e24-aae8-4281ec84f54d'
88
Author = 'Jeff Hicks'
@@ -27,22 +27,18 @@
2727
ProjectUri = 'https://github.com/jdhitsolutions/PSProjectStatus'
2828
IconUri = 'https://raw.githubusercontent.com./jdhitsolutions/PSProjectStatus/main/images/psproject-icon.png'
2929
ReleaseNotes = @'
30-
## [0.16.0] - 2025-01-07
31-
32-
### Added
33-
34-
- Added localized verbose messaging, help documentation, and a version of the README help to French. Translations were done with GitHub CoPilot so I can't guarantee the quality.
30+
## [0.17.0] - 2025-01-08
3531
3632
### Changed
3733
38-
- Updated `README.md`.
39-
- Updated help documentation.
40-
- Revised PDF layout settings.
34+
- Moved default help PDF to en-US.
35+
- Updates to `README` files.
4136
4237
### Fixed
4338
44-
- Fixed `Get-PSProjectTask` bug. [Issue #14](https://github.com/jdhitsolutions/PSProjectStatus/issues/14).
45-
- Fixed `Open-PSProjectStatusHelp` to make `-AsMarkdown` a dynamic parameter for PowerShell 7. [Issue #13](https://github.com/jdhitsolutions/PSProjectStatus/issues/13)
39+
- Fixed doc links in the French help PDF file. [Issue #16](https://github.com/jdhitsolutions/PSProjectStatus/issues/16)
40+
- Fixed issue trying to open default `README` as markdown. [Issue #15](https://github.com/jdhitsolutions/PSProjectStatus/issues/15)
41+
- Fixed task-related bugs. Rolled class definition and code back to v0.14.0. [Issue #17](https://github.com/jdhitsolutions/PSProjectStatus/issues/17) _This is a potential breaking change._
4642
'@
4743
RequireLicenseAcceptance = $false
4844
}

PSProjectStatus.psm1

Lines changed: 10 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -65,41 +65,13 @@ Class PSProjectRemote {
6565
}
6666
}
6767

68-
Class PSProjectTask {
69-
<#
70-
this class is designed with future enhancements in mind.
71-
Not all properties are utilized in the current version of the module.
72-
#>
73-
74-
[int32]$TaskID
75-
[string]$TaskName
76-
[string]$TaskDescription
77-
[PSProjectTaskPriority]$Priority
78-
[string[]]$TaskTags
79-
[DateTime]$Created = (Get-Date)
80-
[DateTime]$DueDate
81-
[DateTime]$CompletedDate
82-
[ValidateRange(0, 100)]
83-
[Int32]$Progress = 0
84-
[string]$AssignedTo = [System.Environment]::Username
85-
[System.Boolean]$Completed = $false
86-
[string]$ProjectName
87-
[string]$Path
88-
89-
PSProjectTask ([string]$TaskName) {
90-
# $this.TaskID = _getNextTaskID
91-
$this.TaskName = $TaskName
92-
#$this.TaskDescription = $Description
93-
}
94-
PSProjectTask () {
95-
96-
}
97-
}
68+
#7 Jan 2025 - removed PSProjectTask class as this is still a work in progress
69+
#Rolling back related code in the module to 0.14.0
9870
Class PSProject {
9971
[string]$Name = (Split-Path (Get-Location).path -Leaf)
10072
[string]$Path = (Convert-Path (Get-Location).path)
10173
[DateTime]$LastUpdate = (Get-Date)
102-
[PSProjectTask[]]$Tasks = @()
74+
[string[]]$Tasks = @()
10375
[PSProjectStatus]$Status = 'Development'
10476
[Version]$ProjectVersion = (Test-ModuleManifest -Path ".\$(Split-Path $pwd -Leaf).psd1" -Verbose:$False -ErrorAction SilentlyContinue).version
10577
[string]$GitBranch = ''
@@ -114,7 +86,8 @@ Class PSProject {
11486
$json = Join-Path -Path $this.Path -ChildPath psproject.json
11587
#convert the ProjectVersion to a string in the JSON file
11688
#convert the LastUpdate to a formatted date string
117-
$this | Select-Object -Property @{Name = '$schema'; Expression = { 'https://raw.githubusercontent.com/jdhitsolutions/PSProjectStatus/main/psproject.schema.json' } },
89+
$this | Select-Object -Property @{Name = '$schema';
90+
Expression = { 'https://raw.githubusercontent.com/jdhitsolutions/PSProjectStatus/main/psproject.schema.json' } },
11891
Name, Path,
11992
@{Name = 'LastUpdate'; Expression = { '{0:o}' -f $_.LastUpdate } },
12093
@{Name = 'Status'; Expression = { $_.status.toString() } },
@@ -170,7 +143,8 @@ This would be a major breaking change
170143
171144
#>
172145

173-
<# Class PSProjectTask {
146+
#7 Jan 2025 Restoring the old version until the new PSProjectTask class is ready
147+
Class PSProjectTask {
174148
[string]$ProjectName
175149
[string]$Path
176150
[string]$TaskDescription
@@ -183,7 +157,8 @@ This would be a major breaking change
183157
$this.TaskDescription = $TaskDescription
184158
$this.ProjectVersion = $ProjectVersion
185159
}
186-
} #>
160+
}
161+
187162

188163
#endregion
189164

@@ -347,7 +322,7 @@ $PSProjectANSI = @{
347322
Set-Variable -Name PSProjectANSI -Description "a hash table to store ANSI escape sequences for different commands used in verbose output. You can modify settings using ANSI sequences or `$PSStyle"
348323

349324
#Export the module version to a global variable that will be used in Verbose messages
350-
New-Variable -Name PSProjectStatusModule -Value '0.16.0' -Description 'The PSProjectStatus module version used in verbose messaging.'
325+
New-Variable -Name PSProjectStatusModule -Value '0.17.0' -Description 'The PSProjectStatus module version used in verbose messaging.'
351326

352327
Export-ModuleMember -Variable PSProjectStatusModule, PSProjectANSI -Alias 'Update-PSProjectStatus', 'gitstat', 'gpstat', 'npstat', 'spstat'
353328

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,21 @@ Class PSProjectRemote {
6464
}
6565
}
6666
67+
Class PSProjectTask {
68+
[string]$ProjectName
69+
[string]$Path
70+
[string]$TaskDescription
71+
[version]$ProjectVersion
72+
[int]$TaskID
73+
74+
PSProjectTask ($TaskDescription,$Path,$ProjectName,$ProjectVersion) {
75+
$this.ProjectName = $ProjectName
76+
$this.Path = $Path
77+
$this.TaskDescription = $TaskDescription
78+
$this.ProjectVersion = $ProjectVersion
79+
}
80+
}
81+
6782
#I have formatted longer lines with artificial line breaks to fit a
6883
#printed page.
6984
Class PSProject {
@@ -235,7 +250,7 @@ Note that the update time is formatted as a UTC string. The project version will
235250
236251
## Getting a Project Status
237252

238-
The easiest way to view a project status is by using [Get-PSProjectStatus](docs/New-PSProjectStatus.md).
253+
The easiest way to view a project status is by using [Get-PSProjectStatus](docs/Get-PSProjectStatus.md).
239254

240255
```powershell
241256
PS C:\scripts\PSCalendar> Get-PSProjectStatus

changelog.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
## [Unreleased]
44

5+
## [0.17.0] - 2025-01-08
6+
7+
### Changed
8+
9+
- Moved default help PDF to en-US.
10+
- Updates to `README` files.
11+
12+
### Fixed
13+
14+
- Fixed doc links in the French help PDF file. [Issue #16](https://github.com/jdhitsolutions/PSProjectStatus/issues/16)
15+
- Fixed issue trying to open default `README` as markdown. [Issue #15](https://github.com/jdhitsolutions/PSProjectStatus/issues/15)
16+
- Fixed task-related bugs. Rolled class definition and code back to v0.14.0. [Issue #17](https://github.com/jdhitsolutions/PSProjectStatus/issues/17) _This is a potential breaking change._
17+
518
## [0.16.0] - 2025-01-07
619

720
### Added
@@ -255,7 +268,8 @@
255268
- Modified `New-PSProjectStatus` to convert all paths to full filesystem paths and not PSDrives.
256269
- Updated `psproject.format.ps1xml` to adjust table widths. Added a default list view.
257270

258-
[Unreleased]: https://github.com/jdhitsolutions/PSProjectStatus/compare/v0.16.0..HEAD
271+
[Unreleased]: https://github.com/jdhitsolutions/PSProjectStatus/compare/v0.17.0..HEAD
272+
[0.17.0]: https://github.com/jdhitsolutions/PSProjectStatus/compare/v0.16.0..v0.17.0
259273
[0.16.0]: https://github.com/jdhitsolutions/PSProjectStatus/compare/v0.15.0..v0.16.0
260274
[0.15.0]: https://github.com/jdhitsolutions/PSProjectStatus/compare/vv0.14.1..v0.15.0
261275
[v0.14.1]: https://github.com/jdhitsolutions/PSProjectStatus/compare/v0.14.0..v0.14.1

fr-fr/PSProjectStatus-Help.pdf

594 Bytes
Binary file not shown.

fr-fr/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,21 @@ Class PSProjectRemote {
6464
}
6565
}
6666
67+
Class PSProjectTask {
68+
[string]$ProjectName
69+
[string]$Path
70+
[string]$TaskDescription
71+
[version]$ProjectVersion
72+
[int]$TaskID
73+
74+
PSProjectTask ($TaskDescription,$Path,$ProjectName,$ProjectVersion) {
75+
$this.ProjectName = $ProjectName
76+
$this.Path = $Path
77+
$this.TaskDescription = $TaskDescription
78+
$this.ProjectVersion = $ProjectVersion
79+
}
80+
}
81+
6782
#J'ai formaté les lignes plus longues avec des sauts de ligne artificiels
6883
#pour tenir sur une page imprimée.
6984
Class PSProject {
@@ -237,7 +252,7 @@ Notez que l'heure de mise à jour est formatée en tant que chaîne UTC. La vers
237252
238253
## Obtention d'un statut de projet
239254

240-
La façon la plus simple de visualiser un statut de projet est d'utiliser [Get-PSProjectStatus](../docs-fr/New-PSProjectStatus.md).
255+
La façon la plus simple de visualiser un statut de projet est d'utiliser [Get-PSProjectStatus](../docs-fr/Get-PSProjectStatus.md).
241256

242257
```powershell
243258
PS C:\scripts\PSCalendar> Get-PSProjectStatus

functions/public/Get-PSProjectTask.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,19 @@ Function Get-PSProjectTask {
4646
#define a project task ID number
4747
$i = 1
4848
foreach ($task in $in.tasks) {
49+
<#
50+
7 Jan 2025 Rolling this code back to v0.14.0 until
51+
the new PSProjectTask class is ready
52+
4953
#6 Jan 2024 Fix task constructor. Issue #14
5054
#$taskItem = [PSProjectTask]::New($task,$in.Path,$in.Name,$in.ProjectVersion)
5155
$taskItem = [PSProjectTask]::New($in.Name)
5256
$taskItem.TaskDescription = $task
5357
$taskItem.Path = $in.Path
5458
$taskItem.ProjectName = $in.Name
55-
#$taskItem.ProjectVersion = $in.ProjectVersion #>
59+
#$taskItem.ProjectVersion = $in.ProjectVersion
60+
#>
61+
$taskItem = [PSProjectTask]::New($task,$in.Path, $in.Name, $in.ProjectVersion)
5662
$taskItem.TaskID = $i
5763
if ($TaskID -AND ($TaskID -eq $i)) {
5864
$taskItem

functions/public/Open-README.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Function Open-PSProjectStatusHelp {
3737
_verbose -message ($strings.PSVersion -f $PSVersionTable.PSVersion)
3838
_verbose -message ($strings.UsingHost -f $host.Name)
3939
_verbose -message ($strings.UsingOS -f $PSVersionTable.OS)
40-
_verbose -message ($strings.UsingModule -f $ModuleVersion)
40+
_verbose -message ($strings.UsingModule -f $PSProjectStatusModule)
4141
}
4242

4343
#write-debug "detected culture $((Get-Culture).Name)"
@@ -46,7 +46,7 @@ Function Open-PSProjectStatusHelp {
4646
#relative to the module root
4747

4848
#test for localized help
49-
if (Test-Path -Path "$PSScriptRoot\..\..\$((Get-Culture).Name)") {
49+
if (Test-Path -Path "$PSScriptRoot\..\..\$((Get-Culture).Name)\README.md") {
5050
$docPath = "$PSScriptRoot\..\..\$((Get-Culture).Name)\README.md"
5151
}
5252
else {
@@ -64,14 +64,15 @@ Function Open-PSProjectStatusHelp {
6464
#write-debug "Using en-US help"
6565
$docPath = "$PSScriptRoot\..\..\PSProjectStatus-Help.pdf"
6666
}
67-
#write-debug "using docpath $docPath"
6867
}
68+
#Write-Debug "using docpath $docPath"
6969

7070
} #begin
7171
Process {
7272
$PSDefaultParameterValues['_verbose:block'] = 'Process'
7373
if ($PSBoundParameters.ContainsKey('AsMarkdown')) {
7474
_verbose -Message $strings.OpenMarkdownHelp
75+
_verbose -message $docPath
7576
Show-Markdown -Path $docPath
7677
}
7778
else {

0 commit comments

Comments
 (0)