Sha256: 7484902bfa009311f0d25fb86f80cb306b47f530a0b82131f6ae1289b75c3497
Contents?: true
Size: 445 Bytes
Versions: 23
Compression:
Stored size: 445 Bytes
Contents
function FindInstalledGem { param($gemName, $gemVersion) $nameVer = $(Invoke-Expression "gem list --local" | Select-String "^$gemName").Line if ($nameVer.StartsWith($gemName)) { if ($gemVersion) { $versions = ($nameVer -split { $_ -eq "(" -or $_ -eq ")"})[1].split(", ") if ($versions.Contains($gemVersion)) { $true } else { $false } } else { $true } } else { $false } }
Version data entries
23 entries across 23 versions & 1 rubygems