diff options
author | franck cuny <franck@lumberjaph.net> | 2009-12-11 17:24:54 +0100 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2009-12-11 17:24:54 +0100 |
commit | 0053c2aec257a12a3a0b5c903eccdd7a91b7df9c (patch) | |
tree | cac3fa5e240ac0069fae2739bc1b3104cd08ca5d | |
download | kiokudb-backend-riak-0053c2aec257a12a3a0b5c903eccdd7a91b7df9c.tar.gz |
initial commit
-rw-r--r-- | .gitignore | 9 | ||||
-rw-r--r-- | .shipit | 6 | ||||
-rw-r--r-- | Changes | 4 | ||||
-rw-r--r-- | Makefile.PL | 16 | ||||
-rw-r--r-- | README | 27 | ||||
-rw-r--r-- | lib/KiokuDB/Backend/Riak.pm | 32 | ||||
-rw-r--r-- | t/00_compile.t | 4 | ||||
-rw-r--r-- | xt/02_perlcritic.t | 8 | ||||
-rw-r--r-- | xt/03_pod.t | 4 | ||||
-rw-r--r-- | xt/perlcriticrc | 2 | ||||
-rw-r--r-- | xt/run.t | 4 | ||||
-rw-r--r-- | xt/tests/Test/KiokuDB/Backend/Riak.pm | 25 |
12 files changed, 141 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8c897b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +cover_db +META.yml +Makefile +blib +inc +pm_to_blib +MANIFEST +Makefile.old +MANIFEST.SKIP \ No newline at end of file diff --git a/.shipit b/.shipit new file mode 100644 index 0000000..e28b215 --- /dev/null +++ b/.shipit @@ -0,0 +1,6 @@ +steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist +git.tagpattern = release-%v +git.push_to = release + +CheckChangeLog.files = Changes +MakeDist.destination = ~/code/distribs/ diff --git a/Changes b/Changes new file mode 100644 index 0000000..ce58250 --- /dev/null +++ b/Changes @@ -0,0 +1,4 @@ +Revision history for Perl extension KiokuDB::Backend::Riak + +0.01 Fri Dec 11 17:24:49 2009 + - original version diff --git a/Makefile.PL b/Makefile.PL new file mode 100644 index 0000000..a02feab --- /dev/null +++ b/Makefile.PL @@ -0,0 +1,16 @@ +use inc::Module::Install; +name 'KiokuDB-Backend-Riak'; +all_from 'lib/KiokuDB/Backend/Riak.pm'; + +# requires ''; +requires 'Moose'; +requires 'Test::Class'; +requires 'Test::Exception'; + +tests 't/*.t'; +author_tests 'xt'; + +build_requires 'Test::More'; +use_test_base; +auto_include; +WriteAll; diff --git a/README b/README new file mode 100644 index 0000000..5bde03a --- /dev/null +++ b/README @@ -0,0 +1,27 @@ +This is Perl module KiokuDB::Backend::Riak. + +INSTALLATION + +KiokuDB::Backend::Riak installation is straightforward. If your CPAN shell is set up, +you should just be able to do + + % cpan KiokuDB::Backend::Riak + +Download it, unpack it, then build it as per the usual: + + % perl Makefile.PL + % make && make test + +Then install it: + + % make install + +DOCUMENTATION + +KiokuDB::Backend::Riak documentation is available as in POD. So you can do: + + % perldoc KiokuDB::Backend::Riak + +to read the documentation online with your favorite pager. + +franck cuny diff --git a/lib/KiokuDB/Backend/Riak.pm b/lib/KiokuDB/Backend/Riak.pm new file mode 100644 index 0000000..daa1f73 --- /dev/null +++ b/lib/KiokuDB/Backend/Riak.pm @@ -0,0 +1,32 @@ +package KiokuDB::Backend::Riak; + +use Moose; +our $VERSION = '0.01'; + +1; +__END__ + +=head1 NAME + +KiokuDB::Backend::Riak - + +=head1 SYNOPSIS + + use KiokuDB::Backend::Riak; + +=head1 DESCRIPTION + +KiokuDB::Backend::Riak is + +=head1 AUTHOR + +franck cuny E<lt>franck.cuny {at} rtgi.frE<gt> + +=head1 SEE ALSO + +=head1 LICENSE + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut diff --git a/t/00_compile.t b/t/00_compile.t new file mode 100644 index 0000000..9427b45 --- /dev/null +++ b/t/00_compile.t @@ -0,0 +1,4 @@ +use strict; +use Test::More tests => 1; + +BEGIN { use_ok 'KiokuDB::Backend::Riak' } diff --git a/xt/02_perlcritic.t b/xt/02_perlcritic.t new file mode 100644 index 0000000..b977df8 --- /dev/null +++ b/xt/02_perlcritic.t @@ -0,0 +1,8 @@ +use strict; +use Test::More; +eval { + require Test::Perl::Critic; + Test::Perl::Critic->import( -profile => 'xt/perlcriticrc'); +}; +plan skip_all => "Test::Perl::Critic is not installed." if $@; +all_critic_ok('lib'); diff --git a/xt/03_pod.t b/xt/03_pod.t new file mode 100644 index 0000000..437887a --- /dev/null +++ b/xt/03_pod.t @@ -0,0 +1,4 @@ +use Test::More; +eval "use Test::Pod 1.00"; +plan skip_all => "Test::Pod 1.00 required for testing POD" if $@; +all_pod_files_ok(); diff --git a/xt/perlcriticrc b/xt/perlcriticrc new file mode 100644 index 0000000..fa96144 --- /dev/null +++ b/xt/perlcriticrc @@ -0,0 +1,2 @@ +[TestingAndDebugging::ProhibitNoStrict] +allow=refs diff --git a/xt/run.t b/xt/run.t new file mode 100644 index 0000000..a05d290 --- /dev/null +++ b/xt/run.t @@ -0,0 +1,4 @@ +use lib 'xt/tests'; +use Test::KiokuDB::Backend::Riak; + +Test::Class->runtests; diff --git a/xt/tests/Test/KiokuDB/Backend/Riak.pm b/xt/tests/Test/KiokuDB/Backend/Riak.pm new file mode 100644 index 0000000..0786a3e --- /dev/null +++ b/xt/tests/Test/KiokuDB/Backend/Riak.pm @@ -0,0 +1,25 @@ +package Test::KiokuDB::Backend::Riak; + +use strict; +use warnings; +use base 'Test::Class'; +use Test::Exception; +use Test::More; + +sub class { 'KiokuDB::Backend::Riak' } + +sub startup : Tests(startup => 1) { + my $test = shift; + use_ok $test->class, "use ok"; +} + +sub shutdown : Tests(shutdown) { + my $test = shift; +} + +sub constructor : Tests(1) { + my $test = shift; + can_ok $test->class, 'new'; +} + +1; |