Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #7 from wphillipmoore/dev/more-build-issues
Browse files Browse the repository at this point in the history
Dev/more build issues
  • Loading branch information
RyanKupfer committed Aug 29, 2015
2 parents 8ebf0e3 + 3a0f14f commit c1c38f6
Show file tree
Hide file tree
Showing 22 changed files with 47 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Venn.pm
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ use JSON::XS;
use Data::Dumper;
use Log::Log4perl;

no if $] >= 5.018, warnings => q{experimental::smartmatch};

class_has 'log_base' => (
is => 'ro',
isa => 'Str',
Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/Controller/API/v1/Assignment.pm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ use TryCatch;
use Venn::Exception qw( API::InvalidSortPair );
use Venn::Types qw(:all);

no if $] >= 5.018, warnings => q{experimental::smartmatch};

## no critic (RequireFinalReturn)

=head1 METHODS
Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/Controller/API/v1/AssignmentGroup.pm
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ use Data::Dumper;
use TryCatch;
use YAML::XS;

no if $] >= 5.018, warnings => q{experimental::smartmatch};

BEGIN {
extends qw( Venn::Controller::API::v1 );
with qw( Venn::ControllerRole::API::Results );
Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/Controller/API/v1/Placement.pm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ use Venn::Types;
use Venn::PlacementEngine;
use Data::UUID;

no if $] >= 5.018, warnings => q{experimental::smartmatch};

BEGIN {
extends qw( Venn::Controller::API::v1 );
with qw( Venn::ControllerRole::API::Results );
Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/ControllerRole/API/Results.pm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ use Moose::Role;
use YAML::XS;
use Scalar::Util qw( reftype );

no if $] >= 5.018, warnings => q{experimental::smartmatch};

=head1 METHODS
=head2 $self->simple_created($c, $result, opt $message, opt @message_args)
Expand Down
5 changes: 5 additions & 0 deletions lib/Venn/Dependencies.pm
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,11 @@ BEGIN {
'Perl::Tidy' => '20140711',
'Pod::Spell' => '1.01',
'Email::Address' => '1.892',

# Not sure how you want to annotate these...
'Data::Walk' => 0,
'Test::Most' => 0,

);
}

Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/PlacementEngine.pm
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ use Module::Pluggable
inner => 1,
;

no if $] >= 5.018, warnings => q{experimental::smartmatch};

class_has 'strategies' => (
is => 'ro',
isa => 'HashRef[Venn::PlacementEngine::Strategy]',
Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/PlacementEngine/Helper/Ports.pm
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ use List::Util qw(max);

use Venn::Exception qw(Placement::PortsExhausted);

no if $] >= 5.018, warnings => q{experimental::smartmatch};

requires qw(log definition schema request
placement_location placement_candidates);

Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/PlacementEngine/Helper/ProcessJoinClause.pm
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ use Moose::Role;
use Scalar::Util qw(reftype);
use Storable 'dclone';

no if $] >= 5.018, warnings => q{experimental::smartmatch};

=head1 METHODS
=head2 process_join_clause($join_clause, $table_alias)
Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/PlacementEngine/Result.pm
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ use Scalar::Util qw( reftype );
use MooseX::Types::Moose qw(Str ArrayRef HashRef Object Maybe);
use MooseX::Types::Structured qw(Map);

no if $] >= 5.018, warnings => q{experimental::smartmatch};

has 'strategy' => (
traits => [qw( NoSerialize )],
handles => [qw( schema generate_uuid )],
Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/PlacementEngine/Strategy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ use Venn::Exception qw(
API::InvalidRequestResource
);

no if $] >= 5.018, warnings => q{experimental::smartmatch};

has 'schema' => (
is => 'ro',
isa => 'Venn::Schema',
Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/PlacementEngine/Strategy/BiggestOutlier.pm
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ use namespace::autoclean;
use Data::Dumper;
use Scalar::Util qw(reftype);

no if $] >= 5.018, warnings => q{experimental::smartmatch};

Venn::PlacementEngine::Strategy->helpers(qw(
AvgResources
JoinCorrelateFilter
Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/ResultClass/HashRefInflatorFloatConvert.pm
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ use 5.010;
use Scalar::Util qw / reftype looks_like_number /;
#use Data::Types qw/ is_float is_int /;

no if $] >= 5.018, warnings => q{experimental::smartmatch};

# this class is designed for speed, sorry about the formatting
## no critic

Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/Schema.pm
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ use Venn::Exception qw(
Schema::InvalidVennEnv
);

no if $] >= 5.018, warnings => q{experimental::smartmatch};

# This needs to run ASAP
BEGIN {
my $venn_env = $ENV{VENN_ENV} // 'sqlite';
Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/Schema/ResultClass/HashRefInflatorFloatConvert.pm
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ use warnings;
use Scalar::Util qw / reftype looks_like_number /;
#use Data::Types qw/ is_float is_int /;

no if $] >= 5.018, warnings => q{experimental::smartmatch};

# this class is designed for speed, sorry about the formatting
## no critic

Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/Schema/ResultSet/AssignmentGroup.pm
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ use Moose;
use MooseX::NonMoose;
use namespace::autoclean;

no if $] >= 5.018, warnings => q{experimental::smartmatch};

extends 'Venn::SchemaBase::ResultSet';

=head1 METHODS
Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/SchemaBase/Result.pm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ extends 'DBIx::Class::Core';
use Scalar::Util qw( blessed reftype );
use Data::Dumper;

no if $] >= 5.018, warnings => q{experimental::smartmatch};

__PACKAGE__->load_components(qw[
Helper::Row::ToJSON
+DBIx::Class::Indexer
Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/SchemaRole/DB2Hacks.pm
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ limitations under the License.
use v5.14;
use Moose::Role;

no if $] >= 5.018, warnings => q{experimental::smartmatch};

=head2 after sqlt_deploy_hooks($source, $sqlt_schema)
Run our DB2 deploy fixes.
Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/SchemaRole/Result/GeneratorHelpers.pm
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ use Moose::Role;
use Data::Dumper;
use Lingua::EN::Inflect::Phrase;

no if $] >= 5.018, warnings => q{experimental::smartmatch};

=head2 __PACKAGE__->subproviders(\%definition)
Creates all Subprovider (P_*) and NamedResource (NR_*) DBIC classes
Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/SchemaRole/Result/Provider.pm
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ use MooseX::ClassAttribute;

use Lingua::EN::Inflect::Phrase;

no if $] >= 5.018, warnings => q{experimental::smartmatch};

class_has '__runtime_init_called' => (
is => 'rw',
isa => 'Bool',
Expand Down
2 changes: 2 additions & 0 deletions lib/Venn/SchemaRole/Result/ProviderAttributeHelpers.pm
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ use Venn::Exception qw(
API::InvalidAttribute
);

no if $] >= 5.018, warnings => q{experimental::smartmatch};

=head2 map_attributes(\%attributes)
Maps attributes to the provider.
Expand Down
2 changes: 2 additions & 0 deletions t/catalyst/provider.t
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ use Data::Dumper;
use HTTP::Request::Common qw( GET PUT POST DELETE );
use JSON::XS;

no if $] >= 5.018, warnings => q{experimental::smartmatch};

$ENV{VENN_TEST} = 1;
$ENV{VENN_IN_MEMORY} //= 1;

Expand Down

0 comments on commit c1c38f6

Please sign in to comment.