{"action":"created","comment":{"url":"https://api.github.com/repos/urbn/URBNValidator/pulls/comments/48304595","id":48304595,"diff_hunk":"@@ -94,3 +54,36 @@ public class URBNBlockRule: URBNBaseRule {\n     }\n }\n \n+\n+\n+/**\n+ URBNDateRule validates that a date is < > than today\n+ \n+*/\n+\n+public enum URBNDateComparision: Int {\n+    case Past\n+    case Future\n+    \n+    var comparisonResult: NSComparisonResult {\n+        switch(self) {\n+        case .Past: return NSComparisonResult.OrderedDescending\n+        case .Future: return NSComparisonResult.OrderedAscending\n+        }\n+    }\n+}\n+\n+public class URBNDateRule: URBNBaseRule {\n+    public var comparisonType = URBNDateComparision.Past\n+    \n+    public init(comparisonType: URBNDateComparision = URBNDateComparision.Past) {","path":"Pod/Classes/URBNValidationRules.swift","position":102,"original_position":102,"commit_id":"67fa44f31337f275b32a5a2a93526e57c333a590","original_commit_id":"67fa44f31337f275b32a5a2a93526e57c333a590","user":{"login":"ndis1","id":2287679,"avatar_url":"https://avatars.githubusercontent.com/u/2287679?v=3","gravatar_id":"","url":"https://api.github.com/users/ndis1","html_url":"https://github.com/ndis1","followers_url":"https://api.github.com/users/ndis1/followers","following_url":"https://api.github.com/users/ndis1/following{/other_user}","gists_url":"https://api.github.com/users/ndis1/gists{/gist_id}","starred_url":"https://api.github.com/users/ndis1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndis1/subscriptions","organizations_url":"https://api.github.com/users/ndis1/orgs","repos_url":"https://api.github.com/users/ndis1/repos","events_url":"https://api.github.com/users/ndis1/events{/privacy}","received_events_url":"https://api.github.com/users/ndis1/received_events","type":"User","site_admin":false},"body":"`URBNDateComparision` can be inferred ","created_at":"2015-12-22T22:16:25Z","updated_at":"2015-12-22T22:16:25Z","html_url":"https://github.com/urbn/URBNValidator/pull/5#discussion_r48304595","pull_request_url":"https://api.github.com/repos/urbn/URBNValidator/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/urbn/URBNValidator/pulls/comments/48304595"},"html":{"href":"https://github.com/urbn/URBNValidator/pull/5#discussion_r48304595"},"pull_request":{"href":"https://api.github.com/repos/urbn/URBNValidator/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/urbn/URBNValidator/pulls/5","id":54420376,"html_url":"https://github.com/urbn/URBNValidator/pull/5","diff_url":"https://github.com/urbn/URBNValidator/pull/5.diff","patch_url":"https://github.com/urbn/URBNValidator/pull/5.patch","issue_url":"https://api.github.com/repos/urbn/URBNValidator/issues/5","number":5,"state":"open","locked":false,"title":"Date tests","user":{"login":"flippinjoe21","id":489360,"avatar_url":"https://avatars.githubusercontent.com/u/489360?v=3","gravatar_id":"","url":"https://api.github.com/users/flippinjoe21","html_url":"https://github.com/flippinjoe21","followers_url":"https://api.github.com/users/flippinjoe21/followers","following_url":"https://api.github.com/users/flippinjoe21/following{/other_user}","gists_url":"https://api.github.com/users/flippinjoe21/gists{/gist_id}","starred_url":"https://api.github.com/users/flippinjoe21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flippinjoe21/subscriptions","organizations_url":"https://api.github.com/users/flippinjoe21/orgs","repos_url":"https://api.github.com/users/flippinjoe21/repos","events_url":"https://api.github.com/users/flippinjoe21/events{/privacy}","received_events_url":"https://api.github.com/users/flippinjoe21/received_events","type":"User","site_admin":false},"body":"- Updated test class names causing some weird test issues\r\n- Added URBNDateRule class\r\n- Added URBNDateRule tests","created_at":"2015-12-22T22:05:20Z","updated_at":"2015-12-22T22:16:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bbd5bad187de89096d872ce9e854252ede3a6e5a","assignee":{"login":"ndis1","id":2287679,"avatar_url":"https://avatars.githubusercontent.com/u/2287679?v=3","gravatar_id":"","url":"https://api.github.com/users/ndis1","html_url":"https://github.com/ndis1","followers_url":"https://api.github.com/users/ndis1/followers","following_url":"https://api.github.com/users/ndis1/following{/other_user}","gists_url":"https://api.github.com/users/ndis1/gists{/gist_id}","starred_url":"https://api.github.com/users/ndis1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndis1/subscriptions","organizations_url":"https://api.github.com/users/ndis1/orgs","repos_url":"https://api.github.com/users/ndis1/repos","events_url":"https://api.github.com/users/ndis1/events{/privacy}","received_events_url":"https://api.github.com/users/ndis1/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/urbn/URBNValidator/pulls/5/commits","review_comments_url":"https://api.github.com/repos/urbn/URBNValidator/pulls/5/comments","review_comment_url":"https://api.github.com/repos/urbn/URBNValidator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urbn/URBNValidator/issues/5/comments","statuses_url":"https://api.github.com/repos/urbn/URBNValidator/statuses/67fa44f31337f275b32a5a2a93526e57c333a590","head":{"label":"urbn:date-validation","ref":"date-validation","sha":"67fa44f31337f275b32a5a2a93526e57c333a590","user":{"login":"urbn","id":4368103,"avatar_url":"https://avatars.githubusercontent.com/u/4368103?v=3","gravatar_id":"","url":"https://api.github.com/users/urbn","html_url":"https://github.com/urbn","followers_url":"https://api.github.com/users/urbn/followers","following_url":"https://api.github.com/users/urbn/following{/other_user}","gists_url":"https://api.github.com/users/urbn/gists{/gist_id}","starred_url":"https://api.github.com/users/urbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbn/subscriptions","organizations_url":"https://api.github.com/users/urbn/orgs","repos_url":"https://api.github.com/users/urbn/repos","events_url":"https://api.github.com/users/urbn/events{/privacy}","received_events_url":"https://api.github.com/users/urbn/received_events","type":"Organization","site_admin":false},"repo":{"id":46370700,"name":"URBNValidator","full_name":"urbn/URBNValidator","owner":{"login":"urbn","id":4368103,"avatar_url":"https://avatars.githubusercontent.com/u/4368103?v=3","gravatar_id":"","url":"https://api.github.com/users/urbn","html_url":"https://github.com/urbn","followers_url":"https://api.github.com/users/urbn/followers","following_url":"https://api.github.com/users/urbn/following{/other_user}","gists_url":"https://api.github.com/users/urbn/gists{/gist_id}","starred_url":"https://api.github.com/users/urbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbn/subscriptions","organizations_url":"https://api.github.com/users/urbn/orgs","repos_url":"https://api.github.com/users/urbn/repos","events_url":"https://api.github.com/users/urbn/events{/privacy}","received_events_url":"https://api.github.com/users/urbn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urbn/URBNValidator","description":"","fork":false,"url":"https://api.github.com/repos/urbn/URBNValidator","forks_url":"https://api.github.com/repos/urbn/URBNValidator/forks","keys_url":"https://api.github.com/repos/urbn/URBNValidator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urbn/URBNValidator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urbn/URBNValidator/teams","hooks_url":"https://api.github.com/repos/urbn/URBNValidator/hooks","issue_events_url":"https://api.github.com/repos/urbn/URBNValidator/issues/events{/number}","events_url":"https://api.github.com/repos/urbn/URBNValidator/events","assignees_url":"https://api.github.com/repos/urbn/URBNValidator/assignees{/user}","branches_url":"https://api.github.com/repos/urbn/URBNValidator/branches{/branch}","tags_url":"https://api.github.com/repos/urbn/URBNValidator/tags","blobs_url":"https://api.github.com/repos/urbn/URBNValidator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urbn/URBNValidator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urbn/URBNValidator/git/refs{/sha}","trees_url":"https://api.github.com/repos/urbn/URBNValidator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urbn/URBNValidator/statuses/{sha}","languages_url":"https://api.github.com/repos/urbn/URBNValidator/languages","stargazers_url":"https://api.github.com/repos/urbn/URBNValidator/stargazers","contributors_url":"https://api.github.com/repos/urbn/URBNValidator/contributors","subscribers_url":"https://api.github.com/repos/urbn/URBNValidator/subscribers","subscription_url":"https://api.github.com/repos/urbn/URBNValidator/subscription","commits_url":"https://api.github.com/repos/urbn/URBNValidator/commits{/sha}","git_commits_url":"https://api.github.com/repos/urbn/URBNValidator/git/commits{/sha}","comments_url":"https://api.github.com/repos/urbn/URBNValidator/comments{/number}","issue_comment_url":"https://api.github.com/repos/urbn/URBNValidator/issues/comments{/number}","contents_url":"https://api.github.com/repos/urbn/URBNValidator/contents/{+path}","compare_url":"https://api.github.com/repos/urbn/URBNValidator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urbn/URBNValidator/merges","archive_url":"https://api.github.com/repos/urbn/URBNValidator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urbn/URBNValidator/downloads","issues_url":"https://api.github.com/repos/urbn/URBNValidator/issues{/number}","pulls_url":"https://api.github.com/repos/urbn/URBNValidator/pulls{/number}","milestones_url":"https://api.github.com/repos/urbn/URBNValidator/milestones{/number}","notifications_url":"https://api.github.com/repos/urbn/URBNValidator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urbn/URBNValidator/labels{/name}","releases_url":"https://api.github.com/repos/urbn/URBNValidator/releases{/id}","created_at":"2015-11-17T19:38:18Z","updated_at":"2015-11-19T16:52:41Z","pushed_at":"2015-12-22T22:05:20Z","git_url":"git://github.com/urbn/URBNValidator.git","ssh_url":"git@github.com:urbn/URBNValidator.git","clone_url":"https://github.com/urbn/URBNValidator.git","svn_url":"https://github.com/urbn/URBNValidator","homepage":null,"size":165,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"urbn:master","ref":"master","sha":"71e46f1f10b87e0ef3a39e60a7dc5564f3070b07","user":{"login":"urbn","id":4368103,"avatar_url":"https://avatars.githubusercontent.com/u/4368103?v=3","gravatar_id":"","url":"https://api.github.com/users/urbn","html_url":"https://github.com/urbn","followers_url":"https://api.github.com/users/urbn/followers","following_url":"https://api.github.com/users/urbn/following{/other_user}","gists_url":"https://api.github.com/users/urbn/gists{/gist_id}","starred_url":"https://api.github.com/users/urbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbn/subscriptions","organizations_url":"https://api.github.com/users/urbn/orgs","repos_url":"https://api.github.com/users/urbn/repos","events_url":"https://api.github.com/users/urbn/events{/privacy}","received_events_url":"https://api.github.com/users/urbn/received_events","type":"Organization","site_admin":false},"repo":{"id":46370700,"name":"URBNValidator","full_name":"urbn/URBNValidator","owner":{"login":"urbn","id":4368103,"avatar_url":"https://avatars.githubusercontent.com/u/4368103?v=3","gravatar_id":"","url":"https://api.github.com/users/urbn","html_url":"https://github.com/urbn","followers_url":"https://api.github.com/users/urbn/followers","following_url":"https://api.github.com/users/urbn/following{/other_user}","gists_url":"https://api.github.com/users/urbn/gists{/gist_id}","starred_url":"https://api.github.com/users/urbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbn/subscriptions","organizations_url":"https://api.github.com/users/urbn/orgs","repos_url":"https://api.github.com/users/urbn/repos","events_url":"https://api.github.com/users/urbn/events{/privacy}","received_events_url":"https://api.github.com/users/urbn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urbn/URBNValidator","description":"","fork":false,"url":"https://api.github.com/repos/urbn/URBNValidator","forks_url":"https://api.github.com/repos/urbn/URBNValidator/forks","keys_url":"https://api.github.com/repos/urbn/URBNValidator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urbn/URBNValidator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urbn/URBNValidator/teams","hooks_url":"https://api.github.com/repos/urbn/URBNValidator/hooks","issue_events_url":"https://api.github.com/repos/urbn/URBNValidator/issues/events{/number}","events_url":"https://api.github.com/repos/urbn/URBNValidator/events","assignees_url":"https://api.github.com/repos/urbn/URBNValidator/assignees{/user}","branches_url":"https://api.github.com/repos/urbn/URBNValidator/branches{/branch}","tags_url":"https://api.github.com/repos/urbn/URBNValidator/tags","blobs_url":"https://api.github.com/repos/urbn/URBNValidator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urbn/URBNValidator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urbn/URBNValidator/git/refs{/sha}","trees_url":"https://api.github.com/repos/urbn/URBNValidator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urbn/URBNValidator/statuses/{sha}","languages_url":"https://api.github.com/repos/urbn/URBNValidator/languages","stargazers_url":"https://api.github.com/repos/urbn/URBNValidator/stargazers","contributors_url":"https://api.github.com/repos/urbn/URBNValidator/contributors","subscribers_url":"https://api.github.com/repos/urbn/URBNValidator/subscribers","subscription_url":"https://api.github.com/repos/urbn/URBNValidator/subscription","commits_url":"https://api.github.com/repos/urbn/URBNValidator/commits{/sha}","git_commits_url":"https://api.github.com/repos/urbn/URBNValidator/git/commits{/sha}","comments_url":"https://api.github.com/repos/urbn/URBNValidator/comments{/number}","issue_comment_url":"https://api.github.com/repos/urbn/URBNValidator/issues/comments{/number}","contents_url":"https://api.github.com/repos/urbn/URBNValidator/contents/{+path}","compare_url":"https://api.github.com/repos/urbn/URBNValidator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urbn/URBNValidator/merges","archive_url":"https://api.github.com/repos/urbn/URBNValidator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urbn/URBNValidator/downloads","issues_url":"https://api.github.com/repos/urbn/URBNValidator/issues{/number}","pulls_url":"https://api.github.com/repos/urbn/URBNValidator/pulls{/number}","milestones_url":"https://api.github.com/repos/urbn/URBNValidator/milestones{/number}","notifications_url":"https://api.github.com/repos/urbn/URBNValidator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urbn/URBNValidator/labels{/name}","releases_url":"https://api.github.com/repos/urbn/URBNValidator/releases{/id}","created_at":"2015-11-17T19:38:18Z","updated_at":"2015-11-19T16:52:41Z","pushed_at":"2015-12-22T22:05:20Z","git_url":"git://github.com/urbn/URBNValidator.git","ssh_url":"git@github.com:urbn/URBNValidator.git","clone_url":"https://github.com/urbn/URBNValidator.git","svn_url":"https://github.com/urbn/URBNValidator","homepage":null,"size":165,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urbn/URBNValidator/pulls/5"},"html":{"href":"https://github.com/urbn/URBNValidator/pull/5"},"issue":{"href":"https://api.github.com/repos/urbn/URBNValidator/issues/5"},"comments":{"href":"https://api.github.com/repos/urbn/URBNValidator/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/urbn/URBNValidator/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/urbn/URBNValidator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urbn/URBNValidator/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/urbn/URBNValidator/statuses/67fa44f31337f275b32a5a2a93526e57c333a590"}}}}