[Bps-public-commit] RT-Client-CLI branch, master, updated. 531fffa4bdc8c84bbff45a97aba4826d691ae8cb

Alex Vandiver alexmv at bestpractical.com
Mon Oct 27 12:35:22 EDT 2014


The branch, master has been updated
       via  531fffa4bdc8c84bbff45a97aba4826d691ae8cb (commit)
       via  becef2b04cf45932f9a326738169da0f9f3139ca (commit)
       via  bfc1952404a5b7f1376087e6ca5403f39a0025ee (commit)
      from  e9eba8d28c21ca49d2f8901cea206b91d73f4c4d (commit)

Summary of changes:
 Changes              | 25 ++++++++++++++-----------
 LICENSE              |  2 +-
 META.json            |  5 +++--
 Makefile.PL          |  5 ++---
 README.md            |  8 ++++----
 lib/RT/Client/CLI.pm |  2 +-
 script/rt            | 14 ++++++++++++--
 7 files changed, 37 insertions(+), 24 deletions(-)

- Log -----------------------------------------------------------------
commit bfc1952404a5b7f1376087e6ca5403f39a0025ee
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Oct 27 12:15:19 2014 -0400

    Update to 4.2.7

diff --git a/script/rt b/script/rt
index d2c4d6b..ebe50b2 100644
--- a/script/rt
+++ b/script/rt
@@ -322,6 +322,7 @@ sub list {
     }
     if ( ! $rawprint and ! exists $data{format} ) {
         $data{format} = 'l';
+        $data{fields} = 'subject,status,queue,created,told,owner,requestors';
     }
     if ( $reverse_sort and $data{orderby} =~ /^-/ ) {
         $data{orderby} =~ s/^-/+/;
@@ -792,6 +793,7 @@ sub comment {
     my ($action) = @_;
     my (%data, $id, @files, @bcc, @cc, $msg, $content_type, $wtime, $edit);
     my $bad = 0;
+    my $status = '';
 
     while (@ARGV) {
         $_ = shift @ARGV;
@@ -799,7 +801,7 @@ sub comment {
         if (/^-e$/) {
             $edit = 1;
         }
-        elsif (/^-(?:[abcmw]|ct)$/) {
+        elsif (/^-(?:[abcmws]|ct)$/) {
             unless (@ARGV) {
                 whine "No argument specified with $_.";
                 $bad = 1; last;
@@ -815,6 +817,9 @@ sub comment {
             elsif (/-ct/) {
                 $content_type = shift @ARGV;
             }
+            elsif (/-s/) {
+                $status = shift @ARGV;
+            }
             elsif (/-([bc])/) {
                 my $a = $_ eq "-b" ? \@bcc : \@cc;
                 @$a = split /\s*,\s*/, shift @ARGV;
@@ -857,9 +862,12 @@ sub comment {
             TimeWorked => $wtime || '',
             'Content-Type' => $content_type || 'text/plain',
             Text       => $msg || '',
-            Status => ''
+            Status => $status
         }
     ];
+    if ($status ne '') {
+      push(@{$form->[1]}, "Status");
+    }
 
     my $text = Form::compose([ $form ]);
 
@@ -2402,6 +2410,8 @@ Text:
                         than once to attach multiple files.)
         -c <addrs>      A comma-separated list of Cc addresses.
         -b <addrs>      A comma-separated list of Bcc addresses.
+        -s <status>     Set a new status for the ticket (default will
+                        leave the status unchanged)
         -w <time>       Specify the time spent working on this ticket.
         -e              Starts an editor before the submission, even if
                         arguments from the command line were sufficient.

commit becef2b04cf45932f9a326738169da0f9f3139ca
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Oct 27 12:30:52 2014 -0400

    Updates from dzil

diff --git a/Changes b/Changes
index 5b6a944..b70a5b4 100644
--- a/Changes
+++ b/Changes
@@ -1,17 +1,20 @@
 Revision history for RT-Client-CLI
 
-{{$NEXT}}
+4.2.7 2014-10-27
+ - Allow status modification while commenting
+ - with 'rt ls', only ask for the fields that will be displayed
 
-4.2.2  2014-01-13 18:40:13 EST
-        - Display original text in editor after errors
-        - Support searching for queues, users, and groups, on RT >= 4.2.2
+4.2.2 2014-01-13
+ - Display original text in editor after errors
+ - Support searching for queues, users, and groups, on RT >= 4.2.2
 
-4.0.14  2013-07-25 09:53:19 PDT
-        - Allow creation of text/html correspondence/comments via -ct
-        - Support for attaching files on create
+4.0.14 2013-07-25
+ - Allow creation of text/html correspondence/comments via -ct
+ - Support for attaching files on create
 
-4.0.13.1  2013-06-21 17:18:58 PDT
-        - Switch installer to ExtUtils::MakeMaker for less deps
+4.0.13.1 2013-06-21
+ - Switch installer to ExtUtils::MakeMaker for less deps
+
+4.0.13 2013-05-29
+ - Initial release
 
-4.0.13  2013-05-29 11:26:22 PDT
-        - Initial release
diff --git a/LICENSE b/LICENSE
index 7ffce34..029392f 100644
--- a/LICENSE
+++ b/LICENSE
@@ -8,7 +8,7 @@ This is free software, licensed under:
                        Version 2, June 1991
 
  Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
- 51 Franklin St, Suite 500, Boston, MA  02110-1335  USA
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  Everyone is permitted to copy and distribute verbatim copies
  of this license document, but changing it is not allowed.
 
diff --git a/META.json b/META.json
index 8bb03f7..99d2b38 100644
--- a/META.json
+++ b/META.json
@@ -4,7 +4,7 @@
       "Best Practical Solutions, LLC"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Milla version v1.0.4, Dist::Zilla version 5.011, CPAN::Meta::Converter version 2.132661",
+   "generated_by" : "Dist::Milla version v1.0.8, Dist::Zilla version 5.019, CPAN::Meta::Converter version 2.140640",
    "license" : [
       "gpl_2"
    ],
@@ -43,6 +43,7 @@
       },
       "develop" : {
          "requires" : {
+            "Dist::Milla" : "v1.0.8",
             "Test::Pod" : "1.41"
          }
       },
@@ -80,7 +81,7 @@
          "web" : "https://github.com/bestpractical/rt-client-cli"
       }
    },
-   "version" : "4.2.2",
+   "version" : "4.2.7",
    "x_contributors" : [
       "Thomas Sibley <trs at bestpractical.com>"
    ]
diff --git a/Makefile.PL b/Makefile.PL
index 7a77716..5b9afc2 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,5 +1,5 @@
 
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.011.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.019.
 use strict;
 use warnings;
 
@@ -12,7 +12,6 @@ use ExtUtils::MakeMaker 6.30;
 my %WriteMakefileArgs = (
   "ABSTRACT" => "Provides the official rt command line client",
   "AUTHOR" => "Best Practical Solutions, LLC",
-  "BUILD_REQUIRES" => {},
   "CONFIGURE_REQUIRES" => {
     "ExtUtils::MakeMaker" => "6.30"
   },
@@ -37,7 +36,7 @@ my %WriteMakefileArgs = (
   "TEST_REQUIRES" => {
     "Test::More" => "0.88"
   },
-  "VERSION" => "4.2.2",
+  "VERSION" => "4.2.7",
   "test" => {
     "TESTS" => "t/*.t"
   }
diff --git a/README.md b/README.md
index 3fa15b2..76bdc6a 100644
--- a/README.md
+++ b/README.md
@@ -4,18 +4,18 @@ RT::Client::CLI - Provides the official rt command line client
 
 # SYNOPSIS
 
-See [rt](http://search.cpan.org/perldoc?rt).
+See [rt](https://metacpan.org/pod/rt).
 
 # DESCRIPTION
 
-RT::Client::CLI is a CPAN-ready package for the [rt](http://search.cpan.org/perldoc?rt) command-line program
+RT::Client::CLI is a CPAN-ready package for the [rt](https://metacpan.org/pod/rt) command-line program
 that interacts with [RT](https://bestpractical.com/rt).
 
 No code is changed from the program shipped with RT.  This is just an easy-to-
-install package when you want the [rt](http://search.cpan.org/perldoc?rt) program on another computer.
+install package when you want the [rt](https://metacpan.org/pod/rt) program on another computer.
 
 The version of this package is kept in lockstep with the corresponding RT
-version from which the included [rt](http://search.cpan.org/perldoc?rt) was extracted.
+version from which the included [rt](https://metacpan.org/pod/rt) was extracted.
 
 # COPYRIGHT
 

commit 531fffa4bdc8c84bbff45a97aba4826d691ae8cb
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Oct 27 12:35:20 2014 -0400

    4.2.7

diff --git a/lib/RT/Client/CLI.pm b/lib/RT/Client/CLI.pm
index 258c355..8a68015 100644
--- a/lib/RT/Client/CLI.pm
+++ b/lib/RT/Client/CLI.pm
@@ -3,7 +3,7 @@ package RT::Client::CLI;
 use strict;
 use warnings;
 use 5.008_005;
-our $VERSION = '4.2.2';
+our $VERSION = '4.2.7';
 
 1;
 __END__

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


More information about the Bps-public-commit mailing list