Skip to content

Commit

Permalink
Merge pull request #15 from paultcochrane/pr/convert-readme-to-markdown
Browse files Browse the repository at this point in the history
Convert README to markdown
  • Loading branch information
mstratman committed Dec 31, 2015
2 parents 6fd3624 + e8804b5 commit 394db18
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 66 deletions.
65 changes: 0 additions & 65 deletions README

This file was deleted.

61 changes: 61 additions & 0 deletions README.md
@@ -0,0 +1,61 @@
# Barcode::DataMatrix - Generate data for Data Matrix barcodes

This class is used to generate data for Data Matrix barcodes. It is primarily
useful as a data source for barcode modules that do rendering, such as
`HTML::Barcode::DataMatrix`. You can easily make a version that renders an
image, PDF, or anything else.

use Barcode::DataMatrix;
my $data = Barcode::DataMatrix->new->barcode('MONKEY');
for my $row (@$data) {
print for map { $_ ? "#" : ' ' } @$row;
print "\n";
}

## Installation

The simplest way to install `Barcode::DataMatrix` is via `cpanm`:

$ cpanm Barcode::DataMatrix

One can also install from source by first cloning the repository:

$ git clone git@github.com:mstratman/Barcode-DataMatrix.git

then installing the build dependencies:

$ cpanm Module::Install::Repository Module::Install::AuthorTests

followed by the usual build and test steps:

$ perl Makefile.PL
$ make
$ make test

If all went well, you can now install the distribution by running:

$ make install

## Documentation

Detailed documentation about this distribution can be found in
`lib/Barcode/DataMatrix.pm` or be shown by simply running

$ perldoc lib/Barcode/DataMatrix.pm

## Authors

- Mons Anderson, <inthrax@gmail.com> (author of `GD::Barcode::DataMatrix`,
from which this distribution originates)

- Mark A. Stratman, <stratman@gmail.com>

## License and Copyright

Copyright 2015 the Authors listed above.

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.
2 changes: 1 addition & 1 deletion t/boilerplate.t
Expand Up @@ -40,7 +40,7 @@ sub module_boilerplate_ok {
TODO: {
local $TODO = "Need to replace the boilerplate text";

not_in_file_ok(README =>
not_in_file_ok("README.md" =>
"The README is used..." => qr/The README is used/,
"'version information here'" => qr/to provide version information/,
);
Expand Down

0 comments on commit 394db18

Please sign in to comment.