{"action":"opened","pull_request":{"created_at":"2011-12-14T20:01:14Z","review_comments":0,"state":"open","patch_url":"https://github.com/jellybob/chef-gelf/pull/2.patch","changed_files":1,"_links":{"review_comments":{"href":"https://api.github.com/repos/jellybob/chef-gelf/pulls/2/comments"},"comments":{"href":"https://api.github.com/repos/jellybob/chef-gelf/issues/2/comments"},"html":{"href":"https://github.com/jellybob/chef-gelf/pull/2"},"self":{"href":"https://api.github.com/repos/jellybob/chef-gelf/pulls/2"}},"updated_at":"2011-12-14T20:01:14Z","user":{"gravatar_id":"33bc8fcea6cb2c40d9c6f1dc1ee93bcf","id":29562,"url":"https://api.github.com/users/philk","login":"philk","avatar_url":"https://secure.gravatar.com/avatar/33bc8fcea6cb2c40d9c6f1dc1ee93bcf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"issue_url":"https://github.com/jellybob/chef-gelf/issues/2","comments":0,"body":"The current method (having an #each inside #reject) was causing it to always\r\nreject everything since #each returns the original object. This was the\r\nsimplest way I could come up with while keeping the original\r\nfunctionality. It's probably wrong but hopefully it helps someone do it right.\r\n\r\nThis is the behavior I'm seeing on 1.8.7p249 (Ubuntu) and 1.9.3 (OSX):\r\n\r\n```ruby\r\n[1,2,3].reject { |a| {}.each { |k,v| true } }\r\n=> []\r\n[1,2,3].reject { |a| {}.each { |k,v| false } }\r\n=> []\r\n[1,2,3].reject { |a| {} }\r\n=> []\r\n[1,2,3].reject { |a| true }\r\n=> []\r\n[1,2,3].reject { |a| false }\r\n=> [1, 2, 3]\r\n```","deletions":6,"merged":false,"commits":1,"mergeable":null,"id":594947,"number":2,"additions":6,"base":{"user":{"gravatar_id":"1859815196016e05c09d2c5ddeaf30a3","id":362,"url":"https://api.github.com/users/jellybob","login":"jellybob","avatar_url":"https://secure.gravatar.com/avatar/1859815196016e05c09d2c5ddeaf30a3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"repo":{"created_at":"2011-07-06T12:50:12Z","pushed_at":"2011-08-04T13:49:50Z","private":false,"clone_url":"https://github.com/jellybob/chef-gelf.git","updated_at":"2011-12-14T19:34:18Z","name":"chef-gelf","svn_url":"https://svn.github.com/jellybob/chef-gelf","master_branch":null,"watchers":7,"language":"Ruby","forks":3,"owner":{"gravatar_id":"1859815196016e05c09d2c5ddeaf30a3","id":362,"url":"https://api.github.com/users/jellybob","login":"jellybob","avatar_url":"https://secure.gravatar.com/avatar/1859815196016e05c09d2c5ddeaf30a3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2006399,"homepage":"","description":"A Chef handler that reports to Graylog2 servers.","git_url":"git://github.com/jellybob/chef-gelf.git","html_url":"https://github.com/jellybob/chef-gelf","url":"https://api.github.com/repos/jellybob/chef-gelf","open_issues":1,"size":156,"fork":false,"ssh_url":"git@github.com:jellybob/chef-gelf.git"},"sha":"8e38fcdfca266758a4c1e85ddfbce35adacd4cc7","ref":"master","label":"jellybob:master"},"merged_by":null,"head":{"user":{"gravatar_id":"33bc8fcea6cb2c40d9c6f1dc1ee93bcf","id":29562,"url":"https://api.github.com/users/philk","login":"philk","avatar_url":"https://secure.gravatar.com/avatar/33bc8fcea6cb2c40d9c6f1dc1ee93bcf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"repo":{"created_at":"2011-12-14T19:34:18Z","pushed_at":"2011-12-14T19:46:45Z","private":false,"clone_url":"https://github.com/philk/chef-gelf.git","updated_at":"2011-12-14T19:46:46Z","name":"chef-gelf","svn_url":"https://svn.github.com/philk/chef-gelf","master_branch":null,"watchers":1,"language":"Ruby","forks":0,"owner":{"gravatar_id":"33bc8fcea6cb2c40d9c6f1dc1ee93bcf","id":29562,"url":"https://api.github.com/users/philk","login":"philk","avatar_url":"https://secure.gravatar.com/avatar/33bc8fcea6cb2c40d9c6f1dc1ee93bcf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2982455,"homepage":"","description":"A Chef handler that reports to Graylog2 servers.","git_url":"git://github.com/philk/chef-gelf.git","html_url":"https://github.com/philk/chef-gelf","url":"https://api.github.com/repos/philk/chef-gelf","open_issues":0,"size":112,"fork":true,"ssh_url":"git@github.com:philk/chef-gelf.git"},"sha":"80587689ddd695056cc9c4fe230aa0c167078170","ref":"fix-blacklist","label":"philk:fix-blacklist"},"title":"gelf: Fix sanitised_changes method","html_url":"https://github.com/jellybob/chef-gelf/pull/2","closed_at":null,"url":"https://api.github.com/repos/jellybob/chef-gelf/pulls/2","diff_url":"https://github.com/jellybob/chef-gelf/pull/2.diff","merged_at":null},"number":2}