Skip to content

Commit

Permalink
Switched to Moo. Fixed tests. Added bug tracker info
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Dec 6, 2020
1 parent 27a54ab commit 6106d82
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ Number-Fraction-*.tar.gz
Number-Fraction/
Number-Fraction-*/
Build
Changes
META.*
MYMETA.*
Makefile.PL
Expand Down
3 changes: 3 additions & 0 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ my $build = Module::Build->new(
url => 'https://github.com/p5-number-fraction/number-fraction.git',
web => 'https://github.com/p5-number-fraction/number-fraction',
},
bugtracker => {
web => 'https://github.com/p5-number-fraction/number-fraction/issues',
},
},
},

Expand Down
5 changes: 5 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2020-12-06 Dave Cross <[email protected]>

* Switch to Moo instead of Moose
* Added details of the bug tracker

2018-03-07 Dave Cross <[email protected]>

* Build.PL: Fix typo in Build.PL
Expand Down
4 changes: 2 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Note: this file was auto-generated by Module::Build::Compat version 0.4224
require 5.006000;
# Note: this file was auto-generated by Module::Build::Compat version 0.4231
require 5.008006;
use ExtUtils::MakeMaker;
WriteMakefile
(
Expand Down
9 changes: 5 additions & 4 deletions lib/Number/Fraction.pm
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ use strict;
use warnings;

use Carp;
use Moose;
use Moo;
use MooX::Types::MooseLike::Base qw/Int/;

our $VERSION = '2.01';
our $VERSION = '2.1.0';

my $_mixed = 0;

Expand Down Expand Up @@ -242,12 +243,12 @@ sub unimport {

has num => (
is => 'rw',
isa => 'Int',
isa => Int,
);

has den => (
is => 'rw',
isa => 'Int',
isa => Int,
);

=head2 BUILDARGS
Expand Down
1 change: 1 addition & 0 deletions t/17_arguments.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use strict;
use warnings;
use Test::More;
use Test::Warn;
use Number::Fraction;

eval "use Test::Warn";
Expand Down
1 change: 1 addition & 0 deletions t/18_mixed_numbers.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use strict;
use warnings;
use Test::More;
use Test::Warn;
use Number::Fraction ':mixed';

eval "use Test::Warn";
Expand Down

0 comments on commit 6106d82

Please sign in to comment.