{"action":"created","issue":{"url":"https://api.github.com/repos/rubygems/rubygems/issues/1229","labels_url":"https://api.github.com/repos/rubygems/rubygems/issues/1229/labels{/name}","comments_url":"https://api.github.com/repos/rubygems/rubygems/issues/1229/comments","events_url":"https://api.github.com/repos/rubygems/rubygems/issues/1229/events","html_url":"https://github.com/rubygems/rubygems/issues/1229","id":69510326,"number":1229,"title":"`gem search --exact`?","user":{"login":"chancancode","id":55829,"avatar_url":"https://avatars.githubusercontent.com/u/55829?v=3","gravatar_id":"","url":"https://api.github.com/users/chancancode","html_url":"https://github.com/chancancode","followers_url":"https://api.github.com/users/chancancode/followers","following_url":"https://api.github.com/users/chancancode/following{/other_user}","gists_url":"https://api.github.com/users/chancancode/gists{/gist_id}","starred_url":"https://api.github.com/users/chancancode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chancancode/subscriptions","organizations_url":"https://api.github.com/users/chancancode/orgs","repos_url":"https://api.github.com/users/chancancode/repos","events_url":"https://api.github.com/users/chancancode/events{/privacy}","received_events_url":"https://api.github.com/users/chancancode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-20T05:27:47Z","updated_at":"2015-04-27T20:43:56Z","closed_at":null,"body":"I find myself going to rubygems.org a lot just to check the available versions for a given gem (to check if I am on the latest patch version, to find the last patch version of the previous minor release, etc), so I was wondering if I can do this from the command line.\r\n\r\nSeems like the command I need to run is `gem search -a [--prerelease] \\^rails\\$`. Would it make sense to add an option to treat the last argument as a string (i.e. exact matches) instead of a regexp? Perhaps `gem search -a --exact rails`?"},"comment":{"url":"https://api.github.com/repos/rubygems/rubygems/issues/comments/96814388","html_url":"https://github.com/rubygems/rubygems/issues/1229#issuecomment-96814388","issue_url":"https://api.github.com/repos/rubygems/rubygems/issues/1229","id":96814388,"user":{"login":"indirect","id":78,"avatar_url":"https://avatars.githubusercontent.com/u/78?v=3","gravatar_id":"","url":"https://api.github.com/users/indirect","html_url":"https://github.com/indirect","followers_url":"https://api.github.com/users/indirect/followers","following_url":"https://api.github.com/users/indirect/following{/other_user}","gists_url":"https://api.github.com/users/indirect/gists{/gist_id}","starred_url":"https://api.github.com/users/indirect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indirect/subscriptions","organizations_url":"https://api.github.com/users/indirect/orgs","repos_url":"https://api.github.com/users/indirect/repos","events_url":"https://api.github.com/users/indirect/events{/privacy}","received_events_url":"https://api.github.com/users/indirect/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T20:43:56Z","updated_at":"2015-04-27T20:43:56Z","body":"I usually use `gem list -r '^rails$'` (with maybe a `--pre`), which shows only versions of the Rails gem. It would be really nice to have `gem list` be exact, while `gem search` did substring matching."}}