[Bps-public-commit] SD - A distributed issue tracker branch, master, updated. d2eb30d1abc1533530455517af464ed013d9a038

spang at bestpractical.com spang at bestpractical.com
Thu Jan 29 05:42:06 EST 2009


The branch, master has been updated
       via  d2eb30d1abc1533530455517af464ed013d9a038 (commit)
       via  1b4bea7d1b6d2524af2cc85e7bf46bc07d758716 (commit)
       via  51f60d18fb24a3acac43acda43a4f57e0c39cd9d (commit)
      from  9936b0f26b29240c32733f42f2e68510b44e5d52 (commit)

Summary of changes:
 lib/App/SD/CLI/Command/Help.pm         |    1 +
 lib/App/SD/CLI/Command/Help/Tickets.pm |    4 ++++
 lib/App/SD/CLI/Dispatcher.pm           |    2 +-
 lib/App/SD/Model/Attachment.pm         |    3 ---
 lib/App/SD/Record.pm                   |    4 ----
 t/sd-dispatcher.t                      |   21 ++++++++++++++++++++-
 6 files changed, 26 insertions(+), 9 deletions(-)

- Log -----------------------------------------------------------------
commit 51f60d18fb24a3acac43acda43a4f57e0c39cd9d
Author: Christine Spang <spang at bestpractical.com>
Date:   Thu Jan 29 12:09:27 2009 +0200

    whoops, forgot to add the history help to the help index

diff --git a/lib/App/SD/CLI/Command/Help.pm b/lib/App/SD/CLI/Command/Help.pm
index d254e5f..e3b1c0e 100644
--- a/lib/App/SD/CLI/Command/Help.pm
+++ b/lib/App/SD/CLI/Command/Help.pm
@@ -49,6 +49,7 @@ $cmd help tickets     -  Working with tickets
 $cmd help comments    -  Working with ticket comments
 $cmd help attachments -  Working with ticket attachments
 $cmd help sync        -  Publishing and importing ticket databases
+$cmd help history     -  Viewing repository history
 $cmd help environment -  Environment variables which affect sd
 $cmd help config      -  Local configuration variables
 $cmd help summary_format_ticket  -  Details of this config variable

commit 1b4bea7d1b6d2524af2cc85e7bf46bc07d758716
Author: Christine Spang <spang at bestpractical.com>
Date:   Thu Jan 29 12:09:42 2009 +0200

    remove some pre-moosing cruft

diff --git a/lib/App/SD/Model/Attachment.pm b/lib/App/SD/Model/Attachment.pm
index b4c0311..d109a92 100644
--- a/lib/App/SD/Model/Attachment.pm
+++ b/lib/App/SD/Model/Attachment.pm
@@ -1,6 +1,3 @@
-use warnings;
-use strict;
-
 package App::SD::Model::Attachment;
 use Moose;
 extends 'App::SD::Record';
diff --git a/lib/App/SD/Record.pm b/lib/App/SD/Record.pm
index 3407dee..bfe2add 100644
--- a/lib/App/SD/Record.pm
+++ b/lib/App/SD/Record.pm
@@ -1,6 +1,3 @@
-use warnings;
-use strict;
-
 package App::SD::Record; 
 use Moose;
 use Params::Validate;
@@ -10,7 +7,6 @@ extends 'Prophet::Record';
 
 sub declared_props { 'created', inner() }
 
-
 sub canonicalize_prop_created {
     my $self = shift;
     my %args = validate(@_, { props => 1, errors => 1});

commit d2eb30d1abc1533530455517af464ed013d9a038
Author: Christine Spang <spang at bestpractical.com>
Date:   Thu Jan 29 12:26:47 2009 +0200

    alias 'give' to 'assign' and doc it

diff --git a/lib/App/SD/CLI/Command/Help/Tickets.pm b/lib/App/SD/CLI/Command/Help/Tickets.pm
index adc71a7..46c584a 100644
--- a/lib/App/SD/CLI/Command/Help/Tickets.pm
+++ b/lib/App/SD/CLI/Command/Help/Tickets.pm
@@ -47,6 +47,10 @@ print <<EOF
       from either the 'email_address' local config variable or the
       EMAIL environmental variable). An alias of 'take' is 'claim'.
 
+    $cmd ticket give 123 nobody\@example.com
+      Sets the owner of ticket 123 to nobody\@example.com.
+      An alias of 'give' is 'assign'.
+
     $cmd ticket resolve 123
       Sets the status of the ticket with local id 123 to closed.
 
diff --git a/lib/App/SD/CLI/Dispatcher.pm b/lib/App/SD/CLI/Dispatcher.pm
index c609e32..67ca194 100644
--- a/lib/App/SD/CLI/Dispatcher.pm
+++ b/lib/App/SD/CLI/Dispatcher.pm
@@ -56,7 +56,7 @@ under ticket => sub {
     on comment  => run_command('Ticket::Comment');
     on details  => run_command('Ticket::Details');
 
-    under give => sub {
+    under [ [ 'give', 'assign' ] ] => sub {
         on [qr/^(?:\d+|[0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12})$/, qr/^\S+$/] => sub {
             my $self = shift;
             my ($id, $owner) = ($1, $2);
diff --git a/t/sd-dispatcher.t b/t/sd-dispatcher.t
index 398970b..f37fe3f 100644
--- a/t/sd-dispatcher.t
+++ b/t/sd-dispatcher.t
@@ -2,7 +2,7 @@
 
 use strict;
 
-use Prophet::Test tests => 20;
+use Prophet::Test tests => 22;
 use App::SD::Test;
 no warnings 'once';
 
@@ -163,6 +163,25 @@ run_output_matches( 'sd', [ 'ticket', 'basics', '--batch', '--id', $yatta_id ],
     ]
 );
 
+run_output_matches( 'sd', [ 'ticket', 'assign', $yatta_id, 'spang at bestpractical.com' ],
+    [ "Ticket $yatta_id ($yatta_uuid) updated." ]
+);
+
+run_output_matches( 'sd', [ 'ticket', 'basics', '--batch', '--id', $yatta_id ],
+    [
+        "id: $yatta_id ($yatta_uuid)",
+        'summary: YATTA',
+        'status: closed',
+        'milestone: alpha',
+        'component: core',
+        'owner: spang at bestpractical.com',
+        qr/^created: \d{4}-\d{2}-\d{2}.+$/,
+        qr/^creator: /,
+        'reporter: ' . $ENV{EMAIL},
+        "original_replica: " . replica_uuid,
+    ]
+);
+
 run_output_matches( 'sd', [ 'ticket', 'give' ],
     [],
     [ 'Usage: give <id> <email>' ]

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



More information about the Bps-public-commit mailing list