Skip to content

Instantly share code, notes, and snippets.

@yoggy
Created August 19, 2015 04:59
Show Gist options
  • Save yoggy/783237ea2a23ab3d0aac to your computer and use it in GitHub Desktop.
Save yoggy/783237ea2a23ab3d0aac to your computer and use it in GitHub Desktop.
Rubyのpitを使っていてたまに遭遇するエラーについてメモ

Rubyのpitを使っていてたまに遭遇するエラーについてメモ

Rubyのpitを使っていて、~/.pit/pit.yamlの中身が壊れていると

$ ruby ./test.rb
/var/lib/gems/1.9.1/gems/pit-0.0.7/lib/pit.rb:76:in `load': undefined method `[]' for false:FalseClass (NoMethodError)
      from /var/lib/gems/1.9.1/gems/pit-0.0.7/lib/pit.rb:47:in `get'
    .
    .
    .

…というエラーが出る。

~/.pit/pit.yamlのデフォルト値は次の通り。

$ cat ~/.pit/pit.yaml
---
profile: default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment