GitHub PullRequestEvent at 2014-04-21 01:13:12
Repository: nutz
Actor: wendal
Payload: {"action":"closed","number":627,"pull_request":{"url":"https://api.github.com/repos/nutzam/nutz/pulls/627","id":14945315,"html_url":"https://github.com/nutzam/nutz/pull/627","diff_url":"https://github.com/nutzam/nutz/pull/627.diff","patch_url":"https://github.com/nutzam/nutz/pull/627.patch","issue_url":"https://api.github.com/repos/nutzam/nutz/issues/627","number":627,"state":"closed","title":"让Json支持注入各种JsonRender","user":{"login":"InsideZhou","id":780496,"avatar_url":"https://avatars.githubusercontent.com/u/780496?","gravatar_id":"d26ee6aecf1f0d0d8a228f6670cd248b","url":"https://api.github.com/users/InsideZhou","html_url":"https://github.com/InsideZhou","followers_url":"https://api.github.com/users/InsideZhou/followers","following_url":"https://api.github.com/users/InsideZhou/following{/other_user}","gists_url":"https://api.github.com/users/InsideZhou/gists{/gist_id}","starred_url":"https://api.github.com/users/InsideZhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InsideZhou/subscriptions","organizations_url":"https://api.github.com/users/InsideZhou/orgs","repos_url":"https://api.github.com/users/InsideZhou/repos","events_url":"https://api.github.com/users/InsideZhou/events{/privacy}","received_events_url":"https://api.github.com/users/InsideZhou/received_events","type":"User","site_admin":false},"body":"目的：\r\n让Json支持注入各种JsonRender。\r\n\r\n理由：\r\njvm其余上其余语言也有maplist结构，例如scala；通常情况下，scala的maplist很容易与java的maplist相互转换，但nutz的JsonRenderImpl只支持转换Java的maplist。\r\n\r\n改动：\r\nJson由依赖具体的JsonRenderImpl实现改为依赖JsonRender接口。\r\n因Json.toJson的逻辑而扩展了JsonRender接口，允许注入writer和format。\r\n根据原有Json.toJson使用JsonRender对象的方式，注入的是JsonRender的Class，在栈内实例化对象并在运行后抛弃。\r\n同理改了JsonConvertImpl对JsonRenderImpl的强依赖。\r\n\r\nAllJson测试，98 passed、1 ignored。","created_at":"2014-04-19T16:59:03Z","updated_at":"2014-04-21T01:13:12Z","closed_at":"2014-04-21T01:13:12Z","merged_at":"2014-04-21T01:13:12Z","merge_commit_sha":"4fabe934ee55af015c56652d6a358db0aa137e07","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nutzam/nutz/pulls/627/commits","review_comments_url":"https://api.github.com/repos/nutzam/nutz/pulls/627/comments","review_comment_url":"https://api.github.com/repos/nutzam/nutz/pulls/comments/{number}","comments_url":"https://api.github.com/repos/nutzam/nutz/issues/627/comments","statuses_url":"https://api.github.com/repos/nutzam/nutz/statuses/d0ac033084adbc65df10411463e9d57003621d71","head":{"label":"InsideZhou:master","ref":"master","sha":"d0ac033084adbc65df10411463e9d57003621d71","user":{"login":"InsideZhou","id":780496,"avatar_url":"https://avatars.githubusercontent.com/u/780496?","gravatar_id":"d26ee6aecf1f0d0d8a228f6670cd248b","url":"https://api.github.com/users/InsideZhou","html_url":"https://github.com/InsideZhou","followers_url":"https://api.github.com/users/InsideZhou/followers","following_url":"https://api.github.com/users/InsideZhou/following{/other_user}","gists_url":"https://api.github.com/users/InsideZhou/gists{/gist_id}","starred_url":"https://api.github.com/users/InsideZhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InsideZhou/subscriptions","organizations_url":"https://api.github.com/users/InsideZhou/orgs","repos_url":"https://api.github.com/users/InsideZhou/repos","events_url":"https://api.github.com/users/InsideZhou/events{/privacy}","received_events_url":"https://api.github.com/users/InsideZhou/received_events","type":"User","site_admin":false},"repo":{"id":18944980,"name":"nutz","full_name":"InsideZhou/nutz","owner":{"login":"InsideZhou","id":780496,"avatar_url":"https://avatars.githubusercontent.com/u/780496?","gravatar_id":"d26ee6aecf1f0d0d8a228f6670cd248b","url":"https://api.github.com/users/InsideZhou","html_url":"https://github.com/InsideZhou","followers_url":"https://api.github.com/users/InsideZhou/followers","following_url":"https://api.github.com/users/InsideZhou/following{/other_user}","gists_url":"https://api.github.com/users/InsideZhou/gists{/gist_id}","starred_url":"https://api.github.com/users/InsideZhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InsideZhou/subscriptions","organizations_url":"https://api.github.com/users/InsideZhou/orgs","repos_url":"https://api.github.com/users/InsideZhou/repos","events_url":"https://api.github.com/users/InsideZhou/events{/privacy}","received_events_url":"https://api.github.com/users/InsideZhou/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/InsideZhou/nutz","description":"Nutz核心代码","fork":true,"url":"https://api.github.com/repos/InsideZhou/nutz","forks_url":"https://api.github.com/repos/InsideZhou/nutz/forks","keys_url":"https://api.github.com/repos/InsideZhou/nutz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/InsideZhou/nutz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/InsideZhou/nutz/teams","hooks_url":"https://api.github.com/repos/InsideZhou/nutz/hooks","issue_events_url":"https://api.github.com/repos/InsideZhou/nutz/issues/events{/number}","events_url":"https://api.github.com/repos/InsideZhou/nutz/events","assignees_url":"https://api.github.com/repos/InsideZhou/nutz/assignees{/user}","branches_url":"https://api.github.com/repos/InsideZhou/nutz/branches{/branch}","tags_url":"https://api.github.com/repos/InsideZhou/nutz/tags","blobs_url":"https://api.github.com/repos/InsideZhou/nutz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/InsideZhou/nutz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/InsideZhou/nutz/git/refs{/sha}","trees_url":"https://api.github.com/repos/InsideZhou/nutz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/InsideZhou/nutz/statuses/{sha}","languages_url":"https://api.github.com/repos/InsideZhou/nutz/languages","stargazers_url":"https://api.github.com/repos/InsideZhou/nutz/stargazers","contributors_url":"https://api.github.com/repos/InsideZhou/nutz/contributors","subscribers_url":"https://api.github.com/repos/InsideZhou/nutz/subscribers","subscription_url":"https://api.github.com/repos/InsideZhou/nutz/subscription","commits_url":"https://api.github.com/repos/InsideZhou/nutz/commits{/sha}","git_commits_url":"https://api.github.com/repos/InsideZhou/nutz/git/commits{/sha}","comments_url":"https://api.github.com/repos/InsideZhou/nutz/comments{/number}","issue_comment_url":"https://api.github.com/repos/InsideZhou/nutz/issues/comments/{number}","contents_url":"https://api.github.com/repos/InsideZhou/nutz/contents/{+path}","compare_url":"https://api.github.com/repos/InsideZhou/nutz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/InsideZhou/nutz/merges","archive_url":"https://api.github.com/repos/InsideZhou/nutz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/InsideZhou/nutz/downloads","issues_url":"https://api.github.com/repos/InsideZhou/nutz/issues{/number}","pulls_url":"https://api.github.com/repos/InsideZhou/nutz/pulls{/number}","milestones_url":"https://api.github.com/repos/InsideZhou/nutz/milestones{/number}","notifications_url":"https://api.github.com/repos/InsideZhou/nutz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/InsideZhou/nutz/labels{/name}","releases_url":"https://api.github.com/repos/InsideZhou/nutz/releases{/id}","created_at":"2014-04-19T16:10:41Z","updated_at":"2014-04-21T01:13:12Z","pushed_at":"2014-04-19T16:55:20Z","git_url":"git://github.com/InsideZhou/nutz.git","ssh_url":"git@github.com:InsideZhou/nutz.git","clone_url":"https://github.com/InsideZhou/nutz.git","svn_url":"https://github.com/InsideZhou/nutz","homepage":"http://nutzam.com","size":55796,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nutzam:master","ref":"master","sha":"a4cfad2ff07363160c74da0cc8ac00b4aaaf35a3","user":{"login":"nutzam","id":836481,"avatar_url":"https://avatars.githubusercontent.com/u/836481?","gravatar_id":"307441a1460df241949d805a38c6fa6a","url":"https://api.github.com/users/nutzam","html_url":"https://github.com/nutzam","followers_url":"https://api.github.com/users/nutzam/followers","following_url":"https://api.github.com/users/nutzam/following{/other_user}","gists_url":"https://api.github.com/users/nutzam/gists{/gist_id}","starred_url":"https://api.github.com/users/nutzam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nutzam/subscriptions","organizations_url":"https://api.github.com/users/nutzam/orgs","repos_url":"https://api.github.com/users/nutzam/repos","events_url":"https://api.github.com/users/nutzam/events{/privacy}","received_events_url":"https://api.github.com/users/nutzam/received_events","type":"Organization","site_admin":false},"repo":{"id":1873881,"name":"nutz","full_name":"nutzam/nutz","owner":{"login":"nutzam","id":836481,"avatar_url":"https://avatars.githubusercontent.com/u/836481?","gravatar_id":"307441a1460df241949d805a38c6fa6a","url":"https://api.github.com/users/nutzam","html_url":"https://github.com/nutzam","followers_url":"https://api.github.com/users/nutzam/followers","following_url":"https://api.github.com/users/nutzam/following{/other_user}","gists_url":"https://api.github.com/users/nutzam/gists{/gist_id}","starred_url":"https://api.github.com/users/nutzam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nutzam/subscriptions","organizations_url":"https://api.github.com/users/nutzam/orgs","repos_url":"https://api.github.com/users/nutzam/repos","events_url":"https://api.github.com/users/nutzam/events{/privacy}","received_events_url":"https://api.github.com/users/nutzam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nutzam/nutz","description":"Nutz核心代码","fork":false,"url":"https://api.github.com/repos/nutzam/nutz","forks_url":"https://api.github.com/repos/nutzam/nutz/forks","keys_url":"https://api.github.com/repos/nutzam/nutz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nutzam/nutz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nutzam/nutz/teams","hooks_url":"https://api.github.com/repos/nutzam/nutz/hooks","issue_events_url":"https://api.github.com/repos/nutzam/nutz/issues/events{/number}","events_url":"https://api.github.com/repos/nutzam/nutz/events","assignees_url":"https://api.github.com/repos/nutzam/nutz/assignees{/user}","branches_url":"https://api.github.com/repos/nutzam/nutz/branches{/branch}","tags_url":"https://api.github.com/repos/nutzam/nutz/tags","blobs_url":"https://api.github.com/repos/nutzam/nutz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nutzam/nutz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nutzam/nutz/git/refs{/sha}","trees_url":"https://api.github.com/repos/nutzam/nutz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nutzam/nutz/statuses/{sha}","languages_url":"https://api.github.com/repos/nutzam/nutz/languages","stargazers_url":"https://api.github.com/repos/nutzam/nutz/stargazers","contributors_url":"https://api.github.com/repos/nutzam/nutz/contributors","subscribers_url":"https://api.github.com/repos/nutzam/nutz/subscribers","subscription_url":"https://api.github.com/repos/nutzam/nutz/subscription","commits_url":"https://api.github.com/repos/nutzam/nutz/commits{/sha}","git_commits_url":"https://api.github.com/repos/nutzam/nutz/git/commits{/sha}","comments_url":"https://api.github.com/repos/nutzam/nutz/comments{/number}","issue_comment_url":"https://api.github.com/repos/nutzam/nutz/issues/comments/{number}","contents_url":"https://api.github.com/repos/nutzam/nutz/contents/{+path}","compare_url":"https://api.github.com/repos/nutzam/nutz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nutzam/nutz/merges","archive_url":"https://api.github.com/repos/nutzam/nutz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nutzam/nutz/downloads","issues_url":"https://api.github.com/repos/nutzam/nutz/issues{/number}","pulls_url":"https://api.github.com/repos/nutzam/nutz/pulls{/number}","milestones_url":"https://api.github.com/repos/nutzam/nutz/milestones{/number}","notifications_url":"https://api.github.com/repos/nutzam/nutz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nutzam/nutz/labels{/name}","releases_url":"https://api.github.com/repos/nutzam/nutz/releases{/id}","created_at":"2011-06-10T01:25:43Z","updated_at":"2014-04-21T01:13:11Z","pushed_at":"2014-04-21T01:13:12Z","git_url":"git://github.com/nutzam/nutz.git","ssh_url":"git@github.com:nutzam/nutz.git","clone_url":"https://github.com/nutzam/nutz.git","svn_url":"https://github.com/nutzam/nutz","homepage":"http://nutzam.com","size":55796,"stargazers_count":498,"watchers_count":498,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"forks_count":376,"mirror_url":null,"open_issues_count":96,"forks":376,"open_issues":96,"watchers":498,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nutzam/nutz/pulls/627"},"html":{"href":"https://github.com/nutzam/nutz/pull/627"},"issue":{"href":"https://api.github.com/repos/nutzam/nutz/issues/627"},"comments":{"href":"https://api.github.com/repos/nutzam/nutz/issues/627/comments"},"review_comments":{"href":"https://api.github.com/repos/nutzam/nutz/pulls/627/comments"},"review_comment":{"href":"https://api.github.com/repos/nutzam/nutz/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/nutzam/nutz/pulls/627/commits"},"statuses":{"href":"https://api.github.com/repos/nutzam/nutz/statuses/d0ac033084adbc65df10411463e9d57003621d71"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"wendal","id":589819,"avatar_url":"https://avatars.githubusercontent.com/u/589819?","gravatar_id":"89bbfb169f008b30a569c2de6b3e62f7","url":"https://api.github.com/users/wendal","html_url":"https://github.com/wendal","followers_url":"https://api.github.com/users/wendal/followers","following_url":"https://api.github.com/users/wendal/following{/other_user}","gists_url":"https://api.github.com/users/wendal/gists{/gist_id}","starred_url":"https://api.github.com/users/wendal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wendal/subscriptions","organizations_url":"https://api.github.com/users/wendal/orgs","repos_url":"https://api.github.com/users/wendal/repos","events_url":"https://api.github.com/users/wendal/events{/privacy}","received_events_url":"https://api.github.com/users/wendal/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":65,"deletions":4,"changed_files":4}}