[Bps-public-commit] RT-Extension-ExtractCustomFieldValues branch, master, updated. 3.06_02-3-gcfc261e

Kevin Falcone falcone at bestpractical.com
Tue Mar 30 14:58:06 EDT 2010


The branch, master has been updated
       via  cfc261ef4abb906d2ed2cb6a557def115a352673 (commit)
       via  72b1b3fa8861f93ea5b4941714c42897a8a89a1c (commit)
       via  3cc2034a5c3cce133f36d463bb95a072a32f38de (commit)
      from  f3314fa32558cb72ac76b66a05f9a1587687e1d9 (commit)

Summary of changes:
 META.yml                                     |    2 +-
 SIGNATURE                                    |   14 +++++++-------
 etc/initialdata                              |   18 ++++++++++++++++++
 inc/Module/Install/RTx.pm                    |   18 +++++-------------
 inc/Module/Install/RTx/Factory.pm            |    2 +-
 lib/RT/Extension/ExtractCustomFieldValues.pm |    2 +-
 6 files changed, 33 insertions(+), 23 deletions(-)

- Log -----------------------------------------------------------------
commit 3cc2034a5c3cce133f36d463bb95a072a32f38de
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Tue Mar 30 14:28:59 2010 -0400

    dist frobbing

diff --git a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm
index a06cb6d..b780a6c 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.24';
+our $VERSION = '0.25';
 
 use FindBin;
 use File::Glob     ();
@@ -42,15 +42,16 @@ sub RTx {
         $INC{'RT.pm'} = "$RT::LocalPath/lib/RT.pm";
     } else {
         local @INC = (
-            @INC,
             $ENV{RTHOME} ? ( $ENV{RTHOME}, "$ENV{RTHOME}/lib" ) : (),
+            @INC,
             map { ( "$_/rt3/lib", "$_/lib/rt3", "$_/lib" ) } grep $_,
             @prefixes
         );
         until ( eval { require RT; $RT::LocalPath } ) {
             warn
                 "Cannot find the location of RT.pm that defines \$RT::LocalPath in: @INC\n";
-            $_ = $self->prompt("Path to your RT.pm:") or exit;
+            $_ = $self->prompt("Path to directory containing your RT.pm:") or exit;
+            $_ =~ s/\/RT\.pm$//;
             push @INC, $_, "$_/rt3/lib", "$_/lib/rt3", "$_/lib";
         }
     }
@@ -144,7 +145,6 @@ dropdb ::
         $has_etc{acl}++;
     }
     if ( -e 'etc/initialdata' ) { $has_etc{initialdata}++; }
-    if ( -e 'etc/upgrade' ) { $has_etc{upgrade}++; }
 
     $self->postamble("$postamble\n");
     unless ( $subdirs{'lib'} ) {
@@ -173,14 +173,6 @@ dropdb ::
 .
         $self->postamble("initdb ::\n$initdb\n");
         $self->postamble("initialize-database ::\n$initdb\n");
-
-        if ( $has_etc{upgrade} ) {
-            my $cmds = <<".";
-\t\$(NOECHO) \$(PERL) -Ilib -I"$local_lib_path" -I"$lib_path" -Minc::Module::Install -e"RTxInitDB(qw(upgrade))"
-.
-            $self->postamble("upgrade ::\n$cmds\n");
-        }
-        
     }
 }
 
@@ -197,4 +189,4 @@ sub RTxInit {
 
 __END__
 
-#line 311
+#line 303
diff --git a/inc/Module/Install/RTx/Factory.pm b/inc/Module/Install/RTx/Factory.pm
index cf9ad8e..23ce911 100644
--- a/inc/Module/Install/RTx/Factory.pm
+++ b/inc/Module/Install/RTx/Factory.pm
@@ -30,7 +30,7 @@ sub RTxInitDB {
         "-I$lib_path",
         "$RT::SbinPath/rt-setup-database",
         "--action"      => $action,
-        "--datadir"     => $action ne 'upgrade'? 'etc' : 'etc/upgrade',
+        "--datadir"     => "etc",
         (($action eq 'insert') ? ("--datafile"    => "etc/initialdata") : ()),
         "--dba"         => $RT::DatabaseUser,
         "--prompt-for-dba-password" => ''

commit 72b1b3fa8861f93ea5b4941714c42897a8a89a1c
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Tue Mar 30 14:49:24 2010 -0400

    document the "with code" template

diff --git a/etc/initialdata b/etc/initialdata
index 48513a2..297ceb9 100644
--- a/etc/initialdata
+++ b/etc/initialdata
@@ -65,6 +65,24 @@
 #    in the AllHeaderSearch CF
 # AllHeaderSearch|Headers|Site:\s*(\w+)
 
+# 8. If you need to dynamically build your matching, and want to trigger on headers and body
+#    and invode some arbitrary code like example 5
+# Separator=~~
+# {
+#    my $action = 'use My::Site; My::Site::SetSiteID( Ticket => $self->TicketObj, Site => $_ );';
+#
+#    for my $regex (My::Site::ValidRegexps) {
+#        for my $from ('headers', 'body') {
+#            $OUT .= join '~~',
+#                '', # CF name
+#                $from,
+#                $regex,
+#                $action;
+#            $OUT .= "\n";
+#        }
+#    }
+}
+
 EOTEXT
     }
 );

