Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Commit

Permalink
Added VERSION to each package. Also moved Test.pm to RepositoryTest.p…
Browse files Browse the repository at this point in the history
…m in t directory. This is possible now that the Repository objects have real constructors
  • Loading branch information
jberger committed Mar 16, 2012
1 parent a3c58bf commit f4322ac
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 10 deletions.
2 changes: 1 addition & 1 deletion MANIFEST
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lib/Alien/Base.pm
Expand Up @@ -3,6 +3,9 @@ package Alien::Base;
use strict;
use warnings;

our $VERSION = '0.000_001';
$VERSION = eval $VERSION;

use Carp;

use File::chdir;
Expand All @@ -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;

Expand Down
8 changes: 3 additions & 5 deletions lib/Alien/Base/ModuleBuild.pm
Expand Up @@ -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/;
Expand All @@ -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
Expand All @@ -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};

Expand Down
3 changes: 3 additions & 0 deletions lib/Alien/Base/ModuleBuild/Cabinet.pm
Expand Up @@ -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/;

Expand Down
3 changes: 3 additions & 0 deletions lib/Alien/Base/ModuleBuild/File.pm
Expand Up @@ -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 : { @_ };
Expand Down
3 changes: 3 additions & 0 deletions lib/Alien/Base/ModuleBuild/Repository.pm
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions lib/Alien/Base/ModuleBuild/Repository/FTP.pm
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions lib/Alien/Base/ModuleBuild/Repository/HTTP.pm
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions lib/Alien/Base/ModuleBuild/Repository/Local.pm
Expand Up @@ -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/;
Expand Down
3 changes: 3 additions & 0 deletions lib/Alien/Base/ModuleBuild/Utils.pm
Expand Up @@ -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';
Expand Down
3 changes: 3 additions & 0 deletions lib/Alien/Base/PkgConfig.pm
Expand Up @@ -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/;

Expand Down
File renamed without changes.
6 changes: 5 additions & 1 deletion t/repository.t
Expand Up @@ -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',
Expand Down

0 comments on commit f4322ac

Please sign in to comment.