[Bps-public-commit] rtx-calendar branch allow-custom-field-based-events-2 updated. 1.05-17-g4ccceb0

BPS Git Server git at git.bestpractical.com
Wed Sep 6 13:35:14 UTC 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rtx-calendar".

The branch, allow-custom-field-based-events-2 has been updated
       via  4ccceb099dd94bf2ea1d544dba8ceeaec913f7b7 (commit)
       via  ef5a6b2f39fef0b2bc6d868eb6fdda7d952aaefd (commit)
      from  6dc455c07b85f368c383d4b587fe5db5ddcd7ee0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4ccceb099dd94bf2ea1d544dba8ceeaec913f7b7
Author: Jason Crome <jcrome at bestpractical.com>
Date:   Wed Sep 6 09:35:04 2023 -0400

    Update Module::Install

diff --git a/inc/Module/Install.pm b/inc/Module/Install.pm
index 7ba98c2..3dd721b 100644
--- a/inc/Module/Install.pm
+++ b/inc/Module/Install.pm
@@ -31,7 +31,7 @@ BEGIN {
 	# This is not enforced yet, but will be some time in the next few
 	# releases once we can make sure it won't clash with custom
 	# Module::Install extensions.
-	$VERSION = '1.19';
+	$VERSION = '1.21';
 
 	# Storage for the pseudo-singleton
 	$MAIN    = undef;
diff --git a/inc/Module/Install/Base.pm b/inc/Module/Install/Base.pm
index 9fa42c2..67ce900 100644
--- a/inc/Module/Install/Base.pm
+++ b/inc/Module/Install/Base.pm
@@ -4,7 +4,7 @@ package Module::Install::Base;
 use strict 'vars';
 use vars qw{$VERSION};
 BEGIN {
-	$VERSION = '1.19';
+	$VERSION = '1.21';
 }
 
 # Suspend handler for "redefined" warnings
diff --git a/inc/Module/Install/Can.pm b/inc/Module/Install/Can.pm
index d65c753..93fc4f9 100644
--- a/inc/Module/Install/Can.pm
+++ b/inc/Module/Install/Can.pm
@@ -8,7 +8,7 @@ use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.19';
+	$VERSION = '1.21';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
diff --git a/inc/Module/Install/Fetch.pm b/inc/Module/Install/Fetch.pm
index 3072b08..3c9390a 100644
--- a/inc/Module/Install/Fetch.pm
+++ b/inc/Module/Install/Fetch.pm
@@ -6,7 +6,7 @@ use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.19';
+	$VERSION = '1.21';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
diff --git a/inc/Module/Install/Include.pm b/inc/Module/Install/Include.pm
index 13fdcd0..b9b926f 100644
--- a/inc/Module/Install/Include.pm
+++ b/inc/Module/Install/Include.pm
@@ -6,7 +6,7 @@ use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.19';
+	$VERSION = '1.21';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
diff --git a/inc/Module/Install/Makefile.pm b/inc/Module/Install/Makefile.pm
index 13a4464..1e214a0 100644
--- a/inc/Module/Install/Makefile.pm
+++ b/inc/Module/Install/Makefile.pm
@@ -8,7 +8,7 @@ use Fcntl qw/:flock :seek/;
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.19';
+	$VERSION = '1.21';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
diff --git a/inc/Module/Install/Metadata.pm b/inc/Module/Install/Metadata.pm
index 11bf971..2ae8036 100644
--- a/inc/Module/Install/Metadata.pm
+++ b/inc/Module/Install/Metadata.pm
@@ -6,7 +6,7 @@ use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.19';
+	$VERSION = '1.21';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
@@ -455,12 +455,8 @@ sub author_from {
 my %license_urls = (
     perl         => 'http://dev.perl.org/licenses/',
     apache       => 'http://apache.org/licenses/LICENSE-2.0',
-    apache_1_1   => 'http://apache.org/licenses/LICENSE-1.1',
     artistic     => 'http://opensource.org/licenses/artistic-license.php',
-    artistic_2   => 'http://opensource.org/licenses/artistic-license-2.0.php',
     lgpl         => 'http://opensource.org/licenses/lgpl-license.php',
-    lgpl2        => 'http://opensource.org/licenses/lgpl-2.1.php',
-    lgpl3        => 'http://opensource.org/licenses/lgpl-3.0.html',
     bsd          => 'http://opensource.org/licenses/bsd-license.php',
     gpl          => 'http://opensource.org/licenses/gpl-license.php',
     gpl2         => 'http://opensource.org/licenses/gpl-2.0.php',
@@ -471,6 +467,12 @@ my %license_urls = (
     unrestricted => undef,
     restrictive  => undef,
     unknown      => undef,
+
+    # these are not actually allowed in meta-spec v1.4 but are left here for compatibility:
+    apache_1_1   => 'http://apache.org/licenses/LICENSE-1.1',
+    artistic_2   => 'http://opensource.org/licenses/artistic-license-2.0.php',
+    lgpl2        => 'http://opensource.org/licenses/lgpl-2.1.php',
+    lgpl3        => 'http://opensource.org/licenses/lgpl-3.0.html',
 );
 
 sub license {
diff --git a/inc/Module/Install/Win32.pm b/inc/Module/Install/Win32.pm
index f7aa615..b6c1d37 100644
--- a/inc/Module/Install/Win32.pm
+++ b/inc/Module/Install/Win32.pm
@@ -6,7 +6,7 @@ use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.19';
+	$VERSION = '1.21';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
diff --git a/inc/Module/Install/WriteAll.pm b/inc/Module/Install/WriteAll.pm
index 2db861a..d87eb9a 100644
--- a/inc/Module/Install/WriteAll.pm
+++ b/inc/Module/Install/WriteAll.pm
@@ -6,7 +6,7 @@ use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.19';
+	$VERSION = '1.21';
 	@ISA     = qw{Module::Install::Base};
 	$ISCORE  = 1;
 }
diff --git a/inc/YAML/Tiny.pm b/inc/YAML/Tiny.pm
index fb157a6..db3ae5c 100644
--- a/inc/YAML/Tiny.pm
+++ b/inc/YAML/Tiny.pm
@@ -2,12 +2,12 @@
 use 5.008001; # sane UTF-8 support
 use strict;
 use warnings;
-package YAML::Tiny; # git description: v1.72-7-g8682f63
+package YAML::Tiny; # git description: v1.73-12-ge02f827
 # XXX-INGY is 5.8.1 too old/broken for utf8?
 # XXX-XDG Lancaster consensus was that it was sufficient until
 # proven otherwise
 
-our $VERSION = '1.73';
+our $VERSION = '1.74';
 
 #####################################################################
 # The YAML::Tiny API.

commit ef5a6b2f39fef0b2bc6d868eb6fdda7d952aaefd
Author: Jason Crome <jcrome at bestpractical.com>
Date:   Wed Sep 6 09:34:56 2023 -0400

    RTx-Calendar 1.06

diff --git a/CHANGES b/CHANGES
index 80ace77..7c4a6a2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,12 @@
+1.07 2023-09-06
+ - Clicking Reset Filter no longer resets month display
+
+1.06 2023-08-30
+ - Minimum version of RT 5.0
+ - Add color-coded display of events by ticket status
+ - Filter event display by ticket status
+ - Added help panel
+
 1.05 2023-01-29
  - add a callback named BeforeFindTickets so user can modify the query
    or format of the calendar search
diff --git a/MANIFEST b/MANIFEST
index f88506c..c9e48ba 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,4 +1,5 @@
 CHANGES
+etc/RTxCalendar_Config.pm
 etc/tabs_privileged_callback.patch
 html/Callbacks/RTx-Calendar/Elements/Tabs/Privileged
 html/Elements/CalendarEvent
diff --git a/META.yml b/META.yml
index d7cb0e0..9215247 100644
--- a/META.yml
+++ b/META.yml
@@ -8,7 +8,7 @@ configure_requires:
   ExtUtils::MakeMaker: 6.59
 distribution_type: module
 dynamic_config: 1
-generated_by: 'Module::Install version 1.19'
+generated_by: 'Module::Install version 1.21'
 license: gpl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -26,6 +26,6 @@ requires:
   perl: 5.10.1
 resources:
   license: http://opensource.org/licenses/gpl-license.php
-version: '1.05'
+version: '1.07'
 x_module_install_rtx_version: '0.43'
-x_requires_rt: 4.2.0
+x_requires_rt: 5.0.0
diff --git a/Makefile.PL b/Makefile.PL
index ed70d43..3840782 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -6,7 +6,7 @@ RTx('RTx-Calendar');
 requires 'DateTime';
 requires 'DateTime::Set';
 
-requires_rt '4.2.0';
+requires_rt '5.0.0';
 
-sign();
+#sign();
 WriteAll();
diff --git a/README b/README
index 479243e..dc900c5 100644
--- a/README
+++ b/README
@@ -15,7 +15,11 @@ DESCRIPTION
     the CONFIGURATION section below for details on adding it.
 
 RT VERSION
-    Works with RT 4.2, 4.4, 5.0
+    Works with RT 5.
+
+    If you need to install this for RT 4.4.x, install version 1.05:
+
+        cpanm RTx::Calendar at 1.05
 
 INSTALLATION
     perl Makefile.PL
@@ -47,15 +51,68 @@ CONFIGURATION
          MyAdminQueues MySupportQueues MyReminders RefreshHomepage)]);
 
   Display configuration
