# Package version = "1.2.2" author = "Jack Tang" description = "Least recently used (LRU) cache" license = "MIT" srcDir = "src" # Dependencies requires "nim >= 1.0.0" proc updateNimbleVersion(ver: string) = let fname = "lrucache.nimble" let txt = readFile(fname) var lines = txt.split("\n") for i, line in lines: if line.startsWith("version"): let s = line.find('"') let e = line.find('"', s+1) lines[i] = line[0..s] & ver & line[e..