[Bps-public-commit] rt-extension-spawnlinkedticketinqueue branch, master, updated. 0.01_01-2-g0b470a1

Ruslan Zakirov ruz at bestpractical.com
Fri Sep 11 21:06:10 EDT 2009


The branch, master has been updated
       via  0b470a1918f308bb1fb3c470e6c1a495291ab534 (commit)
       via  f2f8cafa57ca8ae9a0e6c5f483b123749e4f5d4e (commit)
      from  65a21ccf4ffd536edfa725cacd9ce13af6a3751e (commit)

Summary of changes:
 MANIFEST                                     |    6 +-
 MANIFEST.SKIP                                |    2 +
 META.yml                                     |    5 +-
 Makefile.PL                                  |    5 +-
 README                                       |   76 +++++++++++++++---
 inc/Module/Install/RTx.pm                    |   11 +++-
 inc/Module/Install/ReadmeFromPod.pm          |   36 +++++++++
 lib/RT/Extension/SpawnLinkedTicketInQueue.pm |  105 +++++--------------------
 8 files changed, 139 insertions(+), 107 deletions(-)
 create mode 100644 inc/Module/Install/ReadmeFromPod.pm

- Log -----------------------------------------------------------------
commit f2f8cafa57ca8ae9a0e6c5f483b123749e4f5d4e
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Sat Sep 12 05:03:41 2009 +0400

    update docs and things related to releng
    
    docs
    readme_from_pod
    MANIFEST[.SKIP]
    META

diff --git a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm
index 20a354b..a06cb6d 100644
--- a/inc/Module/Install/RTx.pm
+++ b/inc/Module/Install/RTx.pm
@@ -144,6 +144,7 @@ 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'} ) {
@@ -172,6 +173,14 @@ 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");
+        }
+        
     }
 }
 