+   Displaying the owner
     You can show the owner in each day box by adding this line to your
     etc/RT_SiteConfig.pm:
 
         Set($CalendarDisplayOwner, 1);
 
+   Choosing the fields to be displayed in the popup
     You can change which fields show up in the popup display when you mouse
     over a date in etc/RT_SiteConfig.pm:
 
-        Set(@CalendarPopupFields, ('Status', 'OwnerObj->Name', 'DueObj->ISO'));
+        Set(@CalendarPopupFields,
+            ('Status',
+             'OwnerObj->Name',
+             'DueObj->ISO',
+             'CustomField.{Maintenance Estimated Start Date/Time - ET}'));
+
+   Event sorting
+    You can set the order that the events will presented in the day cell
+    with the $CalendarSortEvents setting.
+
+    This setting takes a subroutine reference that will receive an array of
+    RT::Ticket objects and should return a sorted array of RT::Ticket.
+
+    The following example sorts the events by status:
+
+        Set($CalendarSortEvents, sub {
+            my @Tickets = @_;
+            my @SortedTickets = sort { lc($a->Status) cmp lc($b->Status) } @Tickets;
+            return @SortedTickets;
+        });
+
+   Event colors
+    It's also possible to change the color of the events in the calendar by
+    adding the $CalendarStatusColorMap setting to your etc/RT_SiteConfig.pm:
+
+        Set(%CalendarStatusColorMap, (
+            'new'                                   => 'blue',
+            'open'                                  => 'blue',
+            'approved'                              => 'green',
+            'rejected'                              => 'red',
+            'resolved'                              => '#aaa',
+        ));
+
+    You can use any color declaration that CSS supports, including hex
+    codes, color names, and RGB values.
+
+   Event filtering by status
+    You can change the statuses available for filtering on the calendar by
+    adding the @CalendarFilterStatuses setting to your etc/RT_SiteConfig.pm:
+
+        Set(@CalendarFilterStatuses, qw(new open stalled rejected resolved));
+
+   Custom icons
+    Custom Icons can be defined for the events in the calendar by adding the
+    $CalendarIcons setting to your etc/RT_SiteConfig.pm:
+
+        Set(%CalendarIcons, (
+            'CF.{Maintenance Estimated Start Date/Time - ET}'
+                => 'maint.png',
+        ));
+
+    The images should be placed on local/static/images.
 
 USAGE
     A small help section is available in /Search/Calendar.html
