[Bps-public-commit] SD branch, master, updated. 66c3c8e5de5de0a0ed3da46349a2d5ca4a055e22
jesse
jesse at bestpractical.com
Fri Apr 10 15:04:29 EDT 2009
The branch, master has been updated
via 66c3c8e5de5de0a0ed3da46349a2d5ca4a055e22 (commit)
via 42f1d3b756146e090f5785bd169ead859bf5ef8c (commit)
via 95c22c6a0a7ebdf6647c1283f4ce48de6de72aa0 (commit)
via 370cb8dfecdec5b04677d3112c12d54849b57cab (commit)
from 6f1c1449710523b4c0b9641f5073459f639f8b02 (commit)
Summary of changes:
lib/App/SD/CLI/Dispatcher.pm | 12 +++++++++++-
share/web/static/css/main.css | 9 ++++-----
t/sd-dispatcher.t | 11 ++++++++++-
3 files changed, 25 insertions(+), 7 deletions(-)
- Log -----------------------------------------------------------------
commit 370cb8dfecdec5b04677d3112c12d54849b57cab
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Thu Apr 9 19:32:48 2009 -0400
style updates
diff --git a/share/web/static/css/main.css b/share/web/static/css/main.css
index d4c8d22..cbede37 100644
--- a/share/web/static/css/main.css
+++ b/share/web/static/css/main.css
@@ -71,14 +71,12 @@ h1 {
text-overflow:ellipsis;
padding-top:0.3em;
padding-left: 70px;
- padding-bottom: 0.3em;
- padding-right: 0.25em;
margin-bottom: 2.5em;
background-color: #666;
color: #fff;
text-decoration: none;
font-size: 1.6em;
- border-bottom: 1px solid #ccc;
+ border-bottom: 0.25em solid #666;
z-index: 0;
}
@@ -94,7 +92,7 @@ ul.actions {
align: center;
display: block;
min-width: 1em;
- max-width: 12em;
+ max-width: 14em;
margin-left: auto;
margin-right: auto;
padding: 0.25em;
@@ -301,7 +299,7 @@ div.widget.description {
div.widget.description .value {
- white-space: pre;
+ white-space: normal;
display: block;
overflow-x: auto;
}
@@ -630,6 +628,7 @@ table.tablesorter td a:hover {
table.tablesorter td.summary {
margin-top: 0em;
+ background: #f00;
padding: 0;
font-weight: normal;
right:1.5em;
commit 95c22c6a0a7ebdf6647c1283f4ce48de6de72aa0
Merge: 370cb8d... 6f1c144...
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Fri Apr 10 15:02:54 2009 -0400
Merge branch 'master' of code.bestpractical.com:/git/sd
commit 42f1d3b756146e090f5785bd169ead859bf5ef8c
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Fri Apr 10 15:03:30 2009 -0400
Dispatcher tests for "foo ticket" working as "ticket foo"
diff --git a/t/sd-dispatcher.t b/t/sd-dispatcher.t
index 106a48b..ffed337 100644
--- a/t/sd-dispatcher.t
+++ b/t/sd-dispatcher.t
@@ -2,7 +2,7 @@
use strict;
-use Prophet::Test tests => 22;
+use Prophet::Test tests => 24;
use App::SD::Test;
no warnings 'once';
@@ -23,6 +23,11 @@ run_output_matches( 'sd', [ 'ticket',
[ qr/(\d+) YATTA new/]
);
+run_output_matches( 'sd', [ 'list', 'ticket',
+ '--regex', '.' ],
+ [ qr/(\d+) YATTA new/]
+);
+
# test claim
run_output_matches( 'sd', [ 'ticket', 'claim', $yatta_id ],
[ "Ticket $yatta_id ($yatta_uuid) updated." ]
@@ -185,6 +190,10 @@ run_output_matches( 'sd', [ 'ticket', 'give' ],
[],
[ 'Usage: give <id> <email>' ]
);
+run_output_matches( 'sd', [ 'give' , 'ticket' ],
+ [],
+ [ 'Usage: give <id> <email>' ]
+);
run_output_matches( 'sd', [ 'ticket', 'give', $yatta_id ],
[],
commit 66c3c8e5de5de0a0ed3da46349a2d5ca4a055e22
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Fri Apr 10 15:04:18 2009 -0400
support for switching ticket/foo to foo/ticket
diff --git a/lib/App/SD/CLI/Dispatcher.pm b/lib/App/SD/CLI/Dispatcher.pm
index 9e50271..8b9fcb7 100644
--- a/lib/App/SD/CLI/Dispatcher.pm
+++ b/lib/App/SD/CLI/Dispatcher.pm
@@ -48,6 +48,16 @@ under help => sub {
on help => run_command('Help');
on browser => run_command('Browser');
+on qr/^(\w+)\s+tickets?(.*)$/ => sub {
+ my $self = shift;
+ my $primary = $1;
+ my $secondary = $2;
+ my $cmd = join( ' ', grep { $_ ne '' } 'ticket',$primary, $secondary);
+ my @orig_argv = @{$self->cli->context->raw_args};
+ my ($subcommand, undef) = (shift @orig_argv, shift @orig_argv);
+ $self->cli->run_one_command( 'ticket', $subcommand, @orig_argv);
+};
+
under ticket => sub {
on [ [ 'search', 'list', 'ls' ] ] => run_command('Ticket::Search');
on [ [ 'new', 'create' ] ] => run_command('Ticket::Create');
@@ -135,7 +145,7 @@ on qr/^(.*)$/ => sub {
};
-sub run_command {Prophet::CLI::Dispatcher::run_command(@_) }
+sub run_command { Prophet::CLI::Dispatcher::run_command(@_) }
__PACKAGE__->meta->make_immutable;
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list