add stuffs
skaufman [Mon, 23 Jan 2012 21:21:25 +0000 (21:21 +0000)]
.gitignore [new file with mode: 0644]
Makefile.PL [new file with mode: 0644]
t/00compile.t [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..c77f485
--- /dev/null
@@ -0,0 +1,4 @@
+MANIFEST
+MYMETA.*
+Makefile
+Catalyst-TraitFor-Model-DBIC-Schema-SharedDatabaseConnection-*
diff --git a/Makefile.PL b/Makefile.PL
new file mode 100644 (file)
index 0000000..18759bb
--- /dev/null
@@ -0,0 +1,50 @@
+
+use strict;
+use warnings;
+
+
+
+use ExtUtils::MakeMaker 6.30;
+
+
+
+my %WriteMakefileArgs = (
+  "ABSTRACT" => "Catalyst Model DBIC Trait for sharing a database connection across multiple Models.",
+  "AUTHOR" => "Samuel Kaufman <sam\@socialflow.com>",
+  "BUILD_REQUIRES" => {
+    "Test::More" => 0
+  },
+  "CONFIGURE_REQUIRES" => {
+    "ExtUtils::MakeMaker" => "6.30"
+  },
+  "DISTNAME" => "Catalyst-TraitFor-Model-DBIC-Schema-SharedDatabaseConnection",
+  "LICENSE" => "restrictive",
+  "NAME" => "Catalyst::TraitFor::Model::DBIC::Schema::SharedDatabaseConnection",
+  "PREREQ_PM" => {
+    "Moose::Role" => 0,
+  },
+  "VERSION" => "0.01",
+  "test" => {
+    "TESTS" => "t/*.t"
+  }
+);
+
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
+  my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
+  my $pp = $WriteMakefileArgs{PREREQ_PM};
+  for my $mod ( keys %$br ) {
+    if ( exists $pp->{$mod} ) {
+      $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
+    }
+    else {
+      $pp->{$mod} = $br->{$mod};
+    }
+  }
+}
+
+delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
+  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
+
+WriteMakefile(%WriteMakefileArgs);
+
diff --git a/t/00compile.t b/t/00compile.t
new file mode 100644 (file)
index 0000000..17286a6
--- /dev/null
@@ -0,0 +1,5 @@
+use strict;
+use warnings;
+use Test::More;
+use_ok 'Catalyst::TraitFor::Model::DBIC::Schema::SharedDatabaseConnection';
+done_testing;