{"action":"closed","number":218,"pull_request":{"url":"https://api.github.com/repos/mustache/mustache/pulls/218","id":58348080,"html_url":"https://github.com/mustache/mustache/pull/218","diff_url":"https://github.com/mustache/mustache/pull/218.diff","patch_url":"https://github.com/mustache/mustache/pull/218.patch","issue_url":"https://api.github.com/repos/mustache/mustache/issues/218","number":218,"state":"closed","locked":false,"title":"Allow hyphens in tags","user":{"login":"mattparlane","id":176572,"avatar_url":"https://avatars.githubusercontent.com/u/176572?v=3","gravatar_id":"","url":"https://api.github.com/users/mattparlane","html_url":"https://github.com/mattparlane","followers_url":"https://api.github.com/users/mattparlane/followers","following_url":"https://api.github.com/users/mattparlane/following{/other_user}","gists_url":"https://api.github.com/users/mattparlane/gists{/gist_id}","starred_url":"https://api.github.com/users/mattparlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattparlane/subscriptions","organizations_url":"https://api.github.com/users/mattparlane/orgs","repos_url":"https://api.github.com/users/mattparlane/repos","events_url":"https://api.github.com/users/mattparlane/events{/privacy}","received_events_url":"https://api.github.com/users/mattparlane/received_events","type":"User","site_admin":false},"body":"Due to legacy requirements, I need to have tags with hyphens, and I need the original tag name passed to method_missing -- unfortunately changing the underscores back to hyphens is not sufficient because some tags may contain underscores (sigh).\r\n\r\nThis change checks to see if the view object responds to the original key before replacing hyphens with underscores, and if it finds no match it will then do the replacement and try again.\r\n\r\nAll tests pass, and I've modified an existing test to test this new behaviour.\r\n\r\nThanks!","created_at":"2016-02-04T21:00:05Z","updated_at":"2016-03-24T12:36:27Z","closed_at":"2016-03-24T12:36:27Z","merged_at":"2016-03-24T12:36:27Z","merge_commit_sha":"b5d206563a5bebd9d56c6517bead53636609cc24","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mustache/mustache/pulls/218/commits","review_comments_url":"https://api.github.com/repos/mustache/mustache/pulls/218/comments","review_comment_url":"https://api.github.com/repos/mustache/mustache/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mustache/mustache/issues/218/comments","statuses_url":"https://api.github.com/repos/mustache/mustache/statuses/5430fb50bcaf4853bd4c330bbd9f0e12772d4edf","head":{"label":"wbgs:master","ref":"master","sha":"5430fb50bcaf4853bd4c330bbd9f0e12772d4edf","user":{"login":"wbgs","id":5733156,"avatar_url":"https://avatars.githubusercontent.com/u/5733156?v=3","gravatar_id":"","url":"https://api.github.com/users/wbgs","html_url":"https://github.com/wbgs","followers_url":"https://api.github.com/users/wbgs/followers","following_url":"https://api.github.com/users/wbgs/following{/other_user}","gists_url":"https://api.github.com/users/wbgs/gists{/gist_id}","starred_url":"https://api.github.com/users/wbgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbgs/subscriptions","organizations_url":"https://api.github.com/users/wbgs/orgs","repos_url":"https://api.github.com/users/wbgs/repos","events_url":"https://api.github.com/users/wbgs/events{/privacy}","received_events_url":"https://api.github.com/users/wbgs/received_events","type":"Organization","site_admin":false},"repo":{"id":51102822,"name":"mustache","full_name":"wbgs/mustache","owner":{"login":"wbgs","id":5733156,"avatar_url":"https://avatars.githubusercontent.com/u/5733156?v=3","gravatar_id":"","url":"https://api.github.com/users/wbgs","html_url":"https://github.com/wbgs","followers_url":"https://api.github.com/users/wbgs/followers","following_url":"https://api.github.com/users/wbgs/following{/other_user}","gists_url":"https://api.github.com/users/wbgs/gists{/gist_id}","starred_url":"https://api.github.com/users/wbgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbgs/subscriptions","organizations_url":"https://api.github.com/users/wbgs/orgs","repos_url":"https://api.github.com/users/wbgs/repos","events_url":"https://api.github.com/users/wbgs/events{/privacy}","received_events_url":"https://api.github.com/users/wbgs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wbgs/mustache","description":"Logic-less Ruby templates.","fork":true,"url":"https://api.github.com/repos/wbgs/mustache","forks_url":"https://api.github.com/repos/wbgs/mustache/forks","keys_url":"https://api.github.com/repos/wbgs/mustache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wbgs/mustache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wbgs/mustache/teams","hooks_url":"https://api.github.com/repos/wbgs/mustache/hooks","issue_events_url":"https://api.github.com/repos/wbgs/mustache/issues/events{/number}","events_url":"https://api.github.com/repos/wbgs/mustache/events","assignees_url":"https://api.github.com/repos/wbgs/mustache/assignees{/user}","branches_url":"https://api.github.com/repos/wbgs/mustache/branches{/branch}","tags_url":"https://api.github.com/repos/wbgs/mustache/tags","blobs_url":"https://api.github.com/repos/wbgs/mustache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wbgs/mustache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wbgs/mustache/git/refs{/sha}","trees_url":"https://api.github.com/repos/wbgs/mustache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wbgs/mustache/statuses/{sha}","languages_url":"https://api.github.com/repos/wbgs/mustache/languages","stargazers_url":"https://api.github.com/repos/wbgs/mustache/stargazers","contributors_url":"https://api.github.com/repos/wbgs/mustache/contributors","subscribers_url":"https://api.github.com/repos/wbgs/mustache/subscribers","subscription_url":"https://api.github.com/repos/wbgs/mustache/subscription","commits_url":"https://api.github.com/repos/wbgs/mustache/commits{/sha}","git_commits_url":"https://api.github.com/repos/wbgs/mustache/git/commits{/sha}","comments_url":"https://api.github.com/repos/wbgs/mustache/comments{/number}","issue_comment_url":"https://api.github.com/repos/wbgs/mustache/issues/comments{/number}","contents_url":"https://api.github.com/repos/wbgs/mustache/contents/{+path}","compare_url":"https://api.github.com/repos/wbgs/mustache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wbgs/mustache/merges","archive_url":"https://api.github.com/repos/wbgs/mustache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wbgs/mustache/downloads","issues_url":"https://api.github.com/repos/wbgs/mustache/issues{/number}","pulls_url":"https://api.github.com/repos/wbgs/mustache/pulls{/number}","milestones_url":"https://api.github.com/repos/wbgs/mustache/milestones{/number}","notifications_url":"https://api.github.com/repos/wbgs/mustache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wbgs/mustache/labels{/name}","releases_url":"https://api.github.com/repos/wbgs/mustache/releases{/id}","deployments_url":"https://api.github.com/repos/wbgs/mustache/deployments","created_at":"2016-02-04T20:21:29Z","updated_at":"2016-02-17T02:35:22Z","pushed_at":"2016-02-07T18:57:21Z","git_url":"git://github.com/wbgs/mustache.git","ssh_url":"git@github.com:wbgs/mustache.git","clone_url":"https://github.com/wbgs/mustache.git","svn_url":"https://github.com/wbgs/mustache","homepage":"http://mustache.github.io/","size":1223,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"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":"mustache:master","ref":"master","sha":"f52a6b1a899e982103c7fb3dc9902d6e43526e5e","user":{"login":"mustache","id":197655,"avatar_url":"https://avatars.githubusercontent.com/u/197655?v=3","gravatar_id":"","url":"https://api.github.com/users/mustache","html_url":"https://github.com/mustache","followers_url":"https://api.github.com/users/mustache/followers","following_url":"https://api.github.com/users/mustache/following{/other_user}","gists_url":"https://api.github.com/users/mustache/gists{/gist_id}","starred_url":"https://api.github.com/users/mustache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mustache/subscriptions","organizations_url":"https://api.github.com/users/mustache/orgs","repos_url":"https://api.github.com/users/mustache/repos","events_url":"https://api.github.com/users/mustache/events{/privacy}","received_events_url":"https://api.github.com/users/mustache/received_events","type":"Organization","site_admin":false},"repo":{"id":316198,"name":"mustache","full_name":"mustache/mustache","owner":{"login":"mustache","id":197655,"avatar_url":"https://avatars.githubusercontent.com/u/197655?v=3","gravatar_id":"","url":"https://api.github.com/users/mustache","html_url":"https://github.com/mustache","followers_url":"https://api.github.com/users/mustache/followers","following_url":"https://api.github.com/users/mustache/following{/other_user}","gists_url":"https://api.github.com/users/mustache/gists{/gist_id}","starred_url":"https://api.github.com/users/mustache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mustache/subscriptions","organizations_url":"https://api.github.com/users/mustache/orgs","repos_url":"https://api.github.com/users/mustache/repos","events_url":"https://api.github.com/users/mustache/events{/privacy}","received_events_url":"https://api.github.com/users/mustache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mustache/mustache","description":"Logic-less Ruby templates.","fork":false,"url":"https://api.github.com/repos/mustache/mustache","forks_url":"https://api.github.com/repos/mustache/mustache/forks","keys_url":"https://api.github.com/repos/mustache/mustache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mustache/mustache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mustache/mustache/teams","hooks_url":"https://api.github.com/repos/mustache/mustache/hooks","issue_events_url":"https://api.github.com/repos/mustache/mustache/issues/events{/number}","events_url":"https://api.github.com/repos/mustache/mustache/events","assignees_url":"https://api.github.com/repos/mustache/mustache/assignees{/user}","branches_url":"https://api.github.com/repos/mustache/mustache/branches{/branch}","tags_url":"https://api.github.com/repos/mustache/mustache/tags","blobs_url":"https://api.github.com/repos/mustache/mustache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mustache/mustache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mustache/mustache/git/refs{/sha}","trees_url":"https://api.github.com/repos/mustache/mustache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mustache/mustache/statuses/{sha}","languages_url":"https://api.github.com/repos/mustache/mustache/languages","stargazers_url":"https://api.github.com/repos/mustache/mustache/stargazers","contributors_url":"https://api.github.com/repos/mustache/mustache/contributors","subscribers_url":"https://api.github.com/repos/mustache/mustache/subscribers","subscription_url":"https://api.github.com/repos/mustache/mustache/subscription","commits_url":"https://api.github.com/repos/mustache/mustache/commits{/sha}","git_commits_url":"https://api.github.com/repos/mustache/mustache/git/commits{/sha}","comments_url":"https://api.github.com/repos/mustache/mustache/comments{/number}","issue_comment_url":"https://api.github.com/repos/mustache/mustache/issues/comments{/number}","contents_url":"https://api.github.com/repos/mustache/mustache/contents/{+path}","compare_url":"https://api.github.com/repos/mustache/mustache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mustache/mustache/merges","archive_url":"https://api.github.com/repos/mustache/mustache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mustache/mustache/downloads","issues_url":"https://api.github.com/repos/mustache/mustache/issues{/number}","pulls_url":"https://api.github.com/repos/mustache/mustache/pulls{/number}","milestones_url":"https://api.github.com/repos/mustache/mustache/milestones{/number}","notifications_url":"https://api.github.com/repos/mustache/mustache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mustache/mustache/labels{/name}","releases_url":"https://api.github.com/repos/mustache/mustache/releases{/id}","deployments_url":"https://api.github.com/repos/mustache/mustache/deployments","created_at":"2009-09-24T08:20:21Z","updated_at":"2016-03-24T09:02:16Z","pushed_at":"2016-03-24T12:36:27Z","git_url":"git://github.com/mustache/mustache.git","ssh_url":"git@github.com:mustache/mustache.git","clone_url":"https://github.com/mustache/mustache.git","svn_url":"https://github.com/mustache/mustache","homepage":"http://mustache.github.io/","size":1564,"stargazers_count":2155,"watchers_count":2155,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":198,"mirror_url":null,"open_issues_count":18,"forks":198,"open_issues":18,"watchers":2155,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mustache/mustache/pulls/218"},"html":{"href":"https://github.com/mustache/mustache/pull/218"},"issue":{"href":"https://api.github.com/repos/mustache/mustache/issues/218"},"comments":{"href":"https://api.github.com/repos/mustache/mustache/issues/218/comments"},"review_comments":{"href":"https://api.github.com/repos/mustache/mustache/pulls/218/comments"},"review_comment":{"href":"https://api.github.com/repos/mustache/mustache/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mustache/mustache/pulls/218/commits"},"statuses":{"href":"https://api.github.com/repos/mustache/mustache/statuses/5430fb50bcaf4853bd4c330bbd9f0e12772d4edf"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"locks","id":32344,"avatar_url":"https://avatars.githubusercontent.com/u/32344?v=3","gravatar_id":"","url":"https://api.github.com/users/locks","html_url":"https://github.com/locks","followers_url":"https://api.github.com/users/locks/followers","following_url":"https://api.github.com/users/locks/following{/other_user}","gists_url":"https://api.github.com/users/locks/gists{/gist_id}","starred_url":"https://api.github.com/users/locks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locks/subscriptions","organizations_url":"https://api.github.com/users/locks/orgs","repos_url":"https://api.github.com/users/locks/repos","events_url":"https://api.github.com/users/locks/events{/privacy}","received_events_url":"https://api.github.com/users/locks/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":11,"deletions":10,"changed_files":4}}