{"action":"closed","issue":{"url":"https://api.github.com/repos/postmodern/chruby/issues/315","labels_url":"https://api.github.com/repos/postmodern/chruby/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/postmodern/chruby/issues/315/comments","events_url":"https://api.github.com/repos/postmodern/chruby/issues/315/events","html_url":"https://github.com/postmodern/chruby/issues/315","id":55094292,"number":315,"title":"chruby: unknown Ruby: ruby-2.2.0","user":{"login":"dt1973","id":10206439,"avatar_url":"https://avatars.githubusercontent.com/u/10206439?v=3","gravatar_id":"","url":"https://api.github.com/users/dt1973","html_url":"https://github.com/dt1973","followers_url":"https://api.github.com/users/dt1973/followers","following_url":"https://api.github.com/users/dt1973/following{/other_user}","gists_url":"https://api.github.com/users/dt1973/gists{/gist_id}","starred_url":"https://api.github.com/users/dt1973/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dt1973/subscriptions","organizations_url":"https://api.github.com/users/dt1973/orgs","repos_url":"https://api.github.com/users/dt1973/repos","events_url":"https://api.github.com/users/dt1973/events{/privacy}","received_events_url":"https://api.github.com/users/dt1973/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-21T23:41:12Z","updated_at":"2015-03-14T01:33:59Z","closed_at":"2015-03-14T01:33:59Z","body":"Why won't `ruby-2.2.0` in `.ruby-version` work, whereas `chruby ruby-2.2.0` will?\r\n\r\n```\r\n% whoami\r\nwhoareyou\r\n% sudo su myapp\r\n% cd /home/www/myapp/\r\n% whoami\r\nchruby: unknown Ruby: ruby-2.2.0\r\nmyapp\r\n% cat .ruby-version\r\nruby-2.2.0\r\n% which ruby\r\n/usr/local/bin/ruby\r\n% chruby ruby-2.2.0\r\n% which ruby\r\n/home/www/myapp/.rubies/ruby-2.2.0/bin/ruby \r\n```\r\n\r\nFull transcript of deployment:\r\n\r\nhttps://gist.github.com/dt1973/7b99dfb75bd26e1e5ed7\r\n"}}