@@ -1,21 +1,32 @@
-Revision history for Roman
+Revision history for Perl module Roman
-1.22 20 Dec 2007, Perl 20th birthday version
- Require a new version of Exporter
+1.24 2015-03-01 CHORNY
+ - Added SEE ALSO section with links to similar modules.
+ - Reformatted this file as per CPAN::Changes::Spec
+ - Improved wording of the abstract
-1.21 26 Nov 2007
- Requires 5.006 instead of 5.6.0.
- Do not subclass Exporter
+1.23 2008-12-18 CHORNY
+ - Minimum Perl version required in META.yml
+ - Perl 21st birthday version
-1.20 10 Mar 2007
- Same as 1.10_01
+1.22 2007-12-21 CHORNY
+ - Require a new version of Exporter
+ - Perl 20th birthday version
-1.10_01 06 Mar 2007
- Rewrite by Alexandr Ciornii
+1.21 2007-11-26 CHORNY
+ - Requires 5.006 instead of 5.6.0.
+ - Do not subclass Exporter
-1.10 03 Sep 1997
- Author's address is now <ozawa at aisoft.co.jp>
+1.20 2007-03-09 CHORNY
+ - Same as 1.10_01
-1.00 01 Sep 1995
+1.10_01 2007-03-06 CHORNY
+ - Rewrite by Alexandr Ciornii
+
+1.1 1997-09-03 OZAWA
+ - Author's address is now <ozawa at aisoft.co.jp>
+
+1.0 1995-09-01 OZAWA
+ - First version released to CPAN
@@ -8,3 +8,4 @@ t/00-load.t
t/01.t
t/pod-coverage.t
t/pod.t
+META.json Module JSON meta-data (added by MakeMaker)
@@ -0,0 +1,51 @@
+{
+ "abstract" : "functions for converting between Roman and Arabic numerals",
+ "author" : [
+ "Alexandr Ciornii <alexchorny AT gmail.com>"
+ ],
+ "dynamic_config" : 1,
+ "generated_by" : "ExtUtils::MakeMaker version 6.78, CPAN::Meta::Converter version 2.143240",
+ "keywords" : [
+ "roman numbers"
+ ],
+ "license" : [
+ "perl_5"
+ ],
+ "meta-spec" : {
+ "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+ "version" : "2"
+ },
+ "name" : "Roman",
+ "no_index" : {
+ "directory" : [
+ "t",
+ "inc"
+ ]
+ },
+ "prereqs" : {
+ "build" : {
+ "requires" : {
+ "ExtUtils::MakeMaker" : "0",
+ "Test::More" : "0"
+ }
+ },
+ "configure" : {
+ "requires" : {
+ "ExtUtils::MakeMaker" : "0"
+ }
+ },
+ "runtime" : {
+ "requires" : {
+ "Exporter" : "5.57",
+ "perl" : "5.006"
+ }
+ }
+ },
+ "release_status" : "stable",
+ "resources" : {
+ "repository" : {
+ "url" : "http://github.com/chorny/Roman"
+ }
+ },
+ "version" : "1.24"
+}
@@ -1,15 +1,28 @@
---- #YAML:1.0
-name: Roman
-version: 1.22
-abstract: Perl module for conversion between Roman and Arabic numerals.
-license: perl
-generated_by: ExtUtils::MakeMaker version 6.32
-distribution_type: module
-requires:
- Exporter: 5.57
- Test::More: 0
-meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.2.html
- version: 1.2
+---
+abstract: functions for converting between Roman and Arabic numerals
author:
- - Alexandr Ciornii <alexchorny AT gmail.com>
+ - 'Alexandr Ciornii <alexchorny AT gmail.com>'
+build_requires:
+ ExtUtils::MakeMaker: 0
+ Test::More: 0
+configure_requires:
+ ExtUtils::MakeMaker: 0
+dynamic_config: 1
+generated_by: 'ExtUtils::MakeMaker version 6.78, CPAN::Meta::Converter version 2.143240'
+keywords:
+ - roman numbers
+license: perl
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
+name: Roman
+no_index:
+ directory:
+ - t
+ - inc
+requires:
+ Exporter: 5.57
+ perl: 5.006
+resources:
+ repository: http://github.com/chorny/Roman
+version: 1.24
@@ -1,20 +1,63 @@
-use 5.006;
-use strict;
-use warnings;
-use ExtUtils::MakeMaker;
-
-WriteMakefile(
- NAME => 'Roman',
- AUTHOR => 'Alexandr Ciornii <alexchorny AT gmail.com>',
- VERSION_FROM => 'lib/Roman.pm',
- ABSTRACT_FROM => 'lib/Roman.pm',
- PL_FILES => {},
- PREREQ_PM => {
- 'Test::More' => 0,
- 'Exporter' => 5.57,
- },
- ($ExtUtils::MakeMaker::VERSION gt '6.30'?
- ('LICENSE' => 'perl', ) : ()),
- dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
- clean => { FILES => 'Roman-*' },
-);
+use 5.006;
+use strict;
+use warnings;
+use ExtUtils::MakeMaker;
+
+WriteMakefile1(
+ NAME => 'Roman',
+ AUTHOR => 'Alexandr Ciornii <alexchorny AT gmail.com>',
+ VERSION_FROM => 'lib/Roman.pm',
+ ABSTRACT_FROM => 'lib/Roman.pm',
+ PL_FILES => {},
+ PREREQ_PM => {
+ 'Exporter' => 5.57,
+ },
+ TEST_REQUIRES => {
+ 'Test::More' => 0,
+ },
+ 'LICENSE' => 'perl',
+ 'MIN_PERL_VERSION' => 5.006,
+ META_MERGE => {
+ resources => {
+ repository => 'http://github.com/chorny/Roman',
+ },
+ keywords => ['roman numbers',],
+ },
+ $^O =~/win/i ? (
+ dist => {
+ TAR => 'ptar',
+ TARFLAGS => '-c -C -f',
+ },
+ ) : (),
+ clean => { FILES => 'Roman-*' },
+);
+
+
+sub WriteMakefile1 { #Compatibility code for old versions of EU::MM. Written by Alexandr Ciornii, version 0.23. Added by eumm-upgrade.
+ my %params=@_;
+ my $eumm_version=$ExtUtils::MakeMaker::VERSION;
+ $eumm_version=eval $eumm_version;
+ die "EXTRA_META is deprecated" if exists $params{EXTRA_META};
+ die "License not specified" if not exists $params{LICENSE};
+ if ($params{AUTHOR} and ref($params{AUTHOR}) eq 'ARRAY' and $eumm_version < 6.5705) {
+ $params{META_ADD}->{author}=$params{AUTHOR};
+ $params{AUTHOR}=join(', ',@{$params{AUTHOR}});
+ }
+ if ($params{TEST_REQUIRES} and $eumm_version < 6.64) {
+ $params{BUILD_REQUIRES}={ %{$params{BUILD_REQUIRES} || {}} , %{$params{TEST_REQUIRES}} };
+ delete $params{TEST_REQUIRES};
+ }
+ if ($params{BUILD_REQUIRES} and $eumm_version < 6.5503) {
+ #EUMM 6.5502 has problems with BUILD_REQUIRES
+ $params{PREREQ_PM}={ %{$params{PREREQ_PM} || {}} , %{$params{BUILD_REQUIRES}} };
+ delete $params{BUILD_REQUIRES};
+ }
+ delete $params{CONFIGURE_REQUIRES} if $eumm_version < 6.52;
+ delete $params{MIN_PERL_VERSION} if $eumm_version < 6.48;
+ delete $params{META_MERGE} if $eumm_version < 6.46;
+ delete $params{META_ADD} if $eumm_version < 6.46;
+ delete $params{LICENSE} if $eumm_version < 6.31;
+
+ WriteMakefile(%params);
+}
+
@@ -1,4 +1,4 @@
-Roman.pm version 1.21
+Roman.pm version 1.23
NAME
Roman - Perl module for conversion between Roman and Arabic
@@ -54,7 +54,7 @@ You can also look for information at:
COPYRIGHT AND LICENCE
Copyright (c) 1995-1997 OZAWA Sakuro.
-Copyright (C) 2007 Alexandr Ciornii
+Copyright (C) 2007-2008 Alexandr Ciornii
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
@@ -3,15 +3,15 @@ package Roman;
use 5.006;
use strict;
use warnings;
-our $VERSION='1.22';
+our $VERSION='1.24';
=head1 NAME
-Roman - Perl module for conversion between Roman and Arabic numerals.
+Roman - functions for converting between Roman and Arabic numerals
=head1 VERSION
-Version 1.20
+Version 1.24
=cut
@@ -58,6 +58,19 @@ L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Roman>.
I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
+=head1 SEE ALSO
+
+L<Text::Roman> - also handles conversion between Arabic and Roman numerals,
+but can handle a larger range than this module.
+
+L<Math::Roman> -
+another module for converting between Arabic and Roman numerals.
+
+L<Convert::Number::Roman> - handles the same conversion, but also lets
+you specify upper or lower case.
+
+L<Roman::Unicode> - make Roman numerals, using Unicode characters.
+
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
@@ -12,8 +12,8 @@ BEGIN{
qw/V 5 X 10 L 50 C 100 D 500 M 1000 MCDXLIV 1444 MMVII 2007/
);
}
-use Test::More tests => (scalar(keys %test)*3+1);
-use_ok 'Roman';
+use Test::More tests => (scalar(keys %test)*3);
+use Roman;
while (my ($rom,$arab)=each %test) {
ok(isroman($rom),"$rom is roman");