{"action":"created","comment":{"url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/pulls/comments/24233925","id":24233925,"diff_hunk":"@@ -0,0 +1,103 @@\n+function validateUserForm() {\n+\n+\tjQuery.validator.addMethod(\"startsWithCapital\", function(value, element) {\n+\t\treturn /^[A-Z][a-zA-Z _0-9]+$/.test( value );\n+\t});\n+\n+\tjQuery.validator.addMethod(\"email_format\", function(value, element) {\n+\t\treturn /^\\w+@[a-zA-Z_]+?\\.[a-zA-Z]{2,6}$/.test( value );\n+\t});\n+\n+\tjQuery.validator.addMethod(\"password_format\", function(value, element) {\n+\t\treturn /(?=.*?[A-Z])(?=.*?[a-z])(?=.+[0-9])(?=.*?[!@$#&*_\\.,;:])/.test( value );\n+\t});\n+\n+\tjQuery.validator.addMethod(\"pswd_match\",function (value,element){\n+\t\treturn $(\"#signup_password\").val() == $('#signup_confirm_password').val();\n+\t});\n+\n+\t$('#form_user').validate({\n+\t\tdebug: true,\n+\t\trules: {\n+\t\t\t\"user[name]\": {\n+\t\t\t\trequired: true,\n+\t\t\t\tminlength: 2,\n+\t\t\t\tmaxlength: 32,\n+\t\t\t\tstartsWithCapital: true\n+\t\t\t},\n+\t\t\t\"user[email]\": {\n+\t\t\t\trequired: true,\n+\t\t\t\temail_format: true,\n+\t\t\t\tremote:\"/users/check_email\"\n+\t\t\t},\n+\t\t\t\"user[password]\": {\n+\t\t\t\trequired: true,\n+\t\t\t\tpassword_format: true,\n+\t\t\t\tminlength: 8,\n+\t\t\t\tmaxlength: 32\n+\t\t\t},\n+\t\t\t\"user[password_confirmation]\": {\n+\t\t\t\trequired: true,\n+\t\t\t\tpswd_match: true\n+\t\t\t}\n+\t\t},\n+\n+\n+\t\terrorElement: \"span\",\n+\t\terrorClass: \"help-block\",\n+\t\tmessages: {\n+\t\t\t\"user[name]\": {\n+\t\t\t\trequired: \"Name can't be blank.\",\n+\t\t\t\tmaxlength: \"Number of characters must be 2 to 32.\",\n+\t\t\t\tstartsWithCapital: \"Name Should start with Capital\"\n+\t\t\t},\n+\t\t\t\"user[email]\": {\n+\t\t\t\trequired: \"Email can't be blank.\",\n+\t\t\t\temail_format: \"Your email address must be in the format of name@domain.com.\",\n+\t\t\t\tremote: \"This email id already exists\"\n+\t\t\t},\n+\t\t\t\"user[password]\": {\n+\t\t\t\trequired: \"Password can't be blank.\",\n+\t\t\t\tpassword_format: \"should have atleast 1 Character, 1 Number and 1 Special Character from (!,@,$,&,*,_).\",\n+\t\t\t\tmaxlength: \"Number of characters must be 8 to 32.\"\n+\t\t\t},\n+\t\t\t\"user[password_confirmation]\": {\n+\t\t\t\trequired: \"Password confirmation can't be blank.\",","path":"app/assets/javascripts/validation.js","position":65,"original_position":65,"commit_id":"e3d5f9165346cc88e0f2f48d3cad6f56e319e752","original_commit_id":"e3d5f9165346cc88e0f2f48d3cad6f56e319e752","user":{"login":"RaviShankarArya","id":8413952,"avatar_url":"https://avatars.githubusercontent.com/u/8413952?v=3","gravatar_id":"","url":"https://api.github.com/users/RaviShankarArya","html_url":"https://github.com/RaviShankarArya","followers_url":"https://api.github.com/users/RaviShankarArya/followers","following_url":"https://api.github.com/users/RaviShankarArya/following{/other_user}","gists_url":"https://api.github.com/users/RaviShankarArya/gists{/gist_id}","starred_url":"https://api.github.com/users/RaviShankarArya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaviShankarArya/subscriptions","organizations_url":"https://api.github.com/users/RaviShankarArya/orgs","repos_url":"https://api.github.com/users/RaviShankarArya/repos","events_url":"https://api.github.com/users/RaviShankarArya/events{/privacy}","received_events_url":"https://api.github.com/users/RaviShankarArya/received_events","type":"User","site_admin":false},"body":"please use tab space 2","created_at":"2015-02-06T10:58:26Z","updated_at":"2015-02-06T10:58:26Z","html_url":"https://github.com/praveenmenon/Event-Scheduling/pull/5#discussion_r24233925","pull_request_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/praveenmenon/Event-Scheduling/pulls/comments/24233925"},"html":{"href":"https://github.com/praveenmenon/Event-Scheduling/pull/5#discussion_r24233925"},"pull_request":{"href":"https://api.github.com/repos/praveenmenon/Event-Scheduling/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/pulls/5","id":28788649,"html_url":"https://github.com/praveenmenon/Event-Scheduling/pull/5","diff_url":"https://github.com/praveenmenon/Event-Scheduling/pull/5.diff","patch_url":"https://github.com/praveenmenon/Event-Scheduling/pull/5.patch","issue_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/issues/5","number":5,"state":"open","locked":false,"title":"[development ES-1] As a user, I should be able to sign up to the application.","user":{"login":"praveenmenon","id":10082962,"avatar_url":"https://avatars.githubusercontent.com/u/10082962?v=3","gravatar_id":"","url":"https://api.github.com/users/praveenmenon","html_url":"https://github.com/praveenmenon","followers_url":"https://api.github.com/users/praveenmenon/followers","following_url":"https://api.github.com/users/praveenmenon/following{/other_user}","gists_url":"https://api.github.com/users/praveenmenon/gists{/gist_id}","starred_url":"https://api.github.com/users/praveenmenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveenmenon/subscriptions","organizations_url":"https://api.github.com/users/praveenmenon/orgs","repos_url":"https://api.github.com/users/praveenmenon/repos","events_url":"https://api.github.com/users/praveenmenon/events{/privacy}","received_events_url":"https://api.github.com/users/praveenmenon/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-06T06:51:51Z","updated_at":"2015-02-06T10:58:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c4baecb1808eee72428b9c457a7867882d01f8f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/pulls/5/commits","review_comments_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/pulls/5/comments","review_comment_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/pulls/comments/{number}","comments_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/issues/5/comments","statuses_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/statuses/e3d5f9165346cc88e0f2f48d3cad6f56e319e752","head":{"label":"praveenmenon:ES-1","ref":"ES-1","sha":"e3d5f9165346cc88e0f2f48d3cad6f56e319e752","user":{"login":"praveenmenon","id":10082962,"avatar_url":"https://avatars.githubusercontent.com/u/10082962?v=3","gravatar_id":"","url":"https://api.github.com/users/praveenmenon","html_url":"https://github.com/praveenmenon","followers_url":"https://api.github.com/users/praveenmenon/followers","following_url":"https://api.github.com/users/praveenmenon/following{/other_user}","gists_url":"https://api.github.com/users/praveenmenon/gists{/gist_id}","starred_url":"https://api.github.com/users/praveenmenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveenmenon/subscriptions","organizations_url":"https://api.github.com/users/praveenmenon/orgs","repos_url":"https://api.github.com/users/praveenmenon/repos","events_url":"https://api.github.com/users/praveenmenon/events{/privacy}","received_events_url":"https://api.github.com/users/praveenmenon/received_events","type":"User","site_admin":false},"repo":{"id":30172558,"name":"Event-Scheduling","full_name":"praveenmenon/Event-Scheduling","owner":{"login":"praveenmenon","id":10082962,"avatar_url":"https://avatars.githubusercontent.com/u/10082962?v=3","gravatar_id":"","url":"https://api.github.com/users/praveenmenon","html_url":"https://github.com/praveenmenon","followers_url":"https://api.github.com/users/praveenmenon/followers","following_url":"https://api.github.com/users/praveenmenon/following{/other_user}","gists_url":"https://api.github.com/users/praveenmenon/gists{/gist_id}","starred_url":"https://api.github.com/users/praveenmenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveenmenon/subscriptions","organizations_url":"https://api.github.com/users/praveenmenon/orgs","repos_url":"https://api.github.com/users/praveenmenon/repos","events_url":"https://api.github.com/users/praveenmenon/events{/privacy}","received_events_url":"https://api.github.com/users/praveenmenon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/praveenmenon/Event-Scheduling","description":"","fork":false,"url":"https://api.github.com/repos/praveenmenon/Event-Scheduling","forks_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/forks","keys_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/teams","hooks_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/hooks","issue_events_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/issues/events{/number}","events_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/events","assignees_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/assignees{/user}","branches_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/branches{/branch}","tags_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/tags","blobs_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/git/refs{/sha}","trees_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/statuses/{sha}","languages_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/languages","stargazers_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/stargazers","contributors_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/contributors","subscribers_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/subscribers","subscription_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/subscription","commits_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/commits{/sha}","git_commits_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/git/commits{/sha}","comments_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/comments{/number}","issue_comment_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/issues/comments/{number}","contents_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/contents/{+path}","compare_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/merges","archive_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/downloads","issues_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/issues{/number}","pulls_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/pulls{/number}","milestones_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/milestones{/number}","notifications_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/labels{/name}","releases_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/releases{/id}","created_at":"2015-02-02T05:28:20Z","updated_at":"2015-02-02T10:42:07Z","pushed_at":"2015-02-06T09:43:43Z","git_url":"git://github.com/praveenmenon/Event-Scheduling.git","ssh_url":"git@github.com:praveenmenon/Event-Scheduling.git","clone_url":"https://github.com/praveenmenon/Event-Scheduling.git","svn_url":"https://github.com/praveenmenon/Event-Scheduling","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"development"}},"base":{"label":"praveenmenon:development","ref":"development","sha":"2987a84aae575e5cd986e6b0cd8989abf903e42d","user":{"login":"praveenmenon","id":10082962,"avatar_url":"https://avatars.githubusercontent.com/u/10082962?v=3","gravatar_id":"","url":"https://api.github.com/users/praveenmenon","html_url":"https://github.com/praveenmenon","followers_url":"https://api.github.com/users/praveenmenon/followers","following_url":"https://api.github.com/users/praveenmenon/following{/other_user}","gists_url":"https://api.github.com/users/praveenmenon/gists{/gist_id}","starred_url":"https://api.github.com/users/praveenmenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveenmenon/subscriptions","organizations_url":"https://api.github.com/users/praveenmenon/orgs","repos_url":"https://api.github.com/users/praveenmenon/repos","events_url":"https://api.github.com/users/praveenmenon/events{/privacy}","received_events_url":"https://api.github.com/users/praveenmenon/received_events","type":"User","site_admin":false},"repo":{"id":30172558,"name":"Event-Scheduling","full_name":"praveenmenon/Event-Scheduling","owner":{"login":"praveenmenon","id":10082962,"avatar_url":"https://avatars.githubusercontent.com/u/10082962?v=3","gravatar_id":"","url":"https://api.github.com/users/praveenmenon","html_url":"https://github.com/praveenmenon","followers_url":"https://api.github.com/users/praveenmenon/followers","following_url":"https://api.github.com/users/praveenmenon/following{/other_user}","gists_url":"https://api.github.com/users/praveenmenon/gists{/gist_id}","starred_url":"https://api.github.com/users/praveenmenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveenmenon/subscriptions","organizations_url":"https://api.github.com/users/praveenmenon/orgs","repos_url":"https://api.github.com/users/praveenmenon/repos","events_url":"https://api.github.com/users/praveenmenon/events{/privacy}","received_events_url":"https://api.github.com/users/praveenmenon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/praveenmenon/Event-Scheduling","description":"","fork":false,"url":"https://api.github.com/repos/praveenmenon/Event-Scheduling","forks_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/forks","keys_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/teams","hooks_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/hooks","issue_events_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/issues/events{/number}","events_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/events","assignees_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/assignees{/user}","branches_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/branches{/branch}","tags_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/tags","blobs_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/git/refs{/sha}","trees_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/statuses/{sha}","languages_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/languages","stargazers_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/stargazers","contributors_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/contributors","subscribers_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/subscribers","subscription_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/subscription","commits_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/commits{/sha}","git_commits_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/git/commits{/sha}","comments_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/comments{/number}","issue_comment_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/issues/comments/{number}","contents_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/contents/{+path}","compare_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/merges","archive_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/downloads","issues_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/issues{/number}","pulls_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/pulls{/number}","milestones_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/milestones{/number}","notifications_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/labels{/name}","releases_url":"https://api.github.com/repos/praveenmenon/Event-Scheduling/releases{/id}","created_at":"2015-02-02T05:28:20Z","updated_at":"2015-02-02T10:42:07Z","pushed_at":"2015-02-06T09:43:43Z","git_url":"git://github.com/praveenmenon/Event-Scheduling.git","ssh_url":"git@github.com:praveenmenon/Event-Scheduling.git","clone_url":"https://github.com/praveenmenon/Event-Scheduling.git","svn_url":"https://github.com/praveenmenon/Event-Scheduling","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/praveenmenon/Event-Scheduling/pulls/5"},"html":{"href":"https://github.com/praveenmenon/Event-Scheduling/pull/5"},"issue":{"href":"https://api.github.com/repos/praveenmenon/Event-Scheduling/issues/5"},"comments":{"href":"https://api.github.com/repos/praveenmenon/Event-Scheduling/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/praveenmenon/Event-Scheduling/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/praveenmenon/Event-Scheduling/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/praveenmenon/Event-Scheduling/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/praveenmenon/Event-Scheduling/statuses/e3d5f9165346cc88e0f2f48d3cad6f56e319e752"}}}}