[Bps-public-commit] Shipwright branch, master, updated. cf23a08e7d8acec3e4a8bd70321a384fd61af74f

? sunnavy sunnavy at bestpractical.com
Tue Dec 14 05:15:52 EST 2010


The branch, master has been updated
       via  cf23a08e7d8acec3e4a8bd70321a384fd61af74f (commit)
       via  aa980dceaae9789bd960b487d2d7e96d14f817de (commit)
       via  cb1f95e666eced8517c201987a7d845c300a48b7 (commit)
       via  026bbdbdb42615add05463030164690720ea48c2 (commit)
       via  ae42ac5c5d910d969bc42685f973821688fc572d (commit)
       via  3511b90e556e647fb95a5b0615113bfe899bb7b6 (commit)
      from  31706a7f2a4c5fba18ef7a2f589359998d0d8d21 (commit)

Summary of changes:
 Changes                                    |   13 +++++++++++++
 META.yml                                   |    4 +++-
 Makefile.PL                                |    1 +
 lib/Shipwright.pm                          |    4 ++--
 lib/Shipwright/Backend/Base.pm             |    2 +-
 lib/Shipwright/{Script/Help.pm => Base.pm} |   21 +++++++++++----------
 lib/Shipwright/Script.pm                   |    2 +-
 lib/Shipwright/Script/Defaultbranch.pm     |    2 +-
 lib/Shipwright/Script/Delete.pm            |    2 +-
 lib/Shipwright/Script/Flags.pm             |    2 +-
 lib/Shipwright/Script/Import.pm            |    2 +-
 lib/Shipwright/Script/Ktf.pm               |    2 +-
 lib/Shipwright/Script/List.pm              |    2 +-
 lib/Shipwright/Script/Maintain.pm          |    2 +-
 lib/Shipwright/Script/Requires.pm          |    2 +-
 lib/Shipwright/Script/Update.pm            |    2 +-
 lib/Shipwright/Source/Base.pm              |    2 +-
 17 files changed, 42 insertions(+), 25 deletions(-)
 copy lib/Shipwright/{Script/Help.pm => Base.pm} (62%)

- Log -----------------------------------------------------------------
commit 3511b90e556e647fb95a5b0615113bfe899bb7b6
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Dec 14 18:07:10 2010 +0800

    update package file for version 2.4.18

diff --git a/META.yml b/META.yml
index 405f726..45c9905 100644
--- a/META.yml
+++ b/META.yml
@@ -53,4 +53,4 @@ requires:
 resources:
   license: http://dev.perl.org/licenses/
   repository: git://github.com/bestpractical/shipwright.git
-version: 2.004017
+version: 2.004018
diff --git a/lib/Shipwright.pm b/lib/Shipwright.pm
index 9457982..cd82e6c 100644
--- a/lib/Shipwright.pm
+++ b/lib/Shipwright.pm
@@ -2,7 +2,7 @@ package Shipwright;
 
 use warnings;
 use strict;
-use version; our $VERSION = qv('2.4.17');
+use version; our $VERSION = qv('2.4.18');
 
 use base qw/Class::Accessor::Fast/;
 

commit ae42ac5c5d910d969bc42685f973821688fc572d
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Dec 14 18:07:59 2010 +0800

    changes of 2.4.18

diff --git a/Changes b/Changes
index 81a39de..0413b5a 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,14 @@
 Revision history for Shipwright
 
+2.4.18 Fri Dec 10 02:49:24 UTC 2010
+
+* use order.yml to get imported list(previously used map.yml and source.yml,
+     which is wrong ).
+* pod/doc fixes thanks to sartak++
+* build_script can be either build or build.pl in import cmd
+* don't show updated msg if there are no updates in update cmd
+* more doc
+
 2.4.17 Thu Oct 28 00:16:07 UTC 2010
 
 * split test_requires out of build_requires

commit 026bbdbdb42615add05463030164690720ea48c2
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Dec 14 18:08:51 2010 +0800

    use Class::XSAccessor::Compat if possible

