Merge pull request #1092 from rramyr/master

First Goodie: rramyr
master
Chris Wilson 2015-04-06 14:17:12 +08:00
commit 28f5f081ca
3 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package DDG::Goodie::IsAwesome::rramyr;
# ABSTRACT: GitHubrramyr's first Goodie
use DDG::Goodie;
zci answer_type => "is_awesome_rramyr";
zci is_cached => 1;
name "IsAwesome rramyr";
description "My first Goodie, it lets the world know that rramyr is awesome";
primary_example_queries "duckduckhack rramyr";
category "special";
topics "special_interest", "geek";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/rramyr.pm";
attribution github => ["https://github.com/rramyr", "rramyr"];
triggers any => "duckduckhack rramyr";
handle remainder => sub {
return if $_;
return "rramyr is awesome and has successfully completed the DuckDuckHack Goodie tutorial!";
};
1;

0
sub Normal file
View File

19
t/IsAwesome/rramyr.t Normal file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => "is_awesome_rramyr";
zci is_cached => 1;
ddg_goodie_test(
[qw(
DDG::Goodie::IsAwesome::rramyr
)],
'duckduckhack rramyr' => test_zci('rramyr is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'),
'duckduckhack rramyr is awesome' => undef,
);
done_testing;