aboutsummaryrefslogtreecommitdiffstats
path: root/core/boot
diff options
context:
space:
mode:
authorToshiaki Asai <toshi.alternative@gmail.com>2014-05-01 23:05:09 +0900
committerToshiaki Asai <toshi.alternative@gmail.com>2014-05-01 23:05:09 +0900
commitda5a7057a94149745387c0b542ed054c83928bf2 (patch)
treef3dc56b771451b2cbbe54eaadb3bb0be6a6cefcd /core/boot
parentce786a57a3ee54d8788a4191a0082ab123074648 (diff)
downloadmikutter-da5a7057a94149745387c0b542ed054c83928bf2.tar.gz
spec サブコマンドで生成されるspecファイルの名前を.mikutter.ymlに変更
Diffstat (limited to 'core/boot')
-rw-r--r--core/boot/shell/spec.rb5
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]