From: Peter Rabbitson Date: Sun, 23 Sep 2012 16:27:20 +0000 (+0200) Subject: No versions in use statements - encourages shit like autorequires X-Git-Tag: v0.11013_03~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=90097ddd3b029720062c30118f05fdf3cc241cd3;p=dbsrgits%2FSQL-Translator.git No versions in use statements - encourages shit like autorequires --- diff --git a/lib/SQL/Translator.pm b/lib/SQL/Translator.pm index 9a1e235..988e117 100644 --- a/lib/SQL/Translator.pm +++ b/lib/SQL/Translator.pm @@ -1,6 +1,6 @@ package SQL::Translator; -use Moo 1.000003; +use Moo; our ( $DEFAULT_SUB, $DEBUG, $ERROR ); our $VERSION = '0.11013_02'; diff --git a/lib/SQL/Translator/Parser/XML/SQLFairy.pm b/lib/SQL/Translator/Parser/XML/SQLFairy.pm index fc128f1..91d5904 100644 --- a/lib/SQL/Translator/Parser/XML/SQLFairy.pm +++ b/lib/SQL/Translator/Parser/XML/SQLFairy.pm @@ -90,7 +90,7 @@ use base qw(Exporter); use base qw/SQL::Translator::Parser/; # Doesnt do anything at the mo! use SQL::Translator::Utils 'debug'; -use XML::LibXML 1.69; +use XML::LibXML; use XML::LibXML::XPathContext; sub parse { diff --git a/lib/SQL/Translator/Schema.pm b/lib/SQL/Translator/Schema.pm index 81e1afd..fc5f3a7 100644 --- a/lib/SQL/Translator/Schema.pm +++ b/lib/SQL/Translator/Schema.pm @@ -26,7 +26,7 @@ returns the database structure. =cut -use Moo 1.000003; +use Moo; use SQL::Translator::Schema::Constants; use SQL::Translator::Schema::Procedure; use SQL::Translator::Schema::Table; diff --git a/lib/SQL/Translator/Schema/Constraint.pm b/lib/SQL/Translator/Schema/Constraint.pm index 2f4192b..d726aa5 100644 --- a/lib/SQL/Translator/Schema/Constraint.pm +++ b/lib/SQL/Translator/Schema/Constraint.pm @@ -23,7 +23,7 @@ C is the constraint object. =cut -use Moo 1.000003; +use Moo; use SQL::Translator::Schema::Constants; use SQL::Translator::Utils qw(ex2err throw); use SQL::Translator::Role::ListAttr; diff --git a/lib/SQL/Translator/Schema/Field.pm b/lib/SQL/Translator/Schema/Field.pm index 3fec27a..d8680cb 100644 --- a/lib/SQL/Translator/Schema/Field.pm +++ b/lib/SQL/Translator/Schema/Field.pm @@ -22,7 +22,7 @@ C is the field object. =cut -use Moo 1.000003; +use Moo; use SQL::Translator::Schema::Constants; use SQL::Translator::Types qw(schema_obj); use SQL::Translator::Utils qw(parse_list_arg ex2err throw carp_ro); diff --git a/lib/SQL/Translator/Schema/Index.pm b/lib/SQL/Translator/Schema/Index.pm index 1c7769d..5363745 100644 --- a/lib/SQL/Translator/Schema/Index.pm +++ b/lib/SQL/Translator/Schema/Index.pm @@ -25,7 +25,7 @@ Primary and unique keys are table constraints, not indices. =cut -use Moo 1.000003; +use Moo; use SQL::Translator::Schema::Constants; use SQL::Translator::Utils qw(ex2err throw); use SQL::Translator::Role::ListAttr; diff --git a/lib/SQL/Translator/Schema/Procedure.pm b/lib/SQL/Translator/Schema/Procedure.pm index 1a291e3..7236f22 100644 --- a/lib/SQL/Translator/Schema/Procedure.pm +++ b/lib/SQL/Translator/Schema/Procedure.pm @@ -27,7 +27,7 @@ stored procedures (and possibly other pieces of nameable SQL code?). =cut -use Moo 1.000003; +use Moo; use SQL::Translator::Utils qw(ex2err); use SQL::Translator::Role::ListAttr; use SQL::Translator::Types qw(schema_obj); diff --git a/lib/SQL/Translator/Schema/Table.pm b/lib/SQL/Translator/Schema/Table.pm index 2f36e9b..7d2d534 100644 --- a/lib/SQL/Translator/Schema/Table.pm +++ b/lib/SQL/Translator/Schema/Table.pm @@ -19,7 +19,7 @@ C is the table object. =cut -use Moo 1.000003; +use Moo; use SQL::Translator::Utils qw(parse_list_arg ex2err throw carp_ro); use SQL::Translator::Types qw(schema_obj); use SQL::Translator::Role::ListAttr; diff --git a/lib/SQL/Translator/Schema/Trigger.pm b/lib/SQL/Translator/Schema/Trigger.pm index 7eab2af..8db8b5f 100644 --- a/lib/SQL/Translator/Schema/Trigger.pm +++ b/lib/SQL/Translator/Schema/Trigger.pm @@ -28,7 +28,7 @@ C is the trigger object. =cut -use Moo 1.000003; +use Moo; use SQL::Translator::Utils qw(parse_list_arg ex2err throw); use SQL::Translator::Types qw(schema_obj enum); use List::MoreUtils qw(uniq); diff --git a/lib/SQL/Translator/Schema/View.pm b/lib/SQL/Translator/Schema/View.pm index 421b762..c19501b 100644 --- a/lib/SQL/Translator/Schema/View.pm +++ b/lib/SQL/Translator/Schema/View.pm @@ -23,7 +23,7 @@ C is the view object. =cut -use Moo 1.000003; +use Moo; use SQL::Translator::Utils qw(ex2err); use SQL::Translator::Types qw(schema_obj); use SQL::Translator::Role::ListAttr;