{"action":"created","comment":{"url":"https://api.github.com/repos/ankitagupta12/pheromone/pulls/comments/217960110","pull_request_review_id":155793290,"id":217960110,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzk2MDExMA==","diff_hunk":"@@ -38,6 +40,10 @@ def send_message_asynchronously\n           Resque.enqueue(background_processor_klass, message_body)\n         elsif background_processor.name == :sidekiq\n           background_processor_klass.perform_async(message_body)\n+        elsif background_processor.name == :custom\n+          background_processor.custom_processor.call(background_processor_klass, message_body)","path":"lib/pheromone/messaging/message_dispatcher.rb","position":14,"original_position":14,"commit_id":"ac3e300172a1aa78e8bb0fb46cdda9abfe9f160f","original_commit_id":"ac3e300172a1aa78e8bb0fb46cdda9abfe9f160f","user":{"login":"ankitagupta12","id":8280674,"node_id":"MDQ6VXNlcjgyODA2NzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/8280674?v=4","gravatar_id":"","url":"https://api.github.com/users/ankitagupta12","html_url":"https://github.com/ankitagupta12","followers_url":"https://api.github.com/users/ankitagupta12/followers","following_url":"https://api.github.com/users/ankitagupta12/following{/other_user}","gists_url":"https://api.github.com/users/ankitagupta12/gists{/gist_id}","starred_url":"https://api.github.com/users/ankitagupta12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankitagupta12/subscriptions","organizations_url":"https://api.github.com/users/ankitagupta12/orgs","repos_url":"https://api.github.com/users/ankitagupta12/repos","events_url":"https://api.github.com/users/ankitagupta12/events{/privacy}","received_events_url":"https://api.github.com/users/ankitagupta12/received_events","type":"User","site_admin":false},"body":"does this need to be `constantize`d. `klass` in the setting above is a string so should we be consistent?","created_at":"2018-09-17T06:38:08Z","updated_at":"2018-09-17T06:38:08Z","html_url":"https://github.com/ankitagupta12/pheromone/pull/10#discussion_r217960110","pull_request_url":"https://api.github.com/repos/ankitagupta12/pheromone/pulls/10","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/ankitagupta12/pheromone/pulls/comments/217960110"},"html":{"href":"https://github.com/ankitagupta12/pheromone/pull/10#discussion_r217960110"},"pull_request":{"href":"https://api.github.com/repos/ankitagupta12/pheromone/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/ankitagupta12/pheromone/pulls/10","id":215882702,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1ODgyNzAy","html_url":"https://github.com/ankitagupta12/pheromone/pull/10","diff_url":"https://github.com/ankitagupta12/pheromone/pull/10.diff","patch_url":"https://github.com/ankitagupta12/pheromone/pull/10.patch","issue_url":"https://api.github.com/repos/ankitagupta12/pheromone/issues/10","number":10,"state":"open","locked":false,"title":"Allow using custom processor in async mode","user":{"login":"linyaoli","id":1335416,"node_id":"MDQ6VXNlcjEzMzU0MTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1335416?v=4","gravatar_id":"","url":"https://api.github.com/users/linyaoli","html_url":"https://github.com/linyaoli","followers_url":"https://api.github.com/users/linyaoli/followers","following_url":"https://api.github.com/users/linyaoli/following{/other_user}","gists_url":"https://api.github.com/users/linyaoli/gists{/gist_id}","starred_url":"https://api.github.com/users/linyaoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linyaoli/subscriptions","organizations_url":"https://api.github.com/users/linyaoli/orgs","repos_url":"https://api.github.com/users/linyaoli/repos","events_url":"https://api.github.com/users/linyaoli/events{/privacy}","received_events_url":"https://api.github.com/users/linyaoli/received_events","type":"User","site_admin":false},"body":"Allow use to specify a custom processor in async mode:\r\n```ruby\r\n          Pheromone.setup do |config|\r\n            config.background_processor.name = :custom\r\n            config.background_processor.klass = 'CustomJob'\r\n            config.background_processor.custom_processor = -> (klass, msg) do\r\n              klass.perform(msg)\r\n            end\r\n          end\r\n```\r\n@ankitagupta12 ","created_at":"2018-09-17T06:26:32Z","updated_at":"2018-09-17T06:38:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"724bc5862a16a4819ad7998ce1c523f359d3d08a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ankitagupta12/pheromone/pulls/10/commits","review_comments_url":"https://api.github.com/repos/ankitagupta12/pheromone/pulls/10/comments","review_comment_url":"https://api.github.com/repos/ankitagupta12/pheromone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ankitagupta12/pheromone/issues/10/comments","statuses_url":"https://api.github.com/repos/ankitagupta12/pheromone/statuses/ac3e300172a1aa78e8bb0fb46cdda9abfe9f160f","head":{"label":"linyaoli:lli/add_custom_processor","ref":"lli/add_custom_processor","sha":"ac3e300172a1aa78e8bb0fb46cdda9abfe9f160f","user":{"login":"linyaoli","id":1335416,"node_id":"MDQ6VXNlcjEzMzU0MTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1335416?v=4","gravatar_id":"","url":"https://api.github.com/users/linyaoli","html_url":"https://github.com/linyaoli","followers_url":"https://api.github.com/users/linyaoli/followers","following_url":"https://api.github.com/users/linyaoli/following{/other_user}","gists_url":"https://api.github.com/users/linyaoli/gists{/gist_id}","starred_url":"https://api.github.com/users/linyaoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linyaoli/subscriptions","organizations_url":"https://api.github.com/users/linyaoli/orgs","repos_url":"https://api.github.com/users/linyaoli/repos","events_url":"https://api.github.com/users/linyaoli/events{/privacy}","received_events_url":"https://api.github.com/users/linyaoli/received_events","type":"User","site_admin":false},"repo":{"id":149078134,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkwNzgxMzQ=","name":"pheromone","full_name":"linyaoli/pheromone","private":false,"owner":{"login":"linyaoli","id":1335416,"node_id":"MDQ6VXNlcjEzMzU0MTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1335416?v=4","gravatar_id":"","url":"https://api.github.com/users/linyaoli","html_url":"https://github.com/linyaoli","followers_url":"https://api.github.com/users/linyaoli/followers","following_url":"https://api.github.com/users/linyaoli/following{/other_user}","gists_url":"https://api.github.com/users/linyaoli/gists{/gist_id}","starred_url":"https://api.github.com/users/linyaoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linyaoli/subscriptions","organizations_url":"https://api.github.com/users/linyaoli/orgs","repos_url":"https://api.github.com/users/linyaoli/repos","events_url":"https://api.github.com/users/linyaoli/events{/privacy}","received_events_url":"https://api.github.com/users/linyaoli/received_events","type":"User","site_admin":false},"html_url":"https://github.com/linyaoli/pheromone","description":null,"fork":true,"url":"https://api.github.com/repos/linyaoli/pheromone","forks_url":"https://api.github.com/repos/linyaoli/pheromone/forks","keys_url":"https://api.github.com/repos/linyaoli/pheromone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linyaoli/pheromone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linyaoli/pheromone/teams","hooks_url":"https://api.github.com/repos/linyaoli/pheromone/hooks","issue_events_url":"https://api.github.com/repos/linyaoli/pheromone/issues/events{/number}","events_url":"https://api.github.com/repos/linyaoli/pheromone/events","assignees_url":"https://api.github.com/repos/linyaoli/pheromone/assignees{/user}","branches_url":"https://api.github.com/repos/linyaoli/pheromone/branches{/branch}","tags_url":"https://api.github.com/repos/linyaoli/pheromone/tags","blobs_url":"https://api.github.com/repos/linyaoli/pheromone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linyaoli/pheromone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linyaoli/pheromone/git/refs{/sha}","trees_url":"https://api.github.com/repos/linyaoli/pheromone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linyaoli/pheromone/statuses/{sha}","languages_url":"https://api.github.com/repos/linyaoli/pheromone/languages","stargazers_url":"https://api.github.com/repos/linyaoli/pheromone/stargazers","contributors_url":"https://api.github.com/repos/linyaoli/pheromone/contributors","subscribers_url":"https://api.github.com/repos/linyaoli/pheromone/subscribers","subscription_url":"https://api.github.com/repos/linyaoli/pheromone/subscription","commits_url":"https://api.github.com/repos/linyaoli/pheromone/commits{/sha}","git_commits_url":"https://api.github.com/repos/linyaoli/pheromone/git/commits{/sha}","comments_url":"https://api.github.com/repos/linyaoli/pheromone/comments{/number}","issue_comment_url":"https://api.github.com/repos/linyaoli/pheromone/issues/comments{/number}","contents_url":"https://api.github.com/repos/linyaoli/pheromone/contents/{+path}","compare_url":"https://api.github.com/repos/linyaoli/pheromone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linyaoli/pheromone/merges","archive_url":"https://api.github.com/repos/linyaoli/pheromone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linyaoli/pheromone/downloads","issues_url":"https://api.github.com/repos/linyaoli/pheromone/issues{/number}","pulls_url":"https://api.github.com/repos/linyaoli/pheromone/pulls{/number}","milestones_url":"https://api.github.com/repos/linyaoli/pheromone/milestones{/number}","notifications_url":"https://api.github.com/repos/linyaoli/pheromone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linyaoli/pheromone/labels{/name}","releases_url":"https://api.github.com/repos/linyaoli/pheromone/releases{/id}","deployments_url":"https://api.github.com/repos/linyaoli/pheromone/deployments","created_at":"2018-09-17T06:21:39Z","updated_at":"2018-09-17T06:21:41Z","pushed_at":"2018-09-17T06:27:22Z","git_url":"git://github.com/linyaoli/pheromone.git","ssh_url":"git@github.com:linyaoli/pheromone.git","clone_url":"https://github.com/linyaoli/pheromone.git","svn_url":"https://github.com/linyaoli/pheromone","homepage":null,"size":89,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ankitagupta12:master","ref":"master","sha":"c59882c8d0ca538ae544d9f4746192e0cdcac098","user":{"login":"ankitagupta12","id":8280674,"node_id":"MDQ6VXNlcjgyODA2NzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/8280674?v=4","gravatar_id":"","url":"https://api.github.com/users/ankitagupta12","html_url":"https://github.com/ankitagupta12","followers_url":"https://api.github.com/users/ankitagupta12/followers","following_url":"https://api.github.com/users/ankitagupta12/following{/other_user}","gists_url":"https://api.github.com/users/ankitagupta12/gists{/gist_id}","starred_url":"https://api.github.com/users/ankitagupta12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankitagupta12/subscriptions","organizations_url":"https://api.github.com/users/ankitagupta12/orgs","repos_url":"https://api.github.com/users/ankitagupta12/repos","events_url":"https://api.github.com/users/ankitagupta12/events{/privacy}","received_events_url":"https://api.github.com/users/ankitagupta12/received_events","type":"User","site_admin":false},"repo":{"id":83435253,"node_id":"MDEwOlJlcG9zaXRvcnk4MzQzNTI1Mw==","name":"pheromone","full_name":"ankitagupta12/pheromone","private":false,"owner":{"login":"ankitagupta12","id":8280674,"node_id":"MDQ6VXNlcjgyODA2NzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/8280674?v=4","gravatar_id":"","url":"https://api.github.com/users/ankitagupta12","html_url":"https://github.com/ankitagupta12","followers_url":"https://api.github.com/users/ankitagupta12/followers","following_url":"https://api.github.com/users/ankitagupta12/following{/other_user}","gists_url":"https://api.github.com/users/ankitagupta12/gists{/gist_id}","starred_url":"https://api.github.com/users/ankitagupta12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankitagupta12/subscriptions","organizations_url":"https://api.github.com/users/ankitagupta12/orgs","repos_url":"https://api.github.com/users/ankitagupta12/repos","events_url":"https://api.github.com/users/ankitagupta12/events{/privacy}","received_events_url":"https://api.github.com/users/ankitagupta12/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ankitagupta12/pheromone","description":null,"fork":false,"url":"https://api.github.com/repos/ankitagupta12/pheromone","forks_url":"https://api.github.com/repos/ankitagupta12/pheromone/forks","keys_url":"https://api.github.com/repos/ankitagupta12/pheromone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ankitagupta12/pheromone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ankitagupta12/pheromone/teams","hooks_url":"https://api.github.com/repos/ankitagupta12/pheromone/hooks","issue_events_url":"https://api.github.com/repos/ankitagupta12/pheromone/issues/events{/number}","events_url":"https://api.github.com/repos/ankitagupta12/pheromone/events","assignees_url":"https://api.github.com/repos/ankitagupta12/pheromone/assignees{/user}","branches_url":"https://api.github.com/repos/ankitagupta12/pheromone/branches{/branch}","tags_url":"https://api.github.com/repos/ankitagupta12/pheromone/tags","blobs_url":"https://api.github.com/repos/ankitagupta12/pheromone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ankitagupta12/pheromone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ankitagupta12/pheromone/git/refs{/sha}","trees_url":"https://api.github.com/repos/ankitagupta12/pheromone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ankitagupta12/pheromone/statuses/{sha}","languages_url":"https://api.github.com/repos/ankitagupta12/pheromone/languages","stargazers_url":"https://api.github.com/repos/ankitagupta12/pheromone/stargazers","contributors_url":"https://api.github.com/repos/ankitagupta12/pheromone/contributors","subscribers_url":"https://api.github.com/repos/ankitagupta12/pheromone/subscribers","subscription_url":"https://api.github.com/repos/ankitagupta12/pheromone/subscription","commits_url":"https://api.github.com/repos/ankitagupta12/pheromone/commits{/sha}","git_commits_url":"https://api.github.com/repos/ankitagupta12/pheromone/git/commits{/sha}","comments_url":"https://api.github.com/repos/ankitagupta12/pheromone/comments{/number}","issue_comment_url":"https://api.github.com/repos/ankitagupta12/pheromone/issues/comments{/number}","contents_url":"https://api.github.com/repos/ankitagupta12/pheromone/contents/{+path}","compare_url":"https://api.github.com/repos/ankitagupta12/pheromone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ankitagupta12/pheromone/merges","archive_url":"https://api.github.com/repos/ankitagupta12/pheromone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ankitagupta12/pheromone/downloads","issues_url":"https://api.github.com/repos/ankitagupta12/pheromone/issues{/number}","pulls_url":"https://api.github.com/repos/ankitagupta12/pheromone/pulls{/number}","milestones_url":"https://api.github.com/repos/ankitagupta12/pheromone/milestones{/number}","notifications_url":"https://api.github.com/repos/ankitagupta12/pheromone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ankitagupta12/pheromone/labels{/name}","releases_url":"https://api.github.com/repos/ankitagupta12/pheromone/releases{/id}","deployments_url":"https://api.github.com/repos/ankitagupta12/pheromone/deployments","created_at":"2017-02-28T13:24:10Z","updated_at":"2018-08-29T18:29:45Z","pushed_at":"2018-09-17T06:27:22Z","git_url":"git://github.com/ankitagupta12/pheromone.git","ssh_url":"git@github.com:ankitagupta12/pheromone.git","clone_url":"https://github.com/ankitagupta12/pheromone.git","svn_url":"https://github.com/ankitagupta12/pheromone","homepage":null,"size":89,"stargazers_count":12,"watchers_count":12,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":2,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ankitagupta12/pheromone/pulls/10"},"html":{"href":"https://github.com/ankitagupta12/pheromone/pull/10"},"issue":{"href":"https://api.github.com/repos/ankitagupta12/pheromone/issues/10"},"comments":{"href":"https://api.github.com/repos/ankitagupta12/pheromone/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/ankitagupta12/pheromone/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/ankitagupta12/pheromone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ankitagupta12/pheromone/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/ankitagupta12/pheromone/statuses/ac3e300172a1aa78e8bb0fb46cdda9abfe9f160f"}},"author_association":"NONE"}}
{"actor":{"display_login":"ankitagupta12"}}