Merge pull request #749 from jesuruban/master

Created my first Goodie
master
Zaahir Moolla 2014-11-14 11:48:11 -05:00
commit 97b2a2ea0d
2 changed files with 48 additions and 0 deletions

View File

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

19
t/IsAwesome/jesuruban.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_jesuruban";
zci is_cached => 1;
ddg_goodie_test(
[qw(
DDG::Goodie::IsAwesome::jesuruban
)],
'duckduckhack jesuruban' => test_zci('Jesu Ruban is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'),
'duckduckhack jesuruban is awesome' => undef,
);
done_testing;