PageRenderTime 23ms CodeModel.GetById 16ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/DDG/Spice/MetaCPAN.pm

https://github.com/aembleton/zeroclickinfo-spice
Perl | 25 lines | 19 code | 5 blank | 1 comment | 1 complexity | 976b4cabc0eacf30d2a84c65f2eef2cf MD5 | raw file
 1package DDG::Spice::MetaCPAN;
 2# ABSTRACT: Show a summary of the searched CPAN module.
 3
 4use DDG::Spice;
 5
 6primary_example_queries "metacpan WWW::DuckDuckGo";
 7description "Searches CPAN modules";
 8name "MetaCPAN";
 9code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/MetaCPAN.pm";
10icon_url "/i/metacpan.org.ico";
11topics "programming", "sysadmin";
12category "programming";
13attribution github  => ['https://github.com/ghedo', 'ghedo'      ],
14            web     => ['http://ghedini.me', 'Alessandro Ghedini'];
15status "enabled";
16
17spice to   => 'http://api.metacpan.org/v0/module/$1?callback={{callback}}';
18
19triggers startend => "cpan", "metacpan", "meta cpan";
20
21handle remainder => sub {
22    return $_ if $_;
23    return;
24};
251;