{"action":"created","comment":{"url":"https://api.github.com/repos/MModel/MetaModel/pulls/comments/78335148","id":78335148,"diff_hunk":"@@ -67,7 +67,7 @@ def render_model_files\n #\n       def update_initialize_method\n         template = File.read File.expand_path(File.join(File.dirname(__FILE__), \"../template/metamodel.swift\"))\n-        result = ErbalT::render_from_hash(template, { :models => @models })\n+        result = Renderer::ErbalT::render_from_hash(template, { :models => @models })\n         model_path = Pathname.new(\"./metamodel/MetaModel/MetaModel.swift\")","path":"lib/metamodel/command/build.rb","position":6,"original_position":6,"commit_id":"c1e3853724362034971562245f7b927b528d90d8","original_commit_id":"c1e3853724362034971562245f7b927b528d90d8","user":{"login":"Draveness","id":6493255,"avatar_url":"https://avatars.githubusercontent.com/u/6493255?v=3","gravatar_id":"","url":"https://api.github.com/users/Draveness","html_url":"https://github.com/Draveness","followers_url":"https://api.github.com/users/Draveness/followers","following_url":"https://api.github.com/users/Draveness/following{/other_user}","gists_url":"https://api.github.com/users/Draveness/gists{/gist_id}","starred_url":"https://api.github.com/users/Draveness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Draveness/subscriptions","organizations_url":"https://api.github.com/users/Draveness/orgs","repos_url":"https://api.github.com/users/Draveness/repos","events_url":"https://api.github.com/users/Draveness/events{/privacy}","received_events_url":"https://api.github.com/users/Draveness/received_events","type":"User","site_admin":false},"body":"新建一个类，把这部分代码方法跟 command.rb 平级的fodler 里吧，erbal_template.rb  类名也改一下 ErbalTemplate","created_at":"2016-09-12T08:50:51Z","updated_at":"2016-09-12T08:50:51Z","html_url":"https://github.com/MModel/MetaModel/pull/25#discussion_r78335148","pull_request_url":"https://api.github.com/repos/MModel/MetaModel/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/MModel/MetaModel/pulls/comments/78335148"},"html":{"href":"https://github.com/MModel/MetaModel/pull/25#discussion_r78335148"},"pull_request":{"href":"https://api.github.com/repos/MModel/MetaModel/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/MModel/MetaModel/pulls/25","id":84830858,"html_url":"https://github.com/MModel/MetaModel/pull/25","diff_url":"https://github.com/MModel/MetaModel/pull/25.diff","patch_url":"https://github.com/MModel/MetaModel/pull/25.patch","issue_url":"https://api.github.com/repos/MModel/MetaModel/issues/25","number":25,"state":"open","locked":false,"title":"remove redundent class ErbalT in build.rb","user":{"login":"bestswifter","id":8394612,"avatar_url":"https://avatars.githubusercontent.com/u/8394612?v=3","gravatar_id":"","url":"https://api.github.com/users/bestswifter","html_url":"https://github.com/bestswifter","followers_url":"https://api.github.com/users/bestswifter/followers","following_url":"https://api.github.com/users/bestswifter/following{/other_user}","gists_url":"https://api.github.com/users/bestswifter/gists{/gist_id}","starred_url":"https://api.github.com/users/bestswifter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bestswifter/subscriptions","organizations_url":"https://api.github.com/users/bestswifter/orgs","repos_url":"https://api.github.com/users/bestswifter/repos","events_url":"https://api.github.com/users/bestswifter/events{/privacy}","received_events_url":"https://api.github.com/users/bestswifter/received_events","type":"User","site_admin":false},"body":"We can just use ErbalT defined in renderer.rb","created_at":"2016-09-12T08:16:20Z","updated_at":"2016-09-12T08:50:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97d7f75a11bd191de6f3c879826b6c8d65cdd6b0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/MModel/MetaModel/pulls/25/commits","review_comments_url":"https://api.github.com/repos/MModel/MetaModel/pulls/25/comments","review_comment_url":"https://api.github.com/repos/MModel/MetaModel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MModel/MetaModel/issues/25/comments","statuses_url":"https://api.github.com/repos/MModel/MetaModel/statuses/c1e3853724362034971562245f7b927b528d90d8","head":{"label":"bestswifter:master","ref":"master","sha":"c1e3853724362034971562245f7b927b528d90d8","user":{"login":"bestswifter","id":8394612,"avatar_url":"https://avatars.githubusercontent.com/u/8394612?v=3","gravatar_id":"","url":"https://api.github.com/users/bestswifter","html_url":"https://github.com/bestswifter","followers_url":"https://api.github.com/users/bestswifter/followers","following_url":"https://api.github.com/users/bestswifter/following{/other_user}","gists_url":"https://api.github.com/users/bestswifter/gists{/gist_id}","starred_url":"https://api.github.com/users/bestswifter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bestswifter/subscriptions","organizations_url":"https://api.github.com/users/bestswifter/orgs","repos_url":"https://api.github.com/users/bestswifter/repos","events_url":"https://api.github.com/users/bestswifter/events{/privacy}","received_events_url":"https://api.github.com/users/bestswifter/received_events","type":"User","site_admin":false},"repo":{"id":67989307,"name":"MetaModel","full_name":"bestswifter/MetaModel","owner":{"login":"bestswifter","id":8394612,"avatar_url":"https://avatars.githubusercontent.com/u/8394612?v=3","gravatar_id":"","url":"https://api.github.com/users/bestswifter","html_url":"https://github.com/bestswifter","followers_url":"https://api.github.com/users/bestswifter/followers","following_url":"https://api.github.com/users/bestswifter/following{/other_user}","gists_url":"https://api.github.com/users/bestswifter/gists{/gist_id}","starred_url":"https://api.github.com/users/bestswifter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bestswifter/subscriptions","organizations_url":"https://api.github.com/users/bestswifter/orgs","repos_url":"https://api.github.com/users/bestswifter/repos","events_url":"https://api.github.com/users/bestswifter/events{/privacy}","received_events_url":"https://api.github.com/users/bestswifter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bestswifter/MetaModel","description":"MetaModel is designed to deal with model layer in iOS development with concise APIs which including data persistent, JSON to model and etc.","fork":true,"url":"https://api.github.com/repos/bestswifter/MetaModel","forks_url":"https://api.github.com/repos/bestswifter/MetaModel/forks","keys_url":"https://api.github.com/repos/bestswifter/MetaModel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bestswifter/MetaModel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bestswifter/MetaModel/teams","hooks_url":"https://api.github.com/repos/bestswifter/MetaModel/hooks","issue_events_url":"https://api.github.com/repos/bestswifter/MetaModel/issues/events{/number}","events_url":"https://api.github.com/repos/bestswifter/MetaModel/events","assignees_url":"https://api.github.com/repos/bestswifter/MetaModel/assignees{/user}","branches_url":"https://api.github.com/repos/bestswifter/MetaModel/branches{/branch}","tags_url":"https://api.github.com/repos/bestswifter/MetaModel/tags","blobs_url":"https://api.github.com/repos/bestswifter/MetaModel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bestswifter/MetaModel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bestswifter/MetaModel/git/refs{/sha}","trees_url":"https://api.github.com/repos/bestswifter/MetaModel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bestswifter/MetaModel/statuses/{sha}","languages_url":"https://api.github.com/repos/bestswifter/MetaModel/languages","stargazers_url":"https://api.github.com/repos/bestswifter/MetaModel/stargazers","contributors_url":"https://api.github.com/repos/bestswifter/MetaModel/contributors","subscribers_url":"https://api.github.com/repos/bestswifter/MetaModel/subscribers","subscription_url":"https://api.github.com/repos/bestswifter/MetaModel/subscription","commits_url":"https://api.github.com/repos/bestswifter/MetaModel/commits{/sha}","git_commits_url":"https://api.github.com/repos/bestswifter/MetaModel/git/commits{/sha}","comments_url":"https://api.github.com/repos/bestswifter/MetaModel/comments{/number}","issue_comment_url":"https://api.github.com/repos/bestswifter/MetaModel/issues/comments{/number}","contents_url":"https://api.github.com/repos/bestswifter/MetaModel/contents/{+path}","compare_url":"https://api.github.com/repos/bestswifter/MetaModel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bestswifter/MetaModel/merges","archive_url":"https://api.github.com/repos/bestswifter/MetaModel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bestswifter/MetaModel/downloads","issues_url":"https://api.github.com/repos/bestswifter/MetaModel/issues{/number}","pulls_url":"https://api.github.com/repos/bestswifter/MetaModel/pulls{/number}","milestones_url":"https://api.github.com/repos/bestswifter/MetaModel/milestones{/number}","notifications_url":"https://api.github.com/repos/bestswifter/MetaModel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bestswifter/MetaModel/labels{/name}","releases_url":"https://api.github.com/repos/bestswifter/MetaModel/releases{/id}","deployments_url":"https://api.github.com/repos/bestswifter/MetaModel/deployments","created_at":"2016-09-12T08:10:28Z","updated_at":"2016-09-12T08:10:31Z","pushed_at":"2016-09-12T08:14:29Z","git_url":"git://github.com/bestswifter/MetaModel.git","ssh_url":"git@github.com:bestswifter/MetaModel.git","clone_url":"https://github.com/bestswifter/MetaModel.git","svn_url":"https://github.com/bestswifter/MetaModel","homepage":"","size":2490,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"MModel:master","ref":"master","sha":"91c14a1ee9be5799d5e21d13dada15e63ec82b32","user":{"login":"MModel","id":22007764,"avatar_url":"https://avatars.githubusercontent.com/u/22007764?v=3","gravatar_id":"","url":"https://api.github.com/users/MModel","html_url":"https://github.com/MModel","followers_url":"https://api.github.com/users/MModel/followers","following_url":"https://api.github.com/users/MModel/following{/other_user}","gists_url":"https://api.github.com/users/MModel/gists{/gist_id}","starred_url":"https://api.github.com/users/MModel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MModel/subscriptions","organizations_url":"https://api.github.com/users/MModel/orgs","repos_url":"https://api.github.com/users/MModel/repos","events_url":"https://api.github.com/users/MModel/events{/privacy}","received_events_url":"https://api.github.com/users/MModel/received_events","type":"Organization","site_admin":false},"repo":{"id":63221166,"name":"MetaModel","full_name":"MModel/MetaModel","owner":{"login":"MModel","id":22007764,"avatar_url":"https://avatars.githubusercontent.com/u/22007764?v=3","gravatar_id":"","url":"https://api.github.com/users/MModel","html_url":"https://github.com/MModel","followers_url":"https://api.github.com/users/MModel/followers","following_url":"https://api.github.com/users/MModel/following{/other_user}","gists_url":"https://api.github.com/users/MModel/gists{/gist_id}","starred_url":"https://api.github.com/users/MModel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MModel/subscriptions","organizations_url":"https://api.github.com/users/MModel/orgs","repos_url":"https://api.github.com/users/MModel/repos","events_url":"https://api.github.com/users/MModel/events{/privacy}","received_events_url":"https://api.github.com/users/MModel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MModel/MetaModel","description":"MetaModel is designed to deal with model layer in iOS development with concise APIs which including data persistent, JSON to model and etc.","fork":false,"url":"https://api.github.com/repos/MModel/MetaModel","forks_url":"https://api.github.com/repos/MModel/MetaModel/forks","keys_url":"https://api.github.com/repos/MModel/MetaModel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MModel/MetaModel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MModel/MetaModel/teams","hooks_url":"https://api.github.com/repos/MModel/MetaModel/hooks","issue_events_url":"https://api.github.com/repos/MModel/MetaModel/issues/events{/number}","events_url":"https://api.github.com/repos/MModel/MetaModel/events","assignees_url":"https://api.github.com/repos/MModel/MetaModel/assignees{/user}","branches_url":"https://api.github.com/repos/MModel/MetaModel/branches{/branch}","tags_url":"https://api.github.com/repos/MModel/MetaModel/tags","blobs_url":"https://api.github.com/repos/MModel/MetaModel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MModel/MetaModel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MModel/MetaModel/git/refs{/sha}","trees_url":"https://api.github.com/repos/MModel/MetaModel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MModel/MetaModel/statuses/{sha}","languages_url":"https://api.github.com/repos/MModel/MetaModel/languages","stargazers_url":"https://api.github.com/repos/MModel/MetaModel/stargazers","contributors_url":"https://api.github.com/repos/MModel/MetaModel/contributors","subscribers_url":"https://api.github.com/repos/MModel/MetaModel/subscribers","subscription_url":"https://api.github.com/repos/MModel/MetaModel/subscription","commits_url":"https://api.github.com/repos/MModel/MetaModel/commits{/sha}","git_commits_url":"https://api.github.com/repos/MModel/MetaModel/git/commits{/sha}","comments_url":"https://api.github.com/repos/MModel/MetaModel/comments{/number}","issue_comment_url":"https://api.github.com/repos/MModel/MetaModel/issues/comments{/number}","contents_url":"https://api.github.com/repos/MModel/MetaModel/contents/{+path}","compare_url":"https://api.github.com/repos/MModel/MetaModel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MModel/MetaModel/merges","archive_url":"https://api.github.com/repos/MModel/MetaModel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MModel/MetaModel/downloads","issues_url":"https://api.github.com/repos/MModel/MetaModel/issues{/number}","pulls_url":"https://api.github.com/repos/MModel/MetaModel/pulls{/number}","milestones_url":"https://api.github.com/repos/MModel/MetaModel/milestones{/number}","notifications_url":"https://api.github.com/repos/MModel/MetaModel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MModel/MetaModel/labels{/name}","releases_url":"https://api.github.com/repos/MModel/MetaModel/releases{/id}","deployments_url":"https://api.github.com/repos/MModel/MetaModel/deployments","created_at":"2016-07-13T06:39:59Z","updated_at":"2016-09-12T08:23:44Z","pushed_at":"2016-09-12T08:16:20Z","git_url":"git://github.com/MModel/MetaModel.git","ssh_url":"git@github.com:MModel/MetaModel.git","clone_url":"https://github.com/MModel/MetaModel.git","svn_url":"https://github.com/MModel/MetaModel","homepage":"","size":2490,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":7,"forks":4,"open_issues":7,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MModel/MetaModel/pulls/25"},"html":{"href":"https://github.com/MModel/MetaModel/pull/25"},"issue":{"href":"https://api.github.com/repos/MModel/MetaModel/issues/25"},"comments":{"href":"https://api.github.com/repos/MModel/MetaModel/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/MModel/MetaModel/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/MModel/MetaModel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MModel/MetaModel/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/MModel/MetaModel/statuses/c1e3853724362034971562245f7b927b528d90d8"}}}}
{"actor":{"display_login":"Draveness"}}