[Bps-public-commit] rtx-calendar branch, master, updated. 0.08_01-7-g8e19f07
Kevin Falcone
falcone at bestpractical.com
Fri Dec 9 08:59:39 EST 2011
The branch, master has been updated
via 8e19f07ac1969d78635befc2a2188e9c69e543ab (commit)
via 4a53890d276c45fb8cb035ba6641bfc9cb7ac357 (commit)
via 5fcaa65886766567ef2851dd2861ca8977e55b88 (commit)
via 1d72ab01815f09b847399abff8e284b2197028a7 (commit)
via e68b2863e0fc1a0556ef2c84b54d7633d0b36fed (commit)
via 3da8185126e8603bb029f5db46740de6ef9f85c6 (commit)
via 97c61946e5d08379970c50a46d74cf33096166a7 (commit)
from 55f25fc5512b48cf51ba934891b2d2251b4f5aa3 (commit)
Summary of changes:
.gitignore | 3 +
MANIFEST.SKIP | 2 +
Makefile.PL | 1 +
README | 98 +++++++++++++++++++++++++++++++++++
html/Prefs/.Calendar.html.swp | Bin 0 -> 16384 bytes
html/Prefs/Calendar.html | 4 +-
inc/Module/Install/ReadmeFromPod.pm | 48 +++++++++++++++++
lib/RTx/Calendar.pm | 7 +--
8 files changed, 155 insertions(+), 8 deletions(-)
create mode 100644 README
create mode 100644 html/Prefs/.Calendar.html.swp
create mode 100644 inc/Module/Install/ReadmeFromPod.pm
- Log -----------------------------------------------------------------
commit 97c61946e5d08379970c50a46d74cf33096166a7
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Thu Dec 8 22:16:08 2011 -0500
remove debugging
diff --git a/lib/RTx/Calendar.pm b/lib/RTx/Calendar.pm
index bf7c293..4690602 100644
--- a/lib/RTx/Calendar.pm
+++ b/lib/RTx/Calendar.pm
@@ -107,7 +107,6 @@ package RT::Interface::Web::Menu;
# shim this in so I don't copy the code.
unless (RT::Interface::Web::Menu->can('add_after')) {
*RT::Interface::Web::Menu::add_after = sub {
- warn "Running from extension";
my $self = shift;
my $parent = $self->parent;
my $sort_order;
commit 3da8185126e8603bb029f5db46740de6ef9f85c6
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Thu Dec 8 22:16:28 2011 -0500
fix a warning on the prefs page
diff --git a/html/Prefs/.Calendar.html.swp b/html/Prefs/.Calendar.html.swp
new file mode 100644
index 0000000..d54bf08
Binary files /dev/null and b/html/Prefs/.Calendar.html.swp differ
diff --git a/html/Prefs/Calendar.html b/html/Prefs/Calendar.html
index 79d4d4c..2cf5d92 100644
--- a/html/Prefs/Calendar.html
+++ b/html/Prefs/Calendar.html
@@ -111,9 +111,9 @@ $AllowSearch = 1
my $object;
-if ($HiddenField eq 'Private') {
+if ($HiddenField && $HiddenField eq 'Private') {
$object = $session{CurrentUser}->UserObj;
-} elsif ($AllowSearch and my ($SearchId) = $HiddenField =~ m/SavedSearch\-(\d+)/) {
+} elsif ($AllowSearch and $HiddenField and my ($SearchId) = $HiddenField =~ m/SavedSearch\-(\d+)/) {
$object = $session{CurrentUser}->Attributes->WithId($SearchId);
}
commit e68b2863e0fc1a0556ef2c84b54d7633d0b36fed
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Thu Dec 8 22:23:24 2011 -0500
generate a README
diff --git a/Makefile.PL b/Makefile.PL
index 4a45a1a..ca0a633 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -4,6 +4,7 @@ RTx('RTx-Calendar');
author('Nicolas Chuche <nchuche at barna.be>');
abstract('Calendar view');
license('perl');
+readme_from('lib/RTx/Calendar.pm');
requires 'DateTime' => 0;
requires 'DateTime::Set' => 0;
diff --git a/README b/README
new file mode 100644
index 0000000..3ef585b
--- /dev/null
+++ b/README
@@ -0,0 +1,101 @@
+NAME
+ RTx::Calendar - Calendar for RT due tasks
+
+VERSION
+ This document describes version 0.07 of RTx::Calendar
+
+DESCRIPTION
+ This RT extension provides a calendar view for your tickets and your
+ reminders so you see when is your next due ticket. You can find it in
+ the menu Search->Calendar.
+
+ There's a portlet to put on your home page (see Prefs/MyRT.html)
+
+ You can also enable ics (ICal) feeds for your default calendar and all
+ your private searches in Prefs/Calendar.html. Authentication is magic
+ number based so that you can give those feeds to other people.
+
+INSTALLATION
+ If you upgrade from 0.02, see next part before.
+
+ You need to install those three modules :
+
+ * Date::ICal
+ * Data::ICal
+ * DateTime::Set
+
+ Install it like a standard perl module
+
+ perl Makefile.PL
+ make
+ make install
+
+ If your RT is not in the default path (/opt/rt3) you must set RTHOME
+ before doing the Makefile.PL
+
+CONFIGURATION
+ Base configuration
+ In RT 3.8 and later, to enable calendar plugin, you must add something
+ like that in your etc/RT_SiteConfig.pm :
+
+ Set(@Plugins,(qw(RTx::Calendar)));
+
+ To use MyCalendar portlet you must add MyCalendar to $HomepageComponents
+ in etc/RT_SiteConfig.pm like that :
+
+ Set($HomepageComponents, [qw(QuickCreate Quicksearch MyCalendar
+ MyAdminQueues MySupportQueues MyReminders RefreshHomepage)]);
+
+ To enable private searches ICal feeds, you need to give
+ CreateSavedSearch and LoadSavedSearch rights to your users.
+
+ Display configuration
+ You can show the owner in each day box by adding this line to your
+ etc/RT_SiteConfig.pm :
+
+ Set($CalendarDisplayOwner, 1);
+
+ You can change which fields show up in the popup display when you mouse
+ over a date in etc/RT_SiteConfig.pm :
+
+ @CalendarPopupFields = ('Status', 'OwnerObj->Name', 'DueObj->ISO');
+
+ ICAL feed configuration
+ By default, tickets are todo and reminders event. You can change this by
+ setting $RT::ICalTicketType and $RT::ICalReminderType in
+ etc/RT_SiteConfig.pm :
+
+ Set($ICalTicketType, "Data::ICal::Entry::Event");
+ Set($ICalReminderType ,"Data::ICal::Entry::Todo");
+
+USAGE
+ A small help section is available in /Prefs/Calendar.html
+
+UPGRADE FROM 0.02
+ As I've change directory structure, if you upgrade from 0.02 you need to
+ delete old files manually. Go in RTHOME/share/html (by default
+ /opt/rt3/share/html) and delete those files :
+
+ rm -rf Callbacks/RTx-Calendar
+ rm Tools/Calendar.html
+
+ RTx-Calendar may work without this but it's not very clean.
+
+BUGS
+ * compatible only with RT 3.6 for the moment. If someone need
+ compatibility with 3.4 I can work on this. And I will work on 3.7
+ compatibility later.
+
+AUTHORS
+ Nicolas Chuche <nchuche at barna.be>
+
+ Idea borrowed from redmine's calendar (Thanks Jean-Philippe).
+
+COPYRIGHT
+ Copyright 2007 by Nicolas Chuche <nchuche at barna.be>
+
+ This program is free software; you can redistribute it and/or modify it
+ under the same terms as Perl itself.
+
+ See <http://www.perl.com/perl/misc/Artistic.html>
+
diff --git a/inc/Module/Install/ReadmeFromPod.pm b/inc/Module/Install/ReadmeFromPod.pm
new file mode 100644
index 0000000..348531e
--- /dev/null
+++ b/inc/Module/Install/ReadmeFromPod.pm
@@ -0,0 +1,48 @@
+#line 1
+package Module::Install::ReadmeFromPod;
+
+use 5.006;
+use strict;
+use warnings;
+use base qw(Module::Install::Base);
+use vars qw($VERSION);
+
+$VERSION = '0.12';
+
+sub readme_from {
+ my $self = shift;
+ return unless $self->is_admin;
+
+ my $file = shift || $self->_all_from
+ or die "Can't determine file to make readme_from";
+ my $clean = shift;
+
+ print "Writing README from $file\n";
+
+ require Pod::Text;
+ my $parser = Pod::Text->new();
+ open README, '> README' or die "$!\n";
+ $parser->output_fh( *README );
+ $parser->parse_file( $file );
+ if ($clean) {
+ $self->clean_files('README');
+ }
+ return 1;
+}
+
+sub _all_from {
+ my $self = shift;
+ return unless $self->admin->{extensions};
+ my ($metadata) = grep {
+ ref($_) eq 'Module::Install::Metadata';
+ } @{$self->admin->{extensions}};
+ return unless $metadata;
+ return $metadata->{values}{all_from} || '';
+}
+
+'Readme!';
+
+__END__
+
+#line 112
+
commit 1d72ab01815f09b847399abff8e284b2197028a7
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Thu Dec 8 22:23:39 2011 -0500
ignore cruft
diff --git a/.gitignore b/.gitignore
index 799f68e..29d4ae5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,6 @@ Makefile
blib/
pm_to_blib
*~
+/RTx-Calendar-*
+*.bak
+/MYMETA.*
commit 5fcaa65886766567ef2851dd2861ca8977e55b88
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Thu Dec 8 22:30:58 2011 -0500
stop keeping versions in the docs
diff --git a/README b/README
index 3ef585b..3869593 100644
--- a/README
+++ b/README
@@ -1,9 +1,6 @@
NAME
RTx::Calendar - Calendar for RT due tasks
-VERSION
- This document describes version 0.07 of RTx::Calendar
-
DESCRIPTION
This RT extension provides a calendar view for your tickets and your
reminders so you see when is your next due ticket. You can find it in
diff --git a/lib/RTx/Calendar.pm b/lib/RTx/Calendar.pm
index 4690602..2e793dd 100644
--- a/lib/RTx/Calendar.pm
+++ b/lib/RTx/Calendar.pm
@@ -132,10 +132,6 @@ __END__
RTx::Calendar - Calendar for RT due tasks
-=head1 VERSION
-
-This document describes version 0.07 of RTx::Calendar
-
=head1 DESCRIPTION
This RT extension provides a calendar view for your tickets and your
commit 4a53890d276c45fb8cb035ba6641bfc9cb7ac357
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Thu Dec 8 22:31:12 2011 -0500
skip the MYMETA cruft
diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP
index cd062a5..a71d16c 100644
--- a/MANIFEST.SKIP
+++ b/MANIFEST.SKIP
@@ -16,3 +16,5 @@
^\#.*
^\.#.*
^.git
+
+^MYMETA.*
commit 8e19f07ac1969d78635befc2a2188e9c69e543ab
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Thu Dec 8 22:24:08 2011 -0500
bump version to 0.08_02
diff --git a/lib/RTx/Calendar.pm b/lib/RTx/Calendar.pm
index 2e793dd..78e4d44 100644
--- a/lib/RTx/Calendar.pm
+++ b/lib/RTx/Calendar.pm
@@ -4,7 +4,7 @@ use strict;
use DateTime;
use DateTime::Set;
-our $VERSION = "0.08_01";
+our $VERSION = "0.08_02";
sub FirstMonday {
my ($year, $month) = (shift, shift);
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list