[Bps-public-commit] SD branch, master, updated. c074790c16eac9a6cc4b07f2026eb94dde47666d

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue May 26 23:06:16 EDT 2009


The branch, master has been updated
       via  c074790c16eac9a6cc4b07f2026eb94dde47666d (commit)
      from  6c173fdfcd794d9975263c7f6bb838a5f37a574c (commit)

Summary of changes:
 lib/App/SD/Replica/gcode.pm             |    4 ++--
 lib/App/SD/Replica/gcode/PullEncoder.pm |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit c074790c16eac9a6cc4b07f2026eb94dde47666d
Author: sunnavy <sunnavy at gmail.com>
Date:   Wed May 27 11:05:37 2009 +0800

    small fixes for gcode

diff --git a/lib/App/SD/Replica/gcode.pm b/lib/App/SD/Replica/gcode.pm
index 8d790fc..ec555cf 100644
--- a/lib/App/SD/Replica/gcode.pm
+++ b/lib/App/SD/Replica/gcode.pm
@@ -21,7 +21,7 @@ our %PROP_MAP = (
     closed   => 'completed',
     reported => 'created',
     labels   => 'tags',
-    priority => 'priority_integer',
+    priority => 'priority',
 );
 
 
@@ -30,7 +30,7 @@ has gcode => ( isa => 'Net::Google::Code', is => 'rw');
 has project => ( isa => 'Str', is => 'rw');
 
 sub remote_url { return "http://code.google.com/p/".shift->project}
-sub foreign_username { return shift->gcode->user(@_) }
+sub foreign_username { return shift->gcode->email(@_) }
 
 sub BUILD {
     my $self = shift;
diff --git a/lib/App/SD/Replica/gcode/PullEncoder.pm b/lib/App/SD/Replica/gcode/PullEncoder.pm
index b4df5dd..f96fa26 100644
--- a/lib/App/SD/Replica/gcode/PullEncoder.pm
+++ b/lib/App/SD/Replica/gcode/PullEncoder.pm
@@ -29,7 +29,7 @@ sub _translate_final_ticket_state {
 
     for my $label (@labels) {
         if ( $label =~ /(.*?)-(.*)/ ) {
-            $prop{$1} = $2;
+            $prop{lc $1} = $2;
         }
         else {
             push @tags, $label;

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



More information about the Bps-public-commit mailing list