{"action":"opened","number":62,"pull_request":{"url":"https://api.github.com/repos/iij/mruby-io/pulls/62","id":80341460,"html_url":"https://github.com/iij/mruby-io/pull/62","diff_url":"https://github.com/iij/mruby-io/pull/62.diff","patch_url":"https://github.com/iij/mruby-io/pull/62.patch","issue_url":"https://api.github.com/repos/iij/mruby-io/issues/62","number":62,"state":"open","locked":false,"title":"Should use global variable","user":{"login":"ksss","id":935310,"avatar_url":"https://avatars.githubusercontent.com/u/935310?v=3","gravatar_id":"","url":"https://api.github.com/users/ksss","html_url":"https://github.com/ksss","followers_url":"https://api.github.com/users/ksss/followers","following_url":"https://api.github.com/users/ksss/following{/other_user}","gists_url":"https://api.github.com/users/ksss/gists{/gist_id}","starred_url":"https://api.github.com/users/ksss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksss/subscriptions","organizations_url":"https://api.github.com/users/ksss/orgs","repos_url":"https://api.github.com/users/ksss/repos","events_url":"https://api.github.com/users/ksss/events{/privacy}","received_events_url":"https://api.github.com/users/ksss/received_events","type":"User","site_admin":false},"body":"I wrote [mruby-stringio](https://github.com/ksss/mruby-stringio).\r\nBut now, We have to overwrite CONST value for get string of wrote by stdout.\r\n\r\n```rb\r\norig = STDOUT\r\nio = StringIO.new\r\nSTDOUT = io\r\nputs \"hello\"\r\nSTDOUT = orig\r\np io.string #=> \"hello\\n\"\r\n```\r\n\r\nI expect to use globel variable like this.\r\n\r\n```rb\r\norig = $stdout\r\nio = StringIO.new\r\n$stdout = io\r\nputs \"hello\"\r\n$stdout = orig\r\np io.string #=> \"hello\\n\"\r\n```","created_at":"2016-08-06T14:29:56Z","updated_at":"2016-08-06T14:29:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/iij/mruby-io/pulls/62/commits","review_comments_url":"https://api.github.com/repos/iij/mruby-io/pulls/62/comments","review_comment_url":"https://api.github.com/repos/iij/mruby-io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iij/mruby-io/issues/62/comments","statuses_url":"https://api.github.com/repos/iij/mruby-io/statuses/4cac5e9c70e9d73d97b77bc189ce7ac1f585b102","head":{"label":"ksss:global","ref":"global","sha":"4cac5e9c70e9d73d97b77bc189ce7ac1f585b102","user":{"login":"ksss","id":935310,"avatar_url":"https://avatars.githubusercontent.com/u/935310?v=3","gravatar_id":"","url":"https://api.github.com/users/ksss","html_url":"https://github.com/ksss","followers_url":"https://api.github.com/users/ksss/followers","following_url":"https://api.github.com/users/ksss/following{/other_user}","gists_url":"https://api.github.com/users/ksss/gists{/gist_id}","starred_url":"https://api.github.com/users/ksss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksss/subscriptions","organizations_url":"https://api.github.com/users/ksss/orgs","repos_url":"https://api.github.com/users/ksss/repos","events_url":"https://api.github.com/users/ksss/events{/privacy}","received_events_url":"https://api.github.com/users/ksss/received_events","type":"User","site_admin":false},"repo":{"id":26569910,"name":"mruby-io","full_name":"ksss/mruby-io","owner":{"login":"ksss","id":935310,"avatar_url":"https://avatars.githubusercontent.com/u/935310?v=3","gravatar_id":"","url":"https://api.github.com/users/ksss","html_url":"https://github.com/ksss","followers_url":"https://api.github.com/users/ksss/followers","following_url":"https://api.github.com/users/ksss/following{/other_user}","gists_url":"https://api.github.com/users/ksss/gists{/gist_id}","starred_url":"https://api.github.com/users/ksss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksss/subscriptions","organizations_url":"https://api.github.com/users/ksss/orgs","repos_url":"https://api.github.com/users/ksss/repos","events_url":"https://api.github.com/users/ksss/events{/privacy}","received_events_url":"https://api.github.com/users/ksss/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ksss/mruby-io","description":"IO and File class for mruby","fork":true,"url":"https://api.github.com/repos/ksss/mruby-io","forks_url":"https://api.github.com/repos/ksss/mruby-io/forks","keys_url":"https://api.github.com/repos/ksss/mruby-io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ksss/mruby-io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ksss/mruby-io/teams","hooks_url":"https://api.github.com/repos/ksss/mruby-io/hooks","issue_events_url":"https://api.github.com/repos/ksss/mruby-io/issues/events{/number}","events_url":"https://api.github.com/repos/ksss/mruby-io/events","assignees_url":"https://api.github.com/repos/ksss/mruby-io/assignees{/user}","branches_url":"https://api.github.com/repos/ksss/mruby-io/branches{/branch}","tags_url":"https://api.github.com/repos/ksss/mruby-io/tags","blobs_url":"https://api.github.com/repos/ksss/mruby-io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ksss/mruby-io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ksss/mruby-io/git/refs{/sha}","trees_url":"https://api.github.com/repos/ksss/mruby-io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ksss/mruby-io/statuses/{sha}","languages_url":"https://api.github.com/repos/ksss/mruby-io/languages","stargazers_url":"https://api.github.com/repos/ksss/mruby-io/stargazers","contributors_url":"https://api.github.com/repos/ksss/mruby-io/contributors","subscribers_url":"https://api.github.com/repos/ksss/mruby-io/subscribers","subscription_url":"https://api.github.com/repos/ksss/mruby-io/subscription","commits_url":"https://api.github.com/repos/ksss/mruby-io/commits{/sha}","git_commits_url":"https://api.github.com/repos/ksss/mruby-io/git/commits{/sha}","comments_url":"https://api.github.com/repos/ksss/mruby-io/comments{/number}","issue_comment_url":"https://api.github.com/repos/ksss/mruby-io/issues/comments{/number}","contents_url":"https://api.github.com/repos/ksss/mruby-io/contents/{+path}","compare_url":"https://api.github.com/repos/ksss/mruby-io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ksss/mruby-io/merges","archive_url":"https://api.github.com/repos/ksss/mruby-io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ksss/mruby-io/downloads","issues_url":"https://api.github.com/repos/ksss/mruby-io/issues{/number}","pulls_url":"https://api.github.com/repos/ksss/mruby-io/pulls{/number}","milestones_url":"https://api.github.com/repos/ksss/mruby-io/milestones{/number}","notifications_url":"https://api.github.com/repos/ksss/mruby-io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ksss/mruby-io/labels{/name}","releases_url":"https://api.github.com/repos/ksss/mruby-io/releases{/id}","deployments_url":"https://api.github.com/repos/ksss/mruby-io/deployments","created_at":"2014-11-13T04:01:52Z","updated_at":"2014-12-06T08:31:32Z","pushed_at":"2016-08-06T14:12:18Z","git_url":"git://github.com/ksss/mruby-io.git","ssh_url":"git@github.com:ksss/mruby-io.git","clone_url":"https://github.com/ksss/mruby-io.git","svn_url":"https://github.com/ksss/mruby-io","homepage":"","size":123,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"iij:master","ref":"master","sha":"93d481d4b49829e37b1f501c7307663c6327dfab","user":{"login":"iij","id":2141544,"avatar_url":"https://avatars.githubusercontent.com/u/2141544?v=3","gravatar_id":"","url":"https://api.github.com/users/iij","html_url":"https://github.com/iij","followers_url":"https://api.github.com/users/iij/followers","following_url":"https://api.github.com/users/iij/following{/other_user}","gists_url":"https://api.github.com/users/iij/gists{/gist_id}","starred_url":"https://api.github.com/users/iij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iij/subscriptions","organizations_url":"https://api.github.com/users/iij/orgs","repos_url":"https://api.github.com/users/iij/repos","events_url":"https://api.github.com/users/iij/events{/privacy}","received_events_url":"https://api.github.com/users/iij/received_events","type":"Organization","site_admin":false},"repo":{"id":9021346,"name":"mruby-io","full_name":"iij/mruby-io","owner":{"login":"iij","id":2141544,"avatar_url":"https://avatars.githubusercontent.com/u/2141544?v=3","gravatar_id":"","url":"https://api.github.com/users/iij","html_url":"https://github.com/iij","followers_url":"https://api.github.com/users/iij/followers","following_url":"https://api.github.com/users/iij/following{/other_user}","gists_url":"https://api.github.com/users/iij/gists{/gist_id}","starred_url":"https://api.github.com/users/iij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iij/subscriptions","organizations_url":"https://api.github.com/users/iij/orgs","repos_url":"https://api.github.com/users/iij/repos","events_url":"https://api.github.com/users/iij/events{/privacy}","received_events_url":"https://api.github.com/users/iij/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iij/mruby-io","description":"IO and File class for mruby","fork":false,"url":"https://api.github.com/repos/iij/mruby-io","forks_url":"https://api.github.com/repos/iij/mruby-io/forks","keys_url":"https://api.github.com/repos/iij/mruby-io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iij/mruby-io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iij/mruby-io/teams","hooks_url":"https://api.github.com/repos/iij/mruby-io/hooks","issue_events_url":"https://api.github.com/repos/iij/mruby-io/issues/events{/number}","events_url":"https://api.github.com/repos/iij/mruby-io/events","assignees_url":"https://api.github.com/repos/iij/mruby-io/assignees{/user}","branches_url":"https://api.github.com/repos/iij/mruby-io/branches{/branch}","tags_url":"https://api.github.com/repos/iij/mruby-io/tags","blobs_url":"https://api.github.com/repos/iij/mruby-io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iij/mruby-io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iij/mruby-io/git/refs{/sha}","trees_url":"https://api.github.com/repos/iij/mruby-io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iij/mruby-io/statuses/{sha}","languages_url":"https://api.github.com/repos/iij/mruby-io/languages","stargazers_url":"https://api.github.com/repos/iij/mruby-io/stargazers","contributors_url":"https://api.github.com/repos/iij/mruby-io/contributors","subscribers_url":"https://api.github.com/repos/iij/mruby-io/subscribers","subscription_url":"https://api.github.com/repos/iij/mruby-io/subscription","commits_url":"https://api.github.com/repos/iij/mruby-io/commits{/sha}","git_commits_url":"https://api.github.com/repos/iij/mruby-io/git/commits{/sha}","comments_url":"https://api.github.com/repos/iij/mruby-io/comments{/number}","issue_comment_url":"https://api.github.com/repos/iij/mruby-io/issues/comments{/number}","contents_url":"https://api.github.com/repos/iij/mruby-io/contents/{+path}","compare_url":"https://api.github.com/repos/iij/mruby-io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iij/mruby-io/merges","archive_url":"https://api.github.com/repos/iij/mruby-io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iij/mruby-io/downloads","issues_url":"https://api.github.com/repos/iij/mruby-io/issues{/number}","pulls_url":"https://api.github.com/repos/iij/mruby-io/pulls{/number}","milestones_url":"https://api.github.com/repos/iij/mruby-io/milestones{/number}","notifications_url":"https://api.github.com/repos/iij/mruby-io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iij/mruby-io/labels{/name}","releases_url":"https://api.github.com/repos/iij/mruby-io/releases{/id}","deployments_url":"https://api.github.com/repos/iij/mruby-io/deployments","created_at":"2013-03-26T02:43:11Z","updated_at":"2016-04-28T10:56:52Z","pushed_at":"2016-06-22T01:34:21Z","git_url":"git://github.com/iij/mruby-io.git","ssh_url":"git@github.com:iij/mruby-io.git","clone_url":"https://github.com/iij/mruby-io.git","svn_url":"https://github.com/iij/mruby-io","homepage":"","size":248,"stargazers_count":32,"watchers_count":32,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":7,"forks":41,"open_issues":7,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iij/mruby-io/pulls/62"},"html":{"href":"https://github.com/iij/mruby-io/pull/62"},"issue":{"href":"https://api.github.com/repos/iij/mruby-io/issues/62"},"comments":{"href":"https://api.github.com/repos/iij/mruby-io/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/iij/mruby-io/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/iij/mruby-io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iij/mruby-io/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/iij/mruby-io/statuses/4cac5e9c70e9d73d97b77bc189ce7ac1f585b102"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":5,"changed_files":1}}
{"actor":{"display_login":"ksss"}}