Skip to content

Commit

Permalink
about ready for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Axel 'fREW' Schmidt committed Dec 4, 2013
1 parent 31b1886 commit 302b3b8
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.build
Plack-App-File-CaseInsensitive-*
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: perl
perl:
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"

install:
- export RELEASE_TESTING=1 AUTOMATED_TESTING=1 AUTHOR_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1
- cpanm --quiet --notest Devel::Cover::Report::Coveralls
- cpanm --quiet --notest --installdeps .

script:
- PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine prove -lrsv t
- cover
after_success:
- cover -report coveralls
5 changes: 4 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
Plack
Revision history for {{$dist->name}}

{{$NEXT}}
- Initial Release
8 changes: 8 additions & 0 deletions cpanfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
requires 'File::Find'; # core
requires 'Plack' => 1.0016; # Plack::App::File

on test => sub {
requires 'Test::More' => 1.001002;
requires 'HTTP::Request::Common' => 6.00;
requires 'Plack' => 1.0016; # Plack::Test
};
19 changes: 19 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name = Plack-App-File-CaseInsensitive
author = Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>
license = Perl_5
copyright_holder = Arthur Axel "fREW" Schmidt
version = 0.001000

[NextRelease]
[@Git]
[@Basic]
[GithubMeta]
[MetaJSON]
[PodWeaver]
[PkgVersion]
[ReadmeFromPod]
[PodSyntaxTests]
[Prereqs::FromCPANfile]

[MinimumPerl]
perl = 5.009005
2 changes: 2 additions & 0 deletions lib/Plack/App/File/CaseInsensitive.pm
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,5 @@ insensitive name (ie C<foo> and C<FOO>.)
=head1 CONFIGURATION
See L<Plack::App::File/CONFIGURATION>
=cut
1 change: 1 addition & 0 deletions t/Foo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Plack
9 changes: 5 additions & 4 deletions t/basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ use HTTP::Request::Common;
use Plack::App::File::CaseInsensitive;

my $app = Plack::App::File::CaseInsensitive->new();

test_psgi $app, sub {
my $cb = shift;

my $res = $cb->(GET "/cHanGeS");
my $warnings = '';
local $SIG{__WARN__} = sub { $warnings .= $_[0] };
my $res = $cb->(GET "/t/fOo");
like($warnings, qr/CASE INSENSITIVE MODE/i, 'correctly warned user');
like($warnings, qr(t/foo)i, 'warning contains path');
is $res->code, 200;
like $res->content, qr/Plack/;
};

die "test for warnings";

done_testing;
4 changes: 2 additions & 2 deletions t/file.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use Test::More;
use HTTP::Request::Common;
use Plack::App::File::CaseInsensitive;

my $app = Plack::App::File::CaseInsensitive->new(file => 'Changes');
my $app = Plack::App::File::CaseInsensitive->new(file => 't/Foo');

test_psgi $app, sub {
my $cb = shift;
Expand All @@ -19,7 +19,7 @@ test_psgi $app, sub {
};

my $app_content_type = Plack::App::File::CaseInsensitive->new(
file => 'Changes',
file => 't/Foo',
content_type => 'text/x-changes'
);

Expand Down

0 comments on commit 302b3b8

Please sign in to comment.