{"action":"created","issue":{"url":"https://api.github.com/repos/jish/pre-commit/issues/201","labels_url":"https://api.github.com/repos/jish/pre-commit/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/jish/pre-commit/issues/201/comments","events_url":"https://api.github.com/repos/jish/pre-commit/issues/201/events","html_url":"https://github.com/jish/pre-commit/pull/201","id":58342400,"number":201,"title":"With RVM use _current_ ruby and gemset, not _default_","user":{"login":"eikes","id":219275,"avatar_url":"https://avatars.githubusercontent.com/u/219275?v=3","gravatar_id":"","url":"https://api.github.com/users/eikes","html_url":"https://github.com/eikes","followers_url":"https://api.github.com/users/eikes/followers","following_url":"https://api.github.com/users/eikes/following{/other_user}","gists_url":"https://api.github.com/users/eikes/gists{/gist_id}","starred_url":"https://api.github.com/users/eikes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eikes/subscriptions","organizations_url":"https://api.github.com/users/eikes/orgs","repos_url":"https://api.github.com/users/eikes/repos","events_url":"https://api.github.com/users/eikes/events{/privacy}","received_events_url":"https://api.github.com/users/eikes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-20T11:52:57Z","updated_at":"2015-02-20T11:57:45Z","closed_at":"2015-02-20T11:57:45Z","pull_request":{"url":"https://api.github.com/repos/jish/pre-commit/pulls/201","html_url":"https://github.com/jish/pre-commit/pull/201","diff_url":"https://github.com/jish/pre-commit/pull/201.diff","patch_url":"https://github.com/jish/pre-commit/pull/201.patch"},"body":"I was getting errors, when trying to use rubocop in pre-commit, because it couldn't be found. But I had installed it in the current gemset. The problem was, that pre-commit was not using the _current_ gemset, but the _default_. This commit fixes that."},"comment":{"url":"https://api.github.com/repos/jish/pre-commit/issues/comments/75227576","html_url":"https://github.com/jish/pre-commit/pull/201#issuecomment-75227576","issue_url":"https://api.github.com/repos/jish/pre-commit/issues/201","id":75227576,"user":{"login":"mpapis","id":48054,"avatar_url":"https://avatars.githubusercontent.com/u/48054?v=3","gravatar_id":"","url":"https://api.github.com/users/mpapis","html_url":"https://github.com/mpapis","followers_url":"https://api.github.com/users/mpapis/followers","following_url":"https://api.github.com/users/mpapis/following{/other_user}","gists_url":"https://api.github.com/users/mpapis/gists{/gist_id}","starred_url":"https://api.github.com/users/mpapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpapis/subscriptions","organizations_url":"https://api.github.com/users/mpapis/orgs","repos_url":"https://api.github.com/users/mpapis/repos","events_url":"https://api.github.com/users/mpapis/events{/privacy}","received_events_url":"https://api.github.com/users/mpapis/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T11:57:45Z","updated_at":"2015-02-20T11:57:45Z","body":"the `default` was used on purpose, if you prefer to use current take advantage of https://github.com/eikes/pre-commit/blob/patch-1/templates/hooks/automatic#L12 and set \r\n```bash\r\ngit config pre-commit.ruby \"rvm `rvm current` do ruby\"\r\n```\r\nor\r\n```bash\r\ngit config pre-commit.ruby \"rvm current do ruby\"\r\n```\r\nclosing as this would change the planned / expected behavior and you have options to change this with `git config`"}}