{"action":"created","comment":{"url":"https://api.github.com/repos/zendesk/samson/pulls/comments/28256232","id":28256232,"diff_hunk":"@@ -25,6 +25,53 @@ def active?\n       def require\n         super @path\n       end\n+\n+      def add_lib_path\n+        engine.config.autoload_paths += Dir[\"#{engine.config.root}/lib/**/\"]\n+      end\n+\n+      def add_decorators\n+        engine.config.after_initialize do\n+          Dir.glob(engine.config.root.join('app/decorators/**/*_decorator.rb')).each do |c|\n+            require_dependency(c)\n+          end\n+        end\n+      end\n+\n+      def precompile_assets","path":"lib/samson/hooks.rb","position":41,"original_position":41,"commit_id":"ada0b9bf1f148901dbffe64e669305310f3c29fb","original_commit_id":"ada0b9bf1f148901dbffe64e669305310f3c29fb","user":{"login":"grosser","id":11367,"avatar_url":"https://avatars.githubusercontent.com/u/11367?v=3","gravatar_id":"","url":"https://api.github.com/users/grosser","html_url":"https://github.com/grosser","followers_url":"https://api.github.com/users/grosser/followers","following_url":"https://api.github.com/users/grosser/following{/other_user}","gists_url":"https://api.github.com/users/grosser/gists{/gist_id}","starred_url":"https://api.github.com/users/grosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grosser/subscriptions","organizations_url":"https://api.github.com/users/grosser/orgs","repos_url":"https://api.github.com/users/grosser/repos","events_url":"https://api.github.com/users/grosser/events{/privacy}","received_events_url":"https://api.github.com/users/grosser/received_events","type":"User","site_admin":false},"body":"the method  is not really 'precompiling' the assets, so maybe something like `add_assets_to_precompile` would be better","created_at":"2015-04-13T16:57:16Z","updated_at":"2015-04-13T16:57:16Z","html_url":"https://github.com/zendesk/samson/pull/324#discussion_r28256232","pull_request_url":"https://api.github.com/repos/zendesk/samson/pulls/324","_links":{"self":{"href":"https://api.github.com/repos/zendesk/samson/pulls/comments/28256232"},"html":{"href":"https://github.com/zendesk/samson/pull/324#discussion_r28256232"},"pull_request":{"href":"https://api.github.com/repos/zendesk/samson/pulls/324"}}},"pull_request":{"url":"https://api.github.com/repos/zendesk/samson/pulls/324","id":32242004,"html_url":"https://github.com/zendesk/samson/pull/324","diff_url":"https://github.com/zendesk/samson/pull/324.diff","patch_url":"https://github.com/zendesk/samson/pull/324.patch","issue_url":"https://api.github.com/repos/zendesk/samson/issues/324","number":324,"state":"open","locked":false,"title":"Buddy request in flowdock","user":{"login":"fneves","id":647255,"avatar_url":"https://avatars.githubusercontent.com/u/647255?v=3","gravatar_id":"","url":"https://api.github.com/users/fneves","html_url":"https://github.com/fneves","followers_url":"https://api.github.com/users/fneves/followers","following_url":"https://api.github.com/users/fneves/following{/other_user}","gists_url":"https://api.github.com/users/fneves/gists{/gist_id}","starred_url":"https://api.github.com/users/fneves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fneves/subscriptions","organizations_url":"https://api.github.com/users/fneves/orgs","repos_url":"https://api.github.com/users/fneves/repos","events_url":"https://api.github.com/users/fneves/events{/privacy}","received_events_url":"https://api.github.com/users/fneves/received_events","type":"User","site_admin":false},"body":"This PR adds a plugin that enables a user to send a buddy request to Flowdock from the UI.\r\nThis was previously submitted in a [PR#229](https://github.com/zendesk/samson/pull/229) and the behaviour is the same but it is now extracted as a plugin. I've bundled it with the current Flowdock plugin.\r\n\r\nThis PR adds the support for plugins with custom scripts and css to be included. It also adds support for angular tests in plugins.\r\n\r\n![output](https://cloud.githubusercontent.com/assets/647255/6900725/612f3dce-d700-11e4-94ef-10c03b0d9041.gif)\r\n\r\n\r\n/cc @zendesk/samson @grosser @pswadi-zendesk \r\n\r\n### References\r\n - Jira link: [SAMSON-106](https://zendesk.atlassian.net/browse/SAMSON-106)\r\n\r\n### Risks\r\n - None","created_at":"2015-03-30T16:15:43Z","updated_at":"2015-04-13T16:57:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"080d41bd05c3b087520d1fa8212dbeccf4efe74a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zendesk/samson/pulls/324/commits","review_comments_url":"https://api.github.com/repos/zendesk/samson/pulls/324/comments","review_comment_url":"https://api.github.com/repos/zendesk/samson/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zendesk/samson/issues/324/comments","statuses_url":"https://api.github.com/repos/zendesk/samson/statuses/ada0b9bf1f148901dbffe64e669305310f3c29fb","head":{"label":"zendesk:fneves/buddy_request_plugin","ref":"fneves/buddy_request_plugin","sha":"ada0b9bf1f148901dbffe64e669305310f3c29fb","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":20208662,"name":"samson","full_name":"zendesk/samson","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/samson","description":"Web interface for deployments","fork":false,"url":"https://api.github.com/repos/zendesk/samson","forks_url":"https://api.github.com/repos/zendesk/samson/forks","keys_url":"https://api.github.com/repos/zendesk/samson/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/samson/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/samson/teams","hooks_url":"https://api.github.com/repos/zendesk/samson/hooks","issue_events_url":"https://api.github.com/repos/zendesk/samson/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/samson/events","assignees_url":"https://api.github.com/repos/zendesk/samson/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/samson/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/samson/tags","blobs_url":"https://api.github.com/repos/zendesk/samson/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/samson/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/samson/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/samson/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/samson/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/samson/languages","stargazers_url":"https://api.github.com/repos/zendesk/samson/stargazers","contributors_url":"https://api.github.com/repos/zendesk/samson/contributors","subscribers_url":"https://api.github.com/repos/zendesk/samson/subscribers","subscription_url":"https://api.github.com/repos/zendesk/samson/subscription","commits_url":"https://api.github.com/repos/zendesk/samson/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/samson/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/samson/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/samson/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/samson/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/samson/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/samson/merges","archive_url":"https://api.github.com/repos/zendesk/samson/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/samson/downloads","issues_url":"https://api.github.com/repos/zendesk/samson/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/samson/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/samson/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/samson/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/samson/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/samson/releases{/id}","created_at":"2014-05-27T05:55:57Z","updated_at":"2015-04-13T15:50:58Z","pushed_at":"2015-04-13T15:51:00Z","git_url":"git://github.com/zendesk/samson.git","ssh_url":"git@github.com:zendesk/samson.git","clone_url":"https://github.com/zendesk/samson.git","svn_url":"https://github.com/zendesk/samson","homepage":null,"size":122756,"stargazers_count":388,"watchers_count":388,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":33,"forks":44,"open_issues":33,"watchers":388,"default_branch":"master"}},"base":{"label":"zendesk:master","ref":"master","sha":"3530fcb52d5533f2c5a646838bcf2d20ede851e0","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":20208662,"name":"samson","full_name":"zendesk/samson","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/samson","description":"Web interface for deployments","fork":false,"url":"https://api.github.com/repos/zendesk/samson","forks_url":"https://api.github.com/repos/zendesk/samson/forks","keys_url":"https://api.github.com/repos/zendesk/samson/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/samson/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/samson/teams","hooks_url":"https://api.github.com/repos/zendesk/samson/hooks","issue_events_url":"https://api.github.com/repos/zendesk/samson/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/samson/events","assignees_url":"https://api.github.com/repos/zendesk/samson/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/samson/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/samson/tags","blobs_url":"https://api.github.com/repos/zendesk/samson/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/samson/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/samson/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/samson/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/samson/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/samson/languages","stargazers_url":"https://api.github.com/repos/zendesk/samson/stargazers","contributors_url":"https://api.github.com/repos/zendesk/samson/contributors","subscribers_url":"https://api.github.com/repos/zendesk/samson/subscribers","subscription_url":"https://api.github.com/repos/zendesk/samson/subscription","commits_url":"https://api.github.com/repos/zendesk/samson/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/samson/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/samson/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/samson/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/samson/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/samson/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/samson/merges","archive_url":"https://api.github.com/repos/zendesk/samson/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/samson/downloads","issues_url":"https://api.github.com/repos/zendesk/samson/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/samson/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/samson/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/samson/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/samson/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/samson/releases{/id}","created_at":"2014-05-27T05:55:57Z","updated_at":"2015-04-13T15:50:58Z","pushed_at":"2015-04-13T15:51:00Z","git_url":"git://github.com/zendesk/samson.git","ssh_url":"git@github.com:zendesk/samson.git","clone_url":"https://github.com/zendesk/samson.git","svn_url":"https://github.com/zendesk/samson","homepage":null,"size":122756,"stargazers_count":388,"watchers_count":388,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":33,"forks":44,"open_issues":33,"watchers":388,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zendesk/samson/pulls/324"},"html":{"href":"https://github.com/zendesk/samson/pull/324"},"issue":{"href":"https://api.github.com/repos/zendesk/samson/issues/324"},"comments":{"href":"https://api.github.com/repos/zendesk/samson/issues/324/comments"},"review_comments":{"href":"https://api.github.com/repos/zendesk/samson/pulls/324/comments"},"review_comment":{"href":"https://api.github.com/repos/zendesk/samson/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zendesk/samson/pulls/324/commits"},"statuses":{"href":"https://api.github.com/repos/zendesk/samson/statuses/ada0b9bf1f148901dbffe64e669305310f3c29fb"}}}}