GitHub PullRequestReviewCommentEvent at 2014-08-21 19:55:57
Repository: weby
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/cercomp/weby/pulls/comments/16564483","id":16564483,"diff_hunk":"@@ -0,0 +1,171 @@\n+\n+# Consertando erros da migração\n+#def treat(obj,field)\n+#  if obj\n+#    obj.send(field).gsub(/(['\"])\\/uploads\\/([0-9]+)\\//){|x| \"#{$1}/uploads/#{obj.site_id}/\" if $2 != obj.site_id}\n+#  end\n+#end\n+\n+#def treat(obj,field)\n+#  if obj\n+#    obj.send(field).gsub(/'\\/pages\\/([0-9]+)'/){|x| \"/pages/#{$1}/\"}\n+#  end\n+#end\n+\n+#http://files/95/fluxo_atual.pdf_www2.catalao.ufg.br\n+\n+#def treat(obj,field)\n+#  if obj\n+#    obj.send(field).gsub(/http:\\/\\/files\\/[0-9]+\\/(.+)_www2\\.catalao\\.ufg\\.br/){|x| \"/uploads/#{obj.site_id}/original_#{$1}\"}\n+#  end\n+#end\n+\n+#def treat_menu(obj,field)\n+#  if obj\n+#    obj.send(field).gsub(/^\\/uploads\\/([0-9]+)\\//){|x| \"/uploads/#{obj.menu.site_id}/\" if $1 != obj.menu.site_id}\n+#  end\n+#end\n+\n+#/admin/pages/54167/'/pages/54166'\n+\n+#s = Site.where(\"id >= 496 and id <= 615\")\n+#s.each do |site|\n+#  site.pages.each do |page|\n+#    page.url = treat(page, :url)\n+#    page.i18ns.each do |i18n|\n+#      i18n.text = treat(page, :text)\n+#      i18n.summary = treat(page, :summary)\n+#    end\n+#    page.save\n+#  end\n+##  site.menu_items.each do |item|\n+##    item.update_attributes(url: treat_menu(item, :url))\n+##  end\n+#end\n+\n+# Outros testes\n+#! /usr/bin/env ruby\n+# coding: UTF-8\n+#\n+# Script de migração da base de dados This para Weby.\n+#\n+require 'rubygems'\n+require 'pg'\n+require 'yaml'\n+require 'cgi'\n+require 'htmlentities'\n+#require 'iconv'\n+require 'pp'","path":"lib/weby/scripts/migrateteste.rb","position":58,"original_position":58,"commit_id":"27c6355a1bc932473867e094d5b922611f2cd56a","original_commit_id":"27c6355a1bc932473867e094d5b922611f2cd56a","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=2","gravatar_id":"38d9cefd9971a05bf447f07c6cd332cc","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2014-08-21T19:55:57Z","updated_at":"2014-08-21T19:55:57Z","html_url":"https://github.com/cercomp/weby/pull/165#discussion_r16564483","pull_request_url":"https://api.github.com/repos/cercomp/weby/pulls/165","_links":{"self":{"href":"https://api.github.com/repos/cercomp/weby/pulls/comments/16564483"},"html":{"href":"https://github.com/cercomp/weby/pull/165#discussion_r16564483"},"pull_request":{"href":"https://api.github.com/repos/cercomp/weby/pulls/165"}}},"pull_request":{"url":"https://api.github.com/repos/cercomp/weby/pulls/165","id":20130795,"html_url":"https://github.com/cercomp/weby/pull/165","diff_url":"https://github.com/cercomp/weby/pull/165.diff","patch_url":"https://github.com/cercomp/weby/pull/165.patch","issue_url":"https://api.github.com/repos/cercomp/weby/issues/165","number":165,"state":"open","locked":false,"title":"8 global repo","user":{"login":"robeiro","id":3718968,"avatar_url":"https://avatars.githubusercontent.com/u/3718968?v=2","gravatar_id":"7c726ef612d226455152042bc9fa94f5","url":"https://api.github.com/users/robeiro","html_url":"https://github.com/robeiro","followers_url":"https://api.github.com/users/robeiro/followers","following_url":"https://api.github.com/users/robeiro/following{/other_user}","gists_url":"https://api.github.com/users/robeiro/gists{/gist_id}","starred_url":"https://api.github.com/users/robeiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robeiro/subscriptions","organizations_url":"https://api.github.com/users/robeiro/orgs","repos_url":"https://api.github.com/users/robeiro/repos","events_url":"https://api.github.com/users/robeiro/events{/privacy}","received_events_url":"https://api.github.com/users/robeiro/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-08-21T19:11:51Z","updated_at":"2014-08-21T19:55:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb7cf666dd600e0662f1d0c1fd7d2ade1f3fade9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cercomp/weby/pulls/165/commits","review_comments_url":"https://api.github.com/repos/cercomp/weby/pulls/165/comments","review_comment_url":"https://api.github.com/repos/cercomp/weby/pulls/comments/{number}","comments_url":"https://api.github.com/repos/cercomp/weby/issues/165/comments","statuses_url":"https://api.github.com/repos/cercomp/weby/statuses/27c6355a1bc932473867e094d5b922611f2cd56a","head":{"label":"cercomp:8_global_repo","ref":"8_global_repo","sha":"27c6355a1bc932473867e094d5b922611f2cd56a","user":{"login":"cercomp","id":1348125,"avatar_url":"https://avatars.githubusercontent.com/u/1348125?v=2","gravatar_id":"7e22d9173e73f539062dc4c1813a24d7","url":"https://api.github.com/users/cercomp","html_url":"https://github.com/cercomp","followers_url":"https://api.github.com/users/cercomp/followers","following_url":"https://api.github.com/users/cercomp/following{/other_user}","gists_url":"https://api.github.com/users/cercomp/gists{/gist_id}","starred_url":"https://api.github.com/users/cercomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cercomp/subscriptions","organizations_url":"https://api.github.com/users/cercomp/orgs","repos_url":"https://api.github.com/users/cercomp/repos","events_url":"https://api.github.com/users/cercomp/events{/privacy}","received_events_url":"https://api.github.com/users/cercomp/received_events","type":"Organization","site_admin":false},"repo":{"id":15479907,"name":"weby","full_name":"cercomp/weby","owner":{"login":"cercomp","id":1348125,"avatar_url":"https://avatars.githubusercontent.com/u/1348125?v=2","gravatar_id":"7e22d9173e73f539062dc4c1813a24d7","url":"https://api.github.com/users/cercomp","html_url":"https://github.com/cercomp","followers_url":"https://api.github.com/users/cercomp/followers","following_url":"https://api.github.com/users/cercomp/following{/other_user}","gists_url":"https://api.github.com/users/cercomp/gists{/gist_id}","starred_url":"https://api.github.com/users/cercomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cercomp/subscriptions","organizations_url":"https://api.github.com/users/cercomp/orgs","repos_url":"https://api.github.com/users/cercomp/repos","events_url":"https://api.github.com/users/cercomp/events{/privacy}","received_events_url":"https://api.github.com/users/cercomp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cercomp/weby","description":"CMS - Content Management System in Ruby on Rails","fork":false,"url":"https://api.github.com/repos/cercomp/weby","forks_url":"https://api.github.com/repos/cercomp/weby/forks","keys_url":"https://api.github.com/repos/cercomp/weby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cercomp/weby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cercomp/weby/teams","hooks_url":"https://api.github.com/repos/cercomp/weby/hooks","issue_events_url":"https://api.github.com/repos/cercomp/weby/issues/events{/number}","events_url":"https://api.github.com/repos/cercomp/weby/events","assignees_url":"https://api.github.com/repos/cercomp/weby/assignees{/user}","branches_url":"https://api.github.com/repos/cercomp/weby/branches{/branch}","tags_url":"https://api.github.com/repos/cercomp/weby/tags","blobs_url":"https://api.github.com/repos/cercomp/weby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cercomp/weby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cercomp/weby/git/refs{/sha}","trees_url":"https://api.github.com/repos/cercomp/weby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cercomp/weby/statuses/{sha}","languages_url":"https://api.github.com/repos/cercomp/weby/languages","stargazers_url":"https://api.github.com/repos/cercomp/weby/stargazers","contributors_url":"https://api.github.com/repos/cercomp/weby/contributors","subscribers_url":"https://api.github.com/repos/cercomp/weby/subscribers","subscription_url":"https://api.github.com/repos/cercomp/weby/subscription","commits_url":"https://api.github.com/repos/cercomp/weby/commits{/sha}","git_commits_url":"https://api.github.com/repos/cercomp/weby/git/commits{/sha}","comments_url":"https://api.github.com/repos/cercomp/weby/comments{/number}","issue_comment_url":"https://api.github.com/repos/cercomp/weby/issues/comments/{number}","contents_url":"https://api.github.com/repos/cercomp/weby/contents/{+path}","compare_url":"https://api.github.com/repos/cercomp/weby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cercomp/weby/merges","archive_url":"https://api.github.com/repos/cercomp/weby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cercomp/weby/downloads","issues_url":"https://api.github.com/repos/cercomp/weby/issues{/number}","pulls_url":"https://api.github.com/repos/cercomp/weby/pulls{/number}","milestones_url":"https://api.github.com/repos/cercomp/weby/milestones{/number}","notifications_url":"https://api.github.com/repos/cercomp/weby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cercomp/weby/labels{/name}","releases_url":"https://api.github.com/repos/cercomp/weby/releases{/id}","created_at":"2013-12-27T18:56:13Z","updated_at":"2014-08-19T19:51:01Z","pushed_at":"2014-08-21T19:52:59Z","git_url":"git://github.com/cercomp/weby.git","ssh_url":"git@github.com:cercomp/weby.git","clone_url":"https://github.com/cercomp/weby.git","svn_url":"https://github.com/cercomp/weby","homepage":"http://weby.cercomp.ufg.br","size":35787,"stargazers_count":15,"watchers_count":15,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":4,"mirror_url":null,"open_issues_count":32,"forks":4,"open_issues":32,"watchers":15,"default_branch":"master"}},"base":{"label":"cercomp:master","ref":"master","sha":"77d2785b2ba1e0ba06855b6ef53c7a35442ad23d","user":{"login":"cercomp","id":1348125,"avatar_url":"https://avatars.githubusercontent.com/u/1348125?v=2","gravatar_id":"7e22d9173e73f539062dc4c1813a24d7","url":"https://api.github.com/users/cercomp","html_url":"https://github.com/cercomp","followers_url":"https://api.github.com/users/cercomp/followers","following_url":"https://api.github.com/users/cercomp/following{/other_user}","gists_url":"https://api.github.com/users/cercomp/gists{/gist_id}","starred_url":"https://api.github.com/users/cercomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cercomp/subscriptions","organizations_url":"https://api.github.com/users/cercomp/orgs","repos_url":"https://api.github.com/users/cercomp/repos","events_url":"https://api.github.com/users/cercomp/events{/privacy}","received_events_url":"https://api.github.com/users/cercomp/received_events","type":"Organization","site_admin":false},"repo":{"id":15479907,"name":"weby","full_name":"cercomp/weby","owner":{"login":"cercomp","id":1348125,"avatar_url":"https://avatars.githubusercontent.com/u/1348125?v=2","gravatar_id":"7e22d9173e73f539062dc4c1813a24d7","url":"https://api.github.com/users/cercomp","html_url":"https://github.com/cercomp","followers_url":"https://api.github.com/users/cercomp/followers","following_url":"https://api.github.com/users/cercomp/following{/other_user}","gists_url":"https://api.github.com/users/cercomp/gists{/gist_id}","starred_url":"https://api.github.com/users/cercomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cercomp/subscriptions","organizations_url":"https://api.github.com/users/cercomp/orgs","repos_url":"https://api.github.com/users/cercomp/repos","events_url":"https://api.github.com/users/cercomp/events{/privacy}","received_events_url":"https://api.github.com/users/cercomp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cercomp/weby","description":"CMS - Content Management System in Ruby on Rails","fork":false,"url":"https://api.github.com/repos/cercomp/weby","forks_url":"https://api.github.com/repos/cercomp/weby/forks","keys_url":"https://api.github.com/repos/cercomp/weby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cercomp/weby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cercomp/weby/teams","hooks_url":"https://api.github.com/repos/cercomp/weby/hooks","issue_events_url":"https://api.github.com/repos/cercomp/weby/issues/events{/number}","events_url":"https://api.github.com/repos/cercomp/weby/events","assignees_url":"https://api.github.com/repos/cercomp/weby/assignees{/user}","branches_url":"https://api.github.com/repos/cercomp/weby/branches{/branch}","tags_url":"https://api.github.com/repos/cercomp/weby/tags","blobs_url":"https://api.github.com/repos/cercomp/weby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cercomp/weby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cercomp/weby/git/refs{/sha}","trees_url":"https://api.github.com/repos/cercomp/weby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cercomp/weby/statuses/{sha}","languages_url":"https://api.github.com/repos/cercomp/weby/languages","stargazers_url":"https://api.github.com/repos/cercomp/weby/stargazers","contributors_url":"https://api.github.com/repos/cercomp/weby/contributors","subscribers_url":"https://api.github.com/repos/cercomp/weby/subscribers","subscription_url":"https://api.github.com/repos/cercomp/weby/subscription","commits_url":"https://api.github.com/repos/cercomp/weby/commits{/sha}","git_commits_url":"https://api.github.com/repos/cercomp/weby/git/commits{/sha}","comments_url":"https://api.github.com/repos/cercomp/weby/comments{/number}","issue_comment_url":"https://api.github.com/repos/cercomp/weby/issues/comments/{number}","contents_url":"https://api.github.com/repos/cercomp/weby/contents/{+path}","compare_url":"https://api.github.com/repos/cercomp/weby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cercomp/weby/merges","archive_url":"https://api.github.com/repos/cercomp/weby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cercomp/weby/downloads","issues_url":"https://api.github.com/repos/cercomp/weby/issues{/number}","pulls_url":"https://api.github.com/repos/cercomp/weby/pulls{/number}","milestones_url":"https://api.github.com/repos/cercomp/weby/milestones{/number}","notifications_url":"https://api.github.com/repos/cercomp/weby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cercomp/weby/labels{/name}","releases_url":"https://api.github.com/repos/cercomp/weby/releases{/id}","created_at":"2013-12-27T18:56:13Z","updated_at":"2014-08-19T19:51:01Z","pushed_at":"2014-08-21T19:52:59Z","git_url":"git://github.com/cercomp/weby.git","ssh_url":"git@github.com:cercomp/weby.git","clone_url":"https://github.com/cercomp/weby.git","svn_url":"https://github.com/cercomp/weby","homepage":"http://weby.cercomp.ufg.br","size":35787,"stargazers_count":15,"watchers_count":15,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":4,"mirror_url":null,"open_issues_count":32,"forks":4,"open_issues":32,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cercomp/weby/pulls/165"},"html":{"href":"https://github.com/cercomp/weby/pull/165"},"issue":{"href":"https://api.github.com/repos/cercomp/weby/issues/165"},"comments":{"href":"https://api.github.com/repos/cercomp/weby/issues/165/comments"},"review_comments":{"href":"https://api.github.com/repos/cercomp/weby/pulls/165/comments"},"review_comment":{"href":"https://api.github.com/repos/cercomp/weby/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/cercomp/weby/pulls/165/commits"},"statuses":{"href":"https://api.github.com/repos/cercomp/weby/statuses/27c6355a1bc932473867e094d5b922611f2cd56a"}}}}