{"action":"opened","number":305,"pull_request":{"url":"https://api.github.com/repos/ruby-rdf/rdf/pulls/305","id":75735713,"html_url":"https://github.com/ruby-rdf/rdf/pull/305","diff_url":"https://github.com/ruby-rdf/rdf/pull/305.diff","patch_url":"https://github.com/ruby-rdf/rdf/pull/305.patch","issue_url":"https://api.github.com/repos/ruby-rdf/rdf/issues/305","number":305,"state":"open","locked":false,"title":"Fix RDF::List#== comparisons to RDF::Values ","user":{"login":"no-reply","id":1361776,"avatar_url":"https://avatars.githubusercontent.com/u/1361776?v=3","gravatar_id":"","url":"https://api.github.com/users/no-reply","html_url":"https://github.com/no-reply","followers_url":"https://api.github.com/users/no-reply/followers","following_url":"https://api.github.com/users/no-reply/following{/other_user}","gists_url":"https://api.github.com/users/no-reply/gists{/gist_id}","starred_url":"https://api.github.com/users/no-reply/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/no-reply/subscriptions","organizations_url":"https://api.github.com/users/no-reply/orgs","repos_url":"https://api.github.com/users/no-reply/repos","events_url":"https://api.github.com/users/no-reply/events{/privacy}","received_events_url":"https://api.github.com/users/no-reply/received_events","type":"User","site_admin":false},"body":"Ruby 2.3.0 changed the behavior of\r\n[`Comparable#==`](https://bugs.ruby-lang.org/issues/7688) to avoid\r\nhiding errors. This led to `NoMethodError`s for comparisons that return\r\n`false` for previous Rubies.\r\n\r\nThis introduces a custom `RDF::List#==` implementation for explicitly\r\nsupported comparisons between `RDF::Value` classes. We return `false`\r\nimmediately for `RDF::Value`s which are not `#list?`; falling back on\r\n`Comparable` for other types.\r\n\r\nFurther, `RDF::List`s with three elements that happen to coincide with\r\nthe terms of an RDF::Statement would previously return `true`. E.g.:\r\n`RDF::List[:s, :p, :o] == RDF::Statement(:s, :p, :o)`. This unusual edge\r\ncase is patched by way of the changes described above.\r\n\r\nA similar change is made to `RDF::Statement#==` to preserve symmetry.\r\n\r\nCloses #304 \r\n\r\n","created_at":"2016-06-29T22:57:29Z","updated_at":"2016-06-29T22:57:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ruby-rdf/rdf/pulls/305/commits","review_comments_url":"https://api.github.com/repos/ruby-rdf/rdf/pulls/305/comments","review_comment_url":"https://api.github.com/repos/ruby-rdf/rdf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ruby-rdf/rdf/issues/305/comments","statuses_url":"https://api.github.com/repos/ruby-rdf/rdf/statuses/9bd9cadaf480252bf619df58bf726e3232833704","head":{"label":"ruby-rdf:feature/list-value-eq","ref":"feature/list-value-eq","sha":"9bd9cadaf480252bf619df58bf726e3232833704","user":{"login":"ruby-rdf","id":1738042,"avatar_url":"https://avatars.githubusercontent.com/u/1738042?v=3","gravatar_id":"","url":"https://api.github.com/users/ruby-rdf","html_url":"https://github.com/ruby-rdf","followers_url":"https://api.github.com/users/ruby-rdf/followers","following_url":"https://api.github.com/users/ruby-rdf/following{/other_user}","gists_url":"https://api.github.com/users/ruby-rdf/gists{/gist_id}","starred_url":"https://api.github.com/users/ruby-rdf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruby-rdf/subscriptions","organizations_url":"https://api.github.com/users/ruby-rdf/orgs","repos_url":"https://api.github.com/users/ruby-rdf/repos","events_url":"https://api.github.com/users/ruby-rdf/events{/privacy}","received_events_url":"https://api.github.com/users/ruby-rdf/received_events","type":"Organization","site_admin":false},"repo":{"id":446086,"name":"rdf","full_name":"ruby-rdf/rdf","owner":{"login":"ruby-rdf","id":1738042,"avatar_url":"https://avatars.githubusercontent.com/u/1738042?v=3","gravatar_id":"","url":"https://api.github.com/users/ruby-rdf","html_url":"https://github.com/ruby-rdf","followers_url":"https://api.github.com/users/ruby-rdf/followers","following_url":"https://api.github.com/users/ruby-rdf/following{/other_user}","gists_url":"https://api.github.com/users/ruby-rdf/gists{/gist_id}","starred_url":"https://api.github.com/users/ruby-rdf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruby-rdf/subscriptions","organizations_url":"https://api.github.com/users/ruby-rdf/orgs","repos_url":"https://api.github.com/users/ruby-rdf/repos","events_url":"https://api.github.com/users/ruby-rdf/events{/privacy}","received_events_url":"https://api.github.com/users/ruby-rdf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ruby-rdf/rdf","description":"RDF.rb is a pure-Ruby library for working with Resource Description Framework (RDF) data.","fork":false,"url":"https://api.github.com/repos/ruby-rdf/rdf","forks_url":"https://api.github.com/repos/ruby-rdf/rdf/forks","keys_url":"https://api.github.com/repos/ruby-rdf/rdf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruby-rdf/rdf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruby-rdf/rdf/teams","hooks_url":"https://api.github.com/repos/ruby-rdf/rdf/hooks","issue_events_url":"https://api.github.com/repos/ruby-rdf/rdf/issues/events{/number}","events_url":"https://api.github.com/repos/ruby-rdf/rdf/events","assignees_url":"https://api.github.com/repos/ruby-rdf/rdf/assignees{/user}","branches_url":"https://api.github.com/repos/ruby-rdf/rdf/branches{/branch}","tags_url":"https://api.github.com/repos/ruby-rdf/rdf/tags","blobs_url":"https://api.github.com/repos/ruby-rdf/rdf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruby-rdf/rdf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruby-rdf/rdf/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruby-rdf/rdf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruby-rdf/rdf/statuses/{sha}","languages_url":"https://api.github.com/repos/ruby-rdf/rdf/languages","stargazers_url":"https://api.github.com/repos/ruby-rdf/rdf/stargazers","contributors_url":"https://api.github.com/repos/ruby-rdf/rdf/contributors","subscribers_url":"https://api.github.com/repos/ruby-rdf/rdf/subscribers","subscription_url":"https://api.github.com/repos/ruby-rdf/rdf/subscription","commits_url":"https://api.github.com/repos/ruby-rdf/rdf/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruby-rdf/rdf/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruby-rdf/rdf/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruby-rdf/rdf/issues/comments{/number}","contents_url":"https://api.github.com/repos/ruby-rdf/rdf/contents/{+path}","compare_url":"https://api.github.com/repos/ruby-rdf/rdf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruby-rdf/rdf/merges","archive_url":"https://api.github.com/repos/ruby-rdf/rdf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruby-rdf/rdf/downloads","issues_url":"https://api.github.com/repos/ruby-rdf/rdf/issues{/number}","pulls_url":"https://api.github.com/repos/ruby-rdf/rdf/pulls{/number}","milestones_url":"https://api.github.com/repos/ruby-rdf/rdf/milestones{/number}","notifications_url":"https://api.github.com/repos/ruby-rdf/rdf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruby-rdf/rdf/labels{/name}","releases_url":"https://api.github.com/repos/ruby-rdf/rdf/releases{/id}","deployments_url":"https://api.github.com/repos/ruby-rdf/rdf/deployments","created_at":"2009-12-22T17:30:41Z","updated_at":"2016-06-15T10:44:37Z","pushed_at":"2016-06-29T22:55:51Z","git_url":"git://github.com/ruby-rdf/rdf.git","ssh_url":"git@github.com:ruby-rdf/rdf.git","clone_url":"https://github.com/ruby-rdf/rdf.git","svn_url":"https://github.com/ruby-rdf/rdf","homepage":"http://rubygems.org/gems/rdf","size":5037,"stargazers_count":303,"watchers_count":303,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":70,"mirror_url":null,"open_issues_count":8,"forks":70,"open_issues":8,"watchers":303,"default_branch":"develop"}},"base":{"label":"ruby-rdf:develop","ref":"develop","sha":"e990dedbe6e56334dc162337834497aef8c5e156","user":{"login":"ruby-rdf","id":1738042,"avatar_url":"https://avatars.githubusercontent.com/u/1738042?v=3","gravatar_id":"","url":"https://api.github.com/users/ruby-rdf","html_url":"https://github.com/ruby-rdf","followers_url":"https://api.github.com/users/ruby-rdf/followers","following_url":"https://api.github.com/users/ruby-rdf/following{/other_user}","gists_url":"https://api.github.com/users/ruby-rdf/gists{/gist_id}","starred_url":"https://api.github.com/users/ruby-rdf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruby-rdf/subscriptions","organizations_url":"https://api.github.com/users/ruby-rdf/orgs","repos_url":"https://api.github.com/users/ruby-rdf/repos","events_url":"https://api.github.com/users/ruby-rdf/events{/privacy}","received_events_url":"https://api.github.com/users/ruby-rdf/received_events","type":"Organization","site_admin":false},"repo":{"id":446086,"name":"rdf","full_name":"ruby-rdf/rdf","owner":{"login":"ruby-rdf","id":1738042,"avatar_url":"https://avatars.githubusercontent.com/u/1738042?v=3","gravatar_id":"","url":"https://api.github.com/users/ruby-rdf","html_url":"https://github.com/ruby-rdf","followers_url":"https://api.github.com/users/ruby-rdf/followers","following_url":"https://api.github.com/users/ruby-rdf/following{/other_user}","gists_url":"https://api.github.com/users/ruby-rdf/gists{/gist_id}","starred_url":"https://api.github.com/users/ruby-rdf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruby-rdf/subscriptions","organizations_url":"https://api.github.com/users/ruby-rdf/orgs","repos_url":"https://api.github.com/users/ruby-rdf/repos","events_url":"https://api.github.com/users/ruby-rdf/events{/privacy}","received_events_url":"https://api.github.com/users/ruby-rdf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ruby-rdf/rdf","description":"RDF.rb is a pure-Ruby library for working with Resource Description Framework (RDF) data.","fork":false,"url":"https://api.github.com/repos/ruby-rdf/rdf","forks_url":"https://api.github.com/repos/ruby-rdf/rdf/forks","keys_url":"https://api.github.com/repos/ruby-rdf/rdf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruby-rdf/rdf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruby-rdf/rdf/teams","hooks_url":"https://api.github.com/repos/ruby-rdf/rdf/hooks","issue_events_url":"https://api.github.com/repos/ruby-rdf/rdf/issues/events{/number}","events_url":"https://api.github.com/repos/ruby-rdf/rdf/events","assignees_url":"https://api.github.com/repos/ruby-rdf/rdf/assignees{/user}","branches_url":"https://api.github.com/repos/ruby-rdf/rdf/branches{/branch}","tags_url":"https://api.github.com/repos/ruby-rdf/rdf/tags","blobs_url":"https://api.github.com/repos/ruby-rdf/rdf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruby-rdf/rdf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruby-rdf/rdf/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruby-rdf/rdf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruby-rdf/rdf/statuses/{sha}","languages_url":"https://api.github.com/repos/ruby-rdf/rdf/languages","stargazers_url":"https://api.github.com/repos/ruby-rdf/rdf/stargazers","contributors_url":"https://api.github.com/repos/ruby-rdf/rdf/contributors","subscribers_url":"https://api.github.com/repos/ruby-rdf/rdf/subscribers","subscription_url":"https://api.github.com/repos/ruby-rdf/rdf/subscription","commits_url":"https://api.github.com/repos/ruby-rdf/rdf/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruby-rdf/rdf/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruby-rdf/rdf/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruby-rdf/rdf/issues/comments{/number}","contents_url":"https://api.github.com/repos/ruby-rdf/rdf/contents/{+path}","compare_url":"https://api.github.com/repos/ruby-rdf/rdf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruby-rdf/rdf/merges","archive_url":"https://api.github.com/repos/ruby-rdf/rdf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruby-rdf/rdf/downloads","issues_url":"https://api.github.com/repos/ruby-rdf/rdf/issues{/number}","pulls_url":"https://api.github.com/repos/ruby-rdf/rdf/pulls{/number}","milestones_url":"https://api.github.com/repos/ruby-rdf/rdf/milestones{/number}","notifications_url":"https://api.github.com/repos/ruby-rdf/rdf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruby-rdf/rdf/labels{/name}","releases_url":"https://api.github.com/repos/ruby-rdf/rdf/releases{/id}","deployments_url":"https://api.github.com/repos/ruby-rdf/rdf/deployments","created_at":"2009-12-22T17:30:41Z","updated_at":"2016-06-15T10:44:37Z","pushed_at":"2016-06-29T22:55:51Z","git_url":"git://github.com/ruby-rdf/rdf.git","ssh_url":"git@github.com:ruby-rdf/rdf.git","clone_url":"https://github.com/ruby-rdf/rdf.git","svn_url":"https://github.com/ruby-rdf/rdf","homepage":"http://rubygems.org/gems/rdf","size":5037,"stargazers_count":303,"watchers_count":303,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":70,"mirror_url":null,"open_issues_count":8,"forks":70,"open_issues":8,"watchers":303,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ruby-rdf/rdf/pulls/305"},"html":{"href":"https://github.com/ruby-rdf/rdf/pull/305"},"issue":{"href":"https://api.github.com/repos/ruby-rdf/rdf/issues/305"},"comments":{"href":"https://api.github.com/repos/ruby-rdf/rdf/issues/305/comments"},"review_comments":{"href":"https://api.github.com/repos/ruby-rdf/rdf/pulls/305/comments"},"review_comment":{"href":"https://api.github.com/repos/ruby-rdf/rdf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ruby-rdf/rdf/pulls/305/commits"},"statuses":{"href":"https://api.github.com/repos/ruby-rdf/rdf/statuses/9bd9cadaf480252bf619df58bf726e3232833704"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":34,"deletions":8,"changed_files":4}}
{"actor":{"display_login":"no-reply"}}