Skip to content

Commit

Permalink
migrated to Dist::Zilla
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed Sep 6, 2013
1 parent 3ed1f3c commit e36f0fd
Show file tree
Hide file tree
Showing 14 changed files with 104 additions and 190 deletions.
1 change: 1 addition & 0 deletions ignore.txt → .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ pm_to_blib*
cover_db
pod2htm*.tmp
Catmandu-PICA-*
.build/
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: perl
perl:
- "5.19"
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"

before_install:
- git config --global user.name "TravisCI"
- git config user.email 'travis@nowhere.dne'

install:
- cpanm --quiet --notest --skip-satisfied Dist::Zilla
- dzil authordeps | grep -vP '[^\w:]' | xargs -n 5 -P 10 cpanm --quiet --notest --skip-satisfied
- dzil listdeps | grep -vP '[^\w:]' | cpanm --verbose --notest

script:
- dzil smoke --release --author

after_success:
- cpanm --quiet --notest --skip-satisfied Dist::Zilla::App::Command::cover Devel::Cover::Report::Coveralls
- dzil cover -test
- dzil cover -report coveralls

env: RELEASE_TESTING=1 AUTOMATED_TESTING=1 AUTHOR_TESTING=1
5 changes: 0 additions & 5 deletions Changes

This file was deleted.

10 changes: 0 additions & 10 deletions MANIFEST

This file was deleted.

40 changes: 0 additions & 40 deletions README

This file was deleted.

36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Catmandu::PICA - Catmandu modules for working with PICA+ data.

# Installation

Install the latest distribution from CPAN:

cpanm Catmandu::PICA

Install the latest developer version from GitHub:

cpanm git@github.com:gbv/Catmandu-PICA.git@devel

# Contribution

For bug reports and feature requests use <https://github.com/gbv/Catmandu-PICA/issues>.

For contributions to the source code create a fork or use the `devel` branch. The master
branch should only contain merged and stashed changes to appear in Changelog.

Dist::Zilla and build requirements can be installed this way:

cpan Dist::Zilla
dzil authordeps | cpanm

Build and test your current state this way:

dzil build
dzil test
dzil smoke --release --author # test more

# Status

Build and test coverage of the `devel` branch at <https://github.com/gbv/Catmandu-PICA/>:

[![Build Status](https://travis-ci.org/gbv/Catmandu-PICA.png)](https://travis-ci.org/nichtich/Catmandu-PICA)
[![Coverage Status](https://coveralls.io/repos/gbv/Catmandu-PICA/badge.png?branch=devel)](https://coveralls.io/r/nichtich/Catmandu-PICA?branch=devel)
2 changes: 2 additions & 0 deletions cpanfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requires 'Catmandu', '>= 0.7';
requires 'XML::LibXML::Reader', '>= 2.0';
29 changes: 29 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name = Catmandu-PICA
license = Perl_5
version = 0.02
copyright_year = 2013
author = Johann Rolschewski
copyright_holder = Johann Rolschewski

[@Basic]
[PodWeaver]
[OurPkgVersion]

[Prereqs::FromCPANfile]

[PruneFiles]
filename = README.md
filename = Makefile.PL
[CopyMakefilePLFromBuild]

[GithubMeta]
issues=1

[ChangelogFromGit::CPAN::Changes]
tag_regexp = ^(\d+\.\d+)$

[Git::Check]
[Git::Tag]
tag_format = %v
tag_message =
[Git::Push]
6 changes: 2 additions & 4 deletions lib/Catmandu/Fix/pica_map.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package Catmandu::Fix::pica_map;
# ABSTRACT: copy mab values of one field to a new field
# VERSION

use Catmandu::Sane;
use Catmandu::Util qw(:is :data);
Expand Down Expand Up @@ -178,10 +180,6 @@ sub pica_subfield {

1;

=head1 NAME
Catmandu::Fix::pica_map - copy mab values of one field to a new field
=head1 SYNOPSIS
# Copy from field 003@ subfield 0 to dc.identifier hash
Expand Down
21 changes: 2 additions & 19 deletions lib/Catmandu/Importer/PICA.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package Catmandu::Importer::PICA;
# ABSTRACT: Package that imports PICA+ XML data
# VERSION

use Catmandu::Sane;
use Catmandu::PICA;
Expand Down Expand Up @@ -38,9 +40,6 @@ sub generator {
die "need PICA+ XML data as input";
}
}
=head1 NAME
Catmandu::Importer::PICA - Package that imports PICA+ XML data

=head1 SYNOPSIS
Expand Down Expand Up @@ -111,20 +110,4 @@ L<Catmandu::Iterable>
=cut

=head1 AUTHOR
Johann Rolschewski, C<< <rolschewski at gmail.com> >>
=head1 LICENSE AND COPYRIGHT
Copyright 2013 Johann Rolschewski.
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
=cut

1; # End of Catmandu::Importer::PICA
34 changes: 5 additions & 29 deletions lib/Catmandu/PICA.pm
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
package Catmandu::PICA;
# ABSTRACT: Catmandu modules for working with PICA+ XML data.
# VERSION

use Carp qw< carp croak confess cluck >;
use XML::LibXML::Reader;

=head1 NAME
Catmandu::PICA - Catmandu modules for working with PICA+ XML data.
=head1 VERSION
Version 0.01
=cut

our $VERSION = '0.01';


=head1 MODULES
=over
Expand Down Expand Up @@ -126,11 +115,6 @@ sub _decode {
}


=head1 AUTHOR
Johann Rolschewski, C<< <rolschewski at gmail.com> >>
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
Expand All @@ -146,19 +130,11 @@ You can also look for information at:
LibreCat
http://librecat.org/tutorial/index.html
=head1 ACKNOWLEDGEMENTS
=head1 LICENSE AND COPYRIGHT
Copyright 2013 Johann Rolschewski.
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.
=head1 CONTRIBUTORS
See http://dev.perl.org/licenses/ for more information.
=encoding utf8
Jakob Voß <voss@gbv.de>
=cut

Expand Down
58 changes: 0 additions & 58 deletions t/boilerplate.t

This file was deleted.

13 changes: 0 additions & 13 deletions t/manifest.t

This file was deleted.

12 changes: 0 additions & 12 deletions t/pod.t

This file was deleted.

0 comments on commit e36f0fd

Please sign in to comment.