{"action":"opened","number":87,"pull_request":{"url":"https://api.github.com/repos/lotus/view/pulls/87","id":55378287,"html_url":"https://github.com/lotus/view/pull/87","diff_url":"https://github.com/lotus/view/pull/87.diff","patch_url":"https://github.com/lotus/view/pull/87.patch","issue_url":"https://api.github.com/repos/lotus/view/issues/87","number":87,"state":"open","locked":false,"title":"Performance improvement of Lotus::Layout.template","user":{"login":"deepj","id":33736,"avatar_url":"https://avatars.githubusercontent.com/u/33736?v=3","gravatar_id":"","url":"https://api.github.com/users/deepj","html_url":"https://github.com/deepj","followers_url":"https://api.github.com/users/deepj/followers","following_url":"https://api.github.com/users/deepj/following{/other_user}","gists_url":"https://api.github.com/users/deepj/gists{/gist_id}","starred_url":"https://api.github.com/users/deepj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepj/subscriptions","organizations_url":"https://api.github.com/users/deepj/orgs","repos_url":"https://api.github.com/users/deepj/repos","events_url":"https://api.github.com/users/deepj/events{/privacy}","received_events_url":"https://api.github.com/users/deepj/received_events","type":"User","site_admin":false},"body":"We want to remove suffix only so we need replace only its first occurrence. `String#sub` in this case is more suitable here because of being faster than `String#gsub`.","created_at":"2016-01-07T19:21:59Z","updated_at":"2016-01-07T19:21:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lotus/view/pulls/87/commits","review_comments_url":"https://api.github.com/repos/lotus/view/pulls/87/comments","review_comment_url":"https://api.github.com/repos/lotus/view/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lotus/view/issues/87/comments","statuses_url":"https://api.github.com/repos/lotus/view/statuses/c8b6fe021fe696a836577ab8040effc8eb66b0e4","head":{"label":"deepj:layout_performance","ref":"layout_performance","sha":"c8b6fe021fe696a836577ab8040effc8eb66b0e4","user":{"login":"deepj","id":33736,"avatar_url":"https://avatars.githubusercontent.com/u/33736?v=3","gravatar_id":"","url":"https://api.github.com/users/deepj","html_url":"https://github.com/deepj","followers_url":"https://api.github.com/users/deepj/followers","following_url":"https://api.github.com/users/deepj/following{/other_user}","gists_url":"https://api.github.com/users/deepj/gists{/gist_id}","starred_url":"https://api.github.com/users/deepj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepj/subscriptions","organizations_url":"https://api.github.com/users/deepj/orgs","repos_url":"https://api.github.com/users/deepj/repos","events_url":"https://api.github.com/users/deepj/events{/privacy}","received_events_url":"https://api.github.com/users/deepj/received_events","type":"User","site_admin":false},"repo":{"id":35714634,"name":"view","full_name":"deepj/view","owner":{"login":"deepj","id":33736,"avatar_url":"https://avatars.githubusercontent.com/u/33736?v=3","gravatar_id":"","url":"https://api.github.com/users/deepj","html_url":"https://github.com/deepj","followers_url":"https://api.github.com/users/deepj/followers","following_url":"https://api.github.com/users/deepj/following{/other_user}","gists_url":"https://api.github.com/users/deepj/gists{/gist_id}","starred_url":"https://api.github.com/users/deepj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepj/subscriptions","organizations_url":"https://api.github.com/users/deepj/orgs","repos_url":"https://api.github.com/users/deepj/repos","events_url":"https://api.github.com/users/deepj/events{/privacy}","received_events_url":"https://api.github.com/users/deepj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deepj/view","description":"View layer for Lotus","fork":true,"url":"https://api.github.com/repos/deepj/view","forks_url":"https://api.github.com/repos/deepj/view/forks","keys_url":"https://api.github.com/repos/deepj/view/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deepj/view/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deepj/view/teams","hooks_url":"https://api.github.com/repos/deepj/view/hooks","issue_events_url":"https://api.github.com/repos/deepj/view/issues/events{/number}","events_url":"https://api.github.com/repos/deepj/view/events","assignees_url":"https://api.github.com/repos/deepj/view/assignees{/user}","branches_url":"https://api.github.com/repos/deepj/view/branches{/branch}","tags_url":"https://api.github.com/repos/deepj/view/tags","blobs_url":"https://api.github.com/repos/deepj/view/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deepj/view/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deepj/view/git/refs{/sha}","trees_url":"https://api.github.com/repos/deepj/view/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deepj/view/statuses/{sha}","languages_url":"https://api.github.com/repos/deepj/view/languages","stargazers_url":"https://api.github.com/repos/deepj/view/stargazers","contributors_url":"https://api.github.com/repos/deepj/view/contributors","subscribers_url":"https://api.github.com/repos/deepj/view/subscribers","subscription_url":"https://api.github.com/repos/deepj/view/subscription","commits_url":"https://api.github.com/repos/deepj/view/commits{/sha}","git_commits_url":"https://api.github.com/repos/deepj/view/git/commits{/sha}","comments_url":"https://api.github.com/repos/deepj/view/comments{/number}","issue_comment_url":"https://api.github.com/repos/deepj/view/issues/comments{/number}","contents_url":"https://api.github.com/repos/deepj/view/contents/{+path}","compare_url":"https://api.github.com/repos/deepj/view/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deepj/view/merges","archive_url":"https://api.github.com/repos/deepj/view/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deepj/view/downloads","issues_url":"https://api.github.com/repos/deepj/view/issues{/number}","pulls_url":"https://api.github.com/repos/deepj/view/pulls{/number}","milestones_url":"https://api.github.com/repos/deepj/view/milestones{/number}","notifications_url":"https://api.github.com/repos/deepj/view/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deepj/view/labels{/name}","releases_url":"https://api.github.com/repos/deepj/view/releases{/id}","created_at":"2015-05-16T07:41:47Z","updated_at":"2015-05-16T07:41:47Z","pushed_at":"2016-01-07T19:21:26Z","git_url":"git://github.com/deepj/view.git","ssh_url":"git@github.com:deepj/view.git","clone_url":"https://github.com/deepj/view.git","svn_url":"https://github.com/deepj/view","homepage":null,"size":291,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"lotus:master","ref":"master","sha":"2fe93731e5f84cd34de0d68e320b2e35db671a4a","user":{"login":"lotus","id":3210273,"avatar_url":"https://avatars.githubusercontent.com/u/3210273?v=3","gravatar_id":"","url":"https://api.github.com/users/lotus","html_url":"https://github.com/lotus","followers_url":"https://api.github.com/users/lotus/followers","following_url":"https://api.github.com/users/lotus/following{/other_user}","gists_url":"https://api.github.com/users/lotus/gists{/gist_id}","starred_url":"https://api.github.com/users/lotus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lotus/subscriptions","organizations_url":"https://api.github.com/users/lotus/orgs","repos_url":"https://api.github.com/users/lotus/repos","events_url":"https://api.github.com/users/lotus/events{/privacy}","received_events_url":"https://api.github.com/users/lotus/received_events","type":"Organization","site_admin":false},"repo":{"id":11419775,"name":"view","full_name":"lotus/view","owner":{"login":"lotus","id":3210273,"avatar_url":"https://avatars.githubusercontent.com/u/3210273?v=3","gravatar_id":"","url":"https://api.github.com/users/lotus","html_url":"https://github.com/lotus","followers_url":"https://api.github.com/users/lotus/followers","following_url":"https://api.github.com/users/lotus/following{/other_user}","gists_url":"https://api.github.com/users/lotus/gists{/gist_id}","starred_url":"https://api.github.com/users/lotus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lotus/subscriptions","organizations_url":"https://api.github.com/users/lotus/orgs","repos_url":"https://api.github.com/users/lotus/repos","events_url":"https://api.github.com/users/lotus/events{/privacy}","received_events_url":"https://api.github.com/users/lotus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lotus/view","description":"View layer for Lotus","fork":false,"url":"https://api.github.com/repos/lotus/view","forks_url":"https://api.github.com/repos/lotus/view/forks","keys_url":"https://api.github.com/repos/lotus/view/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lotus/view/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lotus/view/teams","hooks_url":"https://api.github.com/repos/lotus/view/hooks","issue_events_url":"https://api.github.com/repos/lotus/view/issues/events{/number}","events_url":"https://api.github.com/repos/lotus/view/events","assignees_url":"https://api.github.com/repos/lotus/view/assignees{/user}","branches_url":"https://api.github.com/repos/lotus/view/branches{/branch}","tags_url":"https://api.github.com/repos/lotus/view/tags","blobs_url":"https://api.github.com/repos/lotus/view/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lotus/view/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lotus/view/git/refs{/sha}","trees_url":"https://api.github.com/repos/lotus/view/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lotus/view/statuses/{sha}","languages_url":"https://api.github.com/repos/lotus/view/languages","stargazers_url":"https://api.github.com/repos/lotus/view/stargazers","contributors_url":"https://api.github.com/repos/lotus/view/contributors","subscribers_url":"https://api.github.com/repos/lotus/view/subscribers","subscription_url":"https://api.github.com/repos/lotus/view/subscription","commits_url":"https://api.github.com/repos/lotus/view/commits{/sha}","git_commits_url":"https://api.github.com/repos/lotus/view/git/commits{/sha}","comments_url":"https://api.github.com/repos/lotus/view/comments{/number}","issue_comment_url":"https://api.github.com/repos/lotus/view/issues/comments{/number}","contents_url":"https://api.github.com/repos/lotus/view/contents/{+path}","compare_url":"https://api.github.com/repos/lotus/view/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lotus/view/merges","archive_url":"https://api.github.com/repos/lotus/view/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lotus/view/downloads","issues_url":"https://api.github.com/repos/lotus/view/issues{/number}","pulls_url":"https://api.github.com/repos/lotus/view/pulls{/number}","milestones_url":"https://api.github.com/repos/lotus/view/milestones{/number}","notifications_url":"https://api.github.com/repos/lotus/view/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lotus/view/labels{/name}","releases_url":"https://api.github.com/repos/lotus/view/releases{/id}","created_at":"2013-07-15T09:42:16Z","updated_at":"2016-01-05T18:13:10Z","pushed_at":"2016-01-07T16:59:03Z","git_url":"git://github.com/lotus/view.git","ssh_url":"git@github.com:lotus/view.git","clone_url":"https://github.com/lotus/view.git","svn_url":"https://github.com/lotus/view","homepage":null,"size":337,"stargazers_count":108,"watchers_count":108,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":2,"forks":46,"open_issues":2,"watchers":108,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lotus/view/pulls/87"},"html":{"href":"https://github.com/lotus/view/pull/87"},"issue":{"href":"https://api.github.com/repos/lotus/view/issues/87"},"comments":{"href":"https://api.github.com/repos/lotus/view/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/lotus/view/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/lotus/view/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lotus/view/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/lotus/view/statuses/c8b6fe021fe696a836577ab8040effc8eb66b0e4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}