@@ -75,7 +132,7 @@ BUGS
         L<rt.cpan.org|http://rt.cpan.org/Public/Dist/Display.html?Name=RTx-Calendar>.
 
 LICENSE AND COPYRIGHT
-    This software is Copyright (c) 2010-2022 by Best Practical Solutions
+    This software is Copyright (c) 2010-2023 by Best Practical Solutions
 
     Copyright 2007-2009 by Nicolas Chuche
 
diff --git a/lib/RTx/Calendar.pm b/lib/RTx/Calendar.pm
index d9f9975..8120ece 100644
--- a/lib/RTx/Calendar.pm
+++ b/lib/RTx/Calendar.pm
@@ -4,7 +4,7 @@ use strict;
 use DateTime;
 use DateTime::Set;
 
-our $VERSION = "1.05";
+our $VERSION = "1.07";
 
 RT->AddStyleSheets('calendar.css');
 

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

Summary of changes:
 CHANGES                        |  9 ++++++
 MANIFEST                       |  1 +
 META.yml                       |  6 ++--
 Makefile.PL                    |  4 +--
 README                         | 63 ++++++++++++++++++++++++++++++++++++++++--
 inc/Module/Install.pm          |  2 +-
 inc/Module/Install/Base.pm     |  2 +-
 inc/Module/Install/Can.pm      |  2 +-
 inc/Module/Install/Fetch.pm    |  2 +-
 inc/Module/Install/Include.pm  |  2 +-
 inc/Module/Install/Makefile.pm |  2 +-
 inc/Module/Install/Metadata.pm | 12 ++++----
 inc/Module/Install/Win32.pm    |  2 +-
 inc/Module/Install/WriteAll.pm |  2 +-
 inc/YAML/Tiny.pm               |  4 +--
 lib/RTx/Calendar.pm            |  2 +-
 16 files changed, 93 insertions(+), 24 deletions(-)


hooks/post-receive
-- 
rtx-calendar


More information about the Bps-public-commit mailing list