{"action":"created","issue":{"url":"https://api.github.com/repos/jlindsey/semantic/issues/12","labels_url":"https://api.github.com/repos/jlindsey/semantic/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/jlindsey/semantic/issues/12/comments","events_url":"https://api.github.com/repos/jlindsey/semantic/issues/12/events","html_url":"https://github.com/jlindsey/semantic/issues/12","id":69708138,"number":12,"title":"Bug in comparing pre-releases.","user":{"login":"sammarx","id":826178,"avatar_url":"https://avatars.githubusercontent.com/u/826178?v=3","gravatar_id":"","url":"https://api.github.com/users/sammarx","html_url":"https://github.com/sammarx","followers_url":"https://api.github.com/users/sammarx/followers","following_url":"https://api.github.com/users/sammarx/following{/other_user}","gists_url":"https://api.github.com/users/sammarx/gists{/gist_id}","starred_url":"https://api.github.com/users/sammarx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammarx/subscriptions","organizations_url":"https://api.github.com/users/sammarx/orgs","repos_url":"https://api.github.com/users/sammarx/repos","events_url":"https://api.github.com/users/sammarx/events{/privacy}","received_events_url":"https://api.github.com/users/sammarx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-21T00:05:44Z","updated_at":"2015-08-03T07:10:33Z","closed_at":null,"body":"From the semver website - \r\n\r\n\"Numeric identifiers always have lower precedence than non-numeric identifiers. A larger set of pre-release fields has a higher precedence than a smaller set, if all of the preceding identifiers are equal. Example: 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0.\"\r\n\r\nWith the semantic gem -\r\n\r\n[1] pry(main)> require 'semantic'\r\n=> true\r\n[2] pry(main)> require 'semantic/core_ext'\r\n=> true\r\n[3] pry(main)> '1.0.0-beta.2'.to_version < '1.0.0-beta.11'.to_version\r\n=> false\r\n\r\nIf you agree this is a bug, I'll take a shot at a PR."},"comment":{"url":"https://api.github.com/repos/jlindsey/semantic/issues/comments/127145253","html_url":"https://github.com/jlindsey/semantic/issues/12#issuecomment-127145253","issue_url":"https://api.github.com/repos/jlindsey/semantic/issues/12","id":127145253,"user":{"login":"perlun","id":630613,"avatar_url":"https://avatars.githubusercontent.com/u/630613?v=3","gravatar_id":"","url":"https://api.github.com/users/perlun","html_url":"https://github.com/perlun","followers_url":"https://api.github.com/users/perlun/followers","following_url":"https://api.github.com/users/perlun/following{/other_user}","gists_url":"https://api.github.com/users/perlun/gists{/gist_id}","starred_url":"https://api.github.com/users/perlun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perlun/subscriptions","organizations_url":"https://api.github.com/users/perlun/orgs","repos_url":"https://api.github.com/users/perlun/repos","events_url":"https://api.github.com/users/perlun/events{/privacy}","received_events_url":"https://api.github.com/users/perlun/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T07:10:33Z","updated_at":"2015-08-03T07:10:33Z","body":"@dhempy - agree. This is indeed a bug. Would you care to add a failing test case and submit a PR? If you're really eager, you could even try fixing it (but just adding a failing test case is a really good start)."}}