{"action":"opened","number":1891,"pull_request":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1891","id":53486557,"html_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1891","diff_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1891.diff","patch_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1891.patch","issue_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1891","number":1891,"state":"open","locked":false,"title":"Add Ruby Globals cheat sheet","user":{"login":"dthjones","id":6856120,"avatar_url":"https://avatars.githubusercontent.com/u/6856120?v=3","gravatar_id":"","url":"https://api.github.com/users/dthjones","html_url":"https://github.com/dthjones","followers_url":"https://api.github.com/users/dthjones/followers","following_url":"https://api.github.com/users/dthjones/following{/other_user}","gists_url":"https://api.github.com/users/dthjones/gists{/gist_id}","starred_url":"https://api.github.com/users/dthjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dthjones/subscriptions","organizations_url":"https://api.github.com/users/dthjones/orgs","repos_url":"https://api.github.com/users/dthjones/repos","events_url":"https://api.github.com/users/dthjones/events{/privacy}","received_events_url":"https://api.github.com/users/dthjones/received_events","type":"User","site_admin":false},"body":"**What does your Instant Answer do?**\r\nDisplays a list of [Ruby](https://www.ruby-lang.org/en/)'s global variables and constants in response to cheat sheet searches like *ruby globals*, *ruby global constants*, *ruby global variables*.\r\n\r\n**What is the data source for your Instant Answer? (Provide a link if possible)**\r\nThe list items are copied verbatim from the [Ruby source][] at [doc/globals.rdoc][].  This document is rendered at http://docs.ruby-lang.org/en/trunk/globals_rdoc.html, which I've used as the answer `sourceUrl` as it is more readable than the raw rdoc markup.\r\n\r\nThe source lists variables and constants.  I added sections to break the list of variables up; without the addition of a **Long Variables** section there is a lot of whitespace to the right of the one- and two-character variables.\r\n\r\n[Ruby source]: https://github.com/ruby/ruby\r\n[doc/globals.rdoc]: https://github.com/ruby/ruby/blob/trunk/doc/globals.rdoc\r\n\r\n**Why did you choose this data source?**\r\nThis is a document from the Ruby project itself, so should be close to the truth.  I chose http://docs.ruby-lang.org as a reference as it is under the official Ruby domain.\r\n\r\n**Are there any other alternative (better) data sources?**\r\nThe same data is presented at http://ruby-doc.org/core/doc/globals_rdoc.html, and other Ruby documentation servers.  I wasn't able to find a source that uses SSL.\r\n\r\nRyan Davis lists pre-defined variables as part of [Ruby QuickRef][].\r\n\r\n[Ruby QuickRef]: http://www.zenspider.com/Languages/Ruby/QuickRef.html#pre-defined-variables\r\n\r\n**Which communities will this Instant Answer be especially useful for? (gamers, book lovers, etc)**\r\nProgrammers\r\n\r\n**Is this Instant Answer connected to a DuckDuckHack Instant Answer idea?**\r\nNo\r\n\r\n**Are you having any problems? Do you need our help with anything?**\r\nI ran `duckpan server` locally, it took me a while to work out that I needed to restart the server to pick up the new JSON file and aliases, though other changes are loaded while the server is running.  I know now to do this, but it would be helpful if the server was restarted automatically when needed, or printed a warning suggesting so.\r\n\r\n**Where did you hear about DuckDuckHack? (For first time contributors)**\r\nI've used the search engine for years, and have gradually become aware of the community around it.  I started hearing about Quack & Hack about a month ago, which I hope to get involved in.\r\n\r\n**What does the Instant Answer look like? (Provide a screenshot for new or updated Instant Answers)**\r\n![ruby-global-variables-help-ia](https://cloud.githubusercontent.com/assets/6856120/11764084/969fc250-a11a-11e5-97bf-f1b6ab8d3c28.png)\r\n","created_at":"2015-12-12T21:54:02Z","updated_at":"2015-12-12T21:54:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1891/commits","review_comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1891/comments","review_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/comments{/number}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1891/comments","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/statuses/28f7ba706fab6155e0dfbea3123586b124bb192a","head":{"label":"dthjones:ruby-globals-cheat-sheet","ref":"ruby-globals-cheat-sheet","sha":"28f7ba706fab6155e0dfbea3123586b124bb192a","user":{"login":"dthjones","id":6856120,"avatar_url":"https://avatars.githubusercontent.com/u/6856120?v=3","gravatar_id":"","url":"https://api.github.com/users/dthjones","html_url":"https://github.com/dthjones","followers_url":"https://api.github.com/users/dthjones/followers","following_url":"https://api.github.com/users/dthjones/following{/other_user}","gists_url":"https://api.github.com/users/dthjones/gists{/gist_id}","starred_url":"https://api.github.com/users/dthjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dthjones/subscriptions","organizations_url":"https://api.github.com/users/dthjones/orgs","repos_url":"https://api.github.com/users/dthjones/repos","events_url":"https://api.github.com/users/dthjones/events{/privacy}","received_events_url":"https://api.github.com/users/dthjones/received_events","type":"User","site_admin":false},"repo":{"id":47464896,"name":"zeroclickinfo-goodies","full_name":"dthjones/zeroclickinfo-goodies","owner":{"login":"dthjones","id":6856120,"avatar_url":"https://avatars.githubusercontent.com/u/6856120?v=3","gravatar_id":"","url":"https://api.github.com/users/dthjones","html_url":"https://github.com/dthjones","followers_url":"https://api.github.com/users/dthjones/followers","following_url":"https://api.github.com/users/dthjones/following{/other_user}","gists_url":"https://api.github.com/users/dthjones/gists{/gist_id}","starred_url":"https://api.github.com/users/dthjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dthjones/subscriptions","organizations_url":"https://api.github.com/users/dthjones/orgs","repos_url":"https://api.github.com/users/dthjones/repos","events_url":"https://api.github.com/users/dthjones/events{/privacy}","received_events_url":"https://api.github.com/users/dthjones/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dthjones/zeroclickinfo-goodies","description":"DuckDuckGo instant answer plugins based on Perl functions","fork":true,"url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies","forks_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/forks","keys_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/teams","hooks_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/hooks","issue_events_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/issues/events{/number}","events_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/events","assignees_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/assignees{/user}","branches_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/branches{/branch}","tags_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/tags","blobs_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/git/refs{/sha}","trees_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/statuses/{sha}","languages_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/languages","stargazers_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/stargazers","contributors_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/contributors","subscribers_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/subscribers","subscription_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/subscription","commits_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/commits{/sha}","git_commits_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/git/commits{/sha}","comments_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/comments{/number}","issue_comment_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/issues/comments{/number}","contents_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/contents/{+path}","compare_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/merges","archive_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/downloads","issues_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/issues{/number}","pulls_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/pulls{/number}","milestones_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/milestones{/number}","notifications_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/labels{/name}","releases_url":"https://api.github.com/repos/dthjones/zeroclickinfo-goodies/releases{/id}","created_at":"2015-12-05T17:12:22Z","updated_at":"2015-12-05T17:12:27Z","pushed_at":"2015-12-12T21:01:17Z","git_url":"git://github.com/dthjones/zeroclickinfo-goodies.git","ssh_url":"git@github.com:dthjones/zeroclickinfo-goodies.git","clone_url":"https://github.com/dthjones/zeroclickinfo-goodies.git","svn_url":"https://github.com/dthjones/zeroclickinfo-goodies","homepage":"http://duckduckhack.com/","size":11740,"stargazers_count":0,"watchers_count":0,"language":"Perl","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":"7a28bc577d4c4e49938bc312ba01a8eed3fb6c9a","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":2164979,"name":"zeroclickinfo-goodies","full_name":"duckduckgo/zeroclickinfo-goodies","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-goodies","description":"DuckDuckGo instant answer plugins based on Perl functions","fork":false,"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies","forks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/forks","keys_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/teams","hooks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/hooks","issue_events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/events{/number}","events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/events","assignees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/assignees{/user}","branches_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/branches{/branch}","tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/tags","blobs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/refs{/sha}","trees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/statuses/{sha}","languages_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/languages","stargazers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/stargazers","contributors_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/contributors","subscribers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/subscribers","subscription_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/subscription","commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/commits{/sha}","git_commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/commits{/sha}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/comments{/number}","issue_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/comments{/number}","contents_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/contents/{+path}","compare_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/merges","archive_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/downloads","issues_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues{/number}","pulls_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls{/number}","milestones_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/milestones{/number}","notifications_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/labels{/name}","releases_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/releases{/id}","created_at":"2011-08-06T13:26:05Z","updated_at":"2015-12-11T07:00:51Z","pushed_at":"2015-12-12T20:11:02Z","git_url":"git://github.com/duckduckgo/zeroclickinfo-goodies.git","ssh_url":"git@github.com:duckduckgo/zeroclickinfo-goodies.git","clone_url":"https://github.com/duckduckgo/zeroclickinfo-goodies.git","svn_url":"https://github.com/duckduckgo/zeroclickinfo-goodies","homepage":"http://duckduckhack.com/","size":19463,"stargazers_count":357,"watchers_count":357,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1275,"mirror_url":null,"open_issues_count":162,"forks":1275,"open_issues":162,"watchers":357,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1891"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1891"},"issue":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1891"},"comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1891/comments"},"review_comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1891/comments"},"review_comment":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1891/commits"},"statuses":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/statuses/28f7ba706fab6155e0dfbea3123586b124bb192a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":249,"deletions":0,"changed_files":1}}