commit cfc261ef4abb906d2ed2cb6a557def115a352673
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Tue Mar 30 14:49:41 2010 -0400

    packaging for 3.06 release

diff --git a/META.yml b/META.yml
index 96240a4..fe8edbe 100644
--- a/META.yml
+++ b/META.yml
@@ -17,4 +17,4 @@ no_index:
   directory:
     - etc
     - inc
-version: 3.06_02
+version: 3.06
diff --git a/SIGNATURE b/SIGNATURE
index c7978d3..2a3c431 100644
--- a/SIGNATURE
+++ b/SIGNATURE
@@ -16,11 +16,11 @@ Hash: SHA1
 
 SHA1 b270760f2b81d90b1af17e288dfb3550bbd276dc Changes
 SHA1 886f82820ddf770056b188d08630fcaec6733ef7 MANIFEST
-SHA1 254b27820c71d62f7566d2eb7d07ec727e675419 META.yml
+SHA1 c3677a7be20e0684e9bc892d35a1b7fe37b3565e META.yml
 SHA1 f013590b3c0a1352ed91bbf307355a1328c5bb08 Makefile.PL
 SHA1 f61f232f85c36443b6f6beed2a1b28fbf8593f90 README
 SHA1 b71e9e490e7d57baa7685bc573b8fd2ad27eb2e6 UPGRADING
-SHA1 8e4bd35b5d8065accfe7c1ae43aeae04b73cbc5d etc/initialdata
+SHA1 da3b78feb11e00f7c2fa7f5457a021d7ba2c88bd etc/initialdata
 SHA1 3020b3efc6bc071b208d5f26391c44d7b7a42259 etc/upgrade/3.06/content
 SHA1 fd5f3c4f0418efee3b9b16cf8c3902e8374909df inc/Module/Install.pm
 SHA1 7cd7c349afdf3f012e475507b1017bdfa796bfbd inc/Module/Install/Base.pm
@@ -28,18 +28,18 @@ SHA1 ba186541bbf6439111f01fc70769cf24d22869bf inc/Module/Install/Can.pm
 SHA1 aaa50eca0d7751db7a4d953fac9bc72c6294e238 inc/Module/Install/Fetch.pm
 SHA1 3e83972921d54198d1246f7278f08664006cd65d inc/Module/Install/Makefile.pm
 SHA1 12bf1867955480d47d5171a9e9c6a96fabe0b58f inc/Module/Install/Metadata.pm
-SHA1 4c845c66385929c9d080228ddf2e730066b310d3 inc/Module/Install/RTx.pm
+SHA1 2413ca41147a627685ccfa3a11b3a8f591c6787f inc/Module/Install/RTx.pm
 SHA1 449e998bb26b566ce352948ae08906f3448ebcba inc/Module/Install/RTx/Factory.pm
 SHA1 a615bb050ca0b2d79bfa0224addcb83019a53b09 inc/Module/Install/ReadmeFromPod.pm
 SHA1 f7ee667e878bd2faf22ee9358a7b5a2cc8e91ba4 inc/Module/Install/Win32.pm
 SHA1 8ed29d6cf217e0977469575d788599cbfb53a5ca inc/Module/Install/WriteAll.pm
 SHA1 51d7e1d8195ac55b41a327a53410b607c9e8e9b9 lib/RT/Action/ExtractCustomFieldValues.pm
 SHA1 35bfa9e18fd95282b04a519b1b4702984e5f4fe8 lib/RT/Action/ExtractCustomFieldValuesWithCodeInTemplate.pm
-SHA1 b7eb933d9059d3c84c067595593a48e6a22288ba lib/RT/Extension/ExtractCustomFieldValues.pm
+SHA1 c73dbd6994902eff2e736d6deb65f37df94b04a7 lib/RT/Extension/ExtractCustomFieldValues.pm
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.10 (Darwin)
 
-iEYEARECAAYFAkrCHT0ACgkQ0+gKWp5CJQqAggCgyJt0igGudyT1nD+2dN2fzg7z
-JiAAoOxI4mIIKnnkHKjjQ41IfcAwrzsS
-=WIRO
+iEYEARECAAYFAkuyR80ACgkQ0+gKWp5CJQq89wCgta+OFDe9JNDqzBSK+BzW+tyI
+piYAoMSTNNQJyMH8QxI138Erwi49vhQn
+=22d0
 -----END PGP SIGNATURE-----
diff --git a/lib/RT/Extension/ExtractCustomFieldValues.pm b/lib/RT/Extension/ExtractCustomFieldValues.pm
index b7044e3..4fa7a33 100644
--- a/lib/RT/Extension/ExtractCustomFieldValues.pm
+++ b/lib/RT/Extension/ExtractCustomFieldValues.pm
@@ -9,7 +9,7 @@ RT::Extension::ExtractCustomFieldValues - extract CF values from email headers o
 
 =cut
 
-our $VERSION = '3.06_02';
+our $VERSION = '3.06';
 
 1;
 

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



More information about the Bps-public-commit mailing list