Skip to content
Browse files

Make the README generate from the module

Clean up the one (mostly useless) code POD so it isn't in the README
(we apparently used to generate the README by hand from the module and
it had a weird out-of-context chunk in the INSTALL section)
  • Loading branch information...
1 parent d01da78 commit 97460343516ef7cf177a080a4f10a9b3edd35052 @jibsheet jibsheet committed
Showing with 11 additions and 10 deletions.
  1. +1 −0 Makefile.PL
  2. +9 −4 README
  3. +1 −6 lib/RT/Extension/PriorityAsString.pm
View
1 Makefile.PL
@@ -4,6 +4,7 @@ use 5.008003;
RTx 'RT-Extension-PriorityAsString';
license 'GPLv2';
all_from 'lib/RT/Extension/PriorityAsString.pm';
+readme_from 'lib/RT/Extension/PriorityAsString.pm';
requires_rt('RT' => '3.8.3');
View
13 README
@@ -15,6 +15,15 @@ SYNOPSIS
# hash will be sorted and displayed
Set(@PriorityAsStringOrder, qw(Low Medium High));
+ # Uncomment if you want to apply different configurations to
+ # different queues. Each key is the name of a different queue;
+ # queues which do not appear in this configuration will use RT's
+ # default numeric scale.
+ # Set(%PriorityAsStringQueues,
+ # General => { Low => 0, Medium => 50, High => 100 },
+ # Binary => { Low => 0, High => 10 },
+ # );
+
INSTALLATION
*NOTE* that it only works with RT 3.8.3 and newer.
@@ -27,10 +36,6 @@ INSTALLATION
rm -rf /opt/rt3/var/mason_data/obj
Restart your webserver
- PriorityAsString
-
- Returns String: Various Ticket Priorities as either a string or integer
-
COPYRIGHT AND LICENCE
Copyright (C) 2008, Best Practical Solutions LLC.
View
7 lib/RT/Extension/PriorityAsString.pm
@@ -51,12 +51,7 @@ RT::Extension::PriorityAsString - show priorities in RT as strings instead of nu
require RT::Ticket;
package RT::Ticket;
-=head2 PriorityAsString
-
-Returns String: Various Ticket Priorities as either a string or integer
-
-=cut
-
+# Returns String: Various Ticket Priorities as either a string or integer
sub PriorityAsString {
my $self = shift;
return $self->_PriorityAsString($self->Priority);

0 comments on commit 9746034

Please sign in to comment.
Something went wrong with that request. Please try again.