[Bps-public-commit] rt-extension-rest2 branch master updated. 1.14-9-g2353884
BPS Git Server
git at git.bestpractical.com
Mon Apr 11 18:47:42 UTC 2022
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-rest2".
The branch, master has been updated
via 2353884d3e48888eee918924902a52a9cb351f2f (commit)
via 58b3a255f732c96f77d6237911c8465830761eb3 (commit)
via 4e6e6c277ffa28c92f7517e090948d84ff65ab39 (commit)
via f67f59f532a87c22e124e8aed51c5a14e63e9d32 (commit)
from 8d2ec27e8aa246914fc3a210245b5b8d289e7f1f (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 2353884d3e48888eee918924902a52a9cb351f2f
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Mon Apr 11 14:40:32 2022 -0400
Prep version 1.16
diff --git a/Changes b/Changes
index 8439331..ee1efd4 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,11 @@
Revision history for RT-Extension-REST2
+1.16 2022-04-11
+ - Refactor CleanupRequest into a PSGI middleware module to make sure it
+ gets called consistently.
+ - Set the current interface to REST2 for REST2-based requests, if
+ supported in the running RT.
+
1.15 2021-10-18
- Support custom roles by name on ticket update
- Add RT Version section
diff --git a/MANIFEST b/MANIFEST
index 5d6d6b6..8ebefbf 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -17,6 +17,7 @@ inc/YAML/Tiny.pm
lib/RT/Extension/REST2.pm
lib/RT/Extension/REST2/Dispatcher.pm
lib/RT/Extension/REST2/Middleware/Auth.pm
+lib/RT/Extension/REST2/Middleware/CleanupRequest.pm
lib/RT/Extension/REST2/Middleware/ErrorAsJSON.pm
lib/RT/Extension/REST2/Middleware/Log.pm
lib/RT/Extension/REST2/PodViewer.pm
diff --git a/META.yml b/META.yml
index 0eca5f4..03e7504 100644
--- a/META.yml
+++ b/META.yml
@@ -43,7 +43,7 @@ requires:
perl: 5.10.1
resources:
license: http://opensource.org/licenses/gpl-license.php
-version: '1.15'
-x_module_install_rtx_version: '0.42'
+version: '1.16'
+x_module_install_rtx_version: '0.43'
x_requires_rt: 4.2.4
x_rt_too_new: 5.0.0
diff --git a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm
index 2dd9489..2889ece 100644
--- a/inc/Module/Install/RTx.pm
+++ b/inc/Module/Install/RTx.pm
@@ -9,7 +9,7 @@ no warnings 'once';
use Term::ANSIColor qw(:constants);
use Module::Install::Base;
use base 'Module::Install::Base';
-our $VERSION = '0.42';
+our $VERSION = '0.43';
use FindBin;
use File::Glob ();
@@ -134,7 +134,7 @@ lexicons ::
if( $extra_args->{'remove_files'} ){
$self->include('Module::Install::RTx::Remove');
our @remove_files;
- eval { require "etc/upgrade/remove_files" }
+ eval { require "./etc/upgrade/remove_files" }
or print "No remove file located, no files to remove\n";
$remove_files = join ",", map {"q(\$(DESTDIR)$plugin_path/$name/$_)"} @remove_files;
}
diff --git a/lib/RT/Extension/REST2.pm b/lib/RT/Extension/REST2.pm
index 6bfba12..9ff91ea 100644
--- a/lib/RT/Extension/REST2.pm
+++ b/lib/RT/Extension/REST2.pm
@@ -4,7 +4,7 @@ use 5.010001;
package RT::Extension::REST2;
-our $VERSION = '1.15';
+our $VERSION = '1.16';
our $REST_PATH = '/REST/2.0';
use Plack::Builder;
commit 58b3a255f732c96f77d6237911c8465830761eb3
Merge: 8d2ec27 4e6e6c2
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Mon Apr 11 14:23:02 2022 -0400
Merge branch 'set-current-interface'
-----------------------------------------------------------------------
Summary of changes:
Changes | 6 ++
MANIFEST | 1 +
META.yml | 4 +-
inc/Module/Install/RTx.pm | 4 +-
lib/RT/Extension/REST2.pm | 26 +--------
lib/RT/Extension/REST2/Dispatcher.pm | 1 +
.../Extension/REST2/Middleware/CleanupRequest.pm | 64 ++++++++++++++++++++++
7 files changed, 78 insertions(+), 28 deletions(-)
create mode 100644 lib/RT/Extension/REST2/Middleware/CleanupRequest.pm
hooks/post-receive
--
rt-extension-rest2
More information about the Bps-public-commit
mailing list