@@ -188,4 +197,4 @@ sub RTxInit {
 
 __END__
 
-#line 302
+#line 311
diff --git a/inc/Module/Install/ReadmeFromPod.pm b/inc/Module/Install/ReadmeFromPod.pm
new file mode 100644
index 0000000..41222fa
--- /dev/null
+++ b/inc/Module/Install/ReadmeFromPod.pm
@@ -0,0 +1,36 @@
+#line 1
+package Module::Install::ReadmeFromPod;
+
+use strict;
+use warnings;
+use base qw(Module::Install::Base);
+use vars qw($VERSION);
+
+$VERSION = '0.06';
+
+sub readme_from {
+  my $self = shift;
+  return unless $Module::Install::AUTHOR;
+  my $file = shift || return;
+  my $clean = shift;
+  require Pod::Text;
+  my $parser = Pod::Text->new();
+  open README, '> README' or die "$!\n";
+  $parser->output_fh( *README );
+  $parser->parse_file( $file );
+  return 1 unless $clean;
+  $self->postamble(<<"END");
+distclean :: license_clean
+
+license_clean:
+\t\$(RM_F) README
+END
+  return 1;
+}
+
+'Readme!';
+
+__END__
+
+#line 89
+

commit 0b470a1918f308bb1fb3c470e6c1a495291ab534
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Sat Sep 12 05:05:24 2009 +0400

    real update of docs and releng things

diff --git a/MANIFEST b/MANIFEST
index 376029b..194e595 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -8,13 +8,13 @@ inc/Module/Install/Base.pm
 inc/Module/Install/Can.pm
 inc/Module/Install/Fetch.pm
 inc/Module/Install/Include.pm
-inc/Module/Install/Makefile.pm
 inc/Module/Install/Metadata.pm
+inc/Module/Install/ReadmeFromPod.pm
 inc/Module/Install/RTx.pm
 inc/Module/Install/Win32.pm
 inc/Module/Install/WriteAll.pm
 lib/RT/Extension/SpawnLinkedTicketInQueue.pm
-Makefile.PL
-MANIFEST
+MANIFEST			This list of files
 META.yml
+pm_to_blib
 README
diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP
index abd2f67..e9e784a 100644
--- a/MANIFEST.SKIP
+++ b/MANIFEST.SKIP
@@ -3,3 +3,5 @@ MANIFEST.SKIP
 Makefile
 .git
 .bak
+pm_to_blib/
+blib/
diff --git a/META.yml b/META.yml
index 176bb25..34adcf7 100644
--- a/META.yml
+++ b/META.yml
@@ -1,10 +1,9 @@
 ---
-abstract: "[One line description of module's purpose here]"
+abstract: 'quickly spawn linked tickets in different queues'
 author:
   - 'Kevin Falcone <falcone at bestpractical.com>'
 build_requires:
   ExtUtils::MakeMaker: 6.42
-  Test::More: 0
 configure_requires:
   ExtUtils::MakeMaker: 6.42
 distribution_type: module
@@ -18,6 +17,8 @@ no_index:
   directory:
     - html
     - inc
+requires:
+  perl: 5.8.3
 resources:
   license: http://opensource.org/licenses/gpl-license.php
 version: 0.01_01
diff --git a/Makefile.PL b/Makefile.PL
index 9ce4edd..006e6f0 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -2,11 +2,8 @@ use inc::Module::Install;
 
 RTx('RT-Extension-SpawnLinkedTicketInQueue');
 all_from 'lib/RT/Extension/SpawnLinkedTicketInQueue.pm';
-author   'Kevin Falcone <falcone at bestpractical.com>';
-
-build_requires 'Test::More';
+readme_from 'lib/RT/Extension/SpawnLinkedTicketInQueue.pm';
 
 auto_install;
-
 WriteAll;
 
diff --git a/README b/README
index 8523f02..d2016ee 100644
--- a/README
+++ b/README
@@ -1,19 +1,69 @@
-RT-Extension-SpawnLinkedTicketInQueue version 0.0.1
+NAME
+    RT::Extension::SpawnLinkedTicketInQueue - quickly spawn linked tickets
+    in different queues
 
-How to install:
+SYNOPSIS
+        # in RT_SiteConfig
+        Set(@Plugins,
+            ... other plugins ...,
+            'RT::Extension::SpawnLinkedTicketInQueue',
+        );
 
-1. perl Makefile.PL
-2. make
-3. make install (may need root permissions)
-4. Edit your /opt/rt3/etc/RT_SiteConfig.pm 
-    Set(@Plugins, qw(RT::Extension::SpawnLinkedTicketInQueue));
-5. rm -rf /opt/rt3/var/mason_data/obj
-6. Restart your webserver
+DESCRIPTION
+    After installing this extension, on ticket's page in the Links block you
+    should see new controls.
 
-COPYRIGHT AND LICENCE
+INSTALLATION
+    Use RTHOME environment variable if RT is not in default /opt/rt3 path.
+    Otherwise commands are usual:
 
-Copyright (C) 2009, Best Practical Solutions LLC.
+        perl Makefile.PL
+        make
+        make install (may need root permissions)
 
-This module is free software; you can redistribute it and/or
-modify it under the terms of version 2 of the GNU General Public License.
+    Change config according to "SYNOPSIS".
+
+    Flush mason cache:
+
+        rm -rf /opt/rt3/var/mason_data/obj
+
+    Stop and start webserver.
+
+BUGS AND LIMITATIONS
+    No bugs have been reported.
+
+    Please report any bugs or feature requests to
+    "bug-rt-extension-spawnlinkedticket at rt.cpan.org", or through the web
+    interface at <http://rt.cpan.org>.
+
+AUTHOR
+    Kevin Falcone <falcone at bestpractical.com>
+
+LICENCE AND COPYRIGHT
+    Copyright (c) 2009, Best Practical Solutions, LLC. All rights reserved.
+
+    This module is free software; you can redistribute it and/or modify it
+    under the terms of version 2 of the GNU General Public License.
+
+DISCLAIMER OF WARRANTY
+    BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+    FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+    OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+    PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
+    EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
+    ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
+    YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
+    NECESSARY SERVICING, REPAIR, OR CORRECTION.
+
+    IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+    WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+    REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE
+    TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
+    CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+    SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+    RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+    FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+    SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+    DAMAGES.
 
diff --git a/lib/RT/Extension/SpawnLinkedTicketInQueue.pm b/lib/RT/Extension/SpawnLinkedTicketInQueue.pm
index 6f9fec5..ea0fb2d 100644
--- a/lib/RT/Extension/SpawnLinkedTicketInQueue.pm
+++ b/lib/RT/Extension/SpawnLinkedTicketInQueue.pm
@@ -2,117 +2,55 @@ package RT::Extension::SpawnLinkedTicketInQueue;
 
 our $VERSION = '0.01_01';
 
+use 5.008003;
 use warnings;
 use strict;
-use Carp;
-
 
 =head1 NAME
 
-RT::Extension::SpawnLinkedTicketInQueue - [One line description of module's purpose here]
-
+RT::Extension::SpawnLinkedTicketInQueue - quickly spawn linked tickets in different queues
 
 =head1 SYNOPSIS
 
-    use RT::Extension::SpawnLinkedTicketInQueue;
+    # in RT_SiteConfig
+    Set(@Plugins,
+        ... other plugins ...,
+        'RT::Extension::SpawnLinkedTicketInQueue',
+    );
 
-=for author to fill in:
-    Brief code example(s) here showing commonest usage(s).
-    This section will be as far as many users bother reading
-    so make it as educational and exeplary as possible.
-  
-  
 =head1 DESCRIPTION
 
-=for author to fill in:
-    Write a full description of the module and its features here.
-    Use subsections (=head2, =head3) as appropriate.
-
-
-=head1 METHODS
-
-=cut
-
-=head1 DIAGNOSTICS
-
-=for author to fill in:
-    List every single error and warning message that the module can
-    generate (even the ones that will "never happen"), with a full
-    explanation of each problem, one or more likely causes, and any
-    suggested remedies.
-
-=over
-
-=item C<< Error message here, perhaps with %s placeholders >>
-
-[Description of error here]
-
-=item C<< Another error message here >>
-
-[Description of error here]
+After installing this extension, on ticket's page in the Links block
+you should see new controls.
 
-[Et cetera, et cetera]
+=head1 INSTALLATION
 
-=back
+Use RTHOME environment variable if RT is not in default F</opt/rt3>
+path. Otherwise commands are usual:
 
+    perl Makefile.PL
+    make
+    make install (may need root permissions)
 
-=head1 CONFIGURATION AND ENVIRONMENT
+Change config according to L</SYNOPSIS>.
 
-=for author to fill in:
-    A full explanation of any configuration system(s) used by the
-    module, including the names and locations of any configuration
-    files, and the meaning of any environment variables or properties
-    that can be set. These descriptions must also include details of any
-    configuration language used.
-  
-RT::Extension::SpawnLinkedTicketInQueue requires no configuration files or environment variables.
-
-
-=head1 DEPENDENCIES
-
-=for author to fill in:
-    A list of all the other modules that this module relies upon,
-    including any restrictions on versions, and an indication whether
-    the module is part of the standard Perl distribution, part of the
-    module's distribution, or must be installed separately. ]
-
-None.
-
-
-=head1 INCOMPATIBILITIES
-
-=for author to fill in:
-    A list of any modules that this module cannot be used in conjunction
-    with. This may be due to name conflicts in the interface, or
-    competition for system or program resources, or due to internal
-    limitations of Perl (for example, many modules that use source code
-    filters are mutually incompatible).
-
-None reported.
+Flush mason cache:
+    
+    rm -rf /opt/rt3/var/mason_data/obj
 
+Stop and start webserver.
 
 =head1 BUGS AND LIMITATIONS
 
-=for author to fill in:
-    A list of known problems with the module, together with some
-    indication Whether they are likely to be fixed in an upcoming
-    release. Also a list of restrictions on the features the module
-    does provide: data types that cannot be handled, performance issues
-    and the circumstances in which they may arise, practical
-    limitations on the size of data sets, special cases that are not
-    (yet) handled, etc.
-
 No bugs have been reported.
 
 Please report any bugs or feature requests to
 C<bug-rt-extension-spawnlinkedticket at rt.cpan.org>, or through the web interface at
 L<http://rt.cpan.org>.
 
-
 =head1 AUTHOR
 
-Kevin Falcone  C<< <falcone at bestpractical.com> >>
-
+Kevin Falcone E<lt>falcone at bestpractical.comE<gt>
 
 =head1 LICENCE AND COPYRIGHT
 
@@ -121,7 +59,6 @@ Copyright (c) 2009, Best Practical Solutions, LLC.  All rights reserved.
 This module is free software; you can redistribute it and/or
 modify it under the terms of version 2 of the GNU General Public License.
 
-
 =head1 DISCLAIMER OF WARRANTY
 
 BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY

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



More information about the Bps-public-commit mailing list