Merge pull request #720 from thejdeep/master

Submitting my First Goodie
master
Rob Emery 2014-11-02 19:19:51 +00:00
commit 7ee47daa19
2 changed files with 47 additions and 0 deletions

View File

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

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