Skip to content

Commit

Permalink
Document the api_key
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Jan 8, 2025
1 parent e07eca2 commit bf4b64d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ t/critic.t
t/eof.t
t/eol.t
t/fixme.t
t/manifest.t
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Version 0.01

my $improver = Grammar::Improver->new(
api_url => 'https://api.languagetool.org/v2/check',
api_key => $ENV{'LANGUAGETOOL_KEY'},
);

my $text = 'This are a sample text with mistake.';
Expand Down
1 change: 1 addition & 0 deletions lib/Grammar/Improver.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ our $VERSION = '0.01';
my $improver = Grammar::Improver->new(
api_url => 'https://api.languagetool.org/v2/check',
api_key => $ENV{'LANGUAGETOOL_KEY'},
);
my $text = 'This are a sample text with mistake.';
Expand Down
1 change: 0 additions & 1 deletion t/cover.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use strict;
use warnings;

use Test::DescribeMe qw(author);
use Test::Most;
use Test::Needs 'Test::Strict';

Test::Strict->import();
Expand Down
11 changes: 11 additions & 0 deletions t/manifest.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!perl -w

use strict;
use warnings;

use Test::DescribeMe qw(author);
use Test::Most;
use Test::Needs { 'Test::CheckManifest' => '0.9' };

Test::CheckManifest->import();
ok_manifest({ filter => [qr/(\.git)|(\..+\.yml$)/] });

0 comments on commit bf4b64d

Please sign in to comment.