{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/brew/issues/1718","repository_url":"https://api.github.com/repos/Homebrew/brew","labels_url":"https://api.github.com/repos/Homebrew/brew/issues/1718/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/brew/issues/1718/comments","events_url":"https://api.github.com/repos/Homebrew/brew/issues/1718/events","html_url":"https://github.com/Homebrew/brew/issues/1718","id":197282486,"number":1718,"title":"`brew list` and `brew uninstall` drop `.rb` suffix from formula name","user":{"login":"jasonkarns","id":119972,"avatar_url":"https://avatars.githubusercontent.com/u/119972?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonkarns","html_url":"https://github.com/jasonkarns","followers_url":"https://api.github.com/users/jasonkarns/followers","following_url":"https://api.github.com/users/jasonkarns/following{/other_user}","gists_url":"https://api.github.com/users/jasonkarns/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonkarns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonkarns/subscriptions","organizations_url":"https://api.github.com/users/jasonkarns/orgs","repos_url":"https://api.github.com/users/jasonkarns/repos","events_url":"https://api.github.com/users/jasonkarns/events{/privacy}","received_events_url":"https://api.github.com/users/jasonkarns/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-22T22:47:23Z","updated_at":"2016-12-25T18:13:39Z","closed_at":null,"body":"I have a formula installed via brew-gem.\r\n\r\nbrew tab-completes the formula correctly, so it \"found\" on the filesystem as expected:\r\n\r\n```\r\n$ brew list gem-<TAB><TAB>\r\ngem-completion   gem-pygments.rb  gem-travis\r\n\r\n$ ls /usr/local/Cellar/gem-pygments.rb\r\n1.0.0/\r\n```\r\n\r\nHowever, both `brew list` and `brew uninstall` return an error, despite the formula name being tabl-completed by homebrew itself:\r\n\r\n```\r\n$ brew list gem-pygments.rb \r\nError: No such keg: /usr/local/Cellar/gem-pygments\r\n\r\n$ brew uninstall gem-pygments.rb \r\nError: No such keg: /usr/local/Cellar/gem-pygments\r\n```\r\n\r\nBased on the error, it appears that brew is truncating the `.rb` suffix from the formula name, despite being able to tab-complete the name correctly.\r\n\r\nSystem info:\r\n\r\n```\r\n$ brew doctor \r\nYour system is ready to brew.\r\n\r\n$ brew config\r\nHOMEBREW_VERSION: 1.1.5-33-g8f85eb64c4\r\nORIGIN: https://github.com/Homebrew/brew.git\r\nHEAD: 8f85eb64c4875fed514150dec755cb267a96df74\r\nLast commit: 2 days ago\r\nCore tap ORIGIN: https://github.com/Homebrew/homebrew-core\r\nCore tap HEAD: 4cfbf8867adc190fbb0f2d29fc0764725688f171\r\nCore tap last commit: 3 hours ago\r\nHOMEBREW_PREFIX: /usr/local\r\nHOMEBREW_REPOSITORY: /usr/local/Homebrew\r\nHOMEBREW_CELLAR: /usr/local/Cellar\r\nHOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com\r\nCPU: quad-core 64-bit broadwell\r\nHomebrew Ruby: 2.0.0-p648\r\nClang: 8.0 build 800\r\nGit: 2.11.0 => /usr/local/bin/git\r\nPerl: /usr/local/bin/perl => /usr/local/Cellar/perl/5.24.0_1/bin/perl\r\nPython: /usr/local/bin/python => /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python2.7\r\nRuby: /usr/local/var/rbenv/shims/ruby => /usr/local/var/rbenv/versions/2.1.5/bin/ruby\r\nJava: 1.8.0_77, 1.7.0_51\r\nmacOS: 10.12.2-x86_64\r\nXcode: 8.2.1\r\nCLT: 8.2.0.0.1.1480973914\r\nX11: 2.7.9 => /opt/X11\r\n```"},"comment":{"url":"https://api.github.com/repos/Homebrew/brew/issues/comments/269132358","html_url":"https://github.com/Homebrew/brew/issues/1718#issuecomment-269132358","issue_url":"https://api.github.com/repos/Homebrew/brew/issues/1718","id":269132358,"user":{"login":"jasonkarns","id":119972,"avatar_url":"https://avatars.githubusercontent.com/u/119972?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonkarns","html_url":"https://github.com/jasonkarns","followers_url":"https://api.github.com/users/jasonkarns/followers","following_url":"https://api.github.com/users/jasonkarns/following{/other_user}","gists_url":"https://api.github.com/users/jasonkarns/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonkarns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonkarns/subscriptions","organizations_url":"https://api.github.com/users/jasonkarns/orgs","repos_url":"https://api.github.com/users/jasonkarns/repos","events_url":"https://api.github.com/users/jasonkarns/events{/privacy}","received_events_url":"https://api.github.com/users/jasonkarns/received_events","type":"User","site_admin":false},"created_at":"2016-12-25T18:13:39Z","updated_at":"2016-12-25T18:13:39Z","body":"It's not really possible to be changed by `brew-gem`. The formula name that `brew-gem` creates is simply `brew-` + `{gem name}`. In this case, the actual rubygem name is `pygments.rb`. If `brew-gem` did magic to special-case any gem name with `.rb` ending, they would collide with a same-named gem lacking the suffix. (Substitute any lossy name conversion, like replacing `.rb` with `-rb`. The same collision is possible.)"}}
{"actor":{"display_login":"jasonkarns"}}