{"action":"created","comment":{"url":"https://api.github.com/repos/benbalter/pdftotext/pulls/comments/83225266","pull_request_review_id":4081522,"id":83225266,"diff_hunk":"@@ -8,7 +8,7 @@ class CLI\n     def run_command(*args)\n       options = DEFAULT_OPTIONS.merge(args.pop)\n       args = args.concat options_to_args(options)\n-      output, status = Open3.capture2e(bin_path, *args)\n+      output, status = Open3.capture2e(\"#{bin_path} #{args.join(\" \")}\")","path":"lib/pdftotext/cli.rb","position":5,"original_position":5,"commit_id":"0c8061a39a236a502b8f74f6eb30e2e7dec3d480","original_commit_id":"0c8061a39a236a502b8f74f6eb30e2e7dec3d480","user":{"login":"benbalter","id":282759,"avatar_url":"https://avatars.githubusercontent.com/u/282759?v=3","gravatar_id":"","url":"https://api.github.com/users/benbalter","html_url":"https://github.com/benbalter","followers_url":"https://api.github.com/users/benbalter/followers","following_url":"https://api.github.com/users/benbalter/following{/other_user}","gists_url":"https://api.github.com/users/benbalter/gists{/gist_id}","starred_url":"https://api.github.com/users/benbalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbalter/subscriptions","organizations_url":"https://api.github.com/users/benbalter/orgs","repos_url":"https://api.github.com/users/benbalter/repos","events_url":"https://api.github.com/users/benbalter/events{/privacy}","received_events_url":"https://api.github.com/users/benbalter/received_events","type":"User","site_admin":true},"body":"`Capture2e` is intended to take an array of arguments and build a string representation of them (handling things like escaping, etc.). We shouldn't have to concatenate the string ourselves.","created_at":"2016-10-13T14:13:17Z","updated_at":"2016-10-13T14:13:17Z","html_url":"https://github.com/benbalter/pdftotext/pull/1#discussion_r83225266","pull_request_url":"https://api.github.com/repos/benbalter/pdftotext/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/benbalter/pdftotext/pulls/comments/83225266"},"html":{"href":"https://github.com/benbalter/pdftotext/pull/1#discussion_r83225266"},"pull_request":{"href":"https://api.github.com/repos/benbalter/pdftotext/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/benbalter/pdftotext/pulls/1","id":89200862,"html_url":"https://github.com/benbalter/pdftotext/pull/1","diff_url":"https://github.com/benbalter/pdftotext/pull/1.diff","patch_url":"https://github.com/benbalter/pdftotext/pull/1.patch","issue_url":"https://api.github.com/repos/benbalter/pdftotext/issues/1","number":1,"state":"open","locked":false,"title":"Handle passing additional arguments","user":{"login":"jayschab","id":1414862,"avatar_url":"https://avatars.githubusercontent.com/u/1414862?v=3","gravatar_id":"","url":"https://api.github.com/users/jayschab","html_url":"https://github.com/jayschab","followers_url":"https://api.github.com/users/jayschab/followers","following_url":"https://api.github.com/users/jayschab/following{/other_user}","gists_url":"https://api.github.com/users/jayschab/gists{/gist_id}","starred_url":"https://api.github.com/users/jayschab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayschab/subscriptions","organizations_url":"https://api.github.com/users/jayschab/orgs","repos_url":"https://api.github.com/users/jayschab/repos","events_url":"https://api.github.com/users/jayschab/events{/privacy}","received_events_url":"https://api.github.com/users/jayschab/received_events","type":"User","site_admin":false},"body":"Trying to run `Pdftotext('../path/to/file', {fixed: 2})` resulted in an error and caused the help text for `pdftotext` to be printed. Changing the call to `Open3` to make the command a single string worked to fix this problem for me.","created_at":"2016-10-13T13:22:32Z","updated_at":"2016-10-13T14:13:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d191ec407dc776a4bbb373ef45c9f0030bfc1bc6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/benbalter/pdftotext/pulls/1/commits","review_comments_url":"https://api.github.com/repos/benbalter/pdftotext/pulls/1/comments","review_comment_url":"https://api.github.com/repos/benbalter/pdftotext/pulls/comments{/number}","comments_url":"https://api.github.com/repos/benbalter/pdftotext/issues/1/comments","statuses_url":"https://api.github.com/repos/benbalter/pdftotext/statuses/0c8061a39a236a502b8f74f6eb30e2e7dec3d480","head":{"label":"jayschab:master","ref":"master","sha":"0c8061a39a236a502b8f74f6eb30e2e7dec3d480","user":{"login":"jayschab","id":1414862,"avatar_url":"https://avatars.githubusercontent.com/u/1414862?v=3","gravatar_id":"","url":"https://api.github.com/users/jayschab","html_url":"https://github.com/jayschab","followers_url":"https://api.github.com/users/jayschab/followers","following_url":"https://api.github.com/users/jayschab/following{/other_user}","gists_url":"https://api.github.com/users/jayschab/gists{/gist_id}","starred_url":"https://api.github.com/users/jayschab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayschab/subscriptions","organizations_url":"https://api.github.com/users/jayschab/orgs","repos_url":"https://api.github.com/users/jayschab/repos","events_url":"https://api.github.com/users/jayschab/events{/privacy}","received_events_url":"https://api.github.com/users/jayschab/received_events","type":"User","site_admin":false},"repo":{"id":70806441,"name":"pdftotext","full_name":"jayschab/pdftotext","owner":{"login":"jayschab","id":1414862,"avatar_url":"https://avatars.githubusercontent.com/u/1414862?v=3","gravatar_id":"","url":"https://api.github.com/users/jayschab","html_url":"https://github.com/jayschab","followers_url":"https://api.github.com/users/jayschab/followers","following_url":"https://api.github.com/users/jayschab/following{/other_user}","gists_url":"https://api.github.com/users/jayschab/gists{/gist_id}","starred_url":"https://api.github.com/users/jayschab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayschab/subscriptions","organizations_url":"https://api.github.com/users/jayschab/orgs","repos_url":"https://api.github.com/users/jayschab/repos","events_url":"https://api.github.com/users/jayschab/events{/privacy}","received_events_url":"https://api.github.com/users/jayschab/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jayschab/pdftotext","description":"A Ruby wrapper for the `pdftotext` command line library","fork":true,"url":"https://api.github.com/repos/jayschab/pdftotext","forks_url":"https://api.github.com/repos/jayschab/pdftotext/forks","keys_url":"https://api.github.com/repos/jayschab/pdftotext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jayschab/pdftotext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jayschab/pdftotext/teams","hooks_url":"https://api.github.com/repos/jayschab/pdftotext/hooks","issue_events_url":"https://api.github.com/repos/jayschab/pdftotext/issues/events{/number}","events_url":"https://api.github.com/repos/jayschab/pdftotext/events","assignees_url":"https://api.github.com/repos/jayschab/pdftotext/assignees{/user}","branches_url":"https://api.github.com/repos/jayschab/pdftotext/branches{/branch}","tags_url":"https://api.github.com/repos/jayschab/pdftotext/tags","blobs_url":"https://api.github.com/repos/jayschab/pdftotext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jayschab/pdftotext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jayschab/pdftotext/git/refs{/sha}","trees_url":"https://api.github.com/repos/jayschab/pdftotext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jayschab/pdftotext/statuses/{sha}","languages_url":"https://api.github.com/repos/jayschab/pdftotext/languages","stargazers_url":"https://api.github.com/repos/jayschab/pdftotext/stargazers","contributors_url":"https://api.github.com/repos/jayschab/pdftotext/contributors","subscribers_url":"https://api.github.com/repos/jayschab/pdftotext/subscribers","subscription_url":"https://api.github.com/repos/jayschab/pdftotext/subscription","commits_url":"https://api.github.com/repos/jayschab/pdftotext/commits{/sha}","git_commits_url":"https://api.github.com/repos/jayschab/pdftotext/git/commits{/sha}","comments_url":"https://api.github.com/repos/jayschab/pdftotext/comments{/number}","issue_comment_url":"https://api.github.com/repos/jayschab/pdftotext/issues/comments{/number}","contents_url":"https://api.github.com/repos/jayschab/pdftotext/contents/{+path}","compare_url":"https://api.github.com/repos/jayschab/pdftotext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jayschab/pdftotext/merges","archive_url":"https://api.github.com/repos/jayschab/pdftotext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jayschab/pdftotext/downloads","issues_url":"https://api.github.com/repos/jayschab/pdftotext/issues{/number}","pulls_url":"https://api.github.com/repos/jayschab/pdftotext/pulls{/number}","milestones_url":"https://api.github.com/repos/jayschab/pdftotext/milestones{/number}","notifications_url":"https://api.github.com/repos/jayschab/pdftotext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jayschab/pdftotext/labels{/name}","releases_url":"https://api.github.com/repos/jayschab/pdftotext/releases{/id}","deployments_url":"https://api.github.com/repos/jayschab/pdftotext/deployments","created_at":"2016-10-13T12:56:16Z","updated_at":"2016-10-13T12:56:18Z","pushed_at":"2016-10-13T13:15:09Z","git_url":"git://github.com/jayschab/pdftotext.git","ssh_url":"git@github.com:jayschab/pdftotext.git","clone_url":"https://github.com/jayschab/pdftotext.git","svn_url":"https://github.com/jayschab/pdftotext","homepage":null,"size":23,"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":"benbalter:master","ref":"master","sha":"ff516a5c0ec05191df81909d693f233b497ba80b","user":{"login":"benbalter","id":282759,"avatar_url":"https://avatars.githubusercontent.com/u/282759?v=3","gravatar_id":"","url":"https://api.github.com/users/benbalter","html_url":"https://github.com/benbalter","followers_url":"https://api.github.com/users/benbalter/followers","following_url":"https://api.github.com/users/benbalter/following{/other_user}","gists_url":"https://api.github.com/users/benbalter/gists{/gist_id}","starred_url":"https://api.github.com/users/benbalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbalter/subscriptions","organizations_url":"https://api.github.com/users/benbalter/orgs","repos_url":"https://api.github.com/users/benbalter/repos","events_url":"https://api.github.com/users/benbalter/events{/privacy}","received_events_url":"https://api.github.com/users/benbalter/received_events","type":"User","site_admin":true},"repo":{"id":48135215,"name":"pdftotext","full_name":"benbalter/pdftotext","owner":{"login":"benbalter","id":282759,"avatar_url":"https://avatars.githubusercontent.com/u/282759?v=3","gravatar_id":"","url":"https://api.github.com/users/benbalter","html_url":"https://github.com/benbalter","followers_url":"https://api.github.com/users/benbalter/followers","following_url":"https://api.github.com/users/benbalter/following{/other_user}","gists_url":"https://api.github.com/users/benbalter/gists{/gist_id}","starred_url":"https://api.github.com/users/benbalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbalter/subscriptions","organizations_url":"https://api.github.com/users/benbalter/orgs","repos_url":"https://api.github.com/users/benbalter/repos","events_url":"https://api.github.com/users/benbalter/events{/privacy}","received_events_url":"https://api.github.com/users/benbalter/received_events","type":"User","site_admin":true},"private":false,"html_url":"https://github.com/benbalter/pdftotext","description":"A Ruby wrapper for the `pdftotext` command line library","fork":false,"url":"https://api.github.com/repos/benbalter/pdftotext","forks_url":"https://api.github.com/repos/benbalter/pdftotext/forks","keys_url":"https://api.github.com/repos/benbalter/pdftotext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benbalter/pdftotext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benbalter/pdftotext/teams","hooks_url":"https://api.github.com/repos/benbalter/pdftotext/hooks","issue_events_url":"https://api.github.com/repos/benbalter/pdftotext/issues/events{/number}","events_url":"https://api.github.com/repos/benbalter/pdftotext/events","assignees_url":"https://api.github.com/repos/benbalter/pdftotext/assignees{/user}","branches_url":"https://api.github.com/repos/benbalter/pdftotext/branches{/branch}","tags_url":"https://api.github.com/repos/benbalter/pdftotext/tags","blobs_url":"https://api.github.com/repos/benbalter/pdftotext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benbalter/pdftotext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benbalter/pdftotext/git/refs{/sha}","trees_url":"https://api.github.com/repos/benbalter/pdftotext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benbalter/pdftotext/statuses/{sha}","languages_url":"https://api.github.com/repos/benbalter/pdftotext/languages","stargazers_url":"https://api.github.com/repos/benbalter/pdftotext/stargazers","contributors_url":"https://api.github.com/repos/benbalter/pdftotext/contributors","subscribers_url":"https://api.github.com/repos/benbalter/pdftotext/subscribers","subscription_url":"https://api.github.com/repos/benbalter/pdftotext/subscription","commits_url":"https://api.github.com/repos/benbalter/pdftotext/commits{/sha}","git_commits_url":"https://api.github.com/repos/benbalter/pdftotext/git/commits{/sha}","comments_url":"https://api.github.com/repos/benbalter/pdftotext/comments{/number}","issue_comment_url":"https://api.github.com/repos/benbalter/pdftotext/issues/comments{/number}","contents_url":"https://api.github.com/repos/benbalter/pdftotext/contents/{+path}","compare_url":"https://api.github.com/repos/benbalter/pdftotext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benbalter/pdftotext/merges","archive_url":"https://api.github.com/repos/benbalter/pdftotext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benbalter/pdftotext/downloads","issues_url":"https://api.github.com/repos/benbalter/pdftotext/issues{/number}","pulls_url":"https://api.github.com/repos/benbalter/pdftotext/pulls{/number}","milestones_url":"https://api.github.com/repos/benbalter/pdftotext/milestones{/number}","notifications_url":"https://api.github.com/repos/benbalter/pdftotext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benbalter/pdftotext/labels{/name}","releases_url":"https://api.github.com/repos/benbalter/pdftotext/releases{/id}","deployments_url":"https://api.github.com/repos/benbalter/pdftotext/deployments","created_at":"2015-12-16T21:06:41Z","updated_at":"2016-04-01T03:24:56Z","pushed_at":"2016-10-13T13:22:32Z","git_url":"git://github.com/benbalter/pdftotext.git","ssh_url":"git@github.com:benbalter/pdftotext.git","clone_url":"https://github.com/benbalter/pdftotext.git","svn_url":"https://github.com/benbalter/pdftotext","homepage":null,"size":23,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/benbalter/pdftotext/pulls/1"},"html":{"href":"https://github.com/benbalter/pdftotext/pull/1"},"issue":{"href":"https://api.github.com/repos/benbalter/pdftotext/issues/1"},"comments":{"href":"https://api.github.com/repos/benbalter/pdftotext/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/benbalter/pdftotext/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/benbalter/pdftotext/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/benbalter/pdftotext/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/benbalter/pdftotext/statuses/0c8061a39a236a502b8f74f6eb30e2e7dec3d480"}}}}
{"actor":{"display_login":"benbalter"}}