{"action":"opened","number":249,"pull_request":{"url":"https://api.github.com/repos/cucumber/aruba/pulls/249","id":34897006,"html_url":"https://github.com/cucumber/aruba/pull/249","diff_url":"https://github.com/cucumber/aruba/pull/249.diff","patch_url":"https://github.com/cucumber/aruba/pull/249.patch","issue_url":"https://api.github.com/repos/cucumber/aruba/issues/249","number":249,"state":"open","locked":false,"title":"Matcher improvements","user":{"login":"myronmarston","id":49391,"avatar_url":"https://avatars.githubusercontent.com/u/49391?v=3","gravatar_id":"","url":"https://api.github.com/users/myronmarston","html_url":"https://github.com/myronmarston","followers_url":"https://api.github.com/users/myronmarston/followers","following_url":"https://api.github.com/users/myronmarston/following{/other_user}","gists_url":"https://api.github.com/users/myronmarston/gists{/gist_id}","starred_url":"https://api.github.com/users/myronmarston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myronmarston/subscriptions","organizations_url":"https://api.github.com/users/myronmarston/orgs","repos_url":"https://api.github.com/users/myronmarston/repos","events_url":"https://api.github.com/users/myronmarston/events{/privacy}","received_events_url":"https://api.github.com/users/myronmarston/received_events","type":"User","site_admin":false},"body":"This is an alternative to #248.  It uses RSpec 3's support for composable matchers via `values_match?` and `description_of` for the description/failure messages.  The failure messages are derived from the description so we can just set that.  By using `values_match?` there's no need to treat the regexp, string or any other case as special.\r\n\r\nDocs:\r\n\r\nhttp://rspec.info/documentation/3.2/rspec-expectations/RSpec/Matchers/Composable.html#values_match%3F-instance_method\r\n\r\nhttp://rspec.info/documentation/3.2/rspec-expectations/RSpec/Matchers/Composable.html#description_of-instance_method\r\n\r\nBear in mind that this will only work on RSpec 3+.  What versions of RSpec is aruba designed to support?  It may need to be rejiggered to support older versions of RSpec.","created_at":"2015-05-07T09:20:24Z","updated_at":"2015-05-07T09:20:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cucumber/aruba/pulls/249/commits","review_comments_url":"https://api.github.com/repos/cucumber/aruba/pulls/249/comments","review_comment_url":"https://api.github.com/repos/cucumber/aruba/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cucumber/aruba/issues/249/comments","statuses_url":"https://api.github.com/repos/cucumber/aruba/statuses/21332c8a192bd3f26a132c5f01b54c9fe0990d21","head":{"label":"myronmarston:myrons-fixes","ref":"myrons-fixes","sha":"21332c8a192bd3f26a132c5f01b54c9fe0990d21","user":{"login":"myronmarston","id":49391,"avatar_url":"https://avatars.githubusercontent.com/u/49391?v=3","gravatar_id":"","url":"https://api.github.com/users/myronmarston","html_url":"https://github.com/myronmarston","followers_url":"https://api.github.com/users/myronmarston/followers","following_url":"https://api.github.com/users/myronmarston/following{/other_user}","gists_url":"https://api.github.com/users/myronmarston/gists{/gist_id}","starred_url":"https://api.github.com/users/myronmarston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myronmarston/subscriptions","organizations_url":"https://api.github.com/users/myronmarston/orgs","repos_url":"https://api.github.com/users/myronmarston/repos","events_url":"https://api.github.com/users/myronmarston/events{/privacy}","received_events_url":"https://api.github.com/users/myronmarston/received_events","type":"User","site_admin":false},"repo":{"id":35210464,"name":"aruba","full_name":"myronmarston/aruba","owner":{"login":"myronmarston","id":49391,"avatar_url":"https://avatars.githubusercontent.com/u/49391?v=3","gravatar_id":"","url":"https://api.github.com/users/myronmarston","html_url":"https://github.com/myronmarston","followers_url":"https://api.github.com/users/myronmarston/followers","following_url":"https://api.github.com/users/myronmarston/following{/other_user}","gists_url":"https://api.github.com/users/myronmarston/gists{/gist_id}","starred_url":"https://api.github.com/users/myronmarston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myronmarston/subscriptions","organizations_url":"https://api.github.com/users/myronmarston/orgs","repos_url":"https://api.github.com/users/myronmarston/repos","events_url":"https://api.github.com/users/myronmarston/events{/privacy}","received_events_url":"https://api.github.com/users/myronmarston/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/myronmarston/aruba","description":"CLI Steps for Cucumber","fork":true,"url":"https://api.github.com/repos/myronmarston/aruba","forks_url":"https://api.github.com/repos/myronmarston/aruba/forks","keys_url":"https://api.github.com/repos/myronmarston/aruba/keys{/key_id}","collaborators_url":"https://api.github.com/repos/myronmarston/aruba/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/myronmarston/aruba/teams","hooks_url":"https://api.github.com/repos/myronmarston/aruba/hooks","issue_events_url":"https://api.github.com/repos/myronmarston/aruba/issues/events{/number}","events_url":"https://api.github.com/repos/myronmarston/aruba/events","assignees_url":"https://api.github.com/repos/myronmarston/aruba/assignees{/user}","branches_url":"https://api.github.com/repos/myronmarston/aruba/branches{/branch}","tags_url":"https://api.github.com/repos/myronmarston/aruba/tags","blobs_url":"https://api.github.com/repos/myronmarston/aruba/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/myronmarston/aruba/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/myronmarston/aruba/git/refs{/sha}","trees_url":"https://api.github.com/repos/myronmarston/aruba/git/trees{/sha}","statuses_url":"https://api.github.com/repos/myronmarston/aruba/statuses/{sha}","languages_url":"https://api.github.com/repos/myronmarston/aruba/languages","stargazers_url":"https://api.github.com/repos/myronmarston/aruba/stargazers","contributors_url":"https://api.github.com/repos/myronmarston/aruba/contributors","subscribers_url":"https://api.github.com/repos/myronmarston/aruba/subscribers","subscription_url":"https://api.github.com/repos/myronmarston/aruba/subscription","commits_url":"https://api.github.com/repos/myronmarston/aruba/commits{/sha}","git_commits_url":"https://api.github.com/repos/myronmarston/aruba/git/commits{/sha}","comments_url":"https://api.github.com/repos/myronmarston/aruba/comments{/number}","issue_comment_url":"https://api.github.com/repos/myronmarston/aruba/issues/comments{/number}","contents_url":"https://api.github.com/repos/myronmarston/aruba/contents/{+path}","compare_url":"https://api.github.com/repos/myronmarston/aruba/compare/{base}...{head}","merges_url":"https://api.github.com/repos/myronmarston/aruba/merges","archive_url":"https://api.github.com/repos/myronmarston/aruba/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/myronmarston/aruba/downloads","issues_url":"https://api.github.com/repos/myronmarston/aruba/issues{/number}","pulls_url":"https://api.github.com/repos/myronmarston/aruba/pulls{/number}","milestones_url":"https://api.github.com/repos/myronmarston/aruba/milestones{/number}","notifications_url":"https://api.github.com/repos/myronmarston/aruba/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/myronmarston/aruba/labels{/name}","releases_url":"https://api.github.com/repos/myronmarston/aruba/releases{/id}","created_at":"2015-05-07T09:15:08Z","updated_at":"2015-05-07T09:15:08Z","pushed_at":"2015-05-07T09:16:07Z","git_url":"git://github.com/myronmarston/aruba.git","ssh_url":"git@github.com:myronmarston/aruba.git","clone_url":"https://github.com/myronmarston/aruba.git","svn_url":"https://github.com/myronmarston/aruba","homepage":"","size":2465,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cucumber:master","ref":"master","sha":"228b649f10a34b3d4775828873d7325ac22bc1f7","user":{"login":"cucumber","id":320565,"avatar_url":"https://avatars.githubusercontent.com/u/320565?v=3","gravatar_id":"","url":"https://api.github.com/users/cucumber","html_url":"https://github.com/cucumber","followers_url":"https://api.github.com/users/cucumber/followers","following_url":"https://api.github.com/users/cucumber/following{/other_user}","gists_url":"https://api.github.com/users/cucumber/gists{/gist_id}","starred_url":"https://api.github.com/users/cucumber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cucumber/subscriptions","organizations_url":"https://api.github.com/users/cucumber/orgs","repos_url":"https://api.github.com/users/cucumber/repos","events_url":"https://api.github.com/users/cucumber/events{/privacy}","received_events_url":"https://api.github.com/users/cucumber/received_events","type":"Organization","site_admin":false},"repo":{"id":515585,"name":"aruba","full_name":"cucumber/aruba","owner":{"login":"cucumber","id":320565,"avatar_url":"https://avatars.githubusercontent.com/u/320565?v=3","gravatar_id":"","url":"https://api.github.com/users/cucumber","html_url":"https://github.com/cucumber","followers_url":"https://api.github.com/users/cucumber/followers","following_url":"https://api.github.com/users/cucumber/following{/other_user}","gists_url":"https://api.github.com/users/cucumber/gists{/gist_id}","starred_url":"https://api.github.com/users/cucumber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cucumber/subscriptions","organizations_url":"https://api.github.com/users/cucumber/orgs","repos_url":"https://api.github.com/users/cucumber/repos","events_url":"https://api.github.com/users/cucumber/events{/privacy}","received_events_url":"https://api.github.com/users/cucumber/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cucumber/aruba","description":"CLI Steps for Cucumber","fork":false,"url":"https://api.github.com/repos/cucumber/aruba","forks_url":"https://api.github.com/repos/cucumber/aruba/forks","keys_url":"https://api.github.com/repos/cucumber/aruba/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cucumber/aruba/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cucumber/aruba/teams","hooks_url":"https://api.github.com/repos/cucumber/aruba/hooks","issue_events_url":"https://api.github.com/repos/cucumber/aruba/issues/events{/number}","events_url":"https://api.github.com/repos/cucumber/aruba/events","assignees_url":"https://api.github.com/repos/cucumber/aruba/assignees{/user}","branches_url":"https://api.github.com/repos/cucumber/aruba/branches{/branch}","tags_url":"https://api.github.com/repos/cucumber/aruba/tags","blobs_url":"https://api.github.com/repos/cucumber/aruba/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cucumber/aruba/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cucumber/aruba/git/refs{/sha}","trees_url":"https://api.github.com/repos/cucumber/aruba/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cucumber/aruba/statuses/{sha}","languages_url":"https://api.github.com/repos/cucumber/aruba/languages","stargazers_url":"https://api.github.com/repos/cucumber/aruba/stargazers","contributors_url":"https://api.github.com/repos/cucumber/aruba/contributors","subscribers_url":"https://api.github.com/repos/cucumber/aruba/subscribers","subscription_url":"https://api.github.com/repos/cucumber/aruba/subscription","commits_url":"https://api.github.com/repos/cucumber/aruba/commits{/sha}","git_commits_url":"https://api.github.com/repos/cucumber/aruba/git/commits{/sha}","comments_url":"https://api.github.com/repos/cucumber/aruba/comments{/number}","issue_comment_url":"https://api.github.com/repos/cucumber/aruba/issues/comments{/number}","contents_url":"https://api.github.com/repos/cucumber/aruba/contents/{+path}","compare_url":"https://api.github.com/repos/cucumber/aruba/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cucumber/aruba/merges","archive_url":"https://api.github.com/repos/cucumber/aruba/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cucumber/aruba/downloads","issues_url":"https://api.github.com/repos/cucumber/aruba/issues{/number}","pulls_url":"https://api.github.com/repos/cucumber/aruba/pulls{/number}","milestones_url":"https://api.github.com/repos/cucumber/aruba/milestones{/number}","notifications_url":"https://api.github.com/repos/cucumber/aruba/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cucumber/aruba/labels{/name}","releases_url":"https://api.github.com/repos/cucumber/aruba/releases{/id}","created_at":"2010-02-12T19:06:31Z","updated_at":"2015-05-07T09:08:50Z","pushed_at":"2015-05-07T09:08:50Z","git_url":"git://github.com/cucumber/aruba.git","ssh_url":"git@github.com:cucumber/aruba.git","clone_url":"https://github.com/cucumber/aruba.git","svn_url":"https://github.com/cucumber/aruba","homepage":"","size":2465,"stargazers_count":597,"watchers_count":597,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":102,"mirror_url":null,"open_issues_count":27,"forks":102,"open_issues":27,"watchers":597,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cucumber/aruba/pulls/249"},"html":{"href":"https://github.com/cucumber/aruba/pull/249"},"issue":{"href":"https://api.github.com/repos/cucumber/aruba/issues/249"},"comments":{"href":"https://api.github.com/repos/cucumber/aruba/issues/249/comments"},"review_comments":{"href":"https://api.github.com/repos/cucumber/aruba/pulls/249/comments"},"review_comment":{"href":"https://api.github.com/repos/cucumber/aruba/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cucumber/aruba/pulls/249/commits"},"statuses":{"href":"https://api.github.com/repos/cucumber/aruba/statuses/21332c8a192bd3f26a132c5f01b54c9fe0990d21"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":60,"deletions":26,"changed_files":4}}