{"action":"created","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/4110","labels_url":"https://api.github.com/repos/bundler/bundler/issues/4110/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/4110/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/4110/events","html_url":"https://github.com/bundler/bundler/pull/4110","id":117202112,"number":4110,"title":"Fix bundle console IRB fallback","user":{"login":"felixbuenemann","id":909587,"avatar_url":"https://avatars.githubusercontent.com/u/909587?v=3","gravatar_id":"","url":"https://api.github.com/users/felixbuenemann","html_url":"https://github.com/felixbuenemann","followers_url":"https://api.github.com/users/felixbuenemann/followers","following_url":"https://api.github.com/users/felixbuenemann/following{/other_user}","gists_url":"https://api.github.com/users/felixbuenemann/gists{/gist_id}","starred_url":"https://api.github.com/users/felixbuenemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixbuenemann/subscriptions","organizations_url":"https://api.github.com/users/felixbuenemann/orgs","repos_url":"https://api.github.com/users/felixbuenemann/repos","events_url":"https://api.github.com/users/felixbuenemann/events{/privacy}","received_events_url":"https://api.github.com/users/felixbuenemann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-16T19:42:15Z","updated_at":"2015-11-21T17:40:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bundler/bundler/pulls/4110","html_url":"https://github.com/bundler/bundler/pull/4110","diff_url":"https://github.com/bundler/bundler/pull/4110.diff","patch_url":"https://github.com/bundler/bundler/pull/4110.patch"},"body":"The fallback to IRB for `bundle console` is currently broken, due to a missing `require 'irb'`:\r\n```bash\r\nbundle config console pry\r\nbundle console\r\nCouldn't load console pry\r\nCould not find constant IRB\r\n```\r\n\r\nThis fixes the fallback and also alters the error message to indicate the fallback to irb.\r\n\r\nWhile investigating the fix I noticed that the `bundle console` specs were broken and only worked because the expected strings were both contained in the error message.\r\n\r\nIn order to test an alternate console and the fallback behavior, I added a fake pry gem that implements the minimum required api. I also replaced `__callee__` with `__method__` for ruby 1.8.7 compatibility."},"comment":{"url":"https://api.github.com/repos/bundler/bundler/issues/comments/158664268","html_url":"https://github.com/bundler/bundler/pull/4110#issuecomment-158664268","issue_url":"https://api.github.com/repos/bundler/bundler/issues/4110","id":158664268,"user":{"login":"homu","id":10212162,"avatar_url":"https://avatars.githubusercontent.com/u/10212162?v=3","gravatar_id":"","url":"https://api.github.com/users/homu","html_url":"https://github.com/homu","followers_url":"https://api.github.com/users/homu/followers","following_url":"https://api.github.com/users/homu/following{/other_user}","gists_url":"https://api.github.com/users/homu/gists{/gist_id}","starred_url":"https://api.github.com/users/homu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homu/subscriptions","organizations_url":"https://api.github.com/users/homu/orgs","repos_url":"https://api.github.com/users/homu/repos","events_url":"https://api.github.com/users/homu/events{/privacy}","received_events_url":"https://api.github.com/users/homu/received_events","type":"User","site_admin":false},"created_at":"2015-11-21T17:40:07Z","updated_at":"2015-11-21T17:40:07Z","body":":pushpin: Commit fd642e9 has been approved by `segiddins`\n\n<!-- @homu r=segiddins fd642e981c1e7a90c8e5373af15933fdddcd8d8e -->"}}