{"action":"created","comment":{"url":"https://api.github.com/repos/composer/semver/pulls/comments/36171975","id":36171975,"diff_hunk":"@@ -0,0 +1,118 @@\n+<?php\n+\n+/*\n+ * This file is part of composer/semver.\n+ *\n+ * (c) Composer <https://github.com/composer>\n+ *\n+ * For the full copyright and license information, please view\n+ * the LICENSE file that was distributed with this source code.\n+ */\n+\n+namespace Composer\\Semver;\n+\n+use Composer\\Semver\\Constraint\\VersionConstraint;\n+\n+class Semver\n+{\n+    /** @var VersionParser */\n+    private static $versionParser;\n+\n+    /**\n+     * @see Composer\\Semver\\Comparator::greaterThan\n+     *\n+     * @param string $version1\n+     * @param string $version2\n+     *\n+     * @return bool\n+     */\n+    public static function gt($version1, $version2)\n+    {\n+        return Comparator::greaterThan($version1, $version2);\n+    }\n+\n+    /**\n+     * @see Composer\\Semver\\Comparator::greaterThanOrEqualTo\n+     *\n+     * @param string $version1\n+     * @param string $version2\n+     *\n+     * @return bool\n+     */\n+    public static function gte($version1, $version2)\n+    {\n+        return Comparator::greaterThanOrEqualTo($version1, $version2);\n+    }\n+\n+    /**\n+     * @see Composer\\Semver\\Comparator::lessThan\n+     *\n+     * @param string $version1\n+     * @param string $version2\n+     *\n+     * @return bool\n+     */\n+    public static function lt($version1, $version2)\n+    {\n+        return Comparator::lessThan($version1, $version2);\n+    }\n+\n+    /**\n+     * @see Composer\\Semver\\Comparator::lessThanOrEqualTo\n+     *\n+     * @param string $version1\n+     * @param string $version2\n+     *\n+     * @return bool\n+     */\n+    public static function lte($version1, $version2)\n+    {\n+        return Comparator::lessThanOrEqualTo($version1, $version2);\n+    }\n+\n+    /**\n+     * @see Composer\\Semver\\Comparator::equalTo\n+     *\n+     * @param string $version1\n+     * @param string $version2\n+     *\n+     * @return bool\n+     */\n+    public static function eq($version1, $version2)\n+    {\n+        return Comparator::equalTo($version1, $version2);\n+    }\n+\n+    /**\n+     * @see Composer\\Semver\\Comparator::notEqualTo\n+     *\n+     * @param string $version1\n+     * @param string $version2\n+     *\n+     * @return bool\n+     */\n+    public static function neq($version1, $version2)\n+    {\n+        return Comparator::notEqualTo($version1, $version2);\n+    }","path":"src/Semver.php","position":97,"original_position":97,"commit_id":"4d998dccace91215cc20f6e73dcb64ed55007ad3","original_commit_id":"4d998dccace91215cc20f6e73dcb64ed55007ad3","user":{"login":"alcohol","id":21414,"avatar_url":"https://avatars.githubusercontent.com/u/21414?v=3","gravatar_id":"","url":"https://api.github.com/users/alcohol","html_url":"https://github.com/alcohol","followers_url":"https://api.github.com/users/alcohol/followers","following_url":"https://api.github.com/users/alcohol/following{/other_user}","gists_url":"https://api.github.com/users/alcohol/gists{/gist_id}","starred_url":"https://api.github.com/users/alcohol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcohol/subscriptions","organizations_url":"https://api.github.com/users/alcohol/orgs","repos_url":"https://api.github.com/users/alcohol/repos","events_url":"https://api.github.com/users/alcohol/events{/privacy}","received_events_url":"https://api.github.com/users/alcohol/received_events","type":"User","site_admin":false},"body":"Yeah hence I added the ? in the task list to this item. Not sure if we want to offer it or not. It's not harmful though, and it would allow for shorter to write complicated constructs. I'd mostly consider it just a nice-to-have, but I will remove it if majority is against it :-)","created_at":"2015-08-04T09:42:36Z","updated_at":"2015-08-04T09:42:36Z","html_url":"https://github.com/composer/semver/pull/13#discussion_r36171975","pull_request_url":"https://api.github.com/repos/composer/semver/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/composer/semver/pulls/comments/36171975"},"html":{"href":"https://github.com/composer/semver/pull/13#discussion_r36171975"},"pull_request":{"href":"https://api.github.com/repos/composer/semver/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/composer/semver/pulls/13","id":41460680,"html_url":"https://github.com/composer/semver/pull/13","diff_url":"https://github.com/composer/semver/pull/13.diff","patch_url":"https://github.com/composer/semver/pull/13.patch","issue_url":"https://api.github.com/repos/composer/semver/issues/13","number":13,"state":"open","locked":false,"title":"WIP - Refactoring","user":{"login":"alcohol","id":21414,"avatar_url":"https://avatars.githubusercontent.com/u/21414?v=3","gravatar_id":"","url":"https://api.github.com/users/alcohol","html_url":"https://github.com/alcohol","followers_url":"https://api.github.com/users/alcohol/followers","following_url":"https://api.github.com/users/alcohol/following{/other_user}","gists_url":"https://api.github.com/users/alcohol/gists{/gist_id}","starred_url":"https://api.github.com/users/alcohol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcohol/subscriptions","organizations_url":"https://api.github.com/users/alcohol/orgs","repos_url":"https://api.github.com/users/alcohol/repos","events_url":"https://api.github.com/users/alcohol/events{/privacy}","received_events_url":"https://api.github.com/users/alcohol/received_events","type":"User","site_admin":false},"body":"Aims to:\r\n\r\n* [ ] expand code coverage\r\n* [ ] clean up version parser\r\n* [ ] clean up constraint classes\r\n* [ ] add shorthand methods (aliases) for comparator methods (?)\r\n* [ ] add scrutinizer (?)\r\n\r\nFor the `Semver::satisfies` test I looked at [npm/node-semver](/npm/node-semver/blob/master/test/index.js). I uncommented the ones we (currently?) do not support.","created_at":"2015-08-03T12:11:32Z","updated_at":"2015-08-04T09:42:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"813425bba09e6154ad90a956fedaf08dc2b877a4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/composer/semver/pulls/13/commits","review_comments_url":"https://api.github.com/repos/composer/semver/pulls/13/comments","review_comment_url":"https://api.github.com/repos/composer/semver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/composer/semver/issues/13/comments","statuses_url":"https://api.github.com/repos/composer/semver/statuses/4d998dccace91215cc20f6e73dcb64ed55007ad3","head":{"label":"alcohol:refactoring","ref":"refactoring","sha":"4d998dccace91215cc20f6e73dcb64ed55007ad3","user":{"login":"alcohol","id":21414,"avatar_url":"https://avatars.githubusercontent.com/u/21414?v=3","gravatar_id":"","url":"https://api.github.com/users/alcohol","html_url":"https://github.com/alcohol","followers_url":"https://api.github.com/users/alcohol/followers","following_url":"https://api.github.com/users/alcohol/following{/other_user}","gists_url":"https://api.github.com/users/alcohol/gists{/gist_id}","starred_url":"https://api.github.com/users/alcohol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcohol/subscriptions","organizations_url":"https://api.github.com/users/alcohol/orgs","repos_url":"https://api.github.com/users/alcohol/repos","events_url":"https://api.github.com/users/alcohol/events{/privacy}","received_events_url":"https://api.github.com/users/alcohol/received_events","type":"User","site_admin":false},"repo":{"id":39150276,"name":"semver","full_name":"alcohol/semver","owner":{"login":"alcohol","id":21414,"avatar_url":"https://avatars.githubusercontent.com/u/21414?v=3","gravatar_id":"","url":"https://api.github.com/users/alcohol","html_url":"https://github.com/alcohol","followers_url":"https://api.github.com/users/alcohol/followers","following_url":"https://api.github.com/users/alcohol/following{/other_user}","gists_url":"https://api.github.com/users/alcohol/gists{/gist_id}","starred_url":"https://api.github.com/users/alcohol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcohol/subscriptions","organizations_url":"https://api.github.com/users/alcohol/orgs","repos_url":"https://api.github.com/users/alcohol/repos","events_url":"https://api.github.com/users/alcohol/events{/privacy}","received_events_url":"https://api.github.com/users/alcohol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alcohol/semver","description":"Semantic versioning utilities with the addition of version constraints parsing and checking.","fork":true,"url":"https://api.github.com/repos/alcohol/semver","forks_url":"https://api.github.com/repos/alcohol/semver/forks","keys_url":"https://api.github.com/repos/alcohol/semver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alcohol/semver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alcohol/semver/teams","hooks_url":"https://api.github.com/repos/alcohol/semver/hooks","issue_events_url":"https://api.github.com/repos/alcohol/semver/issues/events{/number}","events_url":"https://api.github.com/repos/alcohol/semver/events","assignees_url":"https://api.github.com/repos/alcohol/semver/assignees{/user}","branches_url":"https://api.github.com/repos/alcohol/semver/branches{/branch}","tags_url":"https://api.github.com/repos/alcohol/semver/tags","blobs_url":"https://api.github.com/repos/alcohol/semver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alcohol/semver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alcohol/semver/git/refs{/sha}","trees_url":"https://api.github.com/repos/alcohol/semver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alcohol/semver/statuses/{sha}","languages_url":"https://api.github.com/repos/alcohol/semver/languages","stargazers_url":"https://api.github.com/repos/alcohol/semver/stargazers","contributors_url":"https://api.github.com/repos/alcohol/semver/contributors","subscribers_url":"https://api.github.com/repos/alcohol/semver/subscribers","subscription_url":"https://api.github.com/repos/alcohol/semver/subscription","commits_url":"https://api.github.com/repos/alcohol/semver/commits{/sha}","git_commits_url":"https://api.github.com/repos/alcohol/semver/git/commits{/sha}","comments_url":"https://api.github.com/repos/alcohol/semver/comments{/number}","issue_comment_url":"https://api.github.com/repos/alcohol/semver/issues/comments{/number}","contents_url":"https://api.github.com/repos/alcohol/semver/contents/{+path}","compare_url":"https://api.github.com/repos/alcohol/semver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alcohol/semver/merges","archive_url":"https://api.github.com/repos/alcohol/semver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alcohol/semver/downloads","issues_url":"https://api.github.com/repos/alcohol/semver/issues{/number}","pulls_url":"https://api.github.com/repos/alcohol/semver/pulls{/number}","milestones_url":"https://api.github.com/repos/alcohol/semver/milestones{/number}","notifications_url":"https://api.github.com/repos/alcohol/semver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alcohol/semver/labels{/name}","releases_url":"https://api.github.com/repos/alcohol/semver/releases{/id}","created_at":"2015-07-15T17:17:47Z","updated_at":"2015-07-15T17:17:48Z","pushed_at":"2015-08-03T14:21:27Z","git_url":"git://github.com/alcohol/semver.git","ssh_url":"git@github.com:alcohol/semver.git","clone_url":"https://github.com/alcohol/semver.git","svn_url":"https://github.com/alcohol/semver","homepage":null,"size":242,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"composer:master","ref":"master","sha":"f6469477aa1952f2fcbd0ab52fcc7662f1dd0173","user":{"login":"composer","id":837015,"avatar_url":"https://avatars.githubusercontent.com/u/837015?v=3","gravatar_id":"","url":"https://api.github.com/users/composer","html_url":"https://github.com/composer","followers_url":"https://api.github.com/users/composer/followers","following_url":"https://api.github.com/users/composer/following{/other_user}","gists_url":"https://api.github.com/users/composer/gists{/gist_id}","starred_url":"https://api.github.com/users/composer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/composer/subscriptions","organizations_url":"https://api.github.com/users/composer/orgs","repos_url":"https://api.github.com/users/composer/repos","events_url":"https://api.github.com/users/composer/events{/privacy}","received_events_url":"https://api.github.com/users/composer/received_events","type":"Organization","site_admin":false},"repo":{"id":39149689,"name":"semver","full_name":"composer/semver","owner":{"login":"composer","id":837015,"avatar_url":"https://avatars.githubusercontent.com/u/837015?v=3","gravatar_id":"","url":"https://api.github.com/users/composer","html_url":"https://github.com/composer","followers_url":"https://api.github.com/users/composer/followers","following_url":"https://api.github.com/users/composer/following{/other_user}","gists_url":"https://api.github.com/users/composer/gists{/gist_id}","starred_url":"https://api.github.com/users/composer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/composer/subscriptions","organizations_url":"https://api.github.com/users/composer/orgs","repos_url":"https://api.github.com/users/composer/repos","events_url":"https://api.github.com/users/composer/events{/privacy}","received_events_url":"https://api.github.com/users/composer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/composer/semver","description":"Semantic versioning utilities with the addition of version constraints parsing and checking.","fork":false,"url":"https://api.github.com/repos/composer/semver","forks_url":"https://api.github.com/repos/composer/semver/forks","keys_url":"https://api.github.com/repos/composer/semver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/composer/semver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/composer/semver/teams","hooks_url":"https://api.github.com/repos/composer/semver/hooks","issue_events_url":"https://api.github.com/repos/composer/semver/issues/events{/number}","events_url":"https://api.github.com/repos/composer/semver/events","assignees_url":"https://api.github.com/repos/composer/semver/assignees{/user}","branches_url":"https://api.github.com/repos/composer/semver/branches{/branch}","tags_url":"https://api.github.com/repos/composer/semver/tags","blobs_url":"https://api.github.com/repos/composer/semver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/composer/semver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/composer/semver/git/refs{/sha}","trees_url":"https://api.github.com/repos/composer/semver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/composer/semver/statuses/{sha}","languages_url":"https://api.github.com/repos/composer/semver/languages","stargazers_url":"https://api.github.com/repos/composer/semver/stargazers","contributors_url":"https://api.github.com/repos/composer/semver/contributors","subscribers_url":"https://api.github.com/repos/composer/semver/subscribers","subscription_url":"https://api.github.com/repos/composer/semver/subscription","commits_url":"https://api.github.com/repos/composer/semver/commits{/sha}","git_commits_url":"https://api.github.com/repos/composer/semver/git/commits{/sha}","comments_url":"https://api.github.com/repos/composer/semver/comments{/number}","issue_comment_url":"https://api.github.com/repos/composer/semver/issues/comments{/number}","contents_url":"https://api.github.com/repos/composer/semver/contents/{+path}","compare_url":"https://api.github.com/repos/composer/semver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/composer/semver/merges","archive_url":"https://api.github.com/repos/composer/semver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/composer/semver/downloads","issues_url":"https://api.github.com/repos/composer/semver/issues{/number}","pulls_url":"https://api.github.com/repos/composer/semver/pulls{/number}","milestones_url":"https://api.github.com/repos/composer/semver/milestones{/number}","notifications_url":"https://api.github.com/repos/composer/semver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/composer/semver/labels{/name}","releases_url":"https://api.github.com/repos/composer/semver/releases{/id}","created_at":"2015-07-15T17:05:25Z","updated_at":"2015-08-02T22:05:28Z","pushed_at":"2015-08-03T14:21:27Z","git_url":"git://github.com/composer/semver.git","ssh_url":"git@github.com:composer/semver.git","clone_url":"https://github.com/composer/semver.git","svn_url":"https://github.com/composer/semver","homepage":null,"size":325,"stargazers_count":66,"watchers_count":66,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":66,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/composer/semver/pulls/13"},"html":{"href":"https://github.com/composer/semver/pull/13"},"issue":{"href":"https://api.github.com/repos/composer/semver/issues/13"},"comments":{"href":"https://api.github.com/repos/composer/semver/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/composer/semver/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/composer/semver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/composer/semver/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/composer/semver/statuses/4d998dccace91215cc20f6e73dcb64ed55007ad3"}}}}