GitHub PullRequestReviewCommentEvent at 2014-12-18 02:41:34
Repository: edp-build
Actor: leeight
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/ecomfe/edp-build/pulls/comments/22021044","id":22021044,"diff_hunk":"@@ -0,0 +1,72 @@\n+/***************************************************************************\n+ *\n+ * Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved\n+ * $Id$\n+ *\n+ **************************************************************************/\n+\n+\n+\n+/**\n+ * css-spriter.spec.js ~ 2014/12/17 22:40:05\n+ * @author quyatong(quyatong@126.com)\n+ * @version $Revision$\n+ * @description\n+ *\n+ **/\n+var fs = require('fs');\n+var path = require('path');\n+var CssSpriter = require('../lib/processor/css-spriter.js');\n+var PathMapper = require('../lib/processor/path-mapper.js');\n+var Project = path.resolve(__dirname, 'data', 'css-spriter');\n+var base = require('./base');\n+var ProcessContext = require('../lib/process-context');\n+\n+describe('css-spriter', function() {\n+    it('default', function() {\n+        var processor = new CssSpriter({\n+            files: ['src/*.css']\n+        });\n+\n+        var processContext = new ProcessContext({\n+            baseDir: Project,\n+            exclude: [],\n+            outputDir: 'output',\n+            fileEncodings: {}\n+        });\n+\n+        base.traverseDir(Project, processContext);\n+\n+        base.launchProcessors([processor], processContext, function() {\n+            var cssData = processContext.getFileByPath('src/default.css').data;\n+            var compareCssData = fs.readFileSync('data/css-spriter/default.compare.css', 'utf-8');\n+            \n+            var imgData = processContext.getFileByPath('src/sprite-default.png').data;","path":"test/css-spriter.spec.js","position":44,"original_position":44,"commit_id":"9c9ed94eb48bbb83ce019ca11f00f56321092f6a","original_commit_id":"9c9ed94eb48bbb83ce019ca11f00f56321092f6a","user":{"login":"leeight","id":104052,"avatar_url":"https://avatars.githubusercontent.com/u/104052?v=3","gravatar_id":"","url":"https://api.github.com/users/leeight","html_url":"https://github.com/leeight","followers_url":"https://api.github.com/users/leeight/followers","following_url":"https://api.github.com/users/leeight/following{/other_user}","gists_url":"https://api.github.com/users/leeight/gists{/gist_id}","starred_url":"https://api.github.com/users/leeight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeight/subscriptions","organizations_url":"https://api.github.com/users/leeight/orgs","repos_url":"https://api.github.com/users/leeight/repos","events_url":"https://api.github.com/users/leeight/events{/privacy}","received_events_url":"https://api.github.com/users/leeight/received_events","type":"User","site_admin":false},"body":"sprite-default.png 这个名字可以有参数来设置么？","created_at":"2014-12-18T02:41:34Z","updated_at":"2014-12-18T02:41:34Z","html_url":"https://github.com/ecomfe/edp-build/pull/67#discussion_r22021044","pull_request_url":"https://api.github.com/repos/ecomfe/edp-build/pulls/67","_links":{"self":{"href":"https://api.github.com/repos/ecomfe/edp-build/pulls/comments/22021044"},"html":{"href":"https://github.com/ecomfe/edp-build/pull/67#discussion_r22021044"},"pull_request":{"href":"https://api.github.com/repos/ecomfe/edp-build/pulls/67"}}},"pull_request":{"url":"https://api.github.com/repos/ecomfe/edp-build/pulls/67","id":26217645,"html_url":"https://github.com/ecomfe/edp-build/pull/67","diff_url":"https://github.com/ecomfe/edp-build/pull/67.diff","patch_url":"https://github.com/ecomfe/edp-build/pull/67.patch","issue_url":"https://api.github.com/repos/ecomfe/edp-build/issues/67","number":67,"state":"open","locked":false,"title":"添加一个简易的css sprite构建器","user":{"login":"quyatong","id":3039212,"avatar_url":"https://avatars.githubusercontent.com/u/3039212?v=3","gravatar_id":"","url":"https://api.github.com/users/quyatong","html_url":"https://github.com/quyatong","followers_url":"https://api.github.com/users/quyatong/followers","following_url":"https://api.github.com/users/quyatong/following{/other_user}","gists_url":"https://api.github.com/users/quyatong/gists{/gist_id}","starred_url":"https://api.github.com/users/quyatong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quyatong/subscriptions","organizations_url":"https://api.github.com/users/quyatong/orgs","repos_url":"https://api.github.com/users/quyatong/repos","events_url":"https://api.github.com/users/quyatong/events{/privacy}","received_events_url":"https://api.github.com/users/quyatong/received_events","type":"User","site_admin":false},"body":"使用css-spriter处理css生成雪碧图","created_at":"2014-12-17T11:34:12Z","updated_at":"2014-12-18T02:41:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f40c47f750358c618dcd54a291cd307c485f153d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ecomfe/edp-build/pulls/67/commits","review_comments_url":"https://api.github.com/repos/ecomfe/edp-build/pulls/67/comments","review_comment_url":"https://api.github.com/repos/ecomfe/edp-build/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ecomfe/edp-build/issues/67/comments","statuses_url":"https://api.github.com/repos/ecomfe/edp-build/statuses/9c9ed94eb48bbb83ce019ca11f00f56321092f6a","head":{"label":"quyatong:feature/css-spriter","ref":"feature/css-spriter","sha":"9c9ed94eb48bbb83ce019ca11f00f56321092f6a","user":{"login":"quyatong","id":3039212,"avatar_url":"https://avatars.githubusercontent.com/u/3039212?v=3","gravatar_id":"","url":"https://api.github.com/users/quyatong","html_url":"https://github.com/quyatong","followers_url":"https://api.github.com/users/quyatong/followers","following_url":"https://api.github.com/users/quyatong/following{/other_user}","gists_url":"https://api.github.com/users/quyatong/gists{/gist_id}","starred_url":"https://api.github.com/users/quyatong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quyatong/subscriptions","organizations_url":"https://api.github.com/users/quyatong/orgs","repos_url":"https://api.github.com/users/quyatong/repos","events_url":"https://api.github.com/users/quyatong/events{/privacy}","received_events_url":"https://api.github.com/users/quyatong/received_events","type":"User","site_admin":false},"repo":{"id":28133753,"name":"edp-build","full_name":"quyatong/edp-build","owner":{"login":"quyatong","id":3039212,"avatar_url":"https://avatars.githubusercontent.com/u/3039212?v=3","gravatar_id":"","url":"https://api.github.com/users/quyatong","html_url":"https://github.com/quyatong","followers_url":"https://api.github.com/users/quyatong/followers","following_url":"https://api.github.com/users/quyatong/following{/other_user}","gists_url":"https://api.github.com/users/quyatong/gists{/gist_id}","starred_url":"https://api.github.com/users/quyatong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quyatong/subscriptions","organizations_url":"https://api.github.com/users/quyatong/orgs","repos_url":"https://api.github.com/users/quyatong/repos","events_url":"https://api.github.com/users/quyatong/events{/privacy}","received_events_url":"https://api.github.com/users/quyatong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/quyatong/edp-build","description":"Package for edp build.","fork":true,"url":"https://api.github.com/repos/quyatong/edp-build","forks_url":"https://api.github.com/repos/quyatong/edp-build/forks","keys_url":"https://api.github.com/repos/quyatong/edp-build/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quyatong/edp-build/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quyatong/edp-build/teams","hooks_url":"https://api.github.com/repos/quyatong/edp-build/hooks","issue_events_url":"https://api.github.com/repos/quyatong/edp-build/issues/events{/number}","events_url":"https://api.github.com/repos/quyatong/edp-build/events","assignees_url":"https://api.github.com/repos/quyatong/edp-build/assignees{/user}","branches_url":"https://api.github.com/repos/quyatong/edp-build/branches{/branch}","tags_url":"https://api.github.com/repos/quyatong/edp-build/tags","blobs_url":"https://api.github.com/repos/quyatong/edp-build/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quyatong/edp-build/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quyatong/edp-build/git/refs{/sha}","trees_url":"https://api.github.com/repos/quyatong/edp-build/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quyatong/edp-build/statuses/{sha}","languages_url":"https://api.github.com/repos/quyatong/edp-build/languages","stargazers_url":"https://api.github.com/repos/quyatong/edp-build/stargazers","contributors_url":"https://api.github.com/repos/quyatong/edp-build/contributors","subscribers_url":"https://api.github.com/repos/quyatong/edp-build/subscribers","subscription_url":"https://api.github.com/repos/quyatong/edp-build/subscription","commits_url":"https://api.github.com/repos/quyatong/edp-build/commits{/sha}","git_commits_url":"https://api.github.com/repos/quyatong/edp-build/git/commits{/sha}","comments_url":"https://api.github.com/repos/quyatong/edp-build/comments{/number}","issue_comment_url":"https://api.github.com/repos/quyatong/edp-build/issues/comments/{number}","contents_url":"https://api.github.com/repos/quyatong/edp-build/contents/{+path}","compare_url":"https://api.github.com/repos/quyatong/edp-build/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quyatong/edp-build/merges","archive_url":"https://api.github.com/repos/quyatong/edp-build/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quyatong/edp-build/downloads","issues_url":"https://api.github.com/repos/quyatong/edp-build/issues{/number}","pulls_url":"https://api.github.com/repos/quyatong/edp-build/pulls{/number}","milestones_url":"https://api.github.com/repos/quyatong/edp-build/milestones{/number}","notifications_url":"https://api.github.com/repos/quyatong/edp-build/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quyatong/edp-build/labels{/name}","releases_url":"https://api.github.com/repos/quyatong/edp-build/releases{/id}","created_at":"2014-12-17T11:05:34Z","updated_at":"2014-12-17T11:05:34Z","pushed_at":"2014-12-18T02:31:32Z","git_url":"git://github.com/quyatong/edp-build.git","ssh_url":"git@github.com:quyatong/edp-build.git","clone_url":"https://github.com/quyatong/edp-build.git","svn_url":"https://github.com/quyatong/edp-build","homepage":"","size":1426,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"ecomfe:1.0/develop","ref":"1.0/develop","sha":"0490318a0f8cea6053f16d249b041899b5bea2e8","user":{"login":"ecomfe","id":2268460,"avatar_url":"https://avatars.githubusercontent.com/u/2268460?v=3","gravatar_id":"","url":"https://api.github.com/users/ecomfe","html_url":"https://github.com/ecomfe","followers_url":"https://api.github.com/users/ecomfe/followers","following_url":"https://api.github.com/users/ecomfe/following{/other_user}","gists_url":"https://api.github.com/users/ecomfe/gists{/gist_id}","starred_url":"https://api.github.com/users/ecomfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecomfe/subscriptions","organizations_url":"https://api.github.com/users/ecomfe/orgs","repos_url":"https://api.github.com/users/ecomfe/repos","events_url":"https://api.github.com/users/ecomfe/events{/privacy}","received_events_url":"https://api.github.com/users/ecomfe/received_events","type":"Organization","site_admin":false},"repo":{"id":10994705,"name":"edp-build","full_name":"ecomfe/edp-build","owner":{"login":"ecomfe","id":2268460,"avatar_url":"https://avatars.githubusercontent.com/u/2268460?v=3","gravatar_id":"","url":"https://api.github.com/users/ecomfe","html_url":"https://github.com/ecomfe","followers_url":"https://api.github.com/users/ecomfe/followers","following_url":"https://api.github.com/users/ecomfe/following{/other_user}","gists_url":"https://api.github.com/users/ecomfe/gists{/gist_id}","starred_url":"https://api.github.com/users/ecomfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecomfe/subscriptions","organizations_url":"https://api.github.com/users/ecomfe/orgs","repos_url":"https://api.github.com/users/ecomfe/repos","events_url":"https://api.github.com/users/ecomfe/events{/privacy}","received_events_url":"https://api.github.com/users/ecomfe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ecomfe/edp-build","description":"Package for edp build.","fork":false,"url":"https://api.github.com/repos/ecomfe/edp-build","forks_url":"https://api.github.com/repos/ecomfe/edp-build/forks","keys_url":"https://api.github.com/repos/ecomfe/edp-build/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ecomfe/edp-build/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ecomfe/edp-build/teams","hooks_url":"https://api.github.com/repos/ecomfe/edp-build/hooks","issue_events_url":"https://api.github.com/repos/ecomfe/edp-build/issues/events{/number}","events_url":"https://api.github.com/repos/ecomfe/edp-build/events","assignees_url":"https://api.github.com/repos/ecomfe/edp-build/assignees{/user}","branches_url":"https://api.github.com/repos/ecomfe/edp-build/branches{/branch}","tags_url":"https://api.github.com/repos/ecomfe/edp-build/tags","blobs_url":"https://api.github.com/repos/ecomfe/edp-build/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ecomfe/edp-build/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ecomfe/edp-build/git/refs{/sha}","trees_url":"https://api.github.com/repos/ecomfe/edp-build/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ecomfe/edp-build/statuses/{sha}","languages_url":"https://api.github.com/repos/ecomfe/edp-build/languages","stargazers_url":"https://api.github.com/repos/ecomfe/edp-build/stargazers","contributors_url":"https://api.github.com/repos/ecomfe/edp-build/contributors","subscribers_url":"https://api.github.com/repos/ecomfe/edp-build/subscribers","subscription_url":"https://api.github.com/repos/ecomfe/edp-build/subscription","commits_url":"https://api.github.com/repos/ecomfe/edp-build/commits{/sha}","git_commits_url":"https://api.github.com/repos/ecomfe/edp-build/git/commits{/sha}","comments_url":"https://api.github.com/repos/ecomfe/edp-build/comments{/number}","issue_comment_url":"https://api.github.com/repos/ecomfe/edp-build/issues/comments/{number}","contents_url":"https://api.github.com/repos/ecomfe/edp-build/contents/{+path}","compare_url":"https://api.github.com/repos/ecomfe/edp-build/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ecomfe/edp-build/merges","archive_url":"https://api.github.com/repos/ecomfe/edp-build/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ecomfe/edp-build/downloads","issues_url":"https://api.github.com/repos/ecomfe/edp-build/issues{/number}","pulls_url":"https://api.github.com/repos/ecomfe/edp-build/pulls{/number}","milestones_url":"https://api.github.com/repos/ecomfe/edp-build/milestones{/number}","notifications_url":"https://api.github.com/repos/ecomfe/edp-build/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ecomfe/edp-build/labels{/name}","releases_url":"https://api.github.com/repos/ecomfe/edp-build/releases{/id}","created_at":"2013-06-27T11:06:27Z","updated_at":"2014-09-24T03:04:53Z","pushed_at":"2014-12-16T06:55:53Z","git_url":"git://github.com/ecomfe/edp-build.git","ssh_url":"git@github.com:ecomfe/edp-build.git","clone_url":"https://github.com/ecomfe/edp-build.git","svn_url":"https://github.com/ecomfe/edp-build","homepage":"","size":1426,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":12,"forks":17,"open_issues":12,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ecomfe/edp-build/pulls/67"},"html":{"href":"https://github.com/ecomfe/edp-build/pull/67"},"issue":{"href":"https://api.github.com/repos/ecomfe/edp-build/issues/67"},"comments":{"href":"https://api.github.com/repos/ecomfe/edp-build/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/ecomfe/edp-build/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/ecomfe/edp-build/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ecomfe/edp-build/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/ecomfe/edp-build/statuses/9c9ed94eb48bbb83ce019ca11f00f56321092f6a"}}}}