diff options
author | Toshiaki Asai <toshi.alternative@gmail.com> | 2014-05-01 23:05:09 +0900 |
---|---|---|
committer | Toshiaki Asai <toshi.alternative@gmail.com> | 2014-05-01 23:05:09 +0900 |
commit | da5a7057a94149745387c0b542ed054c83928bf2 (patch) | |
tree | f3dc56b771451b2cbbe54eaadb3bb0be6a6cefcd /core/boot | |
parent | ce786a57a3ee54d8788a4191a0082ab123074648 (diff) | |
download | mikutter-da5a7057a94149745387c0b542ed054c83928bf2.tar.gz |
spec サブコマンドで生成されるspecファイルの名前を.mikutter.ymlに変更
Diffstat (limited to 'core/boot')
-rw-r--r-- | core/boot/shell/spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/boot/shell/spec.rb b/core/boot/shell/spec.rb index 2c7e9943..ac4255db 100644 --- a/core/boot/shell/spec.rb +++ b/core/boot/shell/spec.rb @@ -73,9 +73,12 @@ class Depend < Ripper::Filter end def spec_generate(dir) - specfile = File.join(dir, "spec") + specfile = File.join(dir, ".mikutter.yml") + legacy_specfile = File.join(dir, "spec") spec = if FileTest.exist?(specfile) YAML.load_file(specfile) + elsif FileTest.exist?(legacy_specfile) + YAML.load_file(legacy_specfile) else user = UserConfig[:verify_credentials] || {} idname = user[:idname] |