{"action":"opened","number":530,"pull_request":{"url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/pulls/530","id":39750003,"html_url":"https://github.com/TeaWithStrangers/tws-on-rails/pull/530","diff_url":"https://github.com/TeaWithStrangers/tws-on-rails/pull/530.diff","patch_url":"https://github.com/TeaWithStrangers/tws-on-rails/pull/530.patch","issue_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/issues/530","number":530,"state":"open","locked":false,"title":"Refactor JS","user":{"login":"jermspeaks","id":7095290,"avatar_url":"https://avatars.githubusercontent.com/u/7095290?v=3","gravatar_id":"","url":"https://api.github.com/users/jermspeaks","html_url":"https://github.com/jermspeaks","followers_url":"https://api.github.com/users/jermspeaks/followers","following_url":"https://api.github.com/users/jermspeaks/following{/other_user}","gists_url":"https://api.github.com/users/jermspeaks/gists{/gist_id}","starred_url":"https://api.github.com/users/jermspeaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jermspeaks/subscriptions","organizations_url":"https://api.github.com/users/jermspeaks/orgs","repos_url":"https://api.github.com/users/jermspeaks/repos","events_url":"https://api.github.com/users/jermspeaks/events{/privacy}","received_events_url":"https://api.github.com/users/jermspeaks/received_events","type":"User","site_admin":false},"body":"- Reset `cities.js`\r\n- Leave `Gemlock.lock` alone\r\n- Sublime indentation to spaces\r\n\r\nPreviously:\r\n- Initialized variables on top for performance\r\n- Used function form for every file\r\n- Refactored massive functions into smaller, manageable functions (for readability and clarity)\r\n- Added comments to all functions\r\n- Note: not entirely tested. Couldn't figure out how to do post-email button interactions in DEV environment. Tested everything else out in Chrome. Unsure about Firefox, Safari and IE.","created_at":"2015-07-11T18:18:00Z","updated_at":"2015-07-11T18:18:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/pulls/530/commits","review_comments_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/pulls/530/comments","review_comment_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/issues/530/comments","statuses_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/statuses/59ff766b2680f0ddfa6307135a4c6f232866be65","head":{"label":"jermspeaks:js-refactor","ref":"js-refactor","sha":"59ff766b2680f0ddfa6307135a4c6f232866be65","user":{"login":"jermspeaks","id":7095290,"avatar_url":"https://avatars.githubusercontent.com/u/7095290?v=3","gravatar_id":"","url":"https://api.github.com/users/jermspeaks","html_url":"https://github.com/jermspeaks","followers_url":"https://api.github.com/users/jermspeaks/followers","following_url":"https://api.github.com/users/jermspeaks/following{/other_user}","gists_url":"https://api.github.com/users/jermspeaks/gists{/gist_id}","starred_url":"https://api.github.com/users/jermspeaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jermspeaks/subscriptions","organizations_url":"https://api.github.com/users/jermspeaks/orgs","repos_url":"https://api.github.com/users/jermspeaks/repos","events_url":"https://api.github.com/users/jermspeaks/events{/privacy}","received_events_url":"https://api.github.com/users/jermspeaks/received_events","type":"User","site_admin":false},"repo":{"id":38720485,"name":"tws-on-rails","full_name":"jermspeaks/tws-on-rails","owner":{"login":"jermspeaks","id":7095290,"avatar_url":"https://avatars.githubusercontent.com/u/7095290?v=3","gravatar_id":"","url":"https://api.github.com/users/jermspeaks","html_url":"https://github.com/jermspeaks","followers_url":"https://api.github.com/users/jermspeaks/followers","following_url":"https://api.github.com/users/jermspeaks/following{/other_user}","gists_url":"https://api.github.com/users/jermspeaks/gists{/gist_id}","starred_url":"https://api.github.com/users/jermspeaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jermspeaks/subscriptions","organizations_url":"https://api.github.com/users/jermspeaks/orgs","repos_url":"https://api.github.com/users/jermspeaks/repos","events_url":"https://api.github.com/users/jermspeaks/events{/privacy}","received_events_url":"https://api.github.com/users/jermspeaks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jermspeaks/tws-on-rails","description":"Core Tea With Strangers application","fork":true,"url":"https://api.github.com/repos/jermspeaks/tws-on-rails","forks_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/forks","keys_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/teams","hooks_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/hooks","issue_events_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/issues/events{/number}","events_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/events","assignees_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/assignees{/user}","branches_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/branches{/branch}","tags_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/tags","blobs_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/languages","stargazers_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/stargazers","contributors_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/contributors","subscribers_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/subscribers","subscription_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/subscription","commits_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/contents/{+path}","compare_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/merges","archive_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/downloads","issues_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/issues{/number}","pulls_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/labels{/name}","releases_url":"https://api.github.com/repos/jermspeaks/tws-on-rails/releases{/id}","created_at":"2015-07-07T23:34:01Z","updated_at":"2015-07-07T23:34:02Z","pushed_at":"2015-07-11T18:15:55Z","git_url":"git://github.com/jermspeaks/tws-on-rails.git","ssh_url":"git@github.com:jermspeaks/tws-on-rails.git","clone_url":"https://github.com/jermspeaks/tws-on-rails.git","svn_url":"https://github.com/jermspeaks/tws-on-rails","homepage":"http://teawithstrangers.com","size":43246,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"TeaWithStrangers:master","ref":"master","sha":"99c7f694bf70f1793d5bc710e0a54d3c79bdbe6a","user":{"login":"TeaWithStrangers","id":7062219,"avatar_url":"https://avatars.githubusercontent.com/u/7062219?v=3","gravatar_id":"","url":"https://api.github.com/users/TeaWithStrangers","html_url":"https://github.com/TeaWithStrangers","followers_url":"https://api.github.com/users/TeaWithStrangers/followers","following_url":"https://api.github.com/users/TeaWithStrangers/following{/other_user}","gists_url":"https://api.github.com/users/TeaWithStrangers/gists{/gist_id}","starred_url":"https://api.github.com/users/TeaWithStrangers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeaWithStrangers/subscriptions","organizations_url":"https://api.github.com/users/TeaWithStrangers/orgs","repos_url":"https://api.github.com/users/TeaWithStrangers/repos","events_url":"https://api.github.com/users/TeaWithStrangers/events{/privacy}","received_events_url":"https://api.github.com/users/TeaWithStrangers/received_events","type":"Organization","site_admin":false},"repo":{"id":19413545,"name":"tws-on-rails","full_name":"TeaWithStrangers/tws-on-rails","owner":{"login":"TeaWithStrangers","id":7062219,"avatar_url":"https://avatars.githubusercontent.com/u/7062219?v=3","gravatar_id":"","url":"https://api.github.com/users/TeaWithStrangers","html_url":"https://github.com/TeaWithStrangers","followers_url":"https://api.github.com/users/TeaWithStrangers/followers","following_url":"https://api.github.com/users/TeaWithStrangers/following{/other_user}","gists_url":"https://api.github.com/users/TeaWithStrangers/gists{/gist_id}","starred_url":"https://api.github.com/users/TeaWithStrangers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeaWithStrangers/subscriptions","organizations_url":"https://api.github.com/users/TeaWithStrangers/orgs","repos_url":"https://api.github.com/users/TeaWithStrangers/repos","events_url":"https://api.github.com/users/TeaWithStrangers/events{/privacy}","received_events_url":"https://api.github.com/users/TeaWithStrangers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeaWithStrangers/tws-on-rails","description":"Core Tea With Strangers application","fork":false,"url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails","forks_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/forks","keys_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/teams","hooks_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/hooks","issue_events_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/issues/events{/number}","events_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/events","assignees_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/assignees{/user}","branches_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/branches{/branch}","tags_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/tags","blobs_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/languages","stargazers_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/stargazers","contributors_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/contributors","subscribers_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/subscribers","subscription_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/subscription","commits_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/contents/{+path}","compare_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/merges","archive_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/downloads","issues_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/issues{/number}","pulls_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/labels{/name}","releases_url":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/releases{/id}","created_at":"2014-05-03T22:38:46Z","updated_at":"2015-06-16T05:04:38Z","pushed_at":"2015-07-11T18:12:39Z","git_url":"git://github.com/TeaWithStrangers/tws-on-rails.git","ssh_url":"git@github.com:TeaWithStrangers/tws-on-rails.git","clone_url":"https://github.com/TeaWithStrangers/tws-on-rails.git","svn_url":"https://github.com/TeaWithStrangers/tws-on-rails","homepage":"http://teawithstrangers.com","size":43246,"stargazers_count":13,"watchers_count":13,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":68,"forks":12,"open_issues":68,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/pulls/530"},"html":{"href":"https://github.com/TeaWithStrangers/tws-on-rails/pull/530"},"issue":{"href":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/issues/530"},"comments":{"href":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/issues/530/comments"},"review_comments":{"href":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/pulls/530/comments"},"review_comment":{"href":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/pulls/530/commits"},"statuses":{"href":"https://api.github.com/repos/TeaWithStrangers/tws-on-rails/statuses/59ff766b2680f0ddfa6307135a4c6f232866be65"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":439,"deletions":827,"changed_files":43}}