{"action":"created","comment":{"url":"https://api.github.com/repos/sparklemotion/mechanize/pulls/comments/151607409","pull_request_review_id":77344001,"id":151607409,"diff_hunk":"@@ -153,6 +153,15 @@ def add_field!(field_name, value = nil)\n     fields << Field.new({'name' => field_name}, value)\n   end\n \n+  # Add a file upload with +field_name+ and a file named +file_name+, with\n+  # contents +file_data+, and MIME type +mime_type.","path":"lib/mechanize/form.rb","position":5,"original_position":5,"commit_id":"6144ca8b3359f787c9a30486bebad021ea9b2088","original_commit_id":"6144ca8b3359f787c9a30486bebad021ea9b2088","user":{"login":"zenspider","id":9832,"avatar_url":"https://avatars3.githubusercontent.com/u/9832?v=4","gravatar_id":"","url":"https://api.github.com/users/zenspider","html_url":"https://github.com/zenspider","followers_url":"https://api.github.com/users/zenspider/followers","following_url":"https://api.github.com/users/zenspider/following{/other_user}","gists_url":"https://api.github.com/users/zenspider/gists{/gist_id}","starred_url":"https://api.github.com/users/zenspider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenspider/subscriptions","organizations_url":"https://api.github.com/users/zenspider/orgs","repos_url":"https://api.github.com/users/zenspider/repos","events_url":"https://api.github.com/users/zenspider/events{/privacy}","received_events_url":"https://api.github.com/users/zenspider/received_events","type":"User","site_admin":false},"body":"Missing rdoc delimiter on `mime_type`","created_at":"2017-11-17T05:47:15Z","updated_at":"2017-11-17T05:51:52Z","html_url":"https://github.com/sparklemotion/mechanize/pull/445#discussion_r151607409","pull_request_url":"https://api.github.com/repos/sparklemotion/mechanize/pulls/445","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/sparklemotion/mechanize/pulls/comments/151607409"},"html":{"href":"https://github.com/sparklemotion/mechanize/pull/445#discussion_r151607409"},"pull_request":{"href":"https://api.github.com/repos/sparklemotion/mechanize/pulls/445"}}},"pull_request":{"url":"https://api.github.com/repos/sparklemotion/mechanize/pulls/445","id":46253723,"html_url":"https://github.com/sparklemotion/mechanize/pull/445","diff_url":"https://github.com/sparklemotion/mechanize/pull/445.diff","patch_url":"https://github.com/sparklemotion/mechanize/pull/445.patch","issue_url":"https://api.github.com/repos/sparklemotion/mechanize/issues/445","number":445,"state":"open","locked":false,"title":"File upload equivalents of Form#add_field! and Form#delete_field!","user":{"login":"pwnall","id":11460,"avatar_url":"https://avatars1.githubusercontent.com/u/11460?v=4","gravatar_id":"","url":"https://api.github.com/users/pwnall","html_url":"https://github.com/pwnall","followers_url":"https://api.github.com/users/pwnall/followers","following_url":"https://api.github.com/users/pwnall/following{/other_user}","gists_url":"https://api.github.com/users/pwnall/gists{/gist_id}","starred_url":"https://api.github.com/users/pwnall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwnall/subscriptions","organizations_url":"https://api.github.com/users/pwnall/orgs","repos_url":"https://api.github.com/users/pwnall/repos","events_url":"https://api.github.com/users/pwnall/events{/privacy}","received_events_url":"https://api.github.com/users/pwnall/received_events","type":"User","site_admin":false},"body":"I found `Form#add_field!` very convenient for dealing with forms that use a bit of XHR to create new fields. This change adds `Form#add_file_upload!`, so I can use the same trick for `<input type=\"file\">` fields, which are their own special beasts.\n\nWhile I was at it, I added `Form#delete_file_upload!`, because I figured it'd keep things symmetric.\n\nThank you for maintaining this great gem! :heart: \n","created_at":"2015-09-29T09:23:45Z","updated_at":"2017-11-17T05:51:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce2e2812b03b3f8648dc2720baeebe1c35289baf","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/sparklemotion/mechanize/pulls/445/commits","review_comments_url":"https://api.github.com/repos/sparklemotion/mechanize/pulls/445/comments","review_comment_url":"https://api.github.com/repos/sparklemotion/mechanize/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sparklemotion/mechanize/issues/445/comments","statuses_url":"https://api.github.com/repos/sparklemotion/mechanize/statuses/6144ca8b3359f787c9a30486bebad021ea9b2088","head":{"label":"pwnall:file_uploads","ref":"file_uploads","sha":"6144ca8b3359f787c9a30486bebad021ea9b2088","user":{"login":"pwnall","id":11460,"avatar_url":"https://avatars1.githubusercontent.com/u/11460?v=4","gravatar_id":"","url":"https://api.github.com/users/pwnall","html_url":"https://github.com/pwnall","followers_url":"https://api.github.com/users/pwnall/followers","following_url":"https://api.github.com/users/pwnall/following{/other_user}","gists_url":"https://api.github.com/users/pwnall/gists{/gist_id}","starred_url":"https://api.github.com/users/pwnall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwnall/subscriptions","organizations_url":"https://api.github.com/users/pwnall/orgs","repos_url":"https://api.github.com/users/pwnall/repos","events_url":"https://api.github.com/users/pwnall/events{/privacy}","received_events_url":"https://api.github.com/users/pwnall/received_events","type":"User","site_admin":false},"repo":{"id":43356752,"name":"mechanize","full_name":"pwnall/mechanize","owner":{"login":"pwnall","id":11460,"avatar_url":"https://avatars1.githubusercontent.com/u/11460?v=4","gravatar_id":"","url":"https://api.github.com/users/pwnall","html_url":"https://github.com/pwnall","followers_url":"https://api.github.com/users/pwnall/followers","following_url":"https://api.github.com/users/pwnall/following{/other_user}","gists_url":"https://api.github.com/users/pwnall/gists{/gist_id}","starred_url":"https://api.github.com/users/pwnall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwnall/subscriptions","organizations_url":"https://api.github.com/users/pwnall/orgs","repos_url":"https://api.github.com/users/pwnall/repos","events_url":"https://api.github.com/users/pwnall/events{/privacy}","received_events_url":"https://api.github.com/users/pwnall/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pwnall/mechanize","description":"Mechanize is a ruby library that makes automated web interaction easy.","fork":true,"url":"https://api.github.com/repos/pwnall/mechanize","forks_url":"https://api.github.com/repos/pwnall/mechanize/forks","keys_url":"https://api.github.com/repos/pwnall/mechanize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pwnall/mechanize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pwnall/mechanize/teams","hooks_url":"https://api.github.com/repos/pwnall/mechanize/hooks","issue_events_url":"https://api.github.com/repos/pwnall/mechanize/issues/events{/number}","events_url":"https://api.github.com/repos/pwnall/mechanize/events","assignees_url":"https://api.github.com/repos/pwnall/mechanize/assignees{/user}","branches_url":"https://api.github.com/repos/pwnall/mechanize/branches{/branch}","tags_url":"https://api.github.com/repos/pwnall/mechanize/tags","blobs_url":"https://api.github.com/repos/pwnall/mechanize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pwnall/mechanize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pwnall/mechanize/git/refs{/sha}","trees_url":"https://api.github.com/repos/pwnall/mechanize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pwnall/mechanize/statuses/{sha}","languages_url":"https://api.github.com/repos/pwnall/mechanize/languages","stargazers_url":"https://api.github.com/repos/pwnall/mechanize/stargazers","contributors_url":"https://api.github.com/repos/pwnall/mechanize/contributors","subscribers_url":"https://api.github.com/repos/pwnall/mechanize/subscribers","subscription_url":"https://api.github.com/repos/pwnall/mechanize/subscription","commits_url":"https://api.github.com/repos/pwnall/mechanize/commits{/sha}","git_commits_url":"https://api.github.com/repos/pwnall/mechanize/git/commits{/sha}","comments_url":"https://api.github.com/repos/pwnall/mechanize/comments{/number}","issue_comment_url":"https://api.github.com/repos/pwnall/mechanize/issues/comments{/number}","contents_url":"https://api.github.com/repos/pwnall/mechanize/contents/{+path}","compare_url":"https://api.github.com/repos/pwnall/mechanize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pwnall/mechanize/merges","archive_url":"https://api.github.com/repos/pwnall/mechanize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pwnall/mechanize/downloads","issues_url":"https://api.github.com/repos/pwnall/mechanize/issues{/number}","pulls_url":"https://api.github.com/repos/pwnall/mechanize/pulls{/number}","milestones_url":"https://api.github.com/repos/pwnall/mechanize/milestones{/number}","notifications_url":"https://api.github.com/repos/pwnall/mechanize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pwnall/mechanize/labels{/name}","releases_url":"https://api.github.com/repos/pwnall/mechanize/releases{/id}","deployments_url":"https://api.github.com/repos/pwnall/mechanize/deployments","created_at":"2015-09-29T09:06:15Z","updated_at":"2015-09-29T09:06:17Z","pushed_at":"2015-09-29T09:21:47Z","git_url":"git://github.com/pwnall/mechanize.git","ssh_url":"git@github.com:pwnall/mechanize.git","clone_url":"https://github.com/pwnall/mechanize.git","svn_url":"https://github.com/pwnall/mechanize","homepage":"http://docs.seattlerb.org/mechanize","size":3261,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sparklemotion:master","ref":"master","sha":"d0cbc8f655a2b61672896ded945291c1b7b60aa9","user":{"login":"sparklemotion","id":1851072,"avatar_url":"https://avatars2.githubusercontent.com/u/1851072?v=4","gravatar_id":"","url":"https://api.github.com/users/sparklemotion","html_url":"https://github.com/sparklemotion","followers_url":"https://api.github.com/users/sparklemotion/followers","following_url":"https://api.github.com/users/sparklemotion/following{/other_user}","gists_url":"https://api.github.com/users/sparklemotion/gists{/gist_id}","starred_url":"https://api.github.com/users/sparklemotion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparklemotion/subscriptions","organizations_url":"https://api.github.com/users/sparklemotion/orgs","repos_url":"https://api.github.com/users/sparklemotion/repos","events_url":"https://api.github.com/users/sparklemotion/events{/privacy}","received_events_url":"https://api.github.com/users/sparklemotion/received_events","type":"Organization","site_admin":false},"repo":{"id":10910,"name":"mechanize","full_name":"sparklemotion/mechanize","owner":{"login":"sparklemotion","id":1851072,"avatar_url":"https://avatars2.githubusercontent.com/u/1851072?v=4","gravatar_id":"","url":"https://api.github.com/users/sparklemotion","html_url":"https://github.com/sparklemotion","followers_url":"https://api.github.com/users/sparklemotion/followers","following_url":"https://api.github.com/users/sparklemotion/following{/other_user}","gists_url":"https://api.github.com/users/sparklemotion/gists{/gist_id}","starred_url":"https://api.github.com/users/sparklemotion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparklemotion/subscriptions","organizations_url":"https://api.github.com/users/sparklemotion/orgs","repos_url":"https://api.github.com/users/sparklemotion/repos","events_url":"https://api.github.com/users/sparklemotion/events{/privacy}","received_events_url":"https://api.github.com/users/sparklemotion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sparklemotion/mechanize","description":"Mechanize is a ruby library that makes automated web interaction easy.","fork":false,"url":"https://api.github.com/repos/sparklemotion/mechanize","forks_url":"https://api.github.com/repos/sparklemotion/mechanize/forks","keys_url":"https://api.github.com/repos/sparklemotion/mechanize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sparklemotion/mechanize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sparklemotion/mechanize/teams","hooks_url":"https://api.github.com/repos/sparklemotion/mechanize/hooks","issue_events_url":"https://api.github.com/repos/sparklemotion/mechanize/issues/events{/number}","events_url":"https://api.github.com/repos/sparklemotion/mechanize/events","assignees_url":"https://api.github.com/repos/sparklemotion/mechanize/assignees{/user}","branches_url":"https://api.github.com/repos/sparklemotion/mechanize/branches{/branch}","tags_url":"https://api.github.com/repos/sparklemotion/mechanize/tags","blobs_url":"https://api.github.com/repos/sparklemotion/mechanize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sparklemotion/mechanize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sparklemotion/mechanize/git/refs{/sha}","trees_url":"https://api.github.com/repos/sparklemotion/mechanize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sparklemotion/mechanize/statuses/{sha}","languages_url":"https://api.github.com/repos/sparklemotion/mechanize/languages","stargazers_url":"https://api.github.com/repos/sparklemotion/mechanize/stargazers","contributors_url":"https://api.github.com/repos/sparklemotion/mechanize/contributors","subscribers_url":"https://api.github.com/repos/sparklemotion/mechanize/subscribers","subscription_url":"https://api.github.com/repos/sparklemotion/mechanize/subscription","commits_url":"https://api.github.com/repos/sparklemotion/mechanize/commits{/sha}","git_commits_url":"https://api.github.com/repos/sparklemotion/mechanize/git/commits{/sha}","comments_url":"https://api.github.com/repos/sparklemotion/mechanize/comments{/number}","issue_comment_url":"https://api.github.com/repos/sparklemotion/mechanize/issues/comments{/number}","contents_url":"https://api.github.com/repos/sparklemotion/mechanize/contents/{+path}","compare_url":"https://api.github.com/repos/sparklemotion/mechanize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sparklemotion/mechanize/merges","archive_url":"https://api.github.com/repos/sparklemotion/mechanize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sparklemotion/mechanize/downloads","issues_url":"https://api.github.com/repos/sparklemotion/mechanize/issues{/number}","pulls_url":"https://api.github.com/repos/sparklemotion/mechanize/pulls{/number}","milestones_url":"https://api.github.com/repos/sparklemotion/mechanize/milestones{/number}","notifications_url":"https://api.github.com/repos/sparklemotion/mechanize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sparklemotion/mechanize/labels{/name}","releases_url":"https://api.github.com/repos/sparklemotion/mechanize/releases{/id}","deployments_url":"https://api.github.com/repos/sparklemotion/mechanize/deployments","created_at":"2008-04-18T16:55:10Z","updated_at":"2017-11-16T10:33:59Z","pushed_at":"2017-11-17T05:25:29Z","git_url":"git://github.com/sparklemotion/mechanize.git","ssh_url":"git@github.com:sparklemotion/mechanize.git","clone_url":"https://github.com/sparklemotion/mechanize.git","svn_url":"https://github.com/sparklemotion/mechanize","homepage":"http://docs.seattlerb.org/mechanize","size":2193,"stargazers_count":3528,"watchers_count":3528,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":417,"mirror_url":null,"archived":false,"open_issues_count":60,"forks":417,"open_issues":60,"watchers":3528,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sparklemotion/mechanize/pulls/445"},"html":{"href":"https://github.com/sparklemotion/mechanize/pull/445"},"issue":{"href":"https://api.github.com/repos/sparklemotion/mechanize/issues/445"},"comments":{"href":"https://api.github.com/repos/sparklemotion/mechanize/issues/445/comments"},"review_comments":{"href":"https://api.github.com/repos/sparklemotion/mechanize/pulls/445/comments"},"review_comment":{"href":"https://api.github.com/repos/sparklemotion/mechanize/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sparklemotion/mechanize/pulls/445/commits"},"statuses":{"href":"https://api.github.com/repos/sparklemotion/mechanize/statuses/6144ca8b3359f787c9a30486bebad021ea9b2088"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"zenspider"}}