{"action":"created","comment":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments/25303556","id":25303556,"diff_hunk":"@@ -0,0 +1,31 @@\n+package DDG::Spice::Pokemon::Data;\n+# ABSTRACT: Returns pokemon data from the pokeapi API\n+\n+use DDG::Spice;\n+\n+spice is_cached => 1;\n+spice proxy_cache_valid => \"200 30d\";\n+\n+name \"Pokemon\";\n+source \"Pokéapi\";\n+icon_url \"/i/www.pokeapi.co.ico\";\n+description \"Fetches details of a given Pokemon\";\n+primary_example_queries \"pokemon pikachu\", \"bulbasaur pokemon\";\n+category \"entertainment\";\n+topics \"entertainment\", \"geek\";\n+code_url \"https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Pokemon.pm\";\n+attribution github => [\"AkA84\"];\n+\n+# Triggers\n+triggers startend => \"pokemon\";\n+\n+spice to => 'http://pokeapi.co/api/v1/pokemon/$1';","path":"lib/DDG/Spice/Pokemon/Data.pm","position":null,"original_position":22,"commit_id":"49551e38d624c61eed0e00eddf7de6fa94091c4a","original_commit_id":"5d68fe869dcf4575e15bf93570c40cfc45ff677a","user":{"login":"AkA84","id":6400898,"avatar_url":"https://avatars.githubusercontent.com/u/6400898?v=3","gravatar_id":"","url":"https://api.github.com/users/AkA84","html_url":"https://github.com/AkA84","followers_url":"https://api.github.com/users/AkA84/followers","following_url":"https://api.github.com/users/AkA84/following{/other_user}","gists_url":"https://api.github.com/users/AkA84/gists{/gist_id}","starred_url":"https://api.github.com/users/AkA84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AkA84/subscriptions","organizations_url":"https://api.github.com/users/AkA84/orgs","repos_url":"https://api.github.com/users/AkA84/repos","events_url":"https://api.github.com/users/AkA84/events{/privacy}","received_events_url":"https://api.github.com/users/AkA84/received_events","type":"User","site_admin":false},"body":"Done!","created_at":"2015-02-24T23:14:33Z","updated_at":"2015-02-24T23:14:33Z","html_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1536#discussion_r25303556","pull_request_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1536","_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments/25303556"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1536#discussion_r25303556"},"pull_request":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1536"}}},"pull_request":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1536","id":29386970,"html_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1536","diff_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1536.diff","patch_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1536.patch","issue_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1536","number":1536,"state":"open","locked":false,"title":"[Instant Answer] Pokémon info","user":{"login":"AkA84","id":6400898,"avatar_url":"https://avatars.githubusercontent.com/u/6400898?v=3","gravatar_id":"","url":"https://api.github.com/users/AkA84","html_url":"https://github.com/AkA84","followers_url":"https://api.github.com/users/AkA84/followers","following_url":"https://api.github.com/users/AkA84/following{/other_user}","gists_url":"https://api.github.com/users/AkA84/gists{/gist_id}","starred_url":"https://api.github.com/users/AkA84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AkA84/subscriptions","organizations_url":"https://api.github.com/users/AkA84/orgs","repos_url":"https://api.github.com/users/AkA84/repos","events_url":"https://api.github.com/users/AkA84/events{/privacy}","received_events_url":"https://api.github.com/users/AkA84/received_events","type":"User","site_admin":false},"body":"**What does your Instant Answer do?**\r\nIt provides basic information and stats about a given pokemon\r\n\r\n\r\n**What problem does your Instant Answer solve (Why is it better than organic links)?**\r\nAt a glance the user gets:\r\n* A picture of the pokemon\r\n* A description (randomly selected from the set given by the API)\r\n* The types and egg groups the pokemon belongs to\r\n* The name of the pokemon's next evolution (with a link to its IA)\r\n* The basic stats\r\n\r\nI think that's a good amount of information that the user gets before he/she even clicks any of the search results\r\n\r\n\r\n**What is the data source for your Instant Answer? (Provide a link if possible)**\r\nhttp://pokeapi.co/\r\n\r\nAccording to the API author, API V1 should get deprecated this year and replaced by V2 ([source](http://phalt.co/if-you-have-data-they-will-consume-it/)). \"Deprecated\" in this case just means that the V1 will be rendered stable and it won't receive any more updates. I haven't found any information about the new API, but nothing prevents the IA to use V1 for now and then upgrade to V2 once it's out\r\n\r\n\r\n**Why did you choose this data source?**\r\nIt's a nice, RESTful, widely used API\r\n\r\n\r\n**Are there any other alternative (better) data sources?**\r\nI kinda quickly settled on pokeapi since it seemed pretty good, but as far as I can tell I haven't found a decent competitor for it\r\n\r\n\r\n**What are some example queries that trigger this Instant Answer?**\r\n*pokemon pikachu*, *bulbasaur pokemon*\r\n\r\n\r\n**Which communities will this Instant Answer be especially useful for? (gamers, book lovers, etc)**\r\nPokemon lovers!\r\n\r\n\r\n**Is this Instant Answer connected to a DuckDuckHack [Instant Answer idea](https://duck.co/ideas)?**\r\nhttps://duck.co/ideas/idea/4921/pok-mon-info\r\n\r\n\r\n**Which existing Instant Answers will this one supersede/overlap with?**\r\nNone, as far as I know\r\n\r\n\r\n**Are you having any problems? Do you need our help with anything?**\r\n* I know that there is a built-in `record` template, but I couldn't figure out how to have it render a non-escaped string, which is necessary to have the link to the pokemon's evolution (i know about `Handlebars.SafeString` method but it doesn't seem to work as I suspect it's not something that the template expect to receive). I thought it would be cool thing to have since it allows the user to jumps back and forth different pokemon's evolutions, so for now I recreated the `record` mark-up while waiting to get some feedback from you\r\n* On mobile the \"auxiliary context\" box disappears for my IA, but not for others. I noticed that the `.cw` wrapper is supposed to also get an `.has-aux` class to prevent it, but I'm not sure how to add that\r\n\r\n\r\n**Where did you hear about DuckDuckHack? (For first time contributors)**\r\nIt popped up in conversation about privacy issues, and I found it quite interesting. It wasn't though until recently that I found out about your IA, and I'm really fascinated by the concept\r\n\r\n\r\n**What does the Instant Answer look like? (Provide a screenshot for new or updated Instant Answers)**\r\n![pokemon-ia-example](https://cloud.githubusercontent.com/assets/6400898/6216192/d36d5354-b607-11e4-918c-3246356e0ccd.png)\r\n\r\n\r\n## Checklist\r\nPlease place an 'X' where appropriate.\r\n\r\n```\r\n[x] Added metadata and attribution information\r\n[x] Wrote test file and added to t/ directory\r\n[x] Verified that Instant Answer adheres to design guidelines (https://duck.co/duckduckhack/design_styleguide)\r\n[x] Verified that Instant Answer adheres to code styleguide (https://duck.co/duckduckhack/code_styleguide)\r\n[] Tested cross-browser compatibility\r\n\r\n    Please let us know which browsers/devices you've tested on:\r\n    - Windows 8\r\n        [] Google Chrome\r\n        [] Firefox\r\n        [] Opera\r\n        [] IE 10\r\n\r\n    - Windows 7\r\n        [] Google Chrome\r\n        [] Firefox\r\n        [] Opera\r\n        [] IE 8\r\n        [x] IE 9\r\n        [] IE 10\r\n\r\n    - Windows XP\r\n        [] IE 7\r\n        [] IE 8\r\n\r\n    - Mac OSX\r\n        [x] Google Chrome\r\n        [x] Firefox\r\n        [] Opera\r\n        [x] Safari\r\n\r\n    - iOS (iPhone)\r\n        [] Safari Mobile\r\n        [] Google Chrome\r\n        [] Opera\r\n\r\n    - iOS (iPad)\r\n        [x] Safari Mobile\r\n        [x] Google Chrome\r\n        [] Opera\r\n\r\n    - Android\r\n        [x] Firefox\r\n        [x] Native Browser\r\n        [x] Google Chrome\r\n        [] Opera\r\n```","created_at":"2015-02-16T16:53:33Z","updated_at":"2015-02-24T23:14:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dcb7e90a512c4b2d122e0e71da80053ab129d099","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1536/commits","review_comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1536/comments","review_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1536/comments","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/statuses/49551e38d624c61eed0e00eddf7de6fa94091c4a","head":{"label":"AkA84:pokemon-spice","ref":"pokemon-spice","sha":"49551e38d624c61eed0e00eddf7de6fa94091c4a","user":{"login":"AkA84","id":6400898,"avatar_url":"https://avatars.githubusercontent.com/u/6400898?v=3","gravatar_id":"","url":"https://api.github.com/users/AkA84","html_url":"https://github.com/AkA84","followers_url":"https://api.github.com/users/AkA84/followers","following_url":"https://api.github.com/users/AkA84/following{/other_user}","gists_url":"https://api.github.com/users/AkA84/gists{/gist_id}","starred_url":"https://api.github.com/users/AkA84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AkA84/subscriptions","organizations_url":"https://api.github.com/users/AkA84/orgs","repos_url":"https://api.github.com/users/AkA84/repos","events_url":"https://api.github.com/users/AkA84/events{/privacy}","received_events_url":"https://api.github.com/users/AkA84/received_events","type":"User","site_admin":false},"repo":{"id":30663629,"name":"zeroclickinfo-spice","full_name":"AkA84/zeroclickinfo-spice","owner":{"login":"AkA84","id":6400898,"avatar_url":"https://avatars.githubusercontent.com/u/6400898?v=3","gravatar_id":"","url":"https://api.github.com/users/AkA84","html_url":"https://github.com/AkA84","followers_url":"https://api.github.com/users/AkA84/followers","following_url":"https://api.github.com/users/AkA84/following{/other_user}","gists_url":"https://api.github.com/users/AkA84/gists{/gist_id}","starred_url":"https://api.github.com/users/AkA84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AkA84/subscriptions","organizations_url":"https://api.github.com/users/AkA84/orgs","repos_url":"https://api.github.com/users/AkA84/repos","events_url":"https://api.github.com/users/AkA84/events{/privacy}","received_events_url":"https://api.github.com/users/AkA84/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AkA84/zeroclickinfo-spice","description":"DuckDuckGo instant answer plugins based on JavaScript APIs","fork":true,"url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice","forks_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/forks","keys_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/teams","hooks_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/hooks","issue_events_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/issues/events{/number}","events_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/events","assignees_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/assignees{/user}","branches_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/branches{/branch}","tags_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/tags","blobs_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/git/refs{/sha}","trees_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/statuses/{sha}","languages_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/languages","stargazers_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/stargazers","contributors_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/contributors","subscribers_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/subscribers","subscription_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/subscription","commits_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/commits{/sha}","git_commits_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/git/commits{/sha}","comments_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/comments{/number}","issue_comment_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/issues/comments{/number}","contents_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/contents/{+path}","compare_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/merges","archive_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/downloads","issues_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/issues{/number}","pulls_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/pulls{/number}","milestones_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/milestones{/number}","notifications_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/labels{/name}","releases_url":"https://api.github.com/repos/AkA84/zeroclickinfo-spice/releases{/id}","created_at":"2015-02-11T18:50:03Z","updated_at":"2015-02-14T00:03:25Z","pushed_at":"2015-02-24T23:13:42Z","git_url":"git://github.com/AkA84/zeroclickinfo-spice.git","ssh_url":"git@github.com:AkA84/zeroclickinfo-spice.git","clone_url":"https://github.com/AkA84/zeroclickinfo-spice.git","svn_url":"https://github.com/AkA84/zeroclickinfo-spice","homepage":"http://duckduckhack.com/","size":13420,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"duckduckgo:master","ref":"master","sha":"80a4c4089afa7949ca1cbd7475f638b23da04af0","user":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"repo":{"id":1997671,"name":"zeroclickinfo-spice","full_name":"duckduckgo/zeroclickinfo-spice","owner":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/duckduckgo/zeroclickinfo-spice","description":"DuckDuckGo instant answer plugins based on JavaScript APIs","fork":false,"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice","forks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/forks","keys_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/teams","hooks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/hooks","issue_events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/events{/number}","events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/events","assignees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/assignees{/user}","branches_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/branches{/branch}","tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/tags","blobs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/refs{/sha}","trees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/statuses/{sha}","languages_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/languages","stargazers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/stargazers","contributors_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/contributors","subscribers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/subscribers","subscription_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/subscription","commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/commits{/sha}","git_commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/commits{/sha}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/comments{/number}","issue_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/comments{/number}","contents_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/contents/{+path}","compare_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/merges","archive_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/downloads","issues_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues{/number}","pulls_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls{/number}","milestones_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/milestones{/number}","notifications_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/labels{/name}","releases_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/releases{/id}","created_at":"2011-07-04T22:08:37Z","updated_at":"2015-02-24T22:54:27Z","pushed_at":"2015-02-24T22:54:27Z","git_url":"git://github.com/duckduckgo/zeroclickinfo-spice.git","ssh_url":"git@github.com:duckduckgo/zeroclickinfo-spice.git","clone_url":"https://github.com/duckduckgo/zeroclickinfo-spice.git","svn_url":"https://github.com/duckduckgo/zeroclickinfo-spice","homepage":"http://duckduckhack.com/","size":30490,"stargazers_count":208,"watchers_count":208,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":461,"mirror_url":null,"open_issues_count":111,"forks":461,"open_issues":111,"watchers":208,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1536"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1536"},"issue":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1536"},"comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1536/comments"},"review_comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1536/comments"},"review_comment":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1536/commits"},"statuses":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/statuses/49551e38d624c61eed0e00eddf7de6fa94091c4a"}}}}