[Bps-public-commit] rt-extension-travisci branch, master, updated. 12572d7cc7b638932d80b51b904501fcf3b6f701

Dianne Skoll dianne at bestpractical.com
Wed Aug 26 15:18:21 EDT 2020


The branch, master has been updated
       via  12572d7cc7b638932d80b51b904501fcf3b6f701 (commit)
       via  2020544ed63d2c7b955b05e903249cb4ba8c1612 (commit)
      from  a36c37aa12e5a7d05d01ccf88040954f9435796c (commit)

Summary of changes:
 README                            |  10 +++
 inc/Module/Install/RTx.pm         | 172 +-------------------------------------
 inc/Module/Install/RTx/Remove.pm  |  39 ---------
 inc/Module/Install/RTx/Runtime.pm |   1 +
 4 files changed, 13 insertions(+), 209 deletions(-)
 delete mode 100644 inc/Module/Install/RTx/Remove.pm

- Log -----------------------------------------------------------------
commit 2020544ed63d2c7b955b05e903249cb4ba8c1612
Author: Dianne Skoll <dianne at bestpractical.com>
Date:   Wed Aug 26 15:17:47 2020 -0400

    Sync up README file with lib/RT/Extension/TravisCI.pm POD.

diff --git a/README b/README
index a4bef33..e600141 100644
--- a/README
+++ b/README
@@ -19,6 +19,16 @@ INSTALLATION
 
             Plugin('RT::Extension::TravisCI');
 
+    Edit your /opt/rt5/etc/RT_SiteConfig.d/TravisCI_Config.pm (creating it
+    if necessary) using the included etc/TravisCI_Config.pm as a guide.
+        The settings you are most likely to want to change are SlugPrefix,
+        which should be your organization's identifier; DefaultProject,
+        Queues and AuthToken.
+
+        You will need to generate an authentication token as documented in
+        https://medium.com/@JoshuaTheMiller/retrieving-your-travis-ci-api-ac
+        cess-token-bc706b2b625a
+
     Clear your mason cache
             rm -rf /opt/rt5/var/mason_data/obj
 

commit 12572d7cc7b638932d80b51b904501fcf3b6f701
Author: Dianne Skoll <dianne at bestpractical.com>
Date:   Wed Aug 26 15:17:59 2020 -0400

    Use Module::Install-generated inc/ directory instead of hand-installed version.

diff --git a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm
index e43d5f3..2dd9489 100644
--- a/inc/Module/Install/RTx.pm
+++ b/inc/Module/Install/RTx.pm
@@ -1,3 +1,4 @@
+#line 1
 package Module::Install::RTx;
 
 use 5.008;
@@ -312,173 +313,4 @@ sub _load_rt_handle {
 
 __END__
 
-=head1 NAME
-
-Module::Install::RTx - RT extension installer
-
-=head1 SYNOPSIS
-
-In the F<Makefile.PL> of the C<RT-Extension-Example> module:
-
-    use inc::Module::Install;
-    RTx 'RT-Extension-Example';
-
-    requires_rt '4.2.0';
-    rt_too_new  '4.4.0';
-
-    WriteAll();
-
-=head1 DESCRIPTION
-
-This B<Module::Install> extension implements several functions for
-installing RT extensions:
-
-=head2 RTx 'I<extension name>'
-
-This function arranges for the following directories to be installed, if
-they exist (assuming C<RTx('RT-Extension-Example')>):
-
-    ./bin    => $RT::LocalPluginPath/RT-Extension-Example/bin
-    ./etc    => $RT::LocalPluginPath/RT-Extension-Example/etc
-    ./html   => $RT::LocalPluginPath/RT-Extension-Example/html
-    ./lib    => $RT::LocalPluginPath/RT-Extension-Example/lib
-    ./po     => $RT::LocalPluginPath/RT-Extension-Example/po
-    ./sbin   => $RT::LocalPluginPath/RT-Extension-Example/sbin
-    ./static => $RT::LocalPluginPath/RT-Extension-Example/static
-    ./var    => $RT::LocalPluginPath/RT-Extension-Example/var
-
-Accepts an optional argument hashref after the extension name with two possible keys
-
-=head2 deprecated_rt
-
-    If set to a true value, skips the enforced RT-4.0.0 minimum version check
-
-    You should set a perl_version if using this option and requires_rt(), because requires_rt
-    only handles figuring our what perl you need if you're on RT 4.0.0 or higher.
-
-=head2 no_readme_generation
-
-    If set to a true value, will not call readme_from on the extension's primary perl module.
-
-=head2 requires_rt I<version>
-
-Takes one argument, a valid RT version. If an attempt is made to install
-on an RT than that version, it will die before Makefile creation.
-
-=head2 requires_rt_plugin I<RT::Extension::Example> [, I<version>]
-
-Ensures that the given RT extension (and optional version) is installed
-in the target RT instance; C<requires> cannot be used because RT
-extensions are not in @INC.
-
-=head2 rt_too_new I<version> [, I<message>]
-
-Takes one argument, a valid RT version, and prevents this module from
-being installed on any version of RT equal to or newer than that.
-Useful if a particular release of an extension only works on 4.0.x but
-not 4.2.x.
-
-Takes an optional second argument which allows you to specify a custom
-error message. This message is passed to sprintf with two string
-arguments, the current RT version and the version you specify.
-
-=head2 remove_files
-
-If set to a true value, during installation any files listed in a
-C<remove_files> file will be removed from the destination directories.
-This feature is for removing files that have been deleted or moved in
-the current version and leaving the old version in place when upgrading
-can cause problems.
-
-RTx looks for a C<remove_files> file in the etc/upgrade directory of
-the distribution. The format of the C<remove_files> file is as
-follows:
-
-    package Module::Install::RTx;
-
-    @remove_files = qw(
-    html/dir/file_to_remove
-    );
-    1;
-
-The file locations are relative to the distribution. The destination
-directory prefix is added automatically.
-
-=head1 CAVEATS
-
-=over 4
-
-=item *
-
-Us the full name when calling RTx method in Makefile.PL; while
-C<RTx('Foo')> was once supported, it is no longer.
-
-=back
-
-=head1 ENVIRONMENT
-
-=over 4
-
-=item RTHOME
-
-Path to the RT installation that contains a valid F<lib/RT.pm>.
-
-=back
-
-=head1 EXAMPLES
-
-To install an extension which makes use of this installer:
-
-    perl Makefile.PL RTHOME=/opt/rt5
-
-This will install all subdirs into the $RT::LocalPluginPath dir
-as configured in RT::Generated.
-
-To install an extension into the (vendor) plugin path:
-
-    perl Makefile.PL RTHOME=/opt/rt5 INSTALLDIRS=vendor
-
-This will install all subdirs into the $RT::PluginPath which is specifically
-meant for plugins that are installed through other packaging utils like
-APT or RPM.
-
-=head1 SEE ALSO
-
-L<Module::Install>
-
-L<http://www.bestpractical.com/rt/>
-
-=head1 AUTHORS
-
-Best Practical Solutions
-
-(Originally) Audrey Tang <cpan at audreyt.org>
-
-=head1 COPYRIGHT
-
-Copyright 2003, 2004, 2007 by Audrey Tang E<lt>cpan at audreyt.orgE<gt>.
-Copyright 2008-2020 Best Practical Solutions
-
-This software is released under the MIT license cited below.
-
-=head2 The "MIT" License
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
-THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-DEALINGS IN THE SOFTWARE.
-
-=cut
+#line 484
diff --git a/inc/Module/Install/RTx/Remove.pm b/inc/Module/Install/RTx/Remove.pm
deleted file mode 100644
index 7e41324..0000000
--- a/inc/Module/Install/RTx/Remove.pm
+++ /dev/null
@@ -1,39 +0,0 @@
-package Module::Install::RTx::Remove;
-
-use base 'Exporter';
-our @EXPORT = qw/RTxRemove/;
-
-use strict;
-
-=head1 DESCRIPTION
-
-Remove specified files. Intended to remove files
-from previously installed versions when upgrading
-code in place.
-
-=head1 USAGE
-
-    perl -MModule::Install::RTx::Remove -e "RTxRemove([q(/full/dir/path/file_to_remove)])"
-
-=head1 METHODS
-
-=head2 RTxRemove
-
-Removes specified files.
-
-Accepts: Arrayref of files to remove. Files should have a full
-directory path.
-
-=cut
-
-sub RTxRemove {
-    my $remove_files = shift;
-
-    # Trying the naive unlink first. If issues are reported,
-    # look at ExtUtils::_unlink_or_rename for more cross-platform options.
-    foreach my $file (@$remove_files){
-        next unless -e $file;
-        print "Removing $file\n";
-        unlink($file) or warn "Could not unlink $file: $!";
-    }
-}
diff --git a/inc/Module/Install/RTx/Runtime.pm b/inc/Module/Install/RTx/Runtime.pm
index 21b045f..ae07502 100644
--- a/inc/Module/Install/RTx/Runtime.pm
+++ b/inc/Module/Install/RTx/Runtime.pm
@@ -1,3 +1,4 @@
+#line 1
 package Module::Install::RTx::Runtime;
 
 use base 'Exporter';

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


More information about the Bps-public-commit mailing list