{"id":16406487,"url":"https://github.com/wincent/wopen3","last_synced_at":"2026-03-18T19:27:24.114Z","repository":{"id":568894,"uuid":"200317","full_name":"wincent/wopen3","owner":"wincent","description":"Open3 replacement","archived":false,"fork":false,"pushed_at":"2024-03-01T17:00:37.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-05T15:43:34.758Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.wincent.com/a/products/walrus/wopen3/","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wincent.png","metadata":{"files":{"readme":"README.html","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2009-05-13T22:08:21.000Z","updated_at":"2022-08-20T03:48:16.000Z","dependencies_parsed_at":"2025-01-05T15:51:09.366Z","dependency_job_id":null,"html_url":"https://github.com/wincent/wopen3","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wincent%2Fwopen3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wincent%2Fwopen3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wincent%2Fwopen3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wincent%2Fwopen3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wincent","download_url":"https://codeload.github.com/wincent/wopen3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240380379,"owners_count":19792286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T06:09:55.431Z","updated_at":"2026-02-28T02:39:29.322Z","avatar_url":"https://github.com/wincent.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp\u003eWopen3 is a replacement for Open3. Unlike Open3, Wopen3 does not throw away\nthe exit code of the executed (grandchild) process. Only a child process is\nspawned and the exit status is returned in $? as normal.\u003c/p\u003e\n\n\u003cp\u003eUsage example:\u003c/p\u003e\n\n\u003cpre\u003eresult, errors = '', ''\nWopen3.popen3('git', 'log') do |stdin, stdout, stderr|\n  threads = []\n  threads \u0026lt;\u0026lt; Thread.new(stdout) do |out|\n    out.each { |line| result \u0026lt;\u0026lt; line }\n  end\n  threads \u0026lt;\u0026lt; Thread.new(stderr) do |err|\n    err.each { |line| errors \u0026lt;\u0026lt; line }\n  end\n  threads.each { |thread| thread.join }\nend\nstatus = $?.exitstatus\nraise \"Non-zero exit status #{status}\" if status != 0\u003c/pre\u003e\n\n\u003cp\u003eAs this is such a common usage pattern, a 'system' method is provided as a\nconvenience:\u003c/p\u003e\n\n\u003cpre\u003eresult = Wopen3.system('git', 'log')\nresult.success? # =\u0026gt; true\nresult.status   # =\u0026gt; 0\nresult.stderr   # =\u0026gt; ''\nresult.stdout   # =\u0026gt; 'commit 491411b3...'\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwincent%2Fwopen3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwincent%2Fwopen3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwincent%2Fwopen3/lists"}