Pārlūkot izejas kodu

Import recent changes from rbenv 4d72eefffc

pull/360/head
Yamashita Yuu pirms 11 gadiem
vecāks
revīzija
f48a5b11d7
3 mainītis faili ar 3 papildinājumiem un 9 dzēšanām
  1. +2
    -1
      .travis.yml
  2. +0
    -3
      libexec/pyenv-version-name
  3. +1
    -5
      test/version-name.bats

+ 2
- 1
.travis.yml Parādīt failu

@ -1,4 +1,5 @@
install: git clone https://github.com/sstephenson/bats.git
sudo: false
install: git clone --depth 1 https://github.com/sstephenson/bats.git
script: make test
language: c
env:

+ 0
- 3
libexec/pyenv-version-name Parādīt failu

@ -25,9 +25,6 @@ OLDIFS="$IFS"
if version_exists "$version" || [ "$version" = "system" ]; then
versions=("${versions[@]}" "${version}")
elif version_exists "${version#python-}"; then
{ echo "warning: ignoring extraneous \`python-' prefix in version \`${version}'"
echo " (set by $(pyenv-version-origin))"
} >&2
versions=("${versions[@]}" "${version#python-}")
else
echo "pyenv: version \`$version' is not installed" >&2

+ 1
- 5
test/version-name.bats Parādīt failu

@ -57,9 +57,5 @@ setup() {
cat > ".python-version" <<<"python-2.7.6"
run pyenv-version-name
assert_success
assert_output <<OUT
warning: ignoring extraneous \`python-' prefix in version \`python-2.7.6'
(set by ${PWD}/.python-version)
2.7.6
OUT
assert_output "2.7.6"
}

Notiek ielāde…
Atcelt
Saglabāt