{"action":"opened","number":241,"pull_request":{"url":"https://api.github.com/repos/rubyworks/facets/pulls/241","id":37321970,"html_url":"https://github.com/rubyworks/facets/pull/241","diff_url":"https://github.com/rubyworks/facets/pull/241.diff","patch_url":"https://github.com/rubyworks/facets/pull/241.patch","issue_url":"https://api.github.com/repos/rubyworks/facets/issues/241","number":241,"state":"open","locked":false,"title":"Enchance Download methods","user":{"login":"aguynamedryan","id":117722,"avatar_url":"https://avatars.githubusercontent.com/u/117722?v=3","gravatar_id":"","url":"https://api.github.com/users/aguynamedryan","html_url":"https://github.com/aguynamedryan","followers_url":"https://api.github.com/users/aguynamedryan/followers","following_url":"https://api.github.com/users/aguynamedryan/following{/other_user}","gists_url":"https://api.github.com/users/aguynamedryan/gists{/gist_id}","starred_url":"https://api.github.com/users/aguynamedryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aguynamedryan/subscriptions","organizations_url":"https://api.github.com/users/aguynamedryan/orgs","repos_url":"https://api.github.com/users/aguynamedryan/repos","events_url":"https://api.github.com/users/aguynamedryan/events{/privacy}","received_events_url":"https://api.github.com/users/aguynamedryan/received_events","type":"User","site_admin":false},"body":"I was using Net.download_and_save and ran into a problem where it bombed out with:\r\n``Encoding::UndefinedConversionError: \"\\xC2\" from ASCII-8BIT to UTF-8``\r\n\r\nBummer.\r\n\r\nLong story short, after digging around, I ended up replacing some of the code, fixing some whitespace issues, and adding some comments.  There weren't any existing tests and it was beyond me as to how to add any for these kinds of methods.","created_at":"2015-06-10T03:49:00Z","updated_at":"2015-06-10T03:49:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rubyworks/facets/pulls/241/commits","review_comments_url":"https://api.github.com/repos/rubyworks/facets/pulls/241/comments","review_comment_url":"https://api.github.com/repos/rubyworks/facets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubyworks/facets/issues/241/comments","statuses_url":"https://api.github.com/repos/rubyworks/facets/statuses/2b134e2152fc2565ffee984ab122002d283442ef","head":{"label":"aguynamedryan:download_methods","ref":"download_methods","sha":"2b134e2152fc2565ffee984ab122002d283442ef","user":{"login":"aguynamedryan","id":117722,"avatar_url":"https://avatars.githubusercontent.com/u/117722?v=3","gravatar_id":"","url":"https://api.github.com/users/aguynamedryan","html_url":"https://github.com/aguynamedryan","followers_url":"https://api.github.com/users/aguynamedryan/followers","following_url":"https://api.github.com/users/aguynamedryan/following{/other_user}","gists_url":"https://api.github.com/users/aguynamedryan/gists{/gist_id}","starred_url":"https://api.github.com/users/aguynamedryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aguynamedryan/subscriptions","organizations_url":"https://api.github.com/users/aguynamedryan/orgs","repos_url":"https://api.github.com/users/aguynamedryan/repos","events_url":"https://api.github.com/users/aguynamedryan/events{/privacy}","received_events_url":"https://api.github.com/users/aguynamedryan/received_events","type":"User","site_admin":false},"repo":{"id":26243085,"name":"facets","full_name":"aguynamedryan/facets","owner":{"login":"aguynamedryan","id":117722,"avatar_url":"https://avatars.githubusercontent.com/u/117722?v=3","gravatar_id":"","url":"https://api.github.com/users/aguynamedryan","html_url":"https://github.com/aguynamedryan","followers_url":"https://api.github.com/users/aguynamedryan/followers","following_url":"https://api.github.com/users/aguynamedryan/following{/other_user}","gists_url":"https://api.github.com/users/aguynamedryan/gists{/gist_id}","starred_url":"https://api.github.com/users/aguynamedryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aguynamedryan/subscriptions","organizations_url":"https://api.github.com/users/aguynamedryan/orgs","repos_url":"https://api.github.com/users/aguynamedryan/repos","events_url":"https://api.github.com/users/aguynamedryan/events{/privacy}","received_events_url":"https://api.github.com/users/aguynamedryan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aguynamedryan/facets","description":"Ruby Facets","fork":true,"url":"https://api.github.com/repos/aguynamedryan/facets","forks_url":"https://api.github.com/repos/aguynamedryan/facets/forks","keys_url":"https://api.github.com/repos/aguynamedryan/facets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aguynamedryan/facets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aguynamedryan/facets/teams","hooks_url":"https://api.github.com/repos/aguynamedryan/facets/hooks","issue_events_url":"https://api.github.com/repos/aguynamedryan/facets/issues/events{/number}","events_url":"https://api.github.com/repos/aguynamedryan/facets/events","assignees_url":"https://api.github.com/repos/aguynamedryan/facets/assignees{/user}","branches_url":"https://api.github.com/repos/aguynamedryan/facets/branches{/branch}","tags_url":"https://api.github.com/repos/aguynamedryan/facets/tags","blobs_url":"https://api.github.com/repos/aguynamedryan/facets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aguynamedryan/facets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aguynamedryan/facets/git/refs{/sha}","trees_url":"https://api.github.com/repos/aguynamedryan/facets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aguynamedryan/facets/statuses/{sha}","languages_url":"https://api.github.com/repos/aguynamedryan/facets/languages","stargazers_url":"https://api.github.com/repos/aguynamedryan/facets/stargazers","contributors_url":"https://api.github.com/repos/aguynamedryan/facets/contributors","subscribers_url":"https://api.github.com/repos/aguynamedryan/facets/subscribers","subscription_url":"https://api.github.com/repos/aguynamedryan/facets/subscription","commits_url":"https://api.github.com/repos/aguynamedryan/facets/commits{/sha}","git_commits_url":"https://api.github.com/repos/aguynamedryan/facets/git/commits{/sha}","comments_url":"https://api.github.com/repos/aguynamedryan/facets/comments{/number}","issue_comment_url":"https://api.github.com/repos/aguynamedryan/facets/issues/comments{/number}","contents_url":"https://api.github.com/repos/aguynamedryan/facets/contents/{+path}","compare_url":"https://api.github.com/repos/aguynamedryan/facets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aguynamedryan/facets/merges","archive_url":"https://api.github.com/repos/aguynamedryan/facets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aguynamedryan/facets/downloads","issues_url":"https://api.github.com/repos/aguynamedryan/facets/issues{/number}","pulls_url":"https://api.github.com/repos/aguynamedryan/facets/pulls{/number}","milestones_url":"https://api.github.com/repos/aguynamedryan/facets/milestones{/number}","notifications_url":"https://api.github.com/repos/aguynamedryan/facets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aguynamedryan/facets/labels{/name}","releases_url":"https://api.github.com/repos/aguynamedryan/facets/releases{/id}","created_at":"2014-11-05T22:40:04Z","updated_at":"2014-11-02T15:12:56Z","pushed_at":"2015-06-10T03:42:37Z","git_url":"git://github.com/aguynamedryan/facets.git","ssh_url":"git@github.com:aguynamedryan/facets.git","clone_url":"https://github.com/aguynamedryan/facets.git","svn_url":"https://github.com/aguynamedryan/facets","homepage":"http://rubyworks.github.com/facets/","size":11133,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rubyworks:master","ref":"master","sha":"c24e18eff65429e2abdb4d2a241e4dd0749eba88","user":{"login":"rubyworks","id":123975,"avatar_url":"https://avatars.githubusercontent.com/u/123975?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyworks","html_url":"https://github.com/rubyworks","followers_url":"https://api.github.com/users/rubyworks/followers","following_url":"https://api.github.com/users/rubyworks/following{/other_user}","gists_url":"https://api.github.com/users/rubyworks/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyworks/subscriptions","organizations_url":"https://api.github.com/users/rubyworks/orgs","repos_url":"https://api.github.com/users/rubyworks/repos","events_url":"https://api.github.com/users/rubyworks/events{/privacy}","received_events_url":"https://api.github.com/users/rubyworks/received_events","type":"Organization","site_admin":false},"repo":{"id":341331,"name":"facets","full_name":"rubyworks/facets","owner":{"login":"rubyworks","id":123975,"avatar_url":"https://avatars.githubusercontent.com/u/123975?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyworks","html_url":"https://github.com/rubyworks","followers_url":"https://api.github.com/users/rubyworks/followers","following_url":"https://api.github.com/users/rubyworks/following{/other_user}","gists_url":"https://api.github.com/users/rubyworks/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyworks/subscriptions","organizations_url":"https://api.github.com/users/rubyworks/orgs","repos_url":"https://api.github.com/users/rubyworks/repos","events_url":"https://api.github.com/users/rubyworks/events{/privacy}","received_events_url":"https://api.github.com/users/rubyworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubyworks/facets","description":"Ruby Facets","fork":false,"url":"https://api.github.com/repos/rubyworks/facets","forks_url":"https://api.github.com/repos/rubyworks/facets/forks","keys_url":"https://api.github.com/repos/rubyworks/facets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubyworks/facets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubyworks/facets/teams","hooks_url":"https://api.github.com/repos/rubyworks/facets/hooks","issue_events_url":"https://api.github.com/repos/rubyworks/facets/issues/events{/number}","events_url":"https://api.github.com/repos/rubyworks/facets/events","assignees_url":"https://api.github.com/repos/rubyworks/facets/assignees{/user}","branches_url":"https://api.github.com/repos/rubyworks/facets/branches{/branch}","tags_url":"https://api.github.com/repos/rubyworks/facets/tags","blobs_url":"https://api.github.com/repos/rubyworks/facets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubyworks/facets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubyworks/facets/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubyworks/facets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubyworks/facets/statuses/{sha}","languages_url":"https://api.github.com/repos/rubyworks/facets/languages","stargazers_url":"https://api.github.com/repos/rubyworks/facets/stargazers","contributors_url":"https://api.github.com/repos/rubyworks/facets/contributors","subscribers_url":"https://api.github.com/repos/rubyworks/facets/subscribers","subscription_url":"https://api.github.com/repos/rubyworks/facets/subscription","commits_url":"https://api.github.com/repos/rubyworks/facets/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubyworks/facets/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubyworks/facets/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubyworks/facets/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubyworks/facets/contents/{+path}","compare_url":"https://api.github.com/repos/rubyworks/facets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubyworks/facets/merges","archive_url":"https://api.github.com/repos/rubyworks/facets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubyworks/facets/downloads","issues_url":"https://api.github.com/repos/rubyworks/facets/issues{/number}","pulls_url":"https://api.github.com/repos/rubyworks/facets/pulls{/number}","milestones_url":"https://api.github.com/repos/rubyworks/facets/milestones{/number}","notifications_url":"https://api.github.com/repos/rubyworks/facets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubyworks/facets/labels{/name}","releases_url":"https://api.github.com/repos/rubyworks/facets/releases{/id}","created_at":"2009-10-18T15:31:57Z","updated_at":"2015-06-09T17:10:57Z","pushed_at":"2015-05-18T17:51:02Z","git_url":"git://github.com/rubyworks/facets.git","ssh_url":"git@github.com:rubyworks/facets.git","clone_url":"https://github.com/rubyworks/facets.git","svn_url":"https://github.com/rubyworks/facets","homepage":"http://rubyworks.github.com/facets","size":14621,"stargazers_count":467,"watchers_count":467,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":75,"mirror_url":null,"open_issues_count":31,"forks":75,"open_issues":31,"watchers":467,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubyworks/facets/pulls/241"},"html":{"href":"https://github.com/rubyworks/facets/pull/241"},"issue":{"href":"https://api.github.com/repos/rubyworks/facets/issues/241"},"comments":{"href":"https://api.github.com/repos/rubyworks/facets/issues/241/comments"},"review_comments":{"href":"https://api.github.com/repos/rubyworks/facets/pulls/241/comments"},"review_comment":{"href":"https://api.github.com/repos/rubyworks/facets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubyworks/facets/pulls/241/commits"},"statuses":{"href":"https://api.github.com/repos/rubyworks/facets/statuses/2b134e2152fc2565ffee984ab122002d283442ef"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":7,"additions":32,"deletions":14,"changed_files":1}}