このサイトはJavaScriptを使用しています
ホーム
エクスプローラー
ヘルプ
サインイン
isprogram
/
pyenv
ミラー元
https://github.com/pyenv/pyenv.git
ウォッチ
1
スター
0
フォーク
0
コード
課題
0
プロジェクト
0
リリース
181
Wiki
アクティビティ
ソースを参照
Merge pull request
#1069
from viclim/fix-issue-1065
Ignore empty `.ruby-version` files
pull/1133/head
Mislav Marohnić
6年前
committed by
GitHub
親
b943955dbf
9daf81f16e
コミット
c8ba27fd07
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID:
4AEE18F83AFDEB23
3個のファイルの変更
、
3行の追加
、
3行の削除
分割表示
差分オプション
統計情報を表示
Patchファイルをダウンロード
Diffファイルをダウンロード
+1
-1
libexec/rbenv-version-file
+1
-1
test/version-file.bats
+1
-1
test/version-origin.bats
+ 1
- 1
libexec/rbenv-version-file
ファイルの表示
@ -9,7 +9,7 @@ target_dir="$1"
find_local_version_file() {
local root="$1"
while ! [[ "$root" =~ ^//[^/]*$ ]]; do
if [ -
f
"${root}/.ruby-version" ]; then
if [ -
s
"${root}/.ruby-version" ]; then
echo "${root}/.ruby-version"
return 0
fi
+ 1
- 1
test/version-file.bats
ファイルの表示
@ -9,7 +9,7 @@ setup() {
create_file() {
mkdir -p "$(dirname "$1")"
touch
"$1"
echo "system" >
"$1"
}
@test "detects global 'version' file" {
+ 1
- 1
test/version-origin.bats
ファイルの表示
@ -26,7 +26,7 @@ setup() {
}
@test "detects local file" {
touch
.ruby-version
echo "system" >
.ruby-version
run rbenv-version-origin
assert_success "${PWD}/.ruby-version"
}
書き込み
プレビュー
読み込み中…
キャンセル
保存