{"action":"created","comment":{"url":"https://api.github.com/repos/rails/web-console/pulls/comments/35366726","id":35366726,"diff_hunk":"@@ -0,0 +1,66 @@\n+# Tasks to build chrome extension.","path":"brx/gulpfiles/crx.coffee","position":1,"original_position":1,"commit_id":"5366360e450705156e316660f7eab278ceb09ac6","original_commit_id":"5366360e450705156e316660f7eab278ceb09ac6","user":{"login":"gsamokovarov","id":604618,"avatar_url":"https://avatars.githubusercontent.com/u/604618?v=3","gravatar_id":"","url":"https://api.github.com/users/gsamokovarov","html_url":"https://github.com/gsamokovarov","followers_url":"https://api.github.com/users/gsamokovarov/followers","following_url":"https://api.github.com/users/gsamokovarov/following{/other_user}","gists_url":"https://api.github.com/users/gsamokovarov/gists{/gist_id}","starred_url":"https://api.github.com/users/gsamokovarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsamokovarov/subscriptions","organizations_url":"https://api.github.com/users/gsamokovarov/orgs","repos_url":"https://api.github.com/users/gsamokovarov/repos","events_url":"https://api.github.com/users/gsamokovarov/events{/privacy}","received_events_url":"https://api.github.com/users/gsamokovarov/received_events","type":"User","site_admin":false},"body":"Can we build the extensions with Ruby tooling? E.g. `rake`.","created_at":"2015-07-23T20:22:16Z","updated_at":"2015-07-23T20:22:16Z","html_url":"https://github.com/rails/web-console/pull/151#discussion_r35366726","pull_request_url":"https://api.github.com/repos/rails/web-console/pulls/151","_links":{"self":{"href":"https://api.github.com/repos/rails/web-console/pulls/comments/35366726"},"html":{"href":"https://github.com/rails/web-console/pull/151#discussion_r35366726"},"pull_request":{"href":"https://api.github.com/repos/rails/web-console/pulls/151"}}},"pull_request":{"url":"https://api.github.com/repos/rails/web-console/pulls/151","id":40342872,"html_url":"https://github.com/rails/web-console/pull/151","diff_url":"https://github.com/rails/web-console/pull/151.diff","patch_url":"https://github.com/rails/web-console/pull/151.patch","issue_url":"https://api.github.com/repos/rails/web-console/issues/151","number":151,"state":"open","locked":false,"title":"Add Chrome Extension","user":{"login":"sh19910711","id":1015222,"avatar_url":"https://avatars.githubusercontent.com/u/1015222?v=3","gravatar_id":"","url":"https://api.github.com/users/sh19910711","html_url":"https://github.com/sh19910711","followers_url":"https://api.github.com/users/sh19910711/followers","following_url":"https://api.github.com/users/sh19910711/following{/other_user}","gists_url":"https://api.github.com/users/sh19910711/gists{/gist_id}","starred_url":"https://api.github.com/users/sh19910711/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh19910711/subscriptions","organizations_url":"https://api.github.com/users/sh19910711/orgs","repos_url":"https://api.github.com/users/sh19910711/repos","events_url":"https://api.github.com/users/sh19910711/events{/privacy}","received_events_url":"https://api.github.com/users/sh19910711/received_events","type":"User","site_admin":false},"body":"This pull-request contains Chrome Extension and some preparations for the browser extensions.\r\n\r\n##### 1. Use a static method to send XHRs\r\n\r\n* Use a static method to send XHRs (ref: 937d220)\r\n  * Add \"REPLConsole.request()\"\r\n    - We can use this static method from instance methods and external scripts\r\n    - And we can override this method by reassigning if needed\r\n  * Add \"REPLConsole.XMLHttpRequest\" for browser extensions\r\n* Add tests for REPLConsole#commandHandle() (ref: 20ae7e5)\r\n  - This is also testing REPLConsole.request()\r\n\r\n##### 2. Other preparations for the browser extensions\r\n\r\n* Add support for CommonJS (ref: c820b09)\r\n  - For the Firefox Extension.\r\n* Add full-screen mode for browser extensions (ref: 4cf06fb)\r\n  - CSS-based\r\n  - For the browser extensions\r\n\r\n##### 3. Add Chrome Extension\r\n\r\n* Add source code of Chrome Extension (ref: 84329e0)\r\n  - Show the console in the DevTools\r\n* Create a build environment for Chrome Extension (ref: 63279d9)\r\n  - Use Gulp to build the browser extensions\r\n\r\n* * *\r\n\r\nAbout the extension, we can try the development version by the following commands:\r\n\r\n```shell\r\n$ git clone https://github.com/rails/web-console.git\r\n$ cd web-console/brx\r\n$ bundle install\r\n$ npm run crx\r\n```\r\n\r\nNow I'm looking for an edge case for the extension, so welcome any feedback from anyone at any time.\r\n\r\nAnd hello @gsamokovarov, could you review this pull-request, please?\r\n\r\nThank you.","created_at":"2015-07-20T11:28:17Z","updated_at":"2015-07-23T20:22:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46d9a14eaa5ee6cc5ce87876d4b4ea9be02a84f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails/web-console/pulls/151/commits","review_comments_url":"https://api.github.com/repos/rails/web-console/pulls/151/comments","review_comment_url":"https://api.github.com/repos/rails/web-console/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/web-console/issues/151/comments","statuses_url":"https://api.github.com/repos/rails/web-console/statuses/5366360e450705156e316660f7eab278ceb09ac6","head":{"label":"sh19910711:patch/0017/chrome-extension","ref":"patch/0017/chrome-extension","sha":"5366360e450705156e316660f7eab278ceb09ac6","user":{"login":"sh19910711","id":1015222,"avatar_url":"https://avatars.githubusercontent.com/u/1015222?v=3","gravatar_id":"","url":"https://api.github.com/users/sh19910711","html_url":"https://github.com/sh19910711","followers_url":"https://api.github.com/users/sh19910711/followers","following_url":"https://api.github.com/users/sh19910711/following{/other_user}","gists_url":"https://api.github.com/users/sh19910711/gists{/gist_id}","starred_url":"https://api.github.com/users/sh19910711/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh19910711/subscriptions","organizations_url":"https://api.github.com/users/sh19910711/orgs","repos_url":"https://api.github.com/users/sh19910711/repos","events_url":"https://api.github.com/users/sh19910711/events{/privacy}","received_events_url":"https://api.github.com/users/sh19910711/received_events","type":"User","site_admin":false},"repo":{"id":33766225,"name":"web-console","full_name":"sh19910711/web-console","owner":{"login":"sh19910711","id":1015222,"avatar_url":"https://avatars.githubusercontent.com/u/1015222?v=3","gravatar_id":"","url":"https://api.github.com/users/sh19910711","html_url":"https://github.com/sh19910711","followers_url":"https://api.github.com/users/sh19910711/followers","following_url":"https://api.github.com/users/sh19910711/following{/other_user}","gists_url":"https://api.github.com/users/sh19910711/gists{/gist_id}","starred_url":"https://api.github.com/users/sh19910711/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh19910711/subscriptions","organizations_url":"https://api.github.com/users/sh19910711/orgs","repos_url":"https://api.github.com/users/sh19910711/repos","events_url":"https://api.github.com/users/sh19910711/events{/privacy}","received_events_url":"https://api.github.com/users/sh19910711/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sh19910711/web-console","description":"Rails Console on the Browser.","fork":true,"url":"https://api.github.com/repos/sh19910711/web-console","forks_url":"https://api.github.com/repos/sh19910711/web-console/forks","keys_url":"https://api.github.com/repos/sh19910711/web-console/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sh19910711/web-console/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sh19910711/web-console/teams","hooks_url":"https://api.github.com/repos/sh19910711/web-console/hooks","issue_events_url":"https://api.github.com/repos/sh19910711/web-console/issues/events{/number}","events_url":"https://api.github.com/repos/sh19910711/web-console/events","assignees_url":"https://api.github.com/repos/sh19910711/web-console/assignees{/user}","branches_url":"https://api.github.com/repos/sh19910711/web-console/branches{/branch}","tags_url":"https://api.github.com/repos/sh19910711/web-console/tags","blobs_url":"https://api.github.com/repos/sh19910711/web-console/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sh19910711/web-console/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sh19910711/web-console/git/refs{/sha}","trees_url":"https://api.github.com/repos/sh19910711/web-console/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sh19910711/web-console/statuses/{sha}","languages_url":"https://api.github.com/repos/sh19910711/web-console/languages","stargazers_url":"https://api.github.com/repos/sh19910711/web-console/stargazers","contributors_url":"https://api.github.com/repos/sh19910711/web-console/contributors","subscribers_url":"https://api.github.com/repos/sh19910711/web-console/subscribers","subscription_url":"https://api.github.com/repos/sh19910711/web-console/subscription","commits_url":"https://api.github.com/repos/sh19910711/web-console/commits{/sha}","git_commits_url":"https://api.github.com/repos/sh19910711/web-console/git/commits{/sha}","comments_url":"https://api.github.com/repos/sh19910711/web-console/comments{/number}","issue_comment_url":"https://api.github.com/repos/sh19910711/web-console/issues/comments{/number}","contents_url":"https://api.github.com/repos/sh19910711/web-console/contents/{+path}","compare_url":"https://api.github.com/repos/sh19910711/web-console/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sh19910711/web-console/merges","archive_url":"https://api.github.com/repos/sh19910711/web-console/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sh19910711/web-console/downloads","issues_url":"https://api.github.com/repos/sh19910711/web-console/issues{/number}","pulls_url":"https://api.github.com/repos/sh19910711/web-console/pulls{/number}","milestones_url":"https://api.github.com/repos/sh19910711/web-console/milestones{/number}","notifications_url":"https://api.github.com/repos/sh19910711/web-console/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sh19910711/web-console/labels{/name}","releases_url":"https://api.github.com/repos/sh19910711/web-console/releases{/id}","created_at":"2015-04-11T07:01:04Z","updated_at":"2015-04-24T23:55:01Z","pushed_at":"2015-07-23T17:46:10Z","git_url":"git://github.com/sh19910711/web-console.git","ssh_url":"git@github.com:sh19910711/web-console.git","clone_url":"https://github.com/sh19910711/web-console.git","svn_url":"https://github.com/sh19910711/web-console","homepage":"","size":1417,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"rails:master","ref":"master","sha":"6b70de4694a73fce43b2016606bc5fa431cce85b","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":12496351,"name":"web-console","full_name":"rails/web-console","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/web-console","description":"Rails Console on the Browser.","fork":true,"url":"https://api.github.com/repos/rails/web-console","forks_url":"https://api.github.com/repos/rails/web-console/forks","keys_url":"https://api.github.com/repos/rails/web-console/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/web-console/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/web-console/teams","hooks_url":"https://api.github.com/repos/rails/web-console/hooks","issue_events_url":"https://api.github.com/repos/rails/web-console/issues/events{/number}","events_url":"https://api.github.com/repos/rails/web-console/events","assignees_url":"https://api.github.com/repos/rails/web-console/assignees{/user}","branches_url":"https://api.github.com/repos/rails/web-console/branches{/branch}","tags_url":"https://api.github.com/repos/rails/web-console/tags","blobs_url":"https://api.github.com/repos/rails/web-console/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/web-console/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/web-console/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/web-console/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/web-console/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/web-console/languages","stargazers_url":"https://api.github.com/repos/rails/web-console/stargazers","contributors_url":"https://api.github.com/repos/rails/web-console/contributors","subscribers_url":"https://api.github.com/repos/rails/web-console/subscribers","subscription_url":"https://api.github.com/repos/rails/web-console/subscription","commits_url":"https://api.github.com/repos/rails/web-console/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/web-console/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/web-console/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/web-console/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/web-console/contents/{+path}","compare_url":"https://api.github.com/repos/rails/web-console/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/web-console/merges","archive_url":"https://api.github.com/repos/rails/web-console/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/web-console/downloads","issues_url":"https://api.github.com/repos/rails/web-console/issues{/number}","pulls_url":"https://api.github.com/repos/rails/web-console/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/web-console/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/web-console/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/web-console/labels{/name}","releases_url":"https://api.github.com/repos/rails/web-console/releases{/id}","created_at":"2013-08-30T21:57:37Z","updated_at":"2015-07-23T18:04:51Z","pushed_at":"2015-07-23T17:46:10Z","git_url":"git://github.com/rails/web-console.git","ssh_url":"git@github.com:rails/web-console.git","clone_url":"https://github.com/rails/web-console.git","svn_url":"https://github.com/rails/web-console","homepage":"","size":2055,"stargazers_count":822,"watchers_count":822,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":71,"mirror_url":null,"open_issues_count":12,"forks":71,"open_issues":12,"watchers":822,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/web-console/pulls/151"},"html":{"href":"https://github.com/rails/web-console/pull/151"},"issue":{"href":"https://api.github.com/repos/rails/web-console/issues/151"},"comments":{"href":"https://api.github.com/repos/rails/web-console/issues/151/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/web-console/pulls/151/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/web-console/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/web-console/pulls/151/commits"},"statuses":{"href":"https://api.github.com/repos/rails/web-console/statuses/5366360e450705156e316660f7eab278ceb09ac6"}}}}