{"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/pulls/5","id":65477982,"html_url":"https://github.com/theyworkforyou/tusrepresentanteslocales/pull/5","diff_url":"https://github.com/theyworkforyou/tusrepresentanteslocales/pull/5.diff","patch_url":"https://github.com/theyworkforyou/tusrepresentanteslocales/pull/5.patch","issue_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/issues/5","number":5,"state":"closed","locked":false,"title":"Make sure the CSV files are interpreted as UTF-8","user":{"login":"chrismytton","id":22996,"avatar_url":"https://avatars.githubusercontent.com/u/22996?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismytton","html_url":"https://github.com/chrismytton","followers_url":"https://api.github.com/users/chrismytton/followers","following_url":"https://api.github.com/users/chrismytton/following{/other_user}","gists_url":"https://api.github.com/users/chrismytton/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismytton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismytton/subscriptions","organizations_url":"https://api.github.com/users/chrismytton/orgs","repos_url":"https://api.github.com/users/chrismytton/repos","events_url":"https://api.github.com/users/chrismytton/events{/privacy}","received_events_url":"https://api.github.com/users/chrismytton/received_events","type":"User","site_admin":false},"body":"YourNextRepresentative/Apache is serving up the CSV files with\r\n`Content-Type: text/csv`. This means that Ruby is interpreting them as\r\nASCII-8BIT rather than UTF-8, which in turn causes problems with Liquid,\r\nwhich expects everything to be in UTF-8. By saving them to the\r\nfilesystem Ruby reads them as UTF-8 by default, which is what we want\r\nand eliminates the error.\r\n\r\nThis might also be a good way to rebuild the site when there's new data.\r\nWe simply put the new CSVs onto the master branch and then the site will\r\nbe rebuild from them.","created_at":"2016-04-06T14:40:46Z","updated_at":"2016-04-06T14:55:01Z","closed_at":"2016-04-06T14:55:01Z","merged_at":"2016-04-06T14:55:01Z","merge_commit_sha":"c874b34efecc83dc627be54f3520b2573f3d9dcd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/pulls/5/commits","review_comments_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/pulls/5/comments","review_comment_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/issues/5/comments","statuses_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/statuses/27edabec15abe2241e415dab4ac0fa810f28dafb","head":{"label":"theyworkforyou:fix-csv-encoding","ref":"fix-csv-encoding","sha":"27edabec15abe2241e415dab4ac0fa810f28dafb","user":{"login":"theyworkforyou","id":17250791,"avatar_url":"https://avatars.githubusercontent.com/u/17250791?v=3","gravatar_id":"","url":"https://api.github.com/users/theyworkforyou","html_url":"https://github.com/theyworkforyou","followers_url":"https://api.github.com/users/theyworkforyou/followers","following_url":"https://api.github.com/users/theyworkforyou/following{/other_user}","gists_url":"https://api.github.com/users/theyworkforyou/gists{/gist_id}","starred_url":"https://api.github.com/users/theyworkforyou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theyworkforyou/subscriptions","organizations_url":"https://api.github.com/users/theyworkforyou/orgs","repos_url":"https://api.github.com/users/theyworkforyou/repos","events_url":"https://api.github.com/users/theyworkforyou/events{/privacy}","received_events_url":"https://api.github.com/users/theyworkforyou/received_events","type":"Organization","site_admin":false},"repo":{"id":55412143,"name":"tusrepresentanteslocales","full_name":"theyworkforyou/tusrepresentanteslocales","owner":{"login":"theyworkforyou","id":17250791,"avatar_url":"https://avatars.githubusercontent.com/u/17250791?v=3","gravatar_id":"","url":"https://api.github.com/users/theyworkforyou","html_url":"https://github.com/theyworkforyou","followers_url":"https://api.github.com/users/theyworkforyou/followers","following_url":"https://api.github.com/users/theyworkforyou/following{/other_user}","gists_url":"https://api.github.com/users/theyworkforyou/gists{/gist_id}","starred_url":"https://api.github.com/users/theyworkforyou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theyworkforyou/subscriptions","organizations_url":"https://api.github.com/users/theyworkforyou/orgs","repos_url":"https://api.github.com/users/theyworkforyou/repos","events_url":"https://api.github.com/users/theyworkforyou/events{/privacy}","received_events_url":"https://api.github.com/users/theyworkforyou/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theyworkforyou/tusrepresentanteslocales","description":null,"fork":false,"url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales","forks_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/forks","keys_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/teams","hooks_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/hooks","issue_events_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/issues/events{/number}","events_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/events","assignees_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/assignees{/user}","branches_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/branches{/branch}","tags_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/tags","blobs_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/git/refs{/sha}","trees_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/statuses/{sha}","languages_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/languages","stargazers_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/stargazers","contributors_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/contributors","subscribers_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/subscribers","subscription_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/subscription","commits_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/commits{/sha}","git_commits_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/git/commits{/sha}","comments_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/comments{/number}","issue_comment_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/issues/comments{/number}","contents_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/contents/{+path}","compare_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/merges","archive_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/downloads","issues_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/issues{/number}","pulls_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/pulls{/number}","milestones_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/milestones{/number}","notifications_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/labels{/name}","releases_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/releases{/id}","deployments_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/deployments","created_at":"2016-04-04T13:12:02Z","updated_at":"2016-04-05T14:50:14Z","pushed_at":"2016-04-06T14:55:01Z","git_url":"git://github.com/theyworkforyou/tusrepresentanteslocales.git","ssh_url":"git@github.com:theyworkforyou/tusrepresentanteslocales.git","clone_url":"https://github.com/theyworkforyou/tusrepresentanteslocales.git","svn_url":"https://github.com/theyworkforyou/tusrepresentanteslocales","homepage":null,"size":152,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"theyworkforyou:master","ref":"master","sha":"bcc8a67d2beaef6f4f1e2becac84d960c0f0e3e6","user":{"login":"theyworkforyou","id":17250791,"avatar_url":"https://avatars.githubusercontent.com/u/17250791?v=3","gravatar_id":"","url":"https://api.github.com/users/theyworkforyou","html_url":"https://github.com/theyworkforyou","followers_url":"https://api.github.com/users/theyworkforyou/followers","following_url":"https://api.github.com/users/theyworkforyou/following{/other_user}","gists_url":"https://api.github.com/users/theyworkforyou/gists{/gist_id}","starred_url":"https://api.github.com/users/theyworkforyou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theyworkforyou/subscriptions","organizations_url":"https://api.github.com/users/theyworkforyou/orgs","repos_url":"https://api.github.com/users/theyworkforyou/repos","events_url":"https://api.github.com/users/theyworkforyou/events{/privacy}","received_events_url":"https://api.github.com/users/theyworkforyou/received_events","type":"Organization","site_admin":false},"repo":{"id":55412143,"name":"tusrepresentanteslocales","full_name":"theyworkforyou/tusrepresentanteslocales","owner":{"login":"theyworkforyou","id":17250791,"avatar_url":"https://avatars.githubusercontent.com/u/17250791?v=3","gravatar_id":"","url":"https://api.github.com/users/theyworkforyou","html_url":"https://github.com/theyworkforyou","followers_url":"https://api.github.com/users/theyworkforyou/followers","following_url":"https://api.github.com/users/theyworkforyou/following{/other_user}","gists_url":"https://api.github.com/users/theyworkforyou/gists{/gist_id}","starred_url":"https://api.github.com/users/theyworkforyou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theyworkforyou/subscriptions","organizations_url":"https://api.github.com/users/theyworkforyou/orgs","repos_url":"https://api.github.com/users/theyworkforyou/repos","events_url":"https://api.github.com/users/theyworkforyou/events{/privacy}","received_events_url":"https://api.github.com/users/theyworkforyou/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theyworkforyou/tusrepresentanteslocales","description":null,"fork":false,"url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales","forks_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/forks","keys_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/teams","hooks_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/hooks","issue_events_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/issues/events{/number}","events_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/events","assignees_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/assignees{/user}","branches_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/branches{/branch}","tags_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/tags","blobs_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/git/refs{/sha}","trees_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/statuses/{sha}","languages_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/languages","stargazers_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/stargazers","contributors_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/contributors","subscribers_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/subscribers","subscription_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/subscription","commits_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/commits{/sha}","git_commits_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/git/commits{/sha}","comments_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/comments{/number}","issue_comment_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/issues/comments{/number}","contents_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/contents/{+path}","compare_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/merges","archive_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/downloads","issues_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/issues{/number}","pulls_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/pulls{/number}","milestones_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/milestones{/number}","notifications_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/labels{/name}","releases_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/releases{/id}","deployments_url":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/deployments","created_at":"2016-04-04T13:12:02Z","updated_at":"2016-04-05T14:50:14Z","pushed_at":"2016-04-06T14:55:01Z","git_url":"git://github.com/theyworkforyou/tusrepresentanteslocales.git","ssh_url":"git@github.com:theyworkforyou/tusrepresentanteslocales.git","clone_url":"https://github.com/theyworkforyou/tusrepresentanteslocales.git","svn_url":"https://github.com/theyworkforyou/tusrepresentanteslocales","homepage":null,"size":152,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/pulls/5"},"html":{"href":"https://github.com/theyworkforyou/tusrepresentanteslocales/pull/5"},"issue":{"href":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/issues/5"},"comments":{"href":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/theyworkforyou/tusrepresentanteslocales/statuses/27edabec15abe2241e415dab4ac0fa810f28dafb"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"chrismytton","id":22996,"avatar_url":"https://avatars.githubusercontent.com/u/22996?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismytton","html_url":"https://github.com/chrismytton","followers_url":"https://api.github.com/users/chrismytton/followers","following_url":"https://api.github.com/users/chrismytton/following{/other_user}","gists_url":"https://api.github.com/users/chrismytton/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismytton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismytton/subscriptions","organizations_url":"https://api.github.com/users/chrismytton/orgs","repos_url":"https://api.github.com/users/chrismytton/repos","events_url":"https://api.github.com/users/chrismytton/events{/privacy}","received_events_url":"https://api.github.com/users/chrismytton/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":548,"deletions":2,"changed_files":3}}