PageRenderTime 44ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/DDG/Spice/Github.pm

https://github.com/aembleton/zeroclickinfo-spice
Perl | 24 lines | 18 code | 5 blank | 1 comment | 0 complexity | 75880901208049387acda3f5f8cd3ac5 MD5 | raw file
  1. package DDG::Spice::Github;
  2. # ABSTRACT: Search for information about GitHub repositories
  3. use DDG::Spice;
  4. triggers startend => "github";
  5. spice to => 'https://api.github.com/legacy/repos/search/$1?callback={{callback}}';
  6. primary_example_queries "github zeroclickinfo";
  7. description "Github info";
  8. name "Github";
  9. code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Github.pm";
  10. topics "programming", "web_design";
  11. category "programming";
  12. attribution web => ['http://dylansserver.com','Dylan Lloyd'],
  13. email => ['dylan@dylansserver.com','Dylan Lloyd'];
  14. handle query_lc => sub {
  15. s/^github\s+|\s+github$//;
  16. return $_ unless /^jobs|jobs$/;
  17. return;
  18. };
  19. 1;