Skip to content

Commit f1c4e80

Browse files
committed
Merge pull request #41 from o-lim/fix-version
Fix version string not matching rockspec version
2 parents f64ac97 + 664cb2b commit f1c4e80

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bin/release

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ function abort {
1313
[ -z "${GITHUB_REPO}" ] && abort "Missing GITHUB_REPO env variable."
1414

1515
VERSION=$(grep "version" lua_cliargs-*.rockspec | cut -d' ' -f3 | sed 's/"//g')
16+
SRC_VERSION=$(grep "_VERSION" src/cliargs.lua | sed -e 's/.*=//' -e 's/.* //' -e 's/"//g')
17+
18+
[ "${VERSION}" != "${SRC_VERSION}" ] && abort "Verion in rockspec does not match source"
1619

1720
# Publish to GitHub
1821
JSON_PAYLOAD=$(

src/cliargs.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ end
606606
cli._COPYRIGHT = "Copyright (C) 2011-2014 Ahmad Amireh"
607607
cli._LICENSE = "The code is released under the MIT terms. Feel free to use it in both open and closed software as you please."
608608
cli._DESCRIPTION = "Commandline argument parser for Lua"
609-
cli._VERSION = "cliargs 2.2-0"
609+
cli._VERSION = "cliargs 2.3-3"
610610

611611
-- aliases
612612
cli.add_argument = cli.add_arg

0 commit comments

Comments
 (0)