[Bps-public-commit] rt-extension-ldapimport-multiemail branch, master, updated. aad6c1c7996acecb7b51bac5ab05949ce3603bae

Alex Vandiver alexmv at bestpractical.com
Mon Jan 27 16:08:46 EST 2014


The branch, master has been updated
       via  aad6c1c7996acecb7b51bac5ab05949ce3603bae (commit)
      from  2785e03dedee518fb96f3f93ef8cb352a33cb70a (commit)

Summary of changes:
 Changes                                   |  4 ++++
 MANIFEST                                  |  1 +
 META.yml                                  |  2 +-
 Makefile.PL                               |  2 +-
 inc/Module/Install/RTx.pm                 | 11 +++++++++--
 inc/Module/Install/ReadmeFromPod.pm       |  2 +-
 lib/RT/Extension/LDAPImport/MultiEmail.pm |  2 +-
 7 files changed, 18 insertions(+), 6 deletions(-)
 create mode 100644 Changes

- Log -----------------------------------------------------------------
commit aad6c1c7996acecb7b51bac5ab05949ce3603bae
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Jan 27 16:05:35 2014 -0500

    Packaging updates

diff --git a/Changes b/Changes
new file mode 100644
index 0000000..53cbe68
--- /dev/null
+++ b/Changes
@@ -0,0 +1,4 @@
+Revision history for RT-Extension-LDAPImport-MuliEmail
+
+0.02 - 2014-01-27
+    Initial release
diff --git a/MANIFEST b/MANIFEST
index b445214..3726af3 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,3 +1,4 @@
+Changes
 inc/Module/Install.pm
 inc/Module/Install/Base.pm
 inc/Module/Install/Can.pm
diff --git a/META.yml b/META.yml
index 38bbec2..2bda03b 100644
--- a/META.yml
+++ b/META.yml
@@ -23,4 +23,4 @@ requires:
   RT::Extension::MergeUsers: 0
 resources:
   license: http://opensource.org/licenses/gpl-license.php
-version: 0.01
+version: 0.02
diff --git a/Makefile.PL b/Makefile.PL
index 102fca9..2062bc8 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -5,7 +5,7 @@ all_from 'lib/RT/Extension/LDAPImport/MultiEmail.pm';
 readme_from 'lib/RT/Extension/LDAPImport/MultiEmail.pm';
 license  'gplv2';
 
-requires_rt("4.0.0"); # XXX should become 4.2.0
+requires_rt("4.0.0");
 requires "RT::Extension::LDAPImport";
 requires "RT::Extension::MergeUsers";
 
diff --git a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm
index abf6aea..ac04c79 100644
--- a/inc/Module/Install/RTx.pm
+++ b/inc/Module/Install/RTx.pm
@@ -8,7 +8,7 @@ no warnings 'once';
 
 use Module::Install::Base;
 use base 'Module::Install::Base';
-our $VERSION = '0.30';
+our $VERSION = '0.32';
 
 use FindBin;
 use File::Glob     ();
@@ -136,6 +136,7 @@ install ::
         $has_etc{acl}++;
     }
     if ( -e 'etc/initialdata' ) { $has_etc{initialdata}++; }
+    if ( -d 'etc/upgrade/' )    { $has_etc{upgrade}++; }
 
     $self->postamble("$postamble\n");
     unless ( $subdirs{'lib'} ) {
@@ -164,6 +165,12 @@ install ::
 .
         $self->postamble("initdb ::\n$initdb\n");
         $self->postamble("initialize-database ::\n$initdb\n");
+        if ($has_etc{upgrade}) {
+            print "To upgrade from a previous version of this extension, use 'make upgrade-database'\n";
+            my $upgradedb = qq|\t\$(NOECHO) \$(PERL) -Ilib -I"$local_lib_path" -I"$lib_path" -Minc::Module::Install -e"RTxInitDB(qw(upgrade \$(NAME) \$(VERSION)))"\n|;
+            $self->postamble("upgrade-database ::\n$upgradedb\n");
+            $self->postamble("upgradedb ::\n$upgradedb\n");
+        }
     }
 }
 
@@ -209,4 +216,4 @@ sub requires_rt {
 
 __END__
 
-#line 329
+#line 336
diff --git a/inc/Module/Install/ReadmeFromPod.pm b/inc/Module/Install/ReadmeFromPod.pm
index 6a80818..b5e03c3 100644
--- a/inc/Module/Install/ReadmeFromPod.pm
+++ b/inc/Module/Install/ReadmeFromPod.pm
@@ -7,7 +7,7 @@ use warnings;
 use base qw(Module::Install::Base);
 use vars qw($VERSION);
 
-$VERSION = '0.20';
+$VERSION = '0.22';
 
 sub readme_from {
   my $self = shift;
diff --git a/lib/RT/Extension/LDAPImport/MultiEmail.pm b/lib/RT/Extension/LDAPImport/MultiEmail.pm
index fa0ac5e..7391dff 100644
--- a/lib/RT/Extension/LDAPImport/MultiEmail.pm
+++ b/lib/RT/Extension/LDAPImport/MultiEmail.pm
@@ -2,7 +2,7 @@ use strict;
 use warnings;
 package RT::Extension::LDAPImport::MultiEmail;
 
-our $VERSION = '0.01';
+our $VERSION = '0.02';
 
 {
     no warnings 'redefine';

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



More information about the Bps-public-commit mailing list