Skip to content

Commit

Permalink
version 0.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Feb 19, 2021
1 parent 0a207d0 commit d13f3b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nimble.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.13.0"
version = "0.13.1"
author = "Dominik Picheta"
description = "Nim package manager."
license = "BSD"
Expand Down
12 changes: 11 additions & 1 deletion src/nimblepkg/common.nim
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,18 @@ when not defined(nimscript):

return (error, hint)

import strscans
from strutils import allCharsInSet

proc extractNimbleVersion(): string =
let x = staticRead("../../nimble.nimble")
var prefix = ""
assert scanf(x, "$*version$s=$s\"$+\"", prefix, result)
assert result.len >= 3
assert allCharsInSet(result, {'0'..'9', '.'})

const
nimbleVersion* = "0.13.0"
nimbleVersion* = extractNimbleVersion()

when not declared(initHashSet):
import sets
Expand Down

0 comments on commit d13f3b8

Please sign in to comment.