Merge pull request #908 from duckduckgo/russell/attribution

cleanup attribution, a-m
master
Jag Talon 2015-01-07 14:12:43 -05:00
commit b0551f9b74
37 changed files with 55 additions and 78 deletions

View File

@ -16,12 +16,8 @@ name 'ABC';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/ABC.pm';
category 'random';
topics 'trivia';
attribution twitter => 'crazedpsyc',
cpan => 'CRZEDPSYC',
twitter => 'kablamo_',
cpan => 'KABLAMO',
github => 'kablamo',
web => ["http://kablamo.org", "Eric Johnson"] ;
attribution cpan => ['CRZEDPSYC','crazedpsyc'],
github => ['kablamo', 'Eric Johnson'];
handle remainder => sub {

View File

@ -14,8 +14,7 @@ name 'AspectRatio';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/AspectRatio.pm';
category 'calculations';
topics 'math';
attribution github => [ 'https://github.com/mrshu', 'mrshu' ],
twitter => [ 'https://twitter.com/mr__shu', 'mr__shu' ];
attribution github => [ 'https://github.com/mrshu', 'mrshu' ];
handle remainder => sub {
my $input = $_;

View File

@ -12,8 +12,8 @@ category 'transformations';
topics 'cryptography';
attribution web => ['http://kyokodaniel.com/tech/', 'Daniel Davis'],
github => ['https://github.com/tagawa', 'tagawa'],
twitter => ['https://twitter.com/ourmaninjapan', 'ourmaninjapan'];
github => ['https://github.com/tagawa', 'Daniel Davis'],
twitter => ['https://twitter.com/ourmaninjapan', 'Daniel Davis'];
triggers start => 'atbash';

View File

@ -15,8 +15,8 @@ name 'Average';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Average.pm';
category 'calculations';
topics 'math';
attribution twitter => 'crazedpsyc',
cpan => 'CRZEDPSYC' ;
attribution twitter => ['crazedpsyc','crazedpsyc'],
cpan => ['CRZEDPSYC','crazedpsyc'];
handle remainder => sub {

View File

@ -29,7 +29,7 @@ code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DD
category 'conversions';
topics 'math';
attribution web => [ 'http://perlgeek.de/blog-en', 'Moritz Lenz' ],
github => [ 'http://github.com/moritz', 'moritz'];
github => [ 'http://github.com/moritz', 'Moritz Lenz'];
handle query_clean => sub {

View File

@ -19,8 +19,8 @@ code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DD
category 'conversions';
topics 'programming';
attribution web => ['robert.io', 'Robert Picard'],
github => ['http://github.com/rpicard', 'rpicard'],
twitter => ['http://twitter.com/__rlp', '__rlp'];
github => ['http://github.com/rpicard', 'Robert Picard'],
twitter => ['http://twitter.com/__rlp', 'Robert Picard'];
handle remainder => sub {
return unless $_ =~ /^(?<com>encode|decode|)\s*(?<str>.*)$/i;

View File

@ -14,7 +14,7 @@ description 'returns the birth stone of the specified month';
name 'BirthStone';
topics 'special_interest', 'entertainment';
category 'random';
attribution github => ['https://github.com/austinheimark', 'austin_heimark'];
attribution github => ['https://github.com/austinheimark', 'Austin Heimark'];
my %birthstones = (
"January" => "Garnet",

View File

@ -17,10 +17,7 @@ name 'Calculator';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Calculator.pm';
category 'calculations';
topics 'math';
attribution
web => ['https://www.duckduckgo.com', 'DuckDuckGo'],
github => ['https://github.com/duckduckgo', 'duckduckgo'],
twitter => ['http://twitter.com/duckduckgo', 'duckduckgo'];
attribution github => ['https://github.com/duckduckgo', 'duckduckgo'];
triggers query_nowhitespace => qr<
^

View File

@ -10,9 +10,7 @@ icon_url "/i/www.canadapost.ca.ico";
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/CanadaPost.pm';
category 'ids';
topics 'special_interest';
attribution web => [ 'https://www.duckduckgo.com', 'DuckDuckGo' ],
github => [ 'https://github.com/duckduckgo', 'duckduckgo'],
twitter => ['http://twitter.com/duckduckgo', 'duckduckgo'];
attribution github => [ 'https://github.com/duckduckgo', 'duckduckgo'];
zci is_cached => 1;
zci answer_type => "canadapost";

View File

@ -54,8 +54,7 @@ name 'ColorCodes';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/ColorCodes.pm';
category 'conversions';
topics 'programming';
attribution twitter => 'crazedpsyc',
cpan => 'CRZEDPSYC' ;
attribution cpan => 'CRZEDPSYC' ;
sub percentify {
my @out;

View File

@ -15,8 +15,9 @@ topics 'computing', 'math';
primary_example_queries 'convert 5 oz to grams';
secondary_example_queries '5 ounces to g', '0.5 nautical miles in km';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Conversions.pm';
attribution github => ['https://github.com/elohmrow', 'https://github.com/mintsoft'],
email => ['bradley@pvnp.us', 'bradley@pvnp.us'];
attribution github => 'https://github.com/elohmrow',
github => ['https://github.com/mintsoft', 'Rob Emery'],
email => 'bradley@pvnp.us';
zci answer_type => 'conversions';
zci is_cached => 1;

View File

@ -14,9 +14,7 @@ icon_url "/i/www.dhl.com.ico";
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/DHL.pm';
category 'ids';
topics 'special_interest';
attribution web => [ 'https://www.duckduckgo.com', 'DuckDuckGo' ],
github => [ 'https://github.com/duckduckgo', 'duckduckgo'],
twitter => ['http://twitter.com/duckduckgo', 'duckduckgo'];
attribution github => [ 'https://github.com/duckduckgo', 'duckduckgo'];
# Regex for usps.
my $dhl_qr = qr/dhl/io;

View File

@ -15,10 +15,9 @@ name 'Dice';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Dice.pm';
category 'random';
topics 'math';
attribution twitter => 'crazedpsyc',
cpan => 'CRZEDPSYC',
twitter => 'loganmccamon',
github => 'loganom' ;
attribution cpan => ['CRZEDPSYC','crazedpsyc'],
twitter => [ 'loganmccamon', 'loganom'],
github => ['loganom', 'loganom'];
my %utf8_dice = (
1 => "\x{2680}",

View File

@ -12,8 +12,8 @@ name 'DuckDuckGo';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/DuckDuckGo.pm';
category 'cheat_sheets';
topics 'everyday';
attribution twitter => 'crazedpsyc',
cpan => 'CRZEDPSYC';
attribution twitter => ['crazedpsyc','crazedpsyc'],
cpan => ['CRZEDPSYC','crazedpsyc'];
my @ddg_aliases = map { ($_, $_ . "'s", $_ . "s") } ('duck duck go', 'duckduck go', 'duck duckgo', 'duckduckgo', 'ddg');

View File

@ -15,8 +15,8 @@ name 'EmToPx';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/EmToPx.pm';
category 'conversions';
topics 'programming';
attribution twitter => 'crazedpsyc',
cpan => 'CRZEDPSYC' ;
attribution twitter => ['crazedpsyc','crazedpsyc'],
cpan => ['CRZEDPSYC','crazedpsyc'];
handle query_raw => sub {
my $q = lc $_;

View File

@ -16,7 +16,7 @@ description 'Returns the factors of the entered number';
name 'Factors';
topics 'math';
category 'calculations';
attribution github => [ 'https://github.com/austinheimark', 'austin_heimark' ];
attribution github => [ 'https://github.com/austinheimark', 'Austin Heimark' ];
handle remainder => sub {
my $query = $_;

View File

@ -16,9 +16,7 @@ source "FedEx";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/FedEx.pm";
category 'ids';
topics 'special_interest';
attribution web => [ 'https://www.duckduckgo.com', 'DuckDuckGo' ],
github => [ 'https://github.com/duckduckgo', 'duckduckgo'],
twitter => ['http://twitter.com/duckduckgo', 'duckduckgo'];
attribution github => [ 'https://github.com/duckduckgo', 'duckduckgo'];
# Regex for fedex.
my $fedex_qr = qr/fed(?:eral|)ex(?:press|)/io;

View File

@ -14,8 +14,7 @@ zci is_cached => 1;
primary_example_queries 'fib 7';
secondary_example_queries 'fibonacci 33';
description 'Returns the n-th element of Fibonacci sequence';
attribution github => ['https://github.com/koosha--', 'koosha--'],
twitter => ['https://github.com/_koosha_', '_koosha_'];
attribution github => ['https://github.com/koosha--', 'koosha--'];
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Fibonacci.pm';
topics 'math';
category 'calculations';

View File

@ -27,9 +27,8 @@ name 'GUID';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/GUID.pm';
category 'computing_tools';
topics 'programming';
attribution twitter => 'crazedpsyc',
cpan => 'CRZEDPSYC',
twitter => 'loganmccamon',
attribution twitter => ['crazedpsyc','crazedpsyc'],
cpan => ['CRZEDPSYC','crazedpsyc'],
github => 'loganom';

View File

@ -16,8 +16,8 @@ name 'GoldenRatio';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/GoldenRatio.pm';
category 'calculations';
topics 'math';
attribution twitter => 'crazedpsyc',
cpan => 'CRZEDPSYC' ;
attribution twitter => ['crazedpsyc','crazedpsyc'],
cpan => ['CRZEDPSYC','crazedpsyc'];
handle remainder => sub {
my $input = $_;

View File

@ -14,7 +14,7 @@ description 'returns the greatest common factor of the two entered numbers';
name 'GreatestCommonFactor';
topics 'math';
category 'calculations';
attribution github => [ 'https://github.com/austinheimark', 'austin_heimark' ];
attribution github => [ 'https://github.com/austinheimark', 'Austin Heimark' ];
handle remainder => sub {

View File

@ -13,9 +13,7 @@ name 'HK/DK';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/HKDK.pm';
category 'ids';
topics 'special_interest';
attribution web => [ 'https://www.duckduckgo.com', 'DuckDuckGo' ],
github => [ 'https://github.com/duckduckgo', 'duckduckgo'],
twitter => ['http://twitter.com/duckduckgo', 'duckduckgo'];
attribution github => [ 'https://github.com/duckduckgo', 'duckduckgo'];
triggers query_nowhitespace_nodash => qr/([a-z]{2}\d{9}(?:hk|dk))/i;

View File

@ -18,8 +18,8 @@ name 'HTMLEntitiesDecode';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/HTMLEntitiesDecode.pm';
category 'computing_tools';
topics 'programming';
attribution twitter => 'crazedpsyc',
cpan => 'CRZEDPSYC' ,
attribution twitter => ['crazedpsyc','crazedpsyc'],
cpan => ['CRZEDPSYC','crazedpsyc'],
twitter => ['https://twitter.com/nshanmugham', 'Nishanth Shanmugham'],
web => ['http://nishanths.github.io', 'Nishanth Shanmugham'],
github => ['https://github.com/nishanths', 'Nishanth Shanmugham'];

View File

@ -248,8 +248,8 @@ zci is_cached => 1;
attribution web => ["http://nishanths.github.io", "Nishanth Shanmugham"],
github => ["https://github.com/nishanths", "Nishanth Shanmugham"],
twitter => ["https://twitter.com/nshanmugham", "Nishanth Shanmugham"],
twitter => 'crazedpsyc',
cpan => 'CRZEDPSYC' ;
twitter => ['crazedpsyc','crazedpsyc'],
cpan => ['CRZEDPSYC','crazedpsyc'];
handle remainder => sub {
# General query cleanup

View File

@ -14,8 +14,7 @@ zci is_cached => 0;
primary_example_queries 'suicide hotline';
description 'Checks if a query with the word "suicide" was made and returns a 24 hr suicide hotline.';
attribution github => ['https://github.com/conorfl', 'conorfl'],
twitter => '@areuhappylucia';
attribution github => ['https://github.com/conorfl', 'conorfl'];
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Helpline.pm';
topics 'everyday';
category 'special';

View File

@ -19,8 +19,7 @@ name 'HexToASCII';
code_url 'http://github.com';
category 'computing_tools';
topics 'programming';
attribution github => ['https://github.com/koosha--', 'koosha--'],
twitter => '_koosha_';
attribution github => ['https://github.com/koosha--', 'koosha--'];
handle remainder => sub {
my $value = $_;

View File

@ -16,7 +16,7 @@ code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DD
category 'conversions';
topics 'math', 'programming';
attribution cpan => 'majuscule',
github => 'nospampleasemam',
github => ['nospampleasemam', 'Dylan Lloyd'],
web => ['https://dylansserver.com', 'Dylan Lloyd'] ;
handle query_raw => sub {

View File

@ -17,7 +17,7 @@ category "language";
topics "special_interest";
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Hiragana.pm';
attribution github => "mintsoft";
attribution github => ['https://github.com/mintsoft', 'Rob Emery'];
my %hiragana = (
# gojuuon
@ -69,4 +69,4 @@ handle remainder => sub {
return $output_string, html => "<div class='zci--hiragana text--primary'>".html_enc($output_string)."</div>";
};
1;
1;

View File

@ -12,9 +12,7 @@ name 'IPS';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IPS.pm';
category 'ids';
topics 'special_interest';
attribution web => [ 'https://www.duckduckgo.com', 'DuckDuckGo' ],
github => [ 'https://github.com/duckduckgo', 'duckduckgo'],
twitter => ['http://twitter.com/duckduckgo', 'duckduckgo'];
attribution github => [ 'https://github.com/duckduckgo', 'duckduckgo'];
triggers query_nowhitespace_nodash => qr/(E[MA]\d{9})(IN|HR|)/xi;

View File

@ -16,7 +16,7 @@ name 'ISO639';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/ISO639.pm';
category 'reference';
topics 'programming';
attribution github => [ 'http://github.com/tantalor', 'tantalor' ],
attribution github => [ 'http://github.com/tantalor', 'John Tantalo' ],
web => [ 'http://johntantalo.com/blog', 'John Tantalo' ];

View File

@ -3,6 +3,7 @@ package DDG::Goodie::IndependenceDay;
use DDG::Goodie;
use JSON;
use utf8;
zci answer_type => "independence_day";
zci is_cached => 1;
@ -16,7 +17,7 @@ code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DD
attribution github => ["jarmokivekas", "Jarmo Kivekäs"],
web => ["http://guttula.com", "Jarmo Kivekäs"],
github => ["YouriAckx", "Youri Ackx"],
twitter => "YouriAckx";
twitter => ["YouriAckx", "Youri Ackx"];
# Triggers

View File

@ -2,6 +2,7 @@ package DDG::Goodie::Jira;
# ABSTRACT: returns the URL of an Apache or Codehaus JIRA bug ticket according to its identifier
use DDG::Goodie;
use utf8;
zci is_cached => 1;
zci answer_type => 'jira';
@ -16,8 +17,8 @@ code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DD
category 'programming';
topics 'programming';
attribution
github => ['https://github.com/arroway', 'arroway'],
twitter => ['http://twitter.com/steph_ouillon', 'steph_ouillon'];
github => ['https://github.com/arroway', 'Stéphanie Ouillon'],
twitter => ['http://twitter.com/steph_ouillon', 'Stéphanie Ouillon'];
my $projects = Load(scalar share('projects.yml')->slurp);

View File

@ -10,7 +10,7 @@ source 'https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Doc
code_url 'https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/KernelTaint.pm';
category 'computing_tools';
topics 'computing', 'sysadmin', 'special_interest';
attribution github => ['http://github.com/nospampleasemam', 'nospampleasemam'],
attribution github => ['http://github.com/nospampleasemam', 'Dylan Lloyd'],
web => ['http://dylansserver.com/', 'Dylan Lloyd'];
zci answer_type => 'kernel_taint';

View File

@ -12,9 +12,7 @@ name 'Lasership';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/LaserShip.pm';
category 'ids';
topics 'special_interest';
attribution web => [ 'https://www.duckduckgo.com', 'DuckDuckGo' ],
github => [ 'https://github.com/duckduckgo', 'duckduckgo'],
twitter => ['http://twitter.com/duckduckgo', 'duckduckgo'];
attribution github => [ 'https://github.com/duckduckgo', 'duckduckgo'];
triggers query_nowhitespace_nodash => qr/(l[a-z]\d{8})/i;

View File

@ -12,7 +12,7 @@ name 'Latex';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Latex.pm';
attribution
web => ['www.transistor.io', 'Jason Dorweiler'],
github => [ 'jdorweiler', 'Jason_Dorweiler'];
github => [ 'jdorweiler', 'Jason Dorweiler'];
zci answer_type => 'Latex';
zci is_cached => 1;

View File

@ -15,7 +15,7 @@ code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DD
category 'dates';
topics 'everyday';
attribution github => [ 'https://github.com/tophattedcoder', 'Tom Bebbington'],
twitter => '@tophattedcoder';
twitter => ['@tophattedcoder', 'Tom Bebbington'];
zci is_cached => 1;
triggers startend => 'leap years', 'leap year';

View File

@ -10,7 +10,7 @@ topics 'geek';
category 'conversions';
name 'LeetSpeak';
code_url 'https://github.com/antoine-vugliano/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/LeetSpeak.pm';
attribution github => ['https://github.com/antoine-vugliano', 'antoine-vugliano'],
attribution github => ['https://github.com/antoine-vugliano', 'Antoine Vugliano'],
web => ['http://antoine.vugliano.free.fr', 'Antoine Vugliano'];
zci answer_type => 'leet_speak';