Skip to content

Commit

Permalink
file renames to make ShareDir.pm happy
Browse files Browse the repository at this point in the history
  • Loading branch information
majuscule committed May 21, 2012
1 parent 7964170 commit abdc159
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions lib/DDG/Goodie/JSKeycodes.pm → lib/DDG/Goodie/JsKeycodes.pm
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
package DDG::Goodie::JSKeycodes;
# ABSTRACT: Give the equivelant JavaScript Keycode.
package DDG::Goodie::JsKeycodes;
# ABSTRACT: Give the equivalent JavaScript Keycode.

use DDG::Goodie;
my $html;
my $text;
my $key;
my $value;

my $header = share('header.txt')->slurp;
my $footer = share('footer.txt')->slurp;

triggers startend => 'keycode', 'charcode', 'charcodes';

my %keys = ('backspace' => '8',
Expand Down Expand Up @@ -107,6 +104,9 @@ my %keys = ('backspace' => '8',

handle remainder => sub {
return unless exists $keys{$_} or $_ eq "JavaScript" or $_ eq "javascript";
my $header = share('header.txt')->slurp;
my $footer = share('footer.txt')->slurp;

$html .= $header;
$html .= '<tr><td class="c1"><b>' . $_ . '</b></td><td class="c2"><b>' . $keys{$_} . '</b></td>' if (exists $keys{$_});

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions t/JSKeycodes.t → t/JsKeycodes.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ zci answer_type => 'jskeycodes';

ddg_goodie_test(
[qw(
DDG::Goodie::JSKeycodes
DDG::Goodie::JsKeycodes
)],
'charCode backspace' => test_zci('Keycode: 8 (JavaScript)'),
'charcode tab' => test_zci('Keycode: 9 (JavaScript)'),
Expand Down Expand Up @@ -49,4 +49,4 @@ ddg_goodie_test(
') keycode' => test_zci('Keycode: 221 (JavaScript)'),
);

done_testing;
done_testing;

0 comments on commit abdc159

Please sign in to comment.