From df608837e94a0fd20e87ca67160afec6c4badf4b Mon Sep 17 00:00:00 2001 From: rramyr Date: Sun, 5 Apr 2015 02:13:23 +0000 Subject: [PATCH 1/3] Created my first Goodie --- lib/DDG/Goodie/IsAwesome/GitHubrramyr.pm | 27 ++++++++++++++++++++++++ t/IsAwesome/GitHubrramyr.t | 19 +++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 lib/DDG/Goodie/IsAwesome/GitHubrramyr.pm create mode 100644 t/IsAwesome/GitHubrramyr.t diff --git a/lib/DDG/Goodie/IsAwesome/GitHubrramyr.pm b/lib/DDG/Goodie/IsAwesome/GitHubrramyr.pm new file mode 100644 index 000000000..bf2467d37 --- /dev/null +++ b/lib/DDG/Goodie/IsAwesome/GitHubrramyr.pm @@ -0,0 +1,27 @@ +package DDG::Goodie::IsAwesome::GitHubrramyr; +# ABSTRACT: GitHubrramyr's first Goodie +# # Start at https://duck.co/duckduckhack/goodie_overview if you are new +# to instant answer development + +use DDG::Goodie; + +zci answer_type => "is_awesome_git_hubrramyr"; +zci is_cached => 1; + +name "IsAwesome GitHubrramyr"; +description "My first Goodie, it lets the world know that GitHubUsername is awesome"; +primary_example_queries "duckduckhack GitHubrramyr"; +category "special"; +topics "special_interest", "geek"; +code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/GitHubrramyr.pm"; +attribution github => ["https://github.com/GitHubUsername", "GitHubrramyr"]; + + +triggers any => "duckduckhack githubrramyr"; + +handle remainder => sub { + return if $_; + return "GitHubrramyr is awesome and has successfully completed the DuckDuckHack Goodie tutorial!"; +}; + +1; diff --git a/t/IsAwesome/GitHubrramyr.t b/t/IsAwesome/GitHubrramyr.t new file mode 100644 index 000000000..57449c4b1 --- /dev/null +++ b/t/IsAwesome/GitHubrramyr.t @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +use strict; +use warnings; +use Test::More; +use DDG::Test::Goodie; + +zci answer_type => "is_awesome_git_hubrramyr"; +zci is_cached => 1; + +ddg_goodie_test( + [qw( + DDG::Goodie::IsAwesome::GitHubrramyr + )], + 'duckduckhack GitHubrramyr' => test_zci('GitHubrramyr is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'), + 'duckduckhack GitHubrramyr is awesome' => undef, +); + +done_testing; From 2c0d6fd067130d344a10ec3cf2d14b5390304633 Mon Sep 17 00:00:00 2001 From: rramyr Date: Mon, 6 Apr 2015 05:03:44 +0000 Subject: [PATCH 2/3] Created my first Goodie --- lib/DDG/Goodie/IsAwesome/GitHubrramyr.pm | 27 ------------------------ lib/DDG/Goodie/IsAwesome/rramyr.pm | 24 +++++++++++++++++++++ sub | 0 t/IsAwesome/GitHubrramyr.t | 19 ----------------- t/IsAwesome/rramyr.t | 19 +++++++++++++++++ 5 files changed, 43 insertions(+), 46 deletions(-) delete mode 100644 lib/DDG/Goodie/IsAwesome/GitHubrramyr.pm create mode 100644 lib/DDG/Goodie/IsAwesome/rramyr.pm create mode 100644 sub delete mode 100644 t/IsAwesome/GitHubrramyr.t create mode 100644 t/IsAwesome/rramyr.t diff --git a/lib/DDG/Goodie/IsAwesome/GitHubrramyr.pm b/lib/DDG/Goodie/IsAwesome/GitHubrramyr.pm deleted file mode 100644 index bf2467d37..000000000 --- a/lib/DDG/Goodie/IsAwesome/GitHubrramyr.pm +++ /dev/null @@ -1,27 +0,0 @@ -package DDG::Goodie::IsAwesome::GitHubrramyr; -# ABSTRACT: GitHubrramyr's first Goodie -# # Start at https://duck.co/duckduckhack/goodie_overview if you are new -# to instant answer development - -use DDG::Goodie; - -zci answer_type => "is_awesome_git_hubrramyr"; -zci is_cached => 1; - -name "IsAwesome GitHubrramyr"; -description "My first Goodie, it lets the world know that GitHubUsername is awesome"; -primary_example_queries "duckduckhack GitHubrramyr"; -category "special"; -topics "special_interest", "geek"; -code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/GitHubrramyr.pm"; -attribution github => ["https://github.com/GitHubUsername", "GitHubrramyr"]; - - -triggers any => "duckduckhack githubrramyr"; - -handle remainder => sub { - return if $_; - return "GitHubrramyr is awesome and has successfully completed the DuckDuckHack Goodie tutorial!"; -}; - -1; diff --git a/lib/DDG/Goodie/IsAwesome/rramyr.pm b/lib/DDG/Goodie/IsAwesome/rramyr.pm new file mode 100644 index 000000000..c1b1cc0e8 --- /dev/null +++ b/lib/DDG/Goodie/IsAwesome/rramyr.pm @@ -0,0 +1,24 @@ +package DDG::Goodie::IsAwesome::rramyr; + +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 GitHubUsername 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; diff --git a/sub b/sub new file mode 100644 index 000000000..e69de29bb diff --git a/t/IsAwesome/GitHubrramyr.t b/t/IsAwesome/GitHubrramyr.t deleted file mode 100644 index 57449c4b1..000000000 --- a/t/IsAwesome/GitHubrramyr.t +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env perl - -use strict; -use warnings; -use Test::More; -use DDG::Test::Goodie; - -zci answer_type => "is_awesome_git_hubrramyr"; -zci is_cached => 1; - -ddg_goodie_test( - [qw( - DDG::Goodie::IsAwesome::GitHubrramyr - )], - 'duckduckhack GitHubrramyr' => test_zci('GitHubrramyr is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'), - 'duckduckhack GitHubrramyr is awesome' => undef, -); - -done_testing; diff --git a/t/IsAwesome/rramyr.t b/t/IsAwesome/rramyr.t new file mode 100644 index 000000000..9eb28dd19 --- /dev/null +++ b/t/IsAwesome/rramyr.t @@ -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; \ No newline at end of file From 8c5a4c23dfe65f390d8f75cf0214d9639834942f Mon Sep 17 00:00:00 2001 From: rramyr Date: Mon, 6 Apr 2015 05:57:30 +0000 Subject: [PATCH 3/3] Created my first Goodie --- lib/DDG/Goodie/IsAwesome/rramyr.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/DDG/Goodie/IsAwesome/rramyr.pm b/lib/DDG/Goodie/IsAwesome/rramyr.pm index c1b1cc0e8..19d1e67bc 100644 --- a/lib/DDG/Goodie/IsAwesome/rramyr.pm +++ b/lib/DDG/Goodie/IsAwesome/rramyr.pm @@ -1,4 +1,5 @@ package DDG::Goodie::IsAwesome::rramyr; +# ABSTRACT: GitHubrramyr's first Goodie use DDG::Goodie; @@ -6,7 +7,7 @@ zci answer_type => "is_awesome_rramyr"; zci is_cached => 1; name "IsAwesome rramyr"; -description "My first Goodie, it lets the world know that GitHubUsername is awesome"; +description "My first Goodie, it lets the world know that rramyr is awesome"; primary_example_queries "duckduckhack rramyr"; category "special"; topics "special_interest", "geek";