ScoopInstaller_Main/pester.json
Roy Ivy III 97a621593c BOM cleanup
* remove BOM from all repo files that contain one
* changes all files to utf-8 (specifically, utf-8 *without* BOM)
* improves compliance with ".editorconfig"

.# Discussion

This is an example of the semi-invisible changes which can creep into patches
via various editors. Any such changes are *very* difficult to figure out from
a diff output and just add visual noise to commits. Hence, ".editorconfig" (added
in a previous commit) is used to minimize this kind of confusing patch noise.
2015-08-17 22:57:15 -05:00

33 lines
1.3 KiB
JSON

{
"version": "3.3.6",
"license": "https://raw.githubusercontent.com/pester/Pester/master/LICENSE",
"url": "https://github.com/pester/pester/archive/3.3.6.tar.gz",
"homepage": "https://github.com/pester/Pester",
"hash": "38a9ae3c829b02fe90fb8acbed564ffb883fb0175a6a00b501ac3663f03d6b9a",
"extract_dir": "pester-3.3.6",
"bin": "bin\\pester.bat",
"post_install": "
$import = \"try { `$null = gcm pester -ea stop; import-module `\"$dir\\pester.psm1`\" } catch { }\"
if($profile) {
'adding pester to powershell profile...'
if(!(test-path $profile)) {
'powershell profile doesn''t exist. creating...'
$profile_dir = split-path $profile
if(!(test-path $profile_dir)) { mkdir $profile_dir > $null }
'' > $profile
}
$text = get-content $profile
if (($text | sls 'pester') -eq $null) {
$new_profile = @($text) + $import
$new_profile > $profile
success 'pester added to powershell profile.'
}
} else { warn 'no powershell profile found. the pester module will not be imported each session.' }
'importing pester for current session...'
iex \"$import\"
"
}