{"action":"created","comment":{"url":"https://api.github.com/repos/mdsol/farscape/pulls/comments/24012760","id":24012760,"diff_hunk":"@@ -120,8 +121,9 @@\n           expect {resource.status = 'ninja food'}.to raise_error(NoMethodError)\n         end\n         it \"throws on unknown\" do\n-          resource = agent.enter(entry_point).drds(can_do_hash).items.first\n+          resource = agent.enter(entry_point).drds(can_do_hash).items.select { |drd| drd.status == 'deactivated' }.first","path":"spec/lib/farscape/integration/interface_spec.rb","position":13,"original_position":13,"commit_id":"f4b0e7e4cbaf6a5b3d6f6d4d25f6b39326deb26c","original_commit_id":"f4b0e7e4cbaf6a5b3d6f6d4d25f6b39326deb26c","user":{"login":"HonoreDB","id":1795573,"avatar_url":"https://avatars.githubusercontent.com/u/1795573?v=3","gravatar_id":"","url":"https://api.github.com/users/HonoreDB","html_url":"https://github.com/HonoreDB","followers_url":"https://api.github.com/users/HonoreDB/followers","following_url":"https://api.github.com/users/HonoreDB/following{/other_user}","gists_url":"https://api.github.com/users/HonoreDB/gists{/gist_id}","starred_url":"https://api.github.com/users/HonoreDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HonoreDB/subscriptions","organizations_url":"https://api.github.com/users/HonoreDB/orgs","repos_url":"https://api.github.com/users/HonoreDB/repos","events_url":"https://api.github.com/users/HonoreDB/events{/privacy}","received_events_url":"https://api.github.com/users/HonoreDB/received_events","type":"User","site_admin":false},"body":"Prefer `.find` over `.select.first`","created_at":"2015-02-03T15:49:42Z","updated_at":"2015-02-03T15:49:42Z","html_url":"https://github.com/mdsol/farscape/pull/33#discussion_r24012760","pull_request_url":"https://api.github.com/repos/mdsol/farscape/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/mdsol/farscape/pulls/comments/24012760"},"html":{"href":"https://github.com/mdsol/farscape/pull/33#discussion_r24012760"},"pull_request":{"href":"https://api.github.com/repos/mdsol/farscape/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/mdsol/farscape/pulls/33","id":28555118,"html_url":"https://github.com/mdsol/farscape/pull/33","diff_url":"https://github.com/mdsol/farscape/pull/33.diff","patch_url":"https://github.com/mdsol/farscape/pull/33.patch","issue_url":"https://api.github.com/repos/mdsol/farscape/issues/33","number":33,"state":"open","locked":false,"title":"Fix Proper No Method Error on Unknown Transitions under certain conditions.","user":{"login":"sheavalentine-mdsol","id":5214853,"avatar_url":"https://avatars.githubusercontent.com/u/5214853?v=3","gravatar_id":"","url":"https://api.github.com/users/sheavalentine-mdsol","html_url":"https://github.com/sheavalentine-mdsol","followers_url":"https://api.github.com/users/sheavalentine-mdsol/followers","following_url":"https://api.github.com/users/sheavalentine-mdsol/following{/other_user}","gists_url":"https://api.github.com/users/sheavalentine-mdsol/gists{/gist_id}","starred_url":"https://api.github.com/users/sheavalentine-mdsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheavalentine-mdsol/subscriptions","organizations_url":"https://api.github.com/users/sheavalentine-mdsol/orgs","repos_url":"https://api.github.com/users/sheavalentine-mdsol/repos","events_url":"https://api.github.com/users/sheavalentine-mdsol/events{/privacy}","received_events_url":"https://api.github.com/users/sheavalentine-mdsol/received_events","type":"User","site_admin":false},"body":"Certain conditions caused a NoMethodError: undefined method `include?' for nil:NilClass when dispatching through 'method transitions' in RepresentorAgent.\r\n\r\nThis replicates that condition and supplies the fix whereby an empty has is returned instead of nil.","created_at":"2015-02-03T14:16:13Z","updated_at":"2015-02-03T15:49:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3972d9083404ee7469ca2023c5187ea19c827fcf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mdsol/farscape/pulls/33/commits","review_comments_url":"https://api.github.com/repos/mdsol/farscape/pulls/33/comments","review_comment_url":"https://api.github.com/repos/mdsol/farscape/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mdsol/farscape/issues/33/comments","statuses_url":"https://api.github.com/repos/mdsol/farscape/statuses/f4b0e7e4cbaf6a5b3d6f6d4d25f6b39326deb26c","head":{"label":"mdsol:bug/proper_nme","ref":"bug/proper_nme","sha":"f4b0e7e4cbaf6a5b3d6f6d4d25f6b39326deb26c","user":{"login":"mdsol","id":171103,"avatar_url":"https://avatars.githubusercontent.com/u/171103?v=3","gravatar_id":"","url":"https://api.github.com/users/mdsol","html_url":"https://github.com/mdsol","followers_url":"https://api.github.com/users/mdsol/followers","following_url":"https://api.github.com/users/mdsol/following{/other_user}","gists_url":"https://api.github.com/users/mdsol/gists{/gist_id}","starred_url":"https://api.github.com/users/mdsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdsol/subscriptions","organizations_url":"https://api.github.com/users/mdsol/orgs","repos_url":"https://api.github.com/users/mdsol/repos","events_url":"https://api.github.com/users/mdsol/events{/privacy}","received_events_url":"https://api.github.com/users/mdsol/received_events","type":"Organization","site_admin":false},"repo":{"id":13870229,"name":"farscape","full_name":"mdsol/farscape","owner":{"login":"mdsol","id":171103,"avatar_url":"https://avatars.githubusercontent.com/u/171103?v=3","gravatar_id":"","url":"https://api.github.com/users/mdsol","html_url":"https://github.com/mdsol","followers_url":"https://api.github.com/users/mdsol/followers","following_url":"https://api.github.com/users/mdsol/following{/other_user}","gists_url":"https://api.github.com/users/mdsol/gists{/gist_id}","starred_url":"https://api.github.com/users/mdsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdsol/subscriptions","organizations_url":"https://api.github.com/users/mdsol/orgs","repos_url":"https://api.github.com/users/mdsol/repos","events_url":"https://api.github.com/users/mdsol/events{/privacy}","received_events_url":"https://api.github.com/users/mdsol/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mdsol/farscape","description":"hypermedia agent","fork":false,"url":"https://api.github.com/repos/mdsol/farscape","forks_url":"https://api.github.com/repos/mdsol/farscape/forks","keys_url":"https://api.github.com/repos/mdsol/farscape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdsol/farscape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdsol/farscape/teams","hooks_url":"https://api.github.com/repos/mdsol/farscape/hooks","issue_events_url":"https://api.github.com/repos/mdsol/farscape/issues/events{/number}","events_url":"https://api.github.com/repos/mdsol/farscape/events","assignees_url":"https://api.github.com/repos/mdsol/farscape/assignees{/user}","branches_url":"https://api.github.com/repos/mdsol/farscape/branches{/branch}","tags_url":"https://api.github.com/repos/mdsol/farscape/tags","blobs_url":"https://api.github.com/repos/mdsol/farscape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdsol/farscape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdsol/farscape/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdsol/farscape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdsol/farscape/statuses/{sha}","languages_url":"https://api.github.com/repos/mdsol/farscape/languages","stargazers_url":"https://api.github.com/repos/mdsol/farscape/stargazers","contributors_url":"https://api.github.com/repos/mdsol/farscape/contributors","subscribers_url":"https://api.github.com/repos/mdsol/farscape/subscribers","subscription_url":"https://api.github.com/repos/mdsol/farscape/subscription","commits_url":"https://api.github.com/repos/mdsol/farscape/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdsol/farscape/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdsol/farscape/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdsol/farscape/issues/comments/{number}","contents_url":"https://api.github.com/repos/mdsol/farscape/contents/{+path}","compare_url":"https://api.github.com/repos/mdsol/farscape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdsol/farscape/merges","archive_url":"https://api.github.com/repos/mdsol/farscape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdsol/farscape/downloads","issues_url":"https://api.github.com/repos/mdsol/farscape/issues{/number}","pulls_url":"https://api.github.com/repos/mdsol/farscape/pulls{/number}","milestones_url":"https://api.github.com/repos/mdsol/farscape/milestones{/number}","notifications_url":"https://api.github.com/repos/mdsol/farscape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdsol/farscape/labels{/name}","releases_url":"https://api.github.com/repos/mdsol/farscape/releases{/id}","created_at":"2013-10-25T19:31:23Z","updated_at":"2014-07-03T07:34:18Z","pushed_at":"2015-02-03T15:33:44Z","git_url":"git://github.com/mdsol/farscape.git","ssh_url":"git@github.com:mdsol/farscape.git","clone_url":"https://github.com/mdsol/farscape.git","svn_url":"https://github.com/mdsol/farscape","homepage":null,"size":1135,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":1,"default_branch":"develop"}},"base":{"label":"mdsol:brave_new_develop","ref":"brave_new_develop","sha":"b5371b815de9f2950a36e8bf1ac884e0b9baa75a","user":{"login":"mdsol","id":171103,"avatar_url":"https://avatars.githubusercontent.com/u/171103?v=3","gravatar_id":"","url":"https://api.github.com/users/mdsol","html_url":"https://github.com/mdsol","followers_url":"https://api.github.com/users/mdsol/followers","following_url":"https://api.github.com/users/mdsol/following{/other_user}","gists_url":"https://api.github.com/users/mdsol/gists{/gist_id}","starred_url":"https://api.github.com/users/mdsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdsol/subscriptions","organizations_url":"https://api.github.com/users/mdsol/orgs","repos_url":"https://api.github.com/users/mdsol/repos","events_url":"https://api.github.com/users/mdsol/events{/privacy}","received_events_url":"https://api.github.com/users/mdsol/received_events","type":"Organization","site_admin":false},"repo":{"id":13870229,"name":"farscape","full_name":"mdsol/farscape","owner":{"login":"mdsol","id":171103,"avatar_url":"https://avatars.githubusercontent.com/u/171103?v=3","gravatar_id":"","url":"https://api.github.com/users/mdsol","html_url":"https://github.com/mdsol","followers_url":"https://api.github.com/users/mdsol/followers","following_url":"https://api.github.com/users/mdsol/following{/other_user}","gists_url":"https://api.github.com/users/mdsol/gists{/gist_id}","starred_url":"https://api.github.com/users/mdsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdsol/subscriptions","organizations_url":"https://api.github.com/users/mdsol/orgs","repos_url":"https://api.github.com/users/mdsol/repos","events_url":"https://api.github.com/users/mdsol/events{/privacy}","received_events_url":"https://api.github.com/users/mdsol/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mdsol/farscape","description":"hypermedia agent","fork":false,"url":"https://api.github.com/repos/mdsol/farscape","forks_url":"https://api.github.com/repos/mdsol/farscape/forks","keys_url":"https://api.github.com/repos/mdsol/farscape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdsol/farscape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdsol/farscape/teams","hooks_url":"https://api.github.com/repos/mdsol/farscape/hooks","issue_events_url":"https://api.github.com/repos/mdsol/farscape/issues/events{/number}","events_url":"https://api.github.com/repos/mdsol/farscape/events","assignees_url":"https://api.github.com/repos/mdsol/farscape/assignees{/user}","branches_url":"https://api.github.com/repos/mdsol/farscape/branches{/branch}","tags_url":"https://api.github.com/repos/mdsol/farscape/tags","blobs_url":"https://api.github.com/repos/mdsol/farscape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdsol/farscape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdsol/farscape/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdsol/farscape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdsol/farscape/statuses/{sha}","languages_url":"https://api.github.com/repos/mdsol/farscape/languages","stargazers_url":"https://api.github.com/repos/mdsol/farscape/stargazers","contributors_url":"https://api.github.com/repos/mdsol/farscape/contributors","subscribers_url":"https://api.github.com/repos/mdsol/farscape/subscribers","subscription_url":"https://api.github.com/repos/mdsol/farscape/subscription","commits_url":"https://api.github.com/repos/mdsol/farscape/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdsol/farscape/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdsol/farscape/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdsol/farscape/issues/comments/{number}","contents_url":"https://api.github.com/repos/mdsol/farscape/contents/{+path}","compare_url":"https://api.github.com/repos/mdsol/farscape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdsol/farscape/merges","archive_url":"https://api.github.com/repos/mdsol/farscape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdsol/farscape/downloads","issues_url":"https://api.github.com/repos/mdsol/farscape/issues{/number}","pulls_url":"https://api.github.com/repos/mdsol/farscape/pulls{/number}","milestones_url":"https://api.github.com/repos/mdsol/farscape/milestones{/number}","notifications_url":"https://api.github.com/repos/mdsol/farscape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdsol/farscape/labels{/name}","releases_url":"https://api.github.com/repos/mdsol/farscape/releases{/id}","created_at":"2013-10-25T19:31:23Z","updated_at":"2014-07-03T07:34:18Z","pushed_at":"2015-02-03T15:33:44Z","git_url":"git://github.com/mdsol/farscape.git","ssh_url":"git@github.com:mdsol/farscape.git","clone_url":"https://github.com/mdsol/farscape.git","svn_url":"https://github.com/mdsol/farscape","homepage":null,"size":1135,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/mdsol/farscape/pulls/33"},"html":{"href":"https://github.com/mdsol/farscape/pull/33"},"issue":{"href":"https://api.github.com/repos/mdsol/farscape/issues/33"},"comments":{"href":"https://api.github.com/repos/mdsol/farscape/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/mdsol/farscape/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/mdsol/farscape/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mdsol/farscape/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/mdsol/farscape/statuses/f4b0e7e4cbaf6a5b3d6f6d4d25f6b39326deb26c"}}}}