{"action":"created","issue":{"url":"https://api.github.com/repos/biola/Voight-Kampff/issues/17","labels_url":"https://api.github.com/repos/biola/Voight-Kampff/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/biola/Voight-Kampff/issues/17/comments","events_url":"https://api.github.com/repos/biola/Voight-Kampff/issues/17/events","html_url":"https://github.com/biola/Voight-Kampff/pull/17","id":114003071,"number":17,"title":"Use user_agent_string instance variable","user":{"login":"tsmith14","id":2212247,"avatar_url":"https://avatars.githubusercontent.com/u/2212247?v=3","gravatar_id":"","url":"https://api.github.com/users/tsmith14","html_url":"https://github.com/tsmith14","followers_url":"https://api.github.com/users/tsmith14/followers","following_url":"https://api.github.com/users/tsmith14/following{/other_user}","gists_url":"https://api.github.com/users/tsmith14/gists{/gist_id}","starred_url":"https://api.github.com/users/tsmith14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsmith14/subscriptions","organizations_url":"https://api.github.com/users/tsmith14/orgs","repos_url":"https://api.github.com/users/tsmith14/repos","events_url":"https://api.github.com/users/tsmith14/events{/privacy}","received_events_url":"https://api.github.com/users/tsmith14/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"adamcrown","id":277306,"avatar_url":"https://avatars.githubusercontent.com/u/277306?v=3","gravatar_id":"","url":"https://api.github.com/users/adamcrown","html_url":"https://github.com/adamcrown","followers_url":"https://api.github.com/users/adamcrown/followers","following_url":"https://api.github.com/users/adamcrown/following{/other_user}","gists_url":"https://api.github.com/users/adamcrown/gists{/gist_id}","starred_url":"https://api.github.com/users/adamcrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamcrown/subscriptions","organizations_url":"https://api.github.com/users/adamcrown/orgs","repos_url":"https://api.github.com/users/adamcrown/repos","events_url":"https://api.github.com/users/adamcrown/events{/privacy}","received_events_url":"https://api.github.com/users/adamcrown/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-29T08:39:28Z","updated_at":"2015-10-30T00:49:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/biola/Voight-Kampff/pulls/17","html_url":"https://github.com/biola/Voight-Kampff/pull/17","diff_url":"https://github.com/biola/Voight-Kampff/pull/17.diff","patch_url":"https://github.com/biola/Voight-Kampff/pull/17.patch"},"body":"I was getting a nil result for all bot? and human? calls. Looks like it was just because the regex was referencing a nil user_agent_string variable. Updating to reference the instance variable resolved the issue for me. "},"comment":{"url":"https://api.github.com/repos/biola/Voight-Kampff/issues/comments/152369430","html_url":"https://github.com/biola/Voight-Kampff/pull/17#issuecomment-152369430","issue_url":"https://api.github.com/repos/biola/Voight-Kampff/issues/17","id":152369430,"user":{"login":"adamcrown","id":277306,"avatar_url":"https://avatars.githubusercontent.com/u/277306?v=3","gravatar_id":"","url":"https://api.github.com/users/adamcrown","html_url":"https://github.com/adamcrown","followers_url":"https://api.github.com/users/adamcrown/followers","following_url":"https://api.github.com/users/adamcrown/following{/other_user}","gists_url":"https://api.github.com/users/adamcrown/gists{/gist_id}","starred_url":"https://api.github.com/users/adamcrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamcrown/subscriptions","organizations_url":"https://api.github.com/users/adamcrown/orgs","repos_url":"https://api.github.com/users/adamcrown/repos","events_url":"https://api.github.com/users/adamcrown/events{/privacy}","received_events_url":"https://api.github.com/users/adamcrown/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T00:49:30Z","updated_at":"2015-10-30T00:49:30Z","body":"That is very strange. I can't see why it would make any difference.\r\n\r\nDo you mind telling me what version of Ruby you're running?\r\n\r\nAlso, if you change line 7 in the initializer to `self.user_agent_string = user_agent_string` does that fix it for you?"}}