[Bps-public-commit] SD branch, master, updated. 0.73-47-g7aa2474

jesse jesse at bestpractical.com
Tue Feb 2 13:29:54 EST 2010


The branch, master has been updated
       via  7aa24740e2aab14219b48e17b6f60cedd3db319b (commit)
       via  6f9cc6a9c4cdf1ac37f53ff5ec9c3fec4d2343c9 (commit)
       via  e47c982c87a836762c6fee29864f8c4e71a32bbf (commit)
       via  127b6c462b05f8fefff7c9a7be2ac9e17e410422 (commit)
      from  b8b7de9cd8bb3d535acb64a60c83b0e0f35bfa6b (commit)

Summary of changes:
 Makefile.PL                  |    1 +
 bin/sd                       |   16 ++++++++++++++++
 lib/App/SD.pm                |   17 +++++++++++++++++
 lib/App/SD/Replica/github.pm |   10 +++++++++-
 4 files changed, 43 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 127b6c462b05f8fefff7c9a7be2ac9e17e410422
Author: Michael G. Schwern <schwern at pobox.com>
Date:   Fri Jan 29 13:04:08 2010 -0800

    A little bit of POD to point at the read docs and to get a search.cpan.org page.

diff --git a/bin/sd b/bin/sd
index f6c101b..2aa4e6b 100755
--- a/bin/sd
+++ b/bin/sd
@@ -25,3 +25,19 @@ unless ($ENV{SD_VERBOSE_ERROR} || $ENV{'TEST_VERBOSE'}) {
 my $cli = App::SD::CLI->new;
 $cli->run_one_command(@ARGV);
 
+__END__
+
+=head1 NAME
+
+sd - a distributed ticket tracking system
+
+=head1 DESCRIPTION
+
+SD is a peer to peer ticket tracking system built on the Prophet
+distributed database. SD is designed to make it easy to work with tickets
+and to share ticket databases with your collaborators.
+
+Please run C<sd help> for documentation and C<sd help intro> for an
+introduction to SD.
+
+=cut
diff --git a/lib/App/SD.pm b/lib/App/SD.pm
index fd999ad..554367e 100644
--- a/lib/App/SD.pm
+++ b/lib/App/SD.pm
@@ -52,3 +52,20 @@ __PACKAGE__->meta->make_immutable;
 
 no Any::Moose;
 1;
+
+__END__
+
+=head1 NAME
+
+App::SD - a distributed ticket tracking system
+
+=head1 DESCRIPTION
+
+SD is a peer to peer ticket tracking system built on the Prophet
+distributed database. SD is designed to make it easy to work with tickets
+and to share ticket databases with your collaborators.
+
+Please run C<sd help> for documentation and C<sd help intro> for an
+introduction to SD.
+
+=cut

commit e47c982c87a836762c6fee29864f8c4e71a32bbf
Author: franck cuny <franck at lumberjaph.net>
Date:   Sun Jan 31 16:27:48 2010 +0100

    check if api token is set in global git config file (http://github.com/blog/180-local-github-config)

diff --git a/lib/App/SD/Replica/github.pm b/lib/App/SD/Replica/github.pm
index 346d013..7a69e08 100644
--- a/lib/App/SD/Replica/github.pm
+++ b/lib/App/SD/Replica/github.pm
@@ -8,7 +8,7 @@ use Memoize;
 use URI;
 use Memoize;
 use Net::GitHub;
-
+use Config::GitLike::Git;
 use Prophet::ChangeSet;
 
 use constant scheme => 'github';
@@ -45,6 +45,14 @@ sub BUILD {
         $uri = 'http://github.com/';
     }
 
+    # see http://github.com/blog/180-local-github-config
+    if ( !$api_token ) {
+        my $config = Config::GitLike::Git->new;
+        $config->load;
+        $username  = $config->get(key => 'github.user');
+        $api_token = $config->get(key => 'github.token');
+    }
+
     ( $username, $api_token )
         = $self->prompt_for_login(
             uri => $uri,

commit 6f9cc6a9c4cdf1ac37f53ff5ec9c3fec4d2343c9
Author: franck cuny <franck at lumberjaph.net>
Date:   Sun Jan 31 17:21:29 2010 +0100

    add config::gitlike to requires

diff --git a/Makefile.PL b/Makefile.PL
index f9000fa..f115fbe 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -53,6 +53,7 @@ recommends 'Net::Google::Code' => 0.14;
 feature 'GitHub sync (experimental)' => (
     -default => 0,
     'Net::GitHub' => 0.18,
+    'Config::GitLike ' => 1.03,
 );
 
 recommends 'Net::GitHub' => 0.18;

commit 7aa24740e2aab14219b48e17b6f60cedd3db319b
Merge: 127b6c4 6f9cc6a
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Feb 2 10:19:48 2010 -0800

    Merge branch 'master' of git://github.com/franckcuny/sd
    
    * 'master' of git://github.com/franckcuny/sd:
      add config::gitlike to requires
      check if api token is set in global git config file (http://github.com/blog/180-local-github-config)


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



More information about the Bps-public-commit mailing list