Skip to content

Commit

Permalink
Check Moo version at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmari authored and Arthur Axel 'fREW' Schmidt committed Sep 22, 2012
1 parent 68d7520 commit 2bdef63
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 11 deletions.
4 changes: 1 addition & 3 deletions lib/SQL/Translator.pm
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package SQL::Translator;

use Moo;
use Moo 1.000003;
our ( $DEFAULT_SUB, $DEBUG, $ERROR );

require 5.005;

our $VERSION = '0.11013';
$DEBUG = 0 unless defined $DEBUG;
$ERROR = "";
Expand Down
2 changes: 1 addition & 1 deletion lib/SQL/Translator/Schema.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ returns the database structure.
=cut

use Moo;
use Moo 1.000003;
use SQL::Translator::Schema::Constants;
use SQL::Translator::Schema::Procedure;
use SQL::Translator::Schema::Table;
Expand Down
2 changes: 1 addition & 1 deletion lib/SQL/Translator/Schema/Constraint.pm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ C<SQL::Translator::Schema::Constraint> is the constraint object.
=cut

use Moo;
use Moo 1.000003;
use SQL::Translator::Schema::Constants;
use SQL::Translator::Utils qw(ex2err throw);
use SQL::Translator::Role::ListAttr;
Expand Down
2 changes: 1 addition & 1 deletion lib/SQL/Translator/Schema/Field.pm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ C<SQL::Translator::Schema::Field> is the field object.
=cut

use Moo;
use Moo 1.000003;
use SQL::Translator::Schema::Constants;
use SQL::Translator::Types qw(schema_obj);
use SQL::Translator::Utils qw(parse_list_arg ex2err throw);
Expand Down
2 changes: 1 addition & 1 deletion lib/SQL/Translator/Schema/Index.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Primary and unique keys are table constraints, not indices.
=cut

use Moo;
use Moo 1.000003;
use SQL::Translator::Schema::Constants;
use SQL::Translator::Utils qw(ex2err throw);
use SQL::Translator::Role::ListAttr;
Expand Down
2 changes: 1 addition & 1 deletion lib/SQL/Translator/Schema/Procedure.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ stored procedures (and possibly other pieces of nameable SQL code?).
=cut

use Moo;
use Moo 1.000003;
use SQL::Translator::Utils qw(ex2err);
use SQL::Translator::Role::ListAttr;
use SQL::Translator::Types qw(schema_obj);
Expand Down
2 changes: 1 addition & 1 deletion lib/SQL/Translator/Schema/Table.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ C<SQL::Translator::Schema::Table> is the table object.
=cut

use Moo;
use Moo 1.000003;
use SQL::Translator::Utils qw(parse_list_arg ex2err throw);
use SQL::Translator::Types qw(schema_obj);
use SQL::Translator::Role::ListAttr;
Expand Down
2 changes: 1 addition & 1 deletion lib/SQL/Translator/Schema/Trigger.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ C<SQL::Translator::Schema::Trigger> is the trigger object.
=cut

use Moo;
use Moo 1.000003;
use SQL::Translator::Utils qw(parse_list_arg ex2err throw);
use SQL::Translator::Types qw(schema_obj);
use List::MoreUtils qw(uniq);
Expand Down
2 changes: 1 addition & 1 deletion lib/SQL/Translator/Schema/View.pm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ C<SQL::Translator::Schema::View> is the view object.
=cut

use Moo;
use Moo 1.000003;
use SQL::Translator::Utils qw(ex2err);
use SQL::Translator::Types qw(schema_obj);
use SQL::Translator::Role::ListAttr;
Expand Down

0 comments on commit 2bdef63

Please sign in to comment.