[Bps-public-commit] rt-extension-excelfeed branch add-option-to-show-download-on-charts created. 0.08-3-g68c983a

BPS Git Server git at git.bestpractical.com
Mon Nov 13 20:12:34 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 "rt-extension-excelfeed".

The branch, add-option-to-show-download-on-charts has been created
        at  68c983a538ea1f53a54538c85a7f07c90165b0ef (commit)

- Log -----------------------------------------------------------------
commit 68c983a538ea1f53a54538c85a7f07c90165b0ef
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date:   Mon Nov 13 17:12:23 2023 -0300

    Prepare version 0.09

diff --git a/Changes b/Changes
index 3292d6a..335dd19 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,6 @@
+0.09 2023-11-13
+ - Add option to show or hide download button on charts
+
 0.08 2022-08-25
  - Call the core BuildEmail to automatically get RT updates
 
diff --git a/MANIFEST b/MANIFEST
index 1f80376..93ae59b 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,4 +1,5 @@
 Changes
+etc/ExcelFeed_Config.pm
 html/Callbacks/RT-Extension-ExcelFeed/Dashboards/Subscription.html/MassageSubscriptionFields
 html/Callbacks/RT-Extension-ExcelFeed/Dashboards/Subscription.html/SubscriptionFields
 html/Callbacks/RT-Extension-ExcelFeed/Dashboards/Subscription.html/SubscriptionFormEnd
diff --git a/META.yml b/META.yml
index 8d64261..73769e2 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: gplv2
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -16,6 +16,7 @@ meta-spec:
 name: RT-Extension-ExcelFeed
 no_index:
   directory:
+    - etc
     - html
     - inc
 requires:
@@ -23,7 +24,7 @@ requires:
   perl: 5.10.1
 resources:
   license: http://opensource.org/licenses/gpl-license.php
-version: '0.08'
+version: '0.09'
 x_module_install_rtx_version: '0.43'
 x_requires_rt: 4.4.5
 x_rt_too_new: 5.2.0
diff --git a/README b/README
index de75911..b41b205 100644
--- a/README
+++ b/README
@@ -29,6 +29,13 @@ INSTALLATION
 
     Restart your webserver
 
+CONFIGURATION
+    "ShowChartDownloadButton"
+        By default, a "Download as Microsoft Execel Spreadsheet" button is
+        enabled on Charts. You can disable it by setting this option to 0.
+
+            Set( $ShowChartDownloadButton, 0 );
+
 AUTHOR
     Best Practical Solutions, LLC <modules at bestpractical.com>
 
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.
diff --git a/lib/RT/Extension/ExcelFeed.pm b/lib/RT/Extension/ExcelFeed.pm
index a0c11e6..2725f42 100644
--- a/lib/RT/Extension/ExcelFeed.pm
+++ b/lib/RT/Extension/ExcelFeed.pm
@@ -2,7 +2,7 @@ use strict;
 use warnings;
 package RT::Extension::ExcelFeed;
 
-our $VERSION = '0.08';
+our $VERSION = '0.09';
 
 =head1 NAME
 

commit 41c0ce0f66963ee3139f9c3f53c6aa4f23448581
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date:   Mon Nov 13 17:05:50 2023 -0300

    Update POD with the new ShowChartDownloadButton option

diff --git a/lib/RT/Extension/ExcelFeed.pm b/lib/RT/Extension/ExcelFeed.pm
index cf79543..a0c11e6 100644
--- a/lib/RT/Extension/ExcelFeed.pm
+++ b/lib/RT/Extension/ExcelFeed.pm
@@ -48,6 +48,19 @@ May need root permissions
 
 =back
 
+=head1 CONFIGURATION
+
+=over
+
+=item C<ShowChartDownloadButton>
+
+By default, a "Download as Microsoft Execel Spreadsheet" button is enabled
+on Charts. You can disable it by setting this option to 0.
+
+    Set( $ShowChartDownloadButton, 0 );
+
+=back
+
 =head1 AUTHOR
 
 Best Practical Solutions, LLC E<lt>modules at bestpractical.comE<gt>

commit b10f2b18cf50439dbf4aec5a102d4571f964fb5d
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date:   Mon Nov 13 17:03:36 2023 -0300

    Add option to show or hide download button on charts
    
    Add $ShowChartDownloadButton configuration that allows to show or hide
    download button on charts. Defaults to 1 (show).

diff --git a/etc/ExcelFeed_Config.pm b/etc/ExcelFeed_Config.pm
new file mode 100644
index 0000000..5d8b839
--- /dev/null
+++ b/etc/ExcelFeed_Config.pm
@@ -0,0 +1,3 @@
+Set( $ShowChartDownloadButton, 1 );
+
+1;
diff --git a/html/Callbacks/RT-Extension-ExcelFeed/Search/Elements/Chart/AfterChartTable b/html/Callbacks/RT-Extension-ExcelFeed/Search/Elements/Chart/AfterChartTable
index b76befe..608275b 100644
--- a/html/Callbacks/RT-Extension-ExcelFeed/Search/Elements/Chart/AfterChartTable
+++ b/html/Callbacks/RT-Extension-ExcelFeed/Search/Elements/Chart/AfterChartTable
@@ -1,5 +1,7 @@
 <a href="<% $href %>" class="button btn btn-primary"><&|/l&>Download as Microsoft Excel Spreadsheet</&></a>
 <%INIT>
+return unless RT->Config->Get('ShowChartDownloadButton');
+
 my $query_string = '?' . $m->comp('/Elements/QueryString',
     Query            => $ARGSRef->{Query},
     GroupBy          => $ARGSRef->{GroupBy},

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


hooks/post-receive
-- 
rt-extension-excelfeed


More information about the Bps-public-commit mailing list