{"action":"created","comment":{"url":"https://api.github.com/repos/Shopify/schmooze/pulls/comments/57196745","id":57196745,"diff_hunk":"@@ -44,15 +44,18 @@ def initialize(root, env={})\n       @env = env\n       @root = root\n       @code = ProcessorGenerator.generate(self.class.instance_variable_get(:@imports) || [], self.class.instance_variable_get(:@methods) || [])\n-\n-      spawn_process\n     end\n \n     def pid\n-      @process_thread.pid\n+      @process_thread && @process_thread.pid\n     end\n \n     private\n+      def ensure_process_spawned\n+        return if @process_thread","path":"lib/schmooze/base.rb","position":null,"original_position":15,"commit_id":"85ca417ed8fcfe65634273ae18806038f91f7bcc","original_commit_id":"1c8cc344c69542693ac044d6711318e97bf385dd","user":{"login":"bouk","id":97820,"avatar_url":"https://avatars.githubusercontent.com/u/97820?v=3","gravatar_id":"","url":"https://api.github.com/users/bouk","html_url":"https://github.com/bouk","followers_url":"https://api.github.com/users/bouk/followers","following_url":"https://api.github.com/users/bouk/following{/other_user}","gists_url":"https://api.github.com/users/bouk/gists{/gist_id}","starred_url":"https://api.github.com/users/bouk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bouk/subscriptions","organizations_url":"https://api.github.com/users/bouk/orgs","repos_url":"https://api.github.com/users/bouk/repos","events_url":"https://api.github.com/users/bouk/events{/privacy}","received_events_url":"https://api.github.com/users/bouk/received_events","type":"User","site_admin":false},"body":"It shouldn't die while calling any of the methods (as it should catch the exception) so if it does, I just throw an error on every method invocation","created_at":"2016-03-23T17:01:54Z","updated_at":"2016-03-23T17:01:54Z","html_url":"https://github.com/Shopify/schmooze/pull/3#discussion_r57196745","pull_request_url":"https://api.github.com/repos/Shopify/schmooze/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/Shopify/schmooze/pulls/comments/57196745"},"html":{"href":"https://github.com/Shopify/schmooze/pull/3#discussion_r57196745"},"pull_request":{"href":"https://api.github.com/repos/Shopify/schmooze/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Shopify/schmooze/pulls/3","id":63912468,"html_url":"https://github.com/Shopify/schmooze/pull/3","diff_url":"https://github.com/Shopify/schmooze/pull/3.diff","patch_url":"https://github.com/Shopify/schmooze/pull/3.patch","issue_url":"https://api.github.com/repos/Shopify/schmooze/issues/3","number":3,"state":"open","locked":false,"title":"Don't start the node process until it is needed","user":{"login":"bouk","id":97820,"avatar_url":"https://avatars.githubusercontent.com/u/97820?v=3","gravatar_id":"","url":"https://api.github.com/users/bouk","html_url":"https://github.com/bouk","followers_url":"https://api.github.com/users/bouk/followers","following_url":"https://api.github.com/users/bouk/following{/other_user}","gists_url":"https://api.github.com/users/bouk/gists{/gist_id}","starred_url":"https://api.github.com/users/bouk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bouk/subscriptions","organizations_url":"https://api.github.com/users/bouk/orgs","repos_url":"https://api.github.com/users/bouk/repos","events_url":"https://api.github.com/users/bouk/events{/privacy}","received_events_url":"https://api.github.com/users/bouk/received_events","type":"User","site_admin":false},"body":"@csfrancis ","created_at":"2016-03-23T16:34:37Z","updated_at":"2016-03-23T17:01:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78154add74c58b12a51e232f741506263815c7f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Shopify/schmooze/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Shopify/schmooze/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Shopify/schmooze/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Shopify/schmooze/issues/3/comments","statuses_url":"https://api.github.com/repos/Shopify/schmooze/statuses/85ca417ed8fcfe65634273ae18806038f91f7bcc","head":{"label":"Shopify:dont-immediately-start","ref":"dont-immediately-start","sha":"85ca417ed8fcfe65634273ae18806038f91f7bcc","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":52630627,"name":"schmooze","full_name":"Shopify/schmooze","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/schmooze","description":"Schmooze lets Ruby and Node.js work together intimately.","fork":false,"url":"https://api.github.com/repos/Shopify/schmooze","forks_url":"https://api.github.com/repos/Shopify/schmooze/forks","keys_url":"https://api.github.com/repos/Shopify/schmooze/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/schmooze/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/schmooze/teams","hooks_url":"https://api.github.com/repos/Shopify/schmooze/hooks","issue_events_url":"https://api.github.com/repos/Shopify/schmooze/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/schmooze/events","assignees_url":"https://api.github.com/repos/Shopify/schmooze/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/schmooze/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/schmooze/tags","blobs_url":"https://api.github.com/repos/Shopify/schmooze/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/schmooze/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/schmooze/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/schmooze/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/schmooze/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/schmooze/languages","stargazers_url":"https://api.github.com/repos/Shopify/schmooze/stargazers","contributors_url":"https://api.github.com/repos/Shopify/schmooze/contributors","subscribers_url":"https://api.github.com/repos/Shopify/schmooze/subscribers","subscription_url":"https://api.github.com/repos/Shopify/schmooze/subscription","commits_url":"https://api.github.com/repos/Shopify/schmooze/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/schmooze/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/schmooze/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/schmooze/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/schmooze/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/schmooze/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/schmooze/merges","archive_url":"https://api.github.com/repos/Shopify/schmooze/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/schmooze/downloads","issues_url":"https://api.github.com/repos/Shopify/schmooze/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/schmooze/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/schmooze/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/schmooze/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/schmooze/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/schmooze/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/schmooze/deployments","created_at":"2016-02-26T20:25:10Z","updated_at":"2016-03-18T14:08:56Z","pushed_at":"2016-03-23T17:00:39Z","git_url":"git://github.com/Shopify/schmooze.git","ssh_url":"git@github.com:Shopify/schmooze.git","clone_url":"https://github.com/Shopify/schmooze.git","svn_url":"https://github.com/Shopify/schmooze","homepage":null,"size":18,"stargazers_count":3,"watchers_count":3,"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":3,"default_branch":"master"}},"base":{"label":"Shopify:master","ref":"master","sha":"686b903a582859257aa495765c72afd9e369b785","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":52630627,"name":"schmooze","full_name":"Shopify/schmooze","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/schmooze","description":"Schmooze lets Ruby and Node.js work together intimately.","fork":false,"url":"https://api.github.com/repos/Shopify/schmooze","forks_url":"https://api.github.com/repos/Shopify/schmooze/forks","keys_url":"https://api.github.com/repos/Shopify/schmooze/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/schmooze/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/schmooze/teams","hooks_url":"https://api.github.com/repos/Shopify/schmooze/hooks","issue_events_url":"https://api.github.com/repos/Shopify/schmooze/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/schmooze/events","assignees_url":"https://api.github.com/repos/Shopify/schmooze/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/schmooze/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/schmooze/tags","blobs_url":"https://api.github.com/repos/Shopify/schmooze/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/schmooze/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/schmooze/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/schmooze/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/schmooze/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/schmooze/languages","stargazers_url":"https://api.github.com/repos/Shopify/schmooze/stargazers","contributors_url":"https://api.github.com/repos/Shopify/schmooze/contributors","subscribers_url":"https://api.github.com/repos/Shopify/schmooze/subscribers","subscription_url":"https://api.github.com/repos/Shopify/schmooze/subscription","commits_url":"https://api.github.com/repos/Shopify/schmooze/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/schmooze/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/schmooze/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/schmooze/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/schmooze/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/schmooze/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/schmooze/merges","archive_url":"https://api.github.com/repos/Shopify/schmooze/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/schmooze/downloads","issues_url":"https://api.github.com/repos/Shopify/schmooze/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/schmooze/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/schmooze/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/schmooze/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/schmooze/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/schmooze/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/schmooze/deployments","created_at":"2016-02-26T20:25:10Z","updated_at":"2016-03-18T14:08:56Z","pushed_at":"2016-03-23T17:00:39Z","git_url":"git://github.com/Shopify/schmooze.git","ssh_url":"git@github.com:Shopify/schmooze.git","clone_url":"https://github.com/Shopify/schmooze.git","svn_url":"https://github.com/Shopify/schmooze","homepage":null,"size":18,"stargazers_count":3,"watchers_count":3,"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":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shopify/schmooze/pulls/3"},"html":{"href":"https://github.com/Shopify/schmooze/pull/3"},"issue":{"href":"https://api.github.com/repos/Shopify/schmooze/issues/3"},"comments":{"href":"https://api.github.com/repos/Shopify/schmooze/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Shopify/schmooze/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Shopify/schmooze/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Shopify/schmooze/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Shopify/schmooze/statuses/85ca417ed8fcfe65634273ae18806038f91f7bcc"}}}}