{"action":"created","issue":{"url":"https://api.github.com/repos/bhilburn/powerlevel9k/issues/119","labels_url":"https://api.github.com/repos/bhilburn/powerlevel9k/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/bhilburn/powerlevel9k/issues/119/comments","events_url":"https://api.github.com/repos/bhilburn/powerlevel9k/issues/119/events","html_url":"https://github.com/bhilburn/powerlevel9k/pull/119","id":111973490,"number":119,"title":"Improve ruby version","user":{"login":"dritter","id":1544760,"avatar_url":"https://avatars.githubusercontent.com/u/1544760?v=3","gravatar_id":"","url":"https://api.github.com/users/dritter","html_url":"https://github.com/dritter","followers_url":"https://api.github.com/users/dritter/followers","following_url":"https://api.github.com/users/dritter/following{/other_user}","gists_url":"https://api.github.com/users/dritter/gists{/gist_id}","starred_url":"https://api.github.com/users/dritter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dritter/subscriptions","organizations_url":"https://api.github.com/users/dritter/orgs","repos_url":"https://api.github.com/users/dritter/repos","events_url":"https://api.github.com/users/dritter/events{/privacy}","received_events_url":"https://api.github.com/users/dritter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-17T17:02:14Z","updated_at":"2015-10-27T00:00:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bhilburn/powerlevel9k/pulls/119","html_url":"https://github.com/bhilburn/powerlevel9k/pull/119","diff_url":"https://github.com/bhilburn/powerlevel9k/pull/119.diff","patch_url":"https://github.com/bhilburn/powerlevel9k/pull/119.patch"},"body":"Now the ruby_version segment tries to get the version by asking rvm, rbenv, chruby and has an option to be displayed always."},"comment":{"url":"https://api.github.com/repos/bhilburn/powerlevel9k/issues/comments/151318109","html_url":"https://github.com/bhilburn/powerlevel9k/pull/119#issuecomment-151318109","issue_url":"https://api.github.com/repos/bhilburn/powerlevel9k/issues/119","id":151318109,"user":{"login":"dritter","id":1544760,"avatar_url":"https://avatars.githubusercontent.com/u/1544760?v=3","gravatar_id":"","url":"https://api.github.com/users/dritter","html_url":"https://github.com/dritter","followers_url":"https://api.github.com/users/dritter/followers","following_url":"https://api.github.com/users/dritter/following{/other_user}","gists_url":"https://api.github.com/users/dritter/gists{/gist_id}","starred_url":"https://api.github.com/users/dritter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dritter/subscriptions","organizations_url":"https://api.github.com/users/dritter/orgs","repos_url":"https://api.github.com/users/dritter/repos","events_url":"https://api.github.com/users/dritter/events{/privacy}","received_events_url":"https://api.github.com/users/dritter/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T00:00:30Z","updated_at":"2015-10-27T00:00:30Z","body":"@natemccurdy @alexlafroscia Thanks for your feedback.\r\n\r\nI reworked it again.\r\n\r\nTo your comments:\r\n\r\n1. Done. Just missed that.\r\n\r\n2. That is the problem of my approach here. I am trying to get a kind of a \"universal\" structure that could be applied to any conditional segment. But some tools have their own way of \"just show, if there is something\", like `rbenv`. So in that case, it would be a bit verbose, yes.\r\nIt might get a bit better, when I managed to use just the return value, instead of an string. In that case you could just write `POWERLEVEL9K_RUBY_VERSION_CONDITION=true`, which is still a bit verbose, but more intuitive. But I am still working on this one.\r\n\r\n3. I moved the whitespaces to the Icon-definition. So if there is no icon, no whitespaces will be printed.\r\n\r\n4. That was not intentional. Thanks for that finding. I changed it, so the loop exits as soon there is a version found. The `POWERLEVEL9K_RUBY_VERSION_CONDITION` is needed anyway, as we don't know if you are in a project context, if you use another checker than `rbenv`.\r\nE.g. in a scenario where we use `ruby` directly as our version checker, we don't know when to display the version number (only how)."}}