diff --git a/lib/Shipwright.pm b/lib/Shipwright.pm
index cd82e6c..8386a89 100644
--- a/lib/Shipwright.pm
+++ b/lib/Shipwright.pm
@@ -4,7 +4,7 @@ use warnings;
 use strict;
 use version; our $VERSION = qv('2.4.18');
 
-use base qw/Class::Accessor::Fast/;
+use base qw/Shipwright::Base/;
 
 __PACKAGE__->mk_accessors(qw/backend source build log_level log_file/);
 
diff --git a/lib/Shipwright/Backend/Base.pm b/lib/Shipwright/Backend/Base.pm
index 3340a55..4f50d75 100644
--- a/lib/Shipwright/Backend/Base.pm
+++ b/lib/Shipwright/Backend/Base.pm
@@ -12,7 +12,7 @@ use Module::Info;
 
 our %REQUIRE_OPTIONS = ( import => [qw/source/] );
 
-use base qw/Class::Accessor::Fast/;
+use base qw/Shipwright::Base/;
 __PACKAGE__->mk_accessors(qw/repository log/);
 
 =head1 NAME
diff --git a/lib/Shipwright/Base.pm b/lib/Shipwright/Base.pm
new file mode 100644
index 0000000..dfe8e43
--- /dev/null
+++ b/lib/Shipwright/Base.pm
@@ -0,0 +1,30 @@
+package Shipwright::Base;
+
+use warnings;
+use strict;
+
+our @ISA;
+BEGIN {
+    eval { require Class::XSAccessor::Compat };
+    push @ISA, $@ ? 'Class::Accessor::Fast' : 'Class::XSAccessor::Compat' ;
+}
+
+=head1 NAME
+
+Shipwright::Base - Base
+
+1;
+
+__END__
+
+=head1 AUTHORS
+
+sunnavy  C<< <sunnavy at bestpractical.com> >>
+
+=head1 LICENCE AND COPYRIGHT
+
+Shipwright is Copyright 2007-2010 Best Practical Solutions, LLC.
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
+
diff --git a/lib/Shipwright/Script.pm b/lib/Shipwright/Script.pm
index 72626dd..68f48a6 100644
--- a/lib/Shipwright/Script.pm
+++ b/lib/Shipwright/Script.pm
@@ -3,7 +3,7 @@ use strict;
 use warnings;
 use App::CLI;
 use Shipwright::Util;
-use base qw/App::CLI Class::Accessor::Fast/;
+use base qw/App::CLI Shipwright::Base/;
 
 __PACKAGE__->mk_accessors(qw/repository log_file log_level/);
 
diff --git a/lib/Shipwright/Script/Defaultbranch.pm b/lib/Shipwright/Script/Defaultbranch.pm
index b773497..44d6cc4 100644
--- a/lib/Shipwright/Script/Defaultbranch.pm
+++ b/lib/Shipwright/Script/Defaultbranch.pm
@@ -3,7 +3,7 @@ use strict;
 use warnings;
 use Shipwright::Util;
 
-use base qw/App::CLI::Command Class::Accessor::Fast Shipwright::Script/;
+use base qw/App::CLI::Command Shipwright::Base Shipwright::Script/;
 
 use Shipwright;
 
diff --git a/lib/Shipwright/Script/Delete.pm b/lib/Shipwright/Script/Delete.pm
index f0942e1..3bc55fb 100644
--- a/lib/Shipwright/Script/Delete.pm
+++ b/lib/Shipwright/Script/Delete.pm
@@ -3,7 +3,7 @@ package Shipwright::Script::Delete;
 use strict;
 use warnings;
 
-use base qw/App::CLI::Command Class::Accessor::Fast Shipwright::Script/;
+use base qw/App::CLI::Command Shipwright::Base Shipwright::Script/;
 __PACKAGE__->mk_accessors(qw/unreferenced check_only/);
 
 use Shipwright;
diff --git a/lib/Shipwright/Script/Flags.pm b/lib/Shipwright/Script/Flags.pm
index 8d01aed..07228ce 100644
--- a/lib/Shipwright/Script/Flags.pm
+++ b/lib/Shipwright/Script/Flags.pm
@@ -4,7 +4,7 @@ use strict;
 use warnings;
 use Shipwright::Util;
 
-use base qw/App::CLI::Command Class::Accessor::Fast Shipwright::Script/;
+use base qw/App::CLI::Command Shipwright::Base Shipwright::Script/;
 __PACKAGE__->mk_accessors(qw/add delete set mandatory/);
 
 use Shipwright;
diff --git a/lib/Shipwright/Script/Import.pm b/lib/Shipwright/Script/Import.pm
index 6da10f8..bd1aa06 100644
--- a/lib/Shipwright/Script/Import.pm
+++ b/lib/Shipwright/Script/Import.pm
@@ -3,7 +3,7 @@ package Shipwright::Script::Import;
 use strict;
 use warnings;
 
-use base qw/App::CLI::Command Class::Accessor::Fast Shipwright::Script/;
+use base qw/App::CLI::Command Shipwright::Base Shipwright::Script/;
 __PACKAGE__->mk_accessors(
     qw/comment no_follow build_script require_yml include_dual_lifed
       name test_script extra_tests overwrite min_perl_version skip version as
diff --git a/lib/Shipwright/Script/Ktf.pm b/lib/Shipwright/Script/Ktf.pm
index 63ed7fc..41ae1de 100644
--- a/lib/Shipwright/Script/Ktf.pm
+++ b/lib/Shipwright/Script/Ktf.pm
@@ -4,7 +4,7 @@ use strict;
 use warnings;
 use Shipwright::Util;
 
-use base qw/App::CLI::Command Class::Accessor::Fast Shipwright::Script/;
+use base qw/App::CLI::Command Shipwright::Base Shipwright::Script/;
 __PACKAGE__->mk_accessors(qw/set delete/);
 
 use Shipwright;
diff --git a/lib/Shipwright/Script/List.pm b/lib/Shipwright/Script/List.pm
index 76d0302..1fd7af0 100644
--- a/lib/Shipwright/Script/List.pm
+++ b/lib/Shipwright/Script/List.pm
@@ -4,7 +4,7 @@ use strict;
 use warnings;
 use Shipwright::Util;
 
-use base qw/App::CLI::Command Class::Accessor::Fast Shipwright::Script/;
+use base qw/App::CLI::Command Shipwright::Base Shipwright::Script/;
 __PACKAGE__->mk_accessors(qw/with_latest_version only_update/);
 
 use Shipwright;
diff --git a/lib/Shipwright/Script/Maintain.pm b/lib/Shipwright/Script/Maintain.pm
index 3aa40c4..7e5a6c1 100644
--- a/lib/Shipwright/Script/Maintain.pm
+++ b/lib/Shipwright/Script/Maintain.pm
@@ -4,7 +4,7 @@ use strict;
 use warnings;
 use Shipwright::Util;
 
-use base qw/App::CLI::Command Class::Accessor::Fast Shipwright::Script/;
+use base qw/App::CLI::Command Shipwright::Base Shipwright::Script/;
 __PACKAGE__->mk_accessors(
     qw/update_order update_refs graph_deps skip_recommends 
       skip_build_requires skip_requires skip_test_requires for_dists/
diff --git a/lib/Shipwright/Script/Requires.pm b/lib/Shipwright/Script/Requires.pm
index 113d2ce..f2ae59d 100644
--- a/lib/Shipwright/Script/Requires.pm
+++ b/lib/Shipwright/Script/Requires.pm
@@ -3,7 +3,7 @@ package Shipwright::Script::Requires;
 use strict;
 use warnings;
 
-use base qw/App::CLI::Command Class::Accessor::Fast Shipwright::Script/;
+use base qw/App::CLI::Command Shipwright::Base Shipwright::Script/;
 __PACKAGE__->mk_accessors(
     qw/skip skip_recommends skip_all_recommends version as_graph min_perl_version
       include_dual_lifed/
diff --git a/lib/Shipwright/Script/Update.pm b/lib/Shipwright/Script/Update.pm
index a75c393..47234eb 100644
--- a/lib/Shipwright/Script/Update.pm
+++ b/lib/Shipwright/Script/Update.pm
@@ -3,7 +3,7 @@ package Shipwright::Script::Update;
 use strict;
 use warnings;
 
-use base qw/App::CLI::Command Class::Accessor::Fast Shipwright::Script/;
+use base qw/App::CLI::Command Shipwright::Base Shipwright::Script/;
 __PACKAGE__->mk_accessors(
     qw/all follow builder utility inc version only_sources as add_deps delete_deps/
 );
diff --git a/lib/Shipwright/Source/Base.pm b/lib/Shipwright/Source/Base.pm
index c25c628..a8137bc 100644
--- a/lib/Shipwright/Source/Base.pm
+++ b/lib/Shipwright/Source/Base.pm
@@ -11,7 +11,7 @@ use Cwd qw/getcwd/;
 use File::Copy::Recursive qw/rcopy/;
 use UNIVERSAL::require;
 
-use base qw/Class::Accessor::Fast/;
+use base qw/Shipwright::Base/;
 __PACKAGE__->mk_accessors(
     qw/source directory scripts_directory download_directory follow
       min_perl_version map_path skip map skip_recommends skip_all_recommends

commit cb1f95e666eced8517c201987a7d845c300a48b7
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Dec 14 18:10:34 2010 +0800

    bump to 2.4.19

diff --git a/Changes b/Changes
index 0413b5a..a321957 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,7 @@
 Revision history for Shipwright
 
+2.4.19
+
 2.4.18 Fri Dec 10 02:49:24 UTC 2010
 
 * use order.yml to get imported list(previously used map.yml and source.yml,
diff --git a/META.yml b/META.yml
index 45c9905..eda6aef 100644
--- a/META.yml
+++ b/META.yml
@@ -53,4 +53,4 @@ requires:
 resources:
   license: http://dev.perl.org/licenses/
   repository: git://github.com/bestpractical/shipwright.git
-version: 2.004018
+version: 2.004019
diff --git a/lib/Shipwright.pm b/lib/Shipwright.pm
index 8386a89..cc191f2 100644
--- a/lib/Shipwright.pm
+++ b/lib/Shipwright.pm
@@ -2,7 +2,7 @@ package Shipwright;
 
 use warnings;
 use strict;
-use version; our $VERSION = qv('2.4.18');
+use version; our $VERSION = qv('2.4.19');
 
 use base qw/Shipwright::Base/;
 

commit aa980dceaae9789bd960b487d2d7e96d14f817de
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Dec 14 18:12:28 2010 +0800

    recommends Class::XSAccessor::Compat

diff --git a/META.yml b/META.yml
index eda6aef..1508f89 100644
--- a/META.yml
+++ b/META.yml
@@ -21,6 +21,8 @@ no_index:
     - share
     - t
     - xt
+recommends:
+  Class::XSAccessor::Compat: 0
 requires:
   Algorithm::Dependency::Ordered: 0
   Algorithm::Dependency::Source::HoA: 0
diff --git a/Makefile.PL b/Makefile.PL
index b432bac..23927c8 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -14,6 +14,7 @@ requires 'Algorithm::Dependency::Source::HoA' => 0;
 requires 'CPAN' => 1.9205;
 requires 'CPAN::DistnameInfo' => 0;
 requires 'Class::Accessor::Fast' => 0;
+recommends 'Class::XSAccessor::Compat' => 0;
 requires 'File::Temp' => 0.18;
 requires 'File::Copy' => 0;
 requires 'File::Copy::Recursive' => 0;

commit cf23a08e7d8acec3e4a8bd70321a384fd61af74f
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Dec 14 18:15:21 2010 +0800

    note the support of Class::XSAccessor::Compate

diff --git a/Changes b/Changes
index a321957..863d313 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,8 @@ Revision history for Shipwright
 
 2.4.19
 
+* use Class::XSAccessor::Compat if possible
+
 2.4.18 Fri Dec 10 02:49:24 UTC 2010
 
 * use order.yml to get imported list(previously used map.yml and source.yml,

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list