[Bps-public-commit] rtx-calendar branch, master, updated. 0.14

Thomas Sibley trs at bestpractical.com
Wed Apr 18 11:21:55 EDT 2012


The branch, master has been updated
       via  f5bf8543a6f9719b155ec6b3c287156a23f12c49 (commit)
       via  6578232f0c07ae453c3b56ea43db56e1eef8abcc (commit)
      from  8e8ce7aee4b0bb26de79e284617ec81f971bfd25 (commit)

Summary of changes:
 CHANGES             |    3 +++
 META.yml            |    2 +-
 lib/RTx/Calendar.pm |    5 +++--
 3 files changed, 7 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit 6578232f0c07ae453c3b56ea43db56e1eef8abcc
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Apr 18 11:18:05 2012 -0400

    Guard the RT->AddStyleSheets call on older RTs
    
    I meant to include this conditional originally.

diff --git a/lib/RTx/Calendar.pm b/lib/RTx/Calendar.pm
index 8e0f8da..2acb36b 100644
--- a/lib/RTx/Calendar.pm
+++ b/lib/RTx/Calendar.pm
@@ -6,7 +6,8 @@ use DateTime::Set;
 
 our $VERSION = "0.13";
 
-RT->AddStyleSheets('calendar.css');
+RT->AddStyleSheets('calendar.css')
+    if RT->can('AddStyleSheets');
 
 sub FirstMonday {
     my ($year, $month) = (shift, shift);

commit f5bf8543a6f9719b155ec6b3c287156a23f12c49
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Apr 18 11:19:16 2012 -0400

    Bump version

diff --git a/CHANGES b/CHANGES
index e89d012..d52998f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+Changes for 0.14
+  * Guard the modern stylesheets call on older RTs
+
 Changes for 0.13
   * Serve CSS the modern way on recent RT's
   * Namespace our CSS to avoid styling the RT core UI
diff --git a/META.yml b/META.yml
index cea3052..f2370fc 100644
--- a/META.yml
+++ b/META.yml
@@ -28,4 +28,4 @@ requires:
   DateTime::Set: 0
 resources:
   license: http://dev.perl.org/licenses/
-version: 0.13
+version: 0.14
diff --git a/lib/RTx/Calendar.pm b/lib/RTx/Calendar.pm
index 2acb36b..51668d5 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.13";
+our $VERSION = "0.14";
 
 RT->AddStyleSheets('calendar.css')
     if RT->can('AddStyleSheets');

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



More information about the Bps-public-commit mailing list