[Bps-public-commit] rt-extension-onetimeto branch, master, updated. 1.03-3-gfb3d462
? sunnavy
sunnavy at bestpractical.com
Thu Aug 30 20:20:01 EDT 2018
The branch, master has been updated
via fb3d46220f172a7f5df3c10533af7f9b8cef4499 (commit)
via 7fd12d65cf830e121ed69488790c9cd2dadd9a2b (commit)
via dcd0755552f3009e34b83cde9626ac3fcab45b0c (commit)
from c7d52c7a6db32d292d8bafe319d26961bb4f130b (commit)
Summary of changes:
Changes | 3 +++
META.yml | 4 ++--
inc/Module/Install/RTx.pm | 2 +-
inc/Module/Install/RTx/Runtime.pm | 1 +
inc/YAML/Tiny.pm | 6 +++---
lib/RT/Extension/OneTimeTo.pm | 7 +++++--
6 files changed, 15 insertions(+), 8 deletions(-)
- Log -----------------------------------------------------------------
commit dcd0755552f3009e34b83cde9626ac3fcab45b0c
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Aug 30 02:15:37 2018 +0800
Fix a double-encoding issue in RT::Ticket::_RecordNote
The code was copied from RT core, so is this change(6d9bd63).
diff --git a/lib/RT/Extension/OneTimeTo.pm b/lib/RT/Extension/OneTimeTo.pm
index c927cf8..bffa2fd 100644
--- a/lib/RT/Extension/OneTimeTo.pm
+++ b/lib/RT/Extension/OneTimeTo.pm
@@ -60,8 +60,11 @@ my $orig_note = RT::Ticket->can('_RecordNote');
# lazily initialize the MIMEObj if needed; copied from original method
unless ( $args{'MIMEObj'} ) {
+ my $data = ref $args{'Content'}? $args{'Content'} : [ $args{'Content'} ];
$args{'MIMEObj'} = MIME::Entity->build(
- Data => ( ref $args{'Content'}? $args{'Content'}: [ $args{'Content'} ] )
+ Type => "text/plain",
+ Charset => "UTF-8",
+ Data => [ map {Encode::encode("UTF-8", $_)} @{$data} ],
);
}
commit 7fd12d65cf830e121ed69488790c9cd2dadd9a2b
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Aug 30 03:08:21 2018 +0800
Update inc
diff --git a/META.yml b/META.yml
index e165c24..b918c58 100644
--- a/META.yml
+++ b/META.yml
@@ -27,6 +27,6 @@ resources:
license: http://opensource.org/licenses/gpl-license.php
repository: https://github.com/bestpractical/rt-extension-onetimeto
version: '1.03'
-x_module_install_rtx_version: '0.39'
+x_module_install_rtx_version: '0.40'
x_requires_rt: 4.2.0
x_rt_too_new: 4.6.0
diff --git a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm
index 3268e7e..7cad529 100644
--- a/inc/Module/Install/RTx.pm
+++ b/inc/Module/Install/RTx.pm
@@ -8,7 +8,7 @@ no warnings 'once';
use Module::Install::Base;
use base 'Module::Install::Base';
-our $VERSION = '0.39';
+our $VERSION = '0.40';
use FindBin;
use File::Glob ();
diff --git a/inc/Module/Install/RTx/Runtime.pm b/inc/Module/Install/RTx/Runtime.pm
index 937949f..ae07502 100644
--- a/inc/Module/Install/RTx/Runtime.pm
+++ b/inc/Module/Install/RTx/Runtime.pm
@@ -33,6 +33,7 @@ sub RTxDatabase {
my $lib_path = File::Basename::dirname($INC{'RT.pm'});
my @args = (
+ "-I.",
"-Ilib",
"-I$RT::LocalLibPath",
"-I$lib_path",
diff --git a/inc/YAML/Tiny.pm b/inc/YAML/Tiny.pm
index 4fd023d..fb157a6 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.69-8-g2c1e266
+package YAML::Tiny; # git description: v1.72-7-g8682f63
# 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.70';
+our $VERSION = '1.73';
#####################################################################
# The YAML::Tiny API.
@@ -374,7 +374,7 @@ sub _load_scalar {
while ( @$lines ) {
$lines->[0] =~ /^(\s*)/;
last unless length($1) >= $indent->[-1];
- push @multiline, substr(shift(@$lines), length($1));
+ push @multiline, substr(shift(@$lines), $indent->[-1]);
}
my $j = (substr($string, 0, 1) eq '>') ? ' ' : "\n";
commit fb3d46220f172a7f5df3c10533af7f9b8cef4499
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Aug 30 03:09:49 2018 +0800
Release 1.04
diff --git a/Changes b/Changes
index 56306c5..2a37373 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,6 @@
+1.04 2018-08-29
+ - Fix a double-encoding issue in RT::Ticket::_RecordNote
+
1.03 2018-01-03
- Fix tests to be author tests, and work without RT in @INC
diff --git a/META.yml b/META.yml
index b918c58..e5da620 100644
--- a/META.yml
+++ b/META.yml
@@ -26,7 +26,7 @@ requires:
resources:
license: http://opensource.org/licenses/gpl-license.php
repository: https://github.com/bestpractical/rt-extension-onetimeto
-version: '1.03'
+version: '1.04'
x_module_install_rtx_version: '0.40'
x_requires_rt: 4.2.0
x_rt_too_new: 4.6.0
diff --git a/lib/RT/Extension/OneTimeTo.pm b/lib/RT/Extension/OneTimeTo.pm
index bffa2fd..fc8d839 100644
--- a/lib/RT/Extension/OneTimeTo.pm
+++ b/lib/RT/Extension/OneTimeTo.pm
@@ -3,7 +3,7 @@ use strict;
use warnings;
no warnings 'redefine';
-our $VERSION = '1.03';
+our $VERSION = '1.04';
{
# Includes RT-Send-To in the list of headers used to grab
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list