Changed versioning scheme; 0.4.0-20140602 -> 20140602

This commit is contained in:
Yamashita Yuu 2014-06-04 13:39:50 +09:00
parent a01a08c551
commit 6efe6dafe7
3 changed files with 6 additions and 6 deletions

View file

@ -12,7 +12,7 @@
set -e set -e
[ -n "$PYENV_DEBUG" ] && set -x [ -n "$PYENV_DEBUG" ] && set -x
version="0.4.0-20140602" version="20140602"
if cd "$PYENV_ROOT" 2>/dev/null; then if cd "$PYENV_ROOT" 2>/dev/null; then
git_revision="$(git describe --tags HEAD 2>/dev/null || true)" git_revision="$(git describe --tags HEAD 2>/dev/null || true)"

View file

@ -16,7 +16,7 @@ git_commit() {
assert [ ! -e "$PYENV_ROOT" ] assert [ ! -e "$PYENV_ROOT" ]
run pyenv---version run pyenv---version
assert_success assert_success
[[ $output == "pyenv 0."* ]] [[ $output == "pyenv 20"* ]]
} }
@test "reads version from git repo" { @test "reads version from git repo" {
@ -24,14 +24,14 @@ git_commit() {
cd "$PYENV_ROOT" cd "$PYENV_ROOT"
git init git init
git_commit git_commit
git tag v0.4.1 git tag v20380119
git_commit git_commit
git_commit git_commit
cd "$PYENV_TEST_DIR" cd "$PYENV_TEST_DIR"
run pyenv---version run pyenv---version
assert_success assert_success
[[ $output == "pyenv 0.4.1-2-g"* ]] [[ $output == "pyenv 20380119-2-g"* ]]
} }
@test "prints default version if no tags in git repo" { @test "prints default version if no tags in git repo" {
@ -42,5 +42,5 @@ git_commit() {
cd "$PYENV_TEST_DIR" cd "$PYENV_TEST_DIR"
run pyenv---version run pyenv---version
[[ $output == "pyenv 0."* ]] [[ $output == "pyenv 20"* ]]
} }

View file

@ -5,7 +5,7 @@ load test_helper
@test "blank invocation" { @test "blank invocation" {
run pyenv run pyenv
assert_success assert_success
assert [ "${lines[0]}" == "pyenv 0.4.0-20140602" ] assert [ "${lines[0]}" == "pyenv 20140602" ]
} }
@test "invalid command" { @test "invalid command" {