Skip to content

Commit

Permalink
Build results of c70dc98 (on master)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Jun 25, 2014
1 parent 6d2a37f commit 50e4bf3
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Revision history for MooseX-Has-Sugar

1.000002 2014-06-25T20:46:17Z
1.000002 2014-06-25T21:57:17Z

1.000001 2014-06-10T05:18:46Z
[00 Trivial]
Expand Down
4 changes: 2 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
},
"suggests" : {
"Dist::Zilla::App::Command::bakeini" : "0.001000",
"Dist::Zilla::PluginBundle::Author::KENTNL" : "2.016000"
"Dist::Zilla::PluginBundle::Author::KENTNL" : "2.016001"
}
},
"runtime" : {
Expand Down Expand Up @@ -185,7 +185,7 @@
"Dist::Zilla::Plugin::TestRelease" : "5.019",
"Dist::Zilla::Plugin::Twitter" : "0.025",
"Dist::Zilla::Plugin::UploadToCPAN" : "5.019",
"Dist::Zilla::PluginBundle::Author::KENTNL" : "2.016000",
"Dist::Zilla::PluginBundle::Author::KENTNL" : "2.016001",
"ExtUtils::MakeMaker" : "6.98",
"File::Spec::Functions" : "3.48",
"List::Util" : "1.39",
Expand Down
2 changes: 1 addition & 1 deletion META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ x_BuiltWith:
Dist::Zilla::Plugin::TestRelease: '5.019'
Dist::Zilla::Plugin::Twitter: '0.025'
Dist::Zilla::Plugin::UploadToCPAN: '5.019'
Dist::Zilla::PluginBundle::Author::KENTNL: '2.016000'
Dist::Zilla::PluginBundle::Author::KENTNL: '2.016001'
ExtUtils::MakeMaker: '6.98'
File::Spec::Functions: '3.48'
List::Util: '1.39'
Expand Down
2 changes: 1 addition & 1 deletion t/00-report-prereqs.t
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ my $static_prereqs = do { my $x = {
},
'suggests' => {
'Dist::Zilla::App::Command::bakeini' => '0.001000',
'Dist::Zilla::PluginBundle::Author::KENTNL' => '2.016000'
'Dist::Zilla::PluginBundle::Author::KENTNL' => '2.016001'
}
},
'runtime' => {
Expand Down
4 changes: 3 additions & 1 deletion t/04_values.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ can_unok( 'T4Values::CDeclareRo', qw( ro rw required lazy lazy_build coerce weak

use T4Values::DEverything;

is_deeply( T4Values::DEverything->generated, T4Values::DEverything->manual, 'All Attr Expansion' );
is_deeply( T4Values::DEverything->generated, T4Values::DEverything->manual, 'All Attr Expansion' );
is_deeply( T4Values::DEverything->generated_bare, T4Values::DEverything->manual_bare, 'All Attr Expansion: bare' );
is_deeply( T4Values::DEverything->generated_rw, T4Values::DEverything->manual_rw, 'All Attr Expansion: rw' );

can_unok( 'T4Values::DEverything', qw( ro rw required lazy lazy_build coerce weak_ref auto_deref ) );

Expand Down
7 changes: 6 additions & 1 deletion t/10_saccharin.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use lib "t/lib";
use T10Saccharin::TestPackage;

sub cr {
return T10Saccharin::TestPackage->new( roattr => 'y', rwattr => 'y' );
return T10Saccharin::TestPackage->new( roattr => 'y', MONSTER => 'y', bareattr => 'z' );
}

pass("Syntax Compiles");
Expand All @@ -44,4 +44,9 @@ isnt( exception { $i->roattr('x') }, undef, "RO works still" );
is( exception { $i->rwattr('x') }, undef, 'RW works still' );

is( $i->rwattr(), 'x', "RW Works as expected" );

isnt( exception { $i->bareattr() }, undef, "Bare has no accessors still" );

is( $i->lazyroattr(), '1', "lazy ro default works as expected" );

done_testing;
7 changes: 6 additions & 1 deletion t/lib/T10Saccharin/TestPackage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ use namespace::clean -except => 'meta';

has roattr => required ro Str;

has rwattr => required rw Str;
has rwattr => required rw Str, init_arg "MONSTER";

has bareattr => required bare Str;

has lazyroattr => lazy ro Str, default { 1 }
,;

__PACKAGE__->meta->make_immutable;

Expand Down
40 changes: 40 additions & 0 deletions t/lib/T4Values/DEverything.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ sub generated {
};
}

sub generated_bare {
{
isa => 'Str',
bare, required, lazy, lazy_build, coerce, weak_ref, auto_deref
};
}

sub generated_rw {
{
isa => 'Str',
rw, required, lazy, lazy_build, coerce, weak_ref, auto_deref
};
}

sub manual {
{
isa => 'Str',
Expand All @@ -26,5 +40,31 @@ sub manual {
};
}

sub manual_rw {
{
isa => 'Str',
is => 'rw',
required => 1,
lazy => 1,
lazy_build => 1,
coerce => 1,
weak_ref => 1,
auto_deref => 1,
};
}

sub manual_bare {
{
isa => 'Str',
is => 'bare',
required => 1,
lazy => 1,
lazy_build => 1,
coerce => 1,
weak_ref => 1,
auto_deref => 1,
};
}

1;

0 comments on commit 50e4bf3

Please sign in to comment.