[Bps-public-commit] RT-Extension-ReportSpam branch, master, updated. 0.10-3-g8f7c1e3
Thomas Sibley
trs at bestpractical.com
Thu Aug 1 13:26:21 EDT 2013
The branch, master has been updated
via 8f7c1e30c2d7c2f2d055e2c317b846475890bc64 (commit)
via 547dfba430a6b3dfb01dbd806e8948edf2ca7ff5 (commit)
from ce2d2a913e24923edde0f3812cc652e7c2b1a54f (commit)
Summary of changes:
META.yml | 2 +-
README | 57 ++++++++++++++++++++++++++++++---
inc/Module/Install/RTx.pm | 2 +-
lib/RT/Extension/ReportSpam.pm | 71 +++++++++++++++++++++++++++++++++++++-----
4 files changed, 119 insertions(+), 13 deletions(-)
- Log -----------------------------------------------------------------
commit 547dfba430a6b3dfb01dbd806e8948edf2ca7ff5
Author: Thomas Sibley <trs at bestpractical.com>
Date: Thu Aug 1 10:24:21 2013 -0700
Usage notes in the doc
Based on a pull request by weizhou <weizhou at redhat.com> which edited the
README directly instead of the POD.
weizhou's text was rewritten slightly.
diff --git a/lib/RT/Extension/ReportSpam.pm b/lib/RT/Extension/ReportSpam.pm
index db338be..82a9e42 100644
--- a/lib/RT/Extension/ReportSpam.pm
+++ b/lib/RT/Extension/ReportSpam.pm
@@ -6,6 +6,8 @@ use warnings;
our $VERSION = '0.10';
+=encoding utf-8
+
=head1 NAME
RT::Extension::ReportSpam - mark tickets as spam with one click
@@ -15,25 +17,80 @@ RT::Extension::ReportSpam - mark tickets as spam with one click
A simple extension that works with RT 4.0 and newer and allows users
to report a ticket as a spam message.
-To find all tickets reported as spam you have to use query builder in
-advanced mode with the following query:
+=head1 INSTALLATION
- HasAttribute = 'SpamReports'
+=over
+
+=item C<perl Makefile.PL>
+
+=item C<make>
+
+=item C<make install>
+
+May need root permissions
+
+=item Edit your F</opt/rt4/etc/RT_SiteConfig.pm>
+
+Add this line:
+
+ Set(@Plugins, qw(RT::Extension::ReportSpam));
+
+or add C<RT::Extension::ReportSpam> to your existing C<@Plugins> line.
+
+=item Clear your mason cache
+
+ rm -rf /opt/rt4/var/mason_data/obj
+
+=item Restart your webserver
+
+=back
-=head1 RT 3.8
+=head1 USING ON RT 3.8
Users of this extension on RT 3.8 should not upgrade past version 0.03 of this
extension.
-=cut
+=head1 HOW TO â¦
+
+=head2 Report Spam
+
+On any ticket page, you can report the ticket as spam by clicking "S".
+
+You can also click the "S" on the Tools â Spam â Recent page, which lists all
+the recently created tickets with status "new" and without owner.
-require RT::Tickets;
+If you have rights to delete tickets you mark as spam, then they will be
+deleted automatically at the same time.
+=head2 Query All Tickets Reported as Spam
+
+To find all tickets reported as spam and not deleted you can navigate to Tools
+â Spam â Reported, or use the query builder in advanced mode with the following
+query:
+
+ HasAttribute = 'SpamReports'
+
+Both of these methods list the tickets reported as spam by others without
+rights to delete tickets themselves.
+
+=head2 Confirm a Ticket as Spam
+
+You can confirm the reports by clicking "S" after querying all tickets reported
+as spam. If you have rights to delete tickets then they will be deleted.
+
+=head1 BUGS
+
+All bugs should be reported via email to
+L<bug-RT-Extension-ReportSpam at rt.cpan.org|mailto:bug-RT-Extension-ReportSpam at rt.cpan.org>
+or via the web at
+L<rt.cpan.org|http://rt.cpan.org/Public/Dist/Display.html?Name=RT-Extension-ReportSpam>.
=head1 AUTHOR
Ruslan Zakirov E<lt>Ruslan.Zakirov at gmail.comE<gt>
+Thomas Sibley E<lt>trs at bestpractical.comE<gt>
+
=head1 LICENSE
Under the same terms as perl itself.
commit 8f7c1e30c2d7c2f2d055e2c317b846475890bc64
Author: Thomas Sibley <trs at bestpractical.com>
Date: Thu Aug 1 10:25:49 2013 -0700
Releng 0.11
diff --git a/META.yml b/META.yml
index afd8012..70a07a3 100644
--- a/META.yml
+++ b/META.yml
@@ -22,4 +22,4 @@ requires:
perl: 5.8.0
resources:
license: http://dev.perl.org/licenses/
-version: 0.10
+version: 0.11
diff --git a/README b/README
index 03f1c95..84eb899 100644
--- a/README
+++ b/README
@@ -5,18 +5,67 @@ DESCRIPTION
A simple extension that works with RT 4.0 and newer and allows users to
report a ticket as a spam message.
- To find all tickets reported as spam you have to use query builder in
- advanced mode with the following query:
+INSTALLATION
+ "perl Makefile.PL"
+ "make"
+ "make install"
+ May need root permissions
- HasAttribute = 'SpamReports'
+ Edit your /opt/rt4/etc/RT_SiteConfig.pm
+ Add this line:
+
+ Set(@Plugins, qw(RT::Extension::ReportSpam));
+
+ or add "RT::Extension::ReportSpam" to your existing @Plugins line.
+
+ Clear your mason cache
+ rm -rf /opt/rt4/var/mason_data/obj
-RT 3.8
+ Restart your webserver
+
+USING ON RT 3.8
Users of this extension on RT 3.8 should not upgrade past version 0.03
of this extension.
+HOW TO â¦
+ Report Spam
+ On any ticket page, you can report the ticket as spam by clicking "S".
+
+ You can also click the "S" on the Tools â Spam â Recent page, which
+ lists all the recently created tickets with status "new" and without
+ owner.
+
+ If you have rights to delete tickets you mark as spam, then they will be
+ deleted automatically at the same time.
+
+ Query All Tickets Reported as Spam
+ To find all tickets reported as spam and not deleted you can navigate to
+ Tools â Spam â Reported, or use the query builder in advanced mode with
+ the following query:
+
+ HasAttribute = 'SpamReports'
+
+ Both of these methods list the tickets reported as spam by others
+ without rights to delete tickets themselves.
+
+ Confirm a Ticket as Spam
+ You can confirm the reports by clicking "S" after querying all tickets
+ reported as spam. If you have rights to delete tickets then they will be
+ deleted.
+
+BUGS
+ All bugs should be reported via email to
+ bug-RT-Extension-ReportSpam at rt.cpan.org
+ <mailto:bug-RT-Extension-ReportSpam at rt.cpan.org> or via the web at
+ rt.cpan.org
+ <http://rt.cpan.org/Public/Dist/Display.html?Name=RT-Extension-ReportSpa
+ m>.
+
AUTHOR
Ruslan Zakirov <Ruslan.Zakirov at gmail.com>
+ Thomas Sibley <trs at bestpractical.com>
+
LICENSE
Under the same terms as perl itself.
diff --git a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm
index abf6aea..c9fe996 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.31';
use FindBin;
use File::Glob ();
diff --git a/lib/RT/Extension/ReportSpam.pm b/lib/RT/Extension/ReportSpam.pm
index 82a9e42..bce856d 100644
--- a/lib/RT/Extension/ReportSpam.pm
+++ b/lib/RT/Extension/ReportSpam.pm
@@ -4,7 +4,7 @@ use 5.008;
use strict;
use warnings;
-our $VERSION = '0.10';
+our $VERSION = '0.11';
=encoding utf-8
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list