{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/foca/sinatra-url/pulls/1","id":2763446,"html_url":"https://github.com/foca/sinatra-url/pull/1","diff_url":"https://github.com/foca/sinatra-url/pull/1.diff","patch_url":"https://github.com/foca/sinatra-url/pull/1.patch","issue_url":"https://api.github.com/repos/foca/sinatra-url/issues/1","number":1,"state":"closed","locked":false,"title":"Let Sinatra::URL::Route instances delegate to the pattern","user":{"login":"eckardt","id":52346,"avatar_url":"https://avatars.githubusercontent.com/u/52346?v=3","gravatar_id":"","url":"https://api.github.com/users/eckardt","html_url":"https://github.com/eckardt","followers_url":"https://api.github.com/users/eckardt/followers","following_url":"https://api.github.com/users/eckardt/following{/other_user}","gists_url":"https://api.github.com/users/eckardt/gists{/gist_id}","starred_url":"https://api.github.com/users/eckardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eckardt/subscriptions","organizations_url":"https://api.github.com/users/eckardt/orgs","repos_url":"https://api.github.com/users/eckardt/repos","events_url":"https://api.github.com/users/eckardt/events{/privacy}","received_events_url":"https://api.github.com/users/eckardt/received_events","type":"User","site_admin":false},"body":"There is Rack middleware which requires the routes to behave like normal regex instances. For example newrelic_rpm requires the routes to respond to the source method. This pull request changes Sinatra::URL::Route to delegate any unknown methods to the @pattern variable it holds.","created_at":"2012-10-24T20:54:38Z","updated_at":"2015-01-06T10:05:29Z","closed_at":"2015-01-06T10:05:29Z","merged_at":null,"merge_commit_sha":"a81945c585e6919c0a577e4690de5e0e6af89c1e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/foca/sinatra-url/pulls/1/commits","review_comments_url":"https://api.github.com/repos/foca/sinatra-url/pulls/1/comments","review_comment_url":"https://api.github.com/repos/foca/sinatra-url/pulls/comments/{number}","comments_url":"https://api.github.com/repos/foca/sinatra-url/issues/1/comments","statuses_url":"https://api.github.com/repos/foca/sinatra-url/statuses/762116e4c6ff18086f60ae150ed68bdeda5420fa","head":{"label":"eckardt:master","ref":"master","sha":"762116e4c6ff18086f60ae150ed68bdeda5420fa","user":{"login":"eckardt","id":52346,"avatar_url":"https://avatars.githubusercontent.com/u/52346?v=3","gravatar_id":"","url":"https://api.github.com/users/eckardt","html_url":"https://github.com/eckardt","followers_url":"https://api.github.com/users/eckardt/followers","following_url":"https://api.github.com/users/eckardt/following{/other_user}","gists_url":"https://api.github.com/users/eckardt/gists{/gist_id}","starred_url":"https://api.github.com/users/eckardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eckardt/subscriptions","organizations_url":"https://api.github.com/users/eckardt/orgs","repos_url":"https://api.github.com/users/eckardt/repos","events_url":"https://api.github.com/users/eckardt/events{/privacy}","received_events_url":"https://api.github.com/users/eckardt/received_events","type":"User","site_admin":false},"repo":null},"base":{"label":"foca:master","ref":"master","sha":"24fc628b0af9a09bce4f5f4d11f71acae2bcc8f6","user":{"login":"foca","id":437,"avatar_url":"https://avatars.githubusercontent.com/u/437?v=3","gravatar_id":"","url":"https://api.github.com/users/foca","html_url":"https://github.com/foca","followers_url":"https://api.github.com/users/foca/followers","following_url":"https://api.github.com/users/foca/following{/other_user}","gists_url":"https://api.github.com/users/foca/gists{/gist_id}","starred_url":"https://api.github.com/users/foca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foca/subscriptions","organizations_url":"https://api.github.com/users/foca/orgs","repos_url":"https://api.github.com/users/foca/repos","events_url":"https://api.github.com/users/foca/events{/privacy}","received_events_url":"https://api.github.com/users/foca/received_events","type":"User","site_admin":false},"repo":{"id":272084,"name":"sinatra-url","full_name":"foca/sinatra-url","owner":{"login":"foca","id":437,"avatar_url":"https://avatars.githubusercontent.com/u/437?v=3","gravatar_id":"","url":"https://api.github.com/users/foca","html_url":"https://github.com/foca","followers_url":"https://api.github.com/users/foca/followers","following_url":"https://api.github.com/users/foca/following{/other_user}","gists_url":"https://api.github.com/users/foca/gists{/gist_id}","starred_url":"https://api.github.com/users/foca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foca/subscriptions","organizations_url":"https://api.github.com/users/foca/orgs","repos_url":"https://api.github.com/users/foca/repos","events_url":"https://api.github.com/users/foca/events{/privacy}","received_events_url":"https://api.github.com/users/foca/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/foca/sinatra-url","description":"URL mapper for the Sinatra framework","fork":false,"url":"https://api.github.com/repos/foca/sinatra-url","forks_url":"https://api.github.com/repos/foca/sinatra-url/forks","keys_url":"https://api.github.com/repos/foca/sinatra-url/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foca/sinatra-url/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foca/sinatra-url/teams","hooks_url":"https://api.github.com/repos/foca/sinatra-url/hooks","issue_events_url":"https://api.github.com/repos/foca/sinatra-url/issues/events{/number}","events_url":"https://api.github.com/repos/foca/sinatra-url/events","assignees_url":"https://api.github.com/repos/foca/sinatra-url/assignees{/user}","branches_url":"https://api.github.com/repos/foca/sinatra-url/branches{/branch}","tags_url":"https://api.github.com/repos/foca/sinatra-url/tags","blobs_url":"https://api.github.com/repos/foca/sinatra-url/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foca/sinatra-url/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foca/sinatra-url/git/refs{/sha}","trees_url":"https://api.github.com/repos/foca/sinatra-url/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foca/sinatra-url/statuses/{sha}","languages_url":"https://api.github.com/repos/foca/sinatra-url/languages","stargazers_url":"https://api.github.com/repos/foca/sinatra-url/stargazers","contributors_url":"https://api.github.com/repos/foca/sinatra-url/contributors","subscribers_url":"https://api.github.com/repos/foca/sinatra-url/subscribers","subscription_url":"https://api.github.com/repos/foca/sinatra-url/subscription","commits_url":"https://api.github.com/repos/foca/sinatra-url/commits{/sha}","git_commits_url":"https://api.github.com/repos/foca/sinatra-url/git/commits{/sha}","comments_url":"https://api.github.com/repos/foca/sinatra-url/comments{/number}","issue_comment_url":"https://api.github.com/repos/foca/sinatra-url/issues/comments/{number}","contents_url":"https://api.github.com/repos/foca/sinatra-url/contents/{+path}","compare_url":"https://api.github.com/repos/foca/sinatra-url/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foca/sinatra-url/merges","archive_url":"https://api.github.com/repos/foca/sinatra-url/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foca/sinatra-url/downloads","issues_url":"https://api.github.com/repos/foca/sinatra-url/issues{/number}","pulls_url":"https://api.github.com/repos/foca/sinatra-url/pulls{/number}","milestones_url":"https://api.github.com/repos/foca/sinatra-url/milestones{/number}","notifications_url":"https://api.github.com/repos/foca/sinatra-url/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foca/sinatra-url/labels{/name}","releases_url":"https://api.github.com/repos/foca/sinatra-url/releases{/id}","created_at":"2009-08-07T22:05:29Z","updated_at":"2013-10-06T22:27:28Z","pushed_at":"2012-02-29T19:01:22Z","git_url":"git://github.com/foca/sinatra-url.git","ssh_url":"git@github.com:foca/sinatra-url.git","clone_url":"https://github.com/foca/sinatra-url.git","svn_url":"https://github.com/foca/sinatra-url","homepage":"","size":104,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/foca/sinatra-url/pulls/1"},"html":{"href":"https://github.com/foca/sinatra-url/pull/1"},"issue":{"href":"https://api.github.com/repos/foca/sinatra-url/issues/1"},"comments":{"href":"https://api.github.com/repos/foca/sinatra-url/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/foca/sinatra-url/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/foca/sinatra-url/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/foca/sinatra-url/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/foca/sinatra-url/statuses/762116e4c6ff18086f60ae150ed68bdeda5420fa"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":8,"deletions":2,"changed_files":3}}