Releases: vexx32/PSKoans
Releases · vexx32/PSKoans
v0.39: Objection!
v0.39: Objection!
Koan Changes:
- Add
Position
property name to[Koan()]
constructor attribute on all koan files for clarity. - New Koans!
- AboutCompareObject
- AboutForEachObject
- AboutGroupObject
- AboutNewObject
- AboutSelectObject
- AboutSortObject
- AboutTeeObject
- AboutWhereObject
- AboutMeasureObject
- Updated Koans!
- AboutGetHelpAndGetMember -> AboutDiscovery
- Added a koan to give an example of searching for commands by parameter names.
- Now with
Get-Command
koans as well!
- AboutLoopsAndPipelines fixed (thanks @rdbartram !)
- AboutStringOperators fixed several derps (thanks @rdbartram !)
- AboutGetHelpAndGetMember -> AboutDiscovery
- New Challenge Koan: AboutTheStockChallenge - thanks be to @ChrisMarinos of the F# koans for the puzzle there! (Designing appropriate puzzles is hard, OK?)
Build Process / Module Changes
- Split out module functions into separate files.
- For the time being, just dot-sourcing the functions. We don't have a lot, and there's little to be gained by combining them into a single file.
- Build/Test/Deploy on PS Core to ensure compatibility.
- Perform module installations before executing build scripts.
- Edit build scripts for consistency and style.
- Use
Write-Information
for build display output to avoid cluttering output, should that ever be needed for anything.
- Use
- Updated readme with TOC, slightly better layout.
- MODULE TESTS!
- After several attempts to get tests going for the module functions (mostly by other people, really),we finally have pretty thorough module tests!
- All module functions are covered and tested thoroughly at commit time! (We have like three functions, so it's not a big deal tbh.)
v0.39.1:
- Fixed derp in the meditation prompt display where it was looking for a file in the wrong place.
v0.39.2:
- Change search-help-by-parameters koan into simple help tip. It made the meditation prompt far too slow.
v0.38.1 Fixed meditation prompt issue
Fixes
- Fixed an issue with the meditation prompt where it would spew out koans rather than selecting one at random.
CI/CD Pipeline
Not quite there with the CI/CD pipeline, but very nearly!
v0.37 - Hashtable Splatting
Changes
- Added koans for hashtable splatting
- Changed $Script: scope variables the module uses to $env:PSKoans: (yes, this works, I swear)
v0.36: Hashtables & Error fixes!
Changes
- Added koans for hashtables:
/Foundations/AboutHashtables.Tests.ps1
- Changed koan index numbering to allow for more room for expansion
Fixes
- Fixed a couple errors that were cropping up thanks to poor design methodology in
AboutPSProviders.Tests.ps1
v0.35: PSProvider Koans, Attributes, #Requires
Changes
- Add koans for PSProviders. Currently includes FileSystem, Alias, Function, Variable and Environment providers, and different methods of using their contents. Registry has been omitted for the time being due to cross-platform concerns, as well as concerns over having folks just learning PoSH being given the keys to the Windows registry a little early.
- Add
[Koan()]
attributes to all koan files. These attributes take a single uint32 parameter that denotes their position in the order of tests. - Add
#Requires -Module PSKoans
to all koan files. This should ensure that PowerShell automatically imports the PSKoans module (if you have it installed; will be more useful when we start uploading to the gallery), and gives a more helpful error message than 'missing attribute' if theKoanAttribute
class is not loaded. - Added logic to
Get-Enlightenment
which sorts the koan test files by their index numbers before feeding them toInvoke-Pester
one at a time. Files with no attribute will be skipped entirely, whereas files with no set index number (in the format[Koan(1)]
, for example) will automatically receive an index of[uint32]::MaxValue
and be 'last' in the list of koans to complete.