{"action":"created","comment":{"url":"https://api.github.com/repos/smalruby/smalruby3-gui/pulls/comments/227220143","pull_request_review_id":167208959,"id":227220143,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzIyMDE0Mw==","diff_hunk":"@@ -77,35 +77,34 @@ export default function (Blockly) {\n     };\n \n     Blockly.Ruby.sensing_loudness = function () {\n-        return ['Sound.volume', Blockly.Ruby.ORDER_ATOMIC];\n-    };\n-\n-    Blockly.Ruby.sensing_loud = function () {\n-        return ['\"wip: sensing_loud\"', Blockly.Ruby.ORDER_ATOMIC];\n+        return ['loudness', Blockly.Ruby.ORDER_ATOMIC];\n     };\n \n     Blockly.Ruby.sensing_timer = function () {\n-        return ['timer', Blockly.Ruby.ORDER_ATOMIC];\n+        return ['Timer.value', Blockly.Ruby.ORDER_ATOMIC];\n     };\n \n     Blockly.Ruby.sensing_resettimer = function () {\n-        return 'reset_timer\\n';\n+        return 'Timer.reset\\n';\n     };\n \n     Blockly.Ruby.sensing_of_object_menu = function (block) {\n         const object = Blockly.Ruby.quote_(block.getFieldValue('OBJECT') || null);\n-        return [object, Blockly.Ruby.ORDER_ATOMIC];\n+        if (object === Blockly.Ruby.quote_('_stage_')) {\n+            return ['stage', Blockly.Ruby.ORDER_ATOMIC];\n+        }\n+        return [`sprite(${object})`, Blockly.Ruby.ORDER_ATOMIC];\n     };\n \n     Blockly.Ruby.sensing_of = function (block) {\n         const property = Blockly.Ruby.quote_(block.getFieldValue('PROPERTY') || null);","path":"src/lib/ruby-generator/sensing.js","position":100,"original_position":69,"commit_id":"5c69e7b33e4c3fd1ce3ff312839ecb39352d827a","original_commit_id":"5c69e7b33e4c3fd1ce3ff312839ecb39352d827a","user":{"login":"takaokouji","id":52317,"node_id":"MDQ6VXNlcjUyMzE3","avatar_url":"https://avatars0.githubusercontent.com/u/52317?v=4","gravatar_id":"","url":"https://api.github.com/users/takaokouji","html_url":"https://github.com/takaokouji","followers_url":"https://api.github.com/users/takaokouji/followers","following_url":"https://api.github.com/users/takaokouji/following{/other_user}","gists_url":"https://api.github.com/users/takaokouji/gists{/gist_id}","starred_url":"https://api.github.com/users/takaokouji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takaokouji/subscriptions","organizations_url":"https://api.github.com/users/takaokouji/orgs","repos_url":"https://api.github.com/users/takaokouji/repos","events_url":"https://api.github.com/users/takaokouji/events{/privacy}","received_events_url":"https://api.github.com/users/takaokouji/received_events","type":"User","site_admin":false},"body":"propertyはquoteしない。\r\n\r\n```\r\nconst property = block.getFieldValue('PROPERTY') || null;\r\n```","created_at":"2018-10-23T04:28:02Z","updated_at":"2018-10-23T04:28:02Z","html_url":"https://github.com/smalruby/smalruby3-gui/pull/98#discussion_r227220143","pull_request_url":"https://api.github.com/repos/smalruby/smalruby3-gui/pulls/98","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/smalruby/smalruby3-gui/pulls/comments/227220143"},"html":{"href":"https://github.com/smalruby/smalruby3-gui/pull/98#discussion_r227220143"},"pull_request":{"href":"https://api.github.com/repos/smalruby/smalruby3-gui/pulls/98"}}},"pull_request":{"url":"https://api.github.com/repos/smalruby/smalruby3-gui/pulls/98","id":224890282,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0ODkwMjgy","html_url":"https://github.com/smalruby/smalruby3-gui/pull/98","diff_url":"https://github.com/smalruby/smalruby3-gui/pull/98.diff","patch_url":"https://github.com/smalruby/smalruby3-gui/pull/98.patch","issue_url":"https://api.github.com/repos/smalruby/smalruby3-gui/issues/98","number":98,"state":"open","locked":false,"title":"調べるのブロックをRubyに変換できるようにしました。","user":{"login":"t-kazu","id":23467008,"node_id":"MDQ6VXNlcjIzNDY3MDA4","avatar_url":"https://avatars2.githubusercontent.com/u/23467008?v=4","gravatar_id":"","url":"https://api.github.com/users/t-kazu","html_url":"https://github.com/t-kazu","followers_url":"https://api.github.com/users/t-kazu/followers","following_url":"https://api.github.com/users/t-kazu/following{/other_user}","gists_url":"https://api.github.com/users/t-kazu/gists{/gist_id}","starred_url":"https://api.github.com/users/t-kazu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-kazu/subscriptions","organizations_url":"https://api.github.com/users/t-kazu/orgs","repos_url":"https://api.github.com/users/t-kazu/repos","events_url":"https://api.github.com/users/t-kazu/events{/privacy}","received_events_url":"https://api.github.com/users/t-kazu/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-23T04:16:17Z","updated_at":"2018-10-23T04:28:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2fc8f708ed529befee4e1f44d54c342f6ec8ad4e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/smalruby/smalruby3-gui/pulls/98/commits","review_comments_url":"https://api.github.com/repos/smalruby/smalruby3-gui/pulls/98/comments","review_comment_url":"https://api.github.com/repos/smalruby/smalruby3-gui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/smalruby/smalruby3-gui/issues/98/comments","statuses_url":"https://api.github.com/repos/smalruby/smalruby3-gui/statuses/5c69e7b33e4c3fd1ce3ff312839ecb39352d827a","head":{"label":"t-kazu:feature/sensing-blocks","ref":"feature/sensing-blocks","sha":"5c69e7b33e4c3fd1ce3ff312839ecb39352d827a","user":{"login":"t-kazu","id":23467008,"node_id":"MDQ6VXNlcjIzNDY3MDA4","avatar_url":"https://avatars2.githubusercontent.com/u/23467008?v=4","gravatar_id":"","url":"https://api.github.com/users/t-kazu","html_url":"https://github.com/t-kazu","followers_url":"https://api.github.com/users/t-kazu/followers","following_url":"https://api.github.com/users/t-kazu/following{/other_user}","gists_url":"https://api.github.com/users/t-kazu/gists{/gist_id}","starred_url":"https://api.github.com/users/t-kazu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-kazu/subscriptions","organizations_url":"https://api.github.com/users/t-kazu/orgs","repos_url":"https://api.github.com/users/t-kazu/repos","events_url":"https://api.github.com/users/t-kazu/events{/privacy}","received_events_url":"https://api.github.com/users/t-kazu/received_events","type":"User","site_admin":false},"repo":{"id":133504162,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM1MDQxNjI=","name":"smalruby3-gui","full_name":"t-kazu/smalruby3-gui","private":false,"owner":{"login":"t-kazu","id":23467008,"node_id":"MDQ6VXNlcjIzNDY3MDA4","avatar_url":"https://avatars2.githubusercontent.com/u/23467008?v=4","gravatar_id":"","url":"https://api.github.com/users/t-kazu","html_url":"https://github.com/t-kazu","followers_url":"https://api.github.com/users/t-kazu/followers","following_url":"https://api.github.com/users/t-kazu/following{/other_user}","gists_url":"https://api.github.com/users/t-kazu/gists{/gist_id}","starred_url":"https://api.github.com/users/t-kazu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-kazu/subscriptions","organizations_url":"https://api.github.com/users/t-kazu/orgs","repos_url":"https://api.github.com/users/t-kazu/repos","events_url":"https://api.github.com/users/t-kazu/events{/privacy}","received_events_url":"https://api.github.com/users/t-kazu/received_events","type":"User","site_admin":false},"html_url":"https://github.com/t-kazu/smalruby3-gui","description":"Smalruby 3.0 GUI project forked from LLK/scratch-gui(https://github.com/LLK/scratch-gui)","fork":true,"url":"https://api.github.com/repos/t-kazu/smalruby3-gui","forks_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/forks","keys_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/teams","hooks_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/hooks","issue_events_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/issues/events{/number}","events_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/events","assignees_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/assignees{/user}","branches_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/branches{/branch}","tags_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/tags","blobs_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/git/refs{/sha}","trees_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/statuses/{sha}","languages_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/languages","stargazers_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/stargazers","contributors_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/contributors","subscribers_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/subscribers","subscription_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/subscription","commits_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/commits{/sha}","git_commits_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/git/commits{/sha}","comments_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/comments{/number}","issue_comment_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/issues/comments{/number}","contents_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/contents/{+path}","compare_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/merges","archive_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/downloads","issues_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/issues{/number}","pulls_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/pulls{/number}","milestones_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/milestones{/number}","notifications_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/labels{/name}","releases_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/releases{/id}","deployments_url":"https://api.github.com/repos/t-kazu/smalruby3-gui/deployments","created_at":"2018-05-15T11:08:27Z","updated_at":"2018-10-23T01:34:48Z","pushed_at":"2018-10-23T04:15:12Z","git_url":"git://github.com/t-kazu/smalruby3-gui.git","ssh_url":"git@github.com:t-kazu/smalruby3-gui.git","clone_url":"https://github.com/t-kazu/smalruby3-gui.git","svn_url":"https://github.com/t-kazu/smalruby3-gui","homepage":"","size":296693,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"smalruby:develop","ref":"develop","sha":"c67e1b722355c8a3a601b558b8eb9695a37959ea","user":{"login":"smalruby","id":5109157,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMDkxNTc=","avatar_url":"https://avatars3.githubusercontent.com/u/5109157?v=4","gravatar_id":"","url":"https://api.github.com/users/smalruby","html_url":"https://github.com/smalruby","followers_url":"https://api.github.com/users/smalruby/followers","following_url":"https://api.github.com/users/smalruby/following{/other_user}","gists_url":"https://api.github.com/users/smalruby/gists{/gist_id}","starred_url":"https://api.github.com/users/smalruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smalruby/subscriptions","organizations_url":"https://api.github.com/users/smalruby/orgs","repos_url":"https://api.github.com/users/smalruby/repos","events_url":"https://api.github.com/users/smalruby/events{/privacy}","received_events_url":"https://api.github.com/users/smalruby/received_events","type":"Organization","site_admin":false},"repo":{"id":133436000,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM0MzYwMDA=","name":"smalruby3-gui","full_name":"smalruby/smalruby3-gui","private":false,"owner":{"login":"smalruby","id":5109157,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMDkxNTc=","avatar_url":"https://avatars3.githubusercontent.com/u/5109157?v=4","gravatar_id":"","url":"https://api.github.com/users/smalruby","html_url":"https://github.com/smalruby","followers_url":"https://api.github.com/users/smalruby/followers","following_url":"https://api.github.com/users/smalruby/following{/other_user}","gists_url":"https://api.github.com/users/smalruby/gists{/gist_id}","starred_url":"https://api.github.com/users/smalruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smalruby/subscriptions","organizations_url":"https://api.github.com/users/smalruby/orgs","repos_url":"https://api.github.com/users/smalruby/repos","events_url":"https://api.github.com/users/smalruby/events{/privacy}","received_events_url":"https://api.github.com/users/smalruby/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/smalruby/smalruby3-gui","description":"Smalruby 3.0 GUI project forked from LLK/scratch-gui(https://github.com/LLK/scratch-gui)","fork":true,"url":"https://api.github.com/repos/smalruby/smalruby3-gui","forks_url":"https://api.github.com/repos/smalruby/smalruby3-gui/forks","keys_url":"https://api.github.com/repos/smalruby/smalruby3-gui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smalruby/smalruby3-gui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smalruby/smalruby3-gui/teams","hooks_url":"https://api.github.com/repos/smalruby/smalruby3-gui/hooks","issue_events_url":"https://api.github.com/repos/smalruby/smalruby3-gui/issues/events{/number}","events_url":"https://api.github.com/repos/smalruby/smalruby3-gui/events","assignees_url":"https://api.github.com/repos/smalruby/smalruby3-gui/assignees{/user}","branches_url":"https://api.github.com/repos/smalruby/smalruby3-gui/branches{/branch}","tags_url":"https://api.github.com/repos/smalruby/smalruby3-gui/tags","blobs_url":"https://api.github.com/repos/smalruby/smalruby3-gui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smalruby/smalruby3-gui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smalruby/smalruby3-gui/git/refs{/sha}","trees_url":"https://api.github.com/repos/smalruby/smalruby3-gui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smalruby/smalruby3-gui/statuses/{sha}","languages_url":"https://api.github.com/repos/smalruby/smalruby3-gui/languages","stargazers_url":"https://api.github.com/repos/smalruby/smalruby3-gui/stargazers","contributors_url":"https://api.github.com/repos/smalruby/smalruby3-gui/contributors","subscribers_url":"https://api.github.com/repos/smalruby/smalruby3-gui/subscribers","subscription_url":"https://api.github.com/repos/smalruby/smalruby3-gui/subscription","commits_url":"https://api.github.com/repos/smalruby/smalruby3-gui/commits{/sha}","git_commits_url":"https://api.github.com/repos/smalruby/smalruby3-gui/git/commits{/sha}","comments_url":"https://api.github.com/repos/smalruby/smalruby3-gui/comments{/number}","issue_comment_url":"https://api.github.com/repos/smalruby/smalruby3-gui/issues/comments{/number}","contents_url":"https://api.github.com/repos/smalruby/smalruby3-gui/contents/{+path}","compare_url":"https://api.github.com/repos/smalruby/smalruby3-gui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smalruby/smalruby3-gui/merges","archive_url":"https://api.github.com/repos/smalruby/smalruby3-gui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smalruby/smalruby3-gui/downloads","issues_url":"https://api.github.com/repos/smalruby/smalruby3-gui/issues{/number}","pulls_url":"https://api.github.com/repos/smalruby/smalruby3-gui/pulls{/number}","milestones_url":"https://api.github.com/repos/smalruby/smalruby3-gui/milestones{/number}","notifications_url":"https://api.github.com/repos/smalruby/smalruby3-gui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smalruby/smalruby3-gui/labels{/name}","releases_url":"https://api.github.com/repos/smalruby/smalruby3-gui/releases{/id}","deployments_url":"https://api.github.com/repos/smalruby/smalruby3-gui/deployments","created_at":"2018-05-15T00:14:04Z","updated_at":"2018-10-22T14:20:25Z","pushed_at":"2018-10-23T04:16:18Z","git_url":"git://github.com/smalruby/smalruby3-gui.git","ssh_url":"git@github.com:smalruby/smalruby3-gui.git","clone_url":"https://github.com/smalruby/smalruby3-gui.git","svn_url":"https://github.com/smalruby/smalruby3-gui","homepage":"","size":318109,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":6,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/smalruby/smalruby3-gui/pulls/98"},"html":{"href":"https://github.com/smalruby/smalruby3-gui/pull/98"},"issue":{"href":"https://api.github.com/repos/smalruby/smalruby3-gui/issues/98"},"comments":{"href":"https://api.github.com/repos/smalruby/smalruby3-gui/issues/98/comments"},"review_comments":{"href":"https://api.github.com/repos/smalruby/smalruby3-gui/pulls/98/comments"},"review_comment":{"href":"https://api.github.com/repos/smalruby/smalruby3-gui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/smalruby/smalruby3-gui/pulls/98/commits"},"statuses":{"href":"https://api.github.com/repos/smalruby/smalruby3-gui/statuses/5c69e7b33e4c3fd1ce3ff312839ecb39352d827a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"takaokouji"}}