Skip to content

Commit 305afe9

Browse files
committed
Move to private and compile changes
1 parent fbb0756 commit 305afe9

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

Compile.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$builder = New-Object -TypeName "System.Text.StringBuilder"
22

3-
foreach ($priv in Get-ChildItem -Path "$PSScriptRoot\Private" -Filter *.ps1)
3+
foreach ($priv in $(Get-ChildItem -Path "$PSScriptRoot\Private" -Filter *.ps1 -Exclude "ComparerBuilder.ps1" -Recurse))
44
{
55
[void] $builder.AppendLine((Get-Content -Path $priv.FullName -Raw))
66
[void] $builder.AppendLine()

ListFunctions.psd1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ PowerShellVersion = '4.0'
5757
# RequiredAssemblies = @()
5858

5959
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
ScriptsToProcess = @("ComparerBuilder.ps1")
60+
ScriptsToProcess = @("Private\ComparerBuilder.ps1")
6161

6262
# Type files (.ps1xml) to be loaded when importing this module
6363
# TypesToProcess = @()
@@ -74,7 +74,6 @@ FunctionsToExport = @(
7474
"Assert-Any",
7575
"Find-IndexOf",
7676
"Find-LastIndexOf",
77-
"New-EqualityComparer",
7877
"New-HashSet",
7978
"New-List",
8079
"Remove-All",
@@ -114,7 +113,7 @@ PrivateData = @{
114113
# Tags applied to this module. These help with module discovery in online galleries.
115114
Tags = @('List', "Array", "Modify", "Remove", "Condition", "Where", "Any", "All", "Find",
116115
"Assert", "Test", "bool", "Predicate", "Collection", "index", "count", "Last", "Enumerable",
117-
"Linq")
116+
"Linq", 'HashSet', 'equality', 'compare', 'set')
118117

119118
# A URL to the license for this module.
120119
LicenseUri = 'https://raw.githubusercontent.com/Yevrag35/PowerShell-ListFunctions/master/LICENSE'
@@ -126,7 +125,7 @@ PrivateData = @{
126125
# IconUri = ''
127126

128127
# ReleaseNotes of this module
129-
ReleaseNotes = 'Publishing 1.0'
128+
ReleaseNotes = 'Publishing 1.1; Adding new functions ''New-List'' & ''New-HashSet''.'
130129

131130
} # End of PSData hashtable
132131

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace ListFunctions
4141
{
4242
if (this.HashCodeScript == null)
4343
{
44-
item.GetHashCode();
44+
return item.GetHashCode();
4545
}
4646
4747
foreach (PSObject pso in this.HashCodeScript.Invoke(item))
@@ -58,5 +58,15 @@ namespace ListFunctions
5858
}
5959
"@
6060

61-
Add-Type -TypeDefinition $code -Language CSharp -ReferencedAssemblies "System",
62-
"System.Collections", "System.Management.Automation", "System.Linq"
61+
$atArgs = @{
62+
TypeDefinition = $code
63+
Language = "CSharp"
64+
ReferencedAssemblies = @(
65+
"System",
66+
"System.Collections",
67+
"System.Management.Automation",
68+
"System.Linq"
69+
)
70+
}
71+
72+
Add-Type @atArgs

0 commit comments

Comments
 (0)