Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added VERSION to each package. Also moved Test.pm to RepositoryTest.p…

…m in t directory. This is possible now that the Repository objects have real constructors
  • Loading branch information...
commit f4322acd1e2a02c1f5433925bba5f047f3ea316e 1 parent a3c58bf
@jberger jberger authored
View
2  MANIFEST
@@ -22,7 +22,6 @@ lib/Alien/Base/ModuleBuild/Repository.pm
lib/Alien/Base/ModuleBuild/Repository/FTP.pm
lib/Alien/Base/ModuleBuild/Repository/HTTP.pm
lib/Alien/Base/ModuleBuild/Repository/Local.pm
-lib/Alien/Base/ModuleBuild/Repository/Test.pm
lib/Alien/Base/ModuleBuild/Utils.pm
lib/Alien/Base/PkgConfig.pm
MANIFEST This list of files
@@ -37,6 +36,7 @@ t/pkgconfig.t
t/pkgconfig/gsl.pc
t/pkgconfig/test.pc
t/repository.t
+t/RepositoryTest.pm
t/system_installed/lib/MyTest.pm
t/system_installed/MANIFEST
t/utils.t
View
6 lib/Alien/Base.pm
@@ -3,6 +3,9 @@ package Alien::Base;
use strict;
use warnings;
+our $VERSION = '0.000_001';
+$VERSION = eval $VERSION;
+
use Carp;
use File::chdir;
@@ -11,9 +14,6 @@ use Scalar::Util qw/blessed/;
use Perl::OSType qw/is_os_type/;
use Config;
-our $VERSION = 0.01;
-$VERSION = eval $VERSION;
-
sub import {
my $class = shift;
View
8 lib/Alien/Base/ModuleBuild.pm
@@ -3,6 +3,9 @@ package Alien::Base::ModuleBuild;
use strict;
use warnings;
+our $VERSION = '0.000_001';
+$VERSION = eval $VERSION;
+
use parent 'Module::Build';
use Capture::Tiny qw/capture capture_merged/;
@@ -18,7 +21,6 @@ use Alien::Base::ModuleBuild::Repository;
use Alien::Base::ModuleBuild::Repository::HTTP;
use Alien::Base::ModuleBuild::Repository::FTP;
-use Alien::Base::ModuleBuild::Repository::Test;
use Alien::Base::ModuleBuild::Repository::Local;
# setup protocol specific classes
@@ -27,13 +29,9 @@ my %default_repository_class = (
default => 'Alien::Base::ModuleBuild::Repository',
http => 'Alien::Base::ModuleBuild::Repository::HTTP',
ftp => 'Alien::Base::ModuleBuild::Repository::FTP',
- test => 'Alien::Base::ModuleBuild::Repository::Test',
local => 'Alien::Base::ModuleBuild::Repository::Local',
);
-our $VERSION = 0.01;
-$VERSION = eval $VERSION;
-
our $Verbose ||= $ENV{ALIEN_VERBOSE};
our $Force ||= $ENV{ALIEN_FORCE};
View
3  lib/Alien/Base/ModuleBuild/Cabinet.pm
@@ -3,6 +3,9 @@ package Alien::Base::ModuleBuild::Cabinet;
use strict;
use warnings;
+our $VERSION = '0.000_001';
+$VERSION = eval $VERSION;
+
use Sort::Versions;
use List::MoreUtils qw/part/;
View
3  lib/Alien/Base/ModuleBuild/File.pm
@@ -3,6 +3,9 @@ package Alien::Base::ModuleBuild::File;
use strict;
use warnings;
+our $VERSION = '0.000_001';
+$VERSION = eval $VERSION;
+
sub new {
my $class = shift;
my $self = ref $_[0] ? shift : { @_ };
View
3  lib/Alien/Base/ModuleBuild/Repository.pm
@@ -3,6 +3,9 @@ package Alien::Base::ModuleBuild::Repository;
use strict;
use warnings;
+our $VERSION = '0.000_001';
+$VERSION = eval $VERSION;
+
use Carp;
use Alien::Base::ModuleBuild::File;
View
3  lib/Alien/Base/ModuleBuild/Repository/FTP.pm
@@ -3,6 +3,9 @@ package Alien::Base::ModuleBuild::Repository::FTP;
use strict;
use warnings;
+our $VERSION = '0.000_001';
+$VERSION = eval $VERSION;
+
use parent 'Alien::Base::ModuleBuild::Repository';
use Carp;
View
3  lib/Alien/Base/ModuleBuild/Repository/HTTP.pm
@@ -3,6 +3,9 @@ package Alien::Base::ModuleBuild::Repository::HTTP;
use strict;
use warnings;
+our $VERSION = '0.000_001';
+$VERSION = eval $VERSION;
+
use Carp;
use URI;
View
3  lib/Alien/Base/ModuleBuild/Repository/Local.pm
@@ -3,6 +3,9 @@ package Alien::Base::ModuleBuild::Repository::Local;
use strict;
use warnings;
+our $VERSION = '0.000_001';
+$VERSION = eval $VERSION;
+
use Carp;
use File::chdir;
use File::Copy qw/copy/;
View
3  lib/Alien/Base/ModuleBuild/Utils.pm
@@ -4,6 +4,9 @@ package Alien::Base::ModuleBuild::Utils;
use strict;
use warnings;
+our $VERSION = '0.000_001';
+$VERSION = eval $VERSION;
+
use Text::Balanced qw/extract_bracketed extract_delimited extract_multiple/;
use parent 'Exporter';
View
3  lib/Alien/Base/PkgConfig.pm
@@ -3,6 +3,9 @@ package Alien::Base::PkgConfig;
use strict;
use warnings;
+our $VERSION = '0.000_001';
+$VERSION = eval $VERSION;
+
use Carp;
use File::Basename qw/fileparse/;
View
0  lib/Alien/Base/ModuleBuild/Repository/Test.pm → t/RepositoryTest.pm
File renamed without changes
View
6 t/repository.t
@@ -2,7 +2,11 @@ use strict;
use warnings;
use Test::More;
-use Alien::Base::ModuleBuild::Repository::Test;
+
+use File::chdir;
+local $CWD = 't';
+
+require RepositoryTest;
my $default = {
protocol => 'test',
Please sign in to comment.
Something went wrong with that request. Please try again.