r66897 - in /branches/upstream/libapp-nopaste-perl/current: Changes META.yml lib/App/Nopaste.pm lib/App/Nopaste/Service/Gist.pm

carnil at users.alioth.debian.org carnil at users.alioth.debian.org
Tue Jan 4 07:25:59 UTC 2011


Author: carnil
Date: Tue Jan  4 07:24:42 2011
New Revision: 66897

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=66897
Log:
[svn-upgrade] new version libapp-nopaste-perl (0.25)

Modified:
    branches/upstream/libapp-nopaste-perl/current/Changes
    branches/upstream/libapp-nopaste-perl/current/META.yml
    branches/upstream/libapp-nopaste-perl/current/lib/App/Nopaste.pm
    branches/upstream/libapp-nopaste-perl/current/lib/App/Nopaste/Service/Gist.pm

Modified: branches/upstream/libapp-nopaste-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libapp-nopaste-perl/current/Changes?rev=66897&op=diff
==============================================================================
--- branches/upstream/libapp-nopaste-perl/current/Changes (original)
+++ branches/upstream/libapp-nopaste-perl/current/Changes Tue Jan  4 07:24:42 2011
@@ -1,4 +1,7 @@
 Revision history for App-Nopaste
+
+0.25    Mon Jan 3 2011
+        Add support for $GITHUB_USER/$GITHUB_TOKEN to Gist service (Maximilian Gass)
 
 0.24    Tue Dec 21 2010
         Gist requires https (Ricardo SIGNES)

Modified: branches/upstream/libapp-nopaste-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libapp-nopaste-perl/current/META.yml?rev=66897&op=diff
==============================================================================
--- branches/upstream/libapp-nopaste-perl/current/META.yml (original)
+++ branches/upstream/libapp-nopaste-perl/current/META.yml Tue Jan  4 07:24:42 2011
@@ -32,4 +32,4 @@
   homepage: http://github.com/sartak/app-nopaste/tree
   license: http://dev.perl.org/licenses/
   repository: git://github.com/sartak/app-nopaste.git
-version: 0.24
+version: 0.25

Modified: branches/upstream/libapp-nopaste-perl/current/lib/App/Nopaste.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libapp-nopaste-perl/current/lib/App/Nopaste.pm?rev=66897&op=diff
==============================================================================
--- branches/upstream/libapp-nopaste-perl/current/lib/App/Nopaste.pm (original)
+++ branches/upstream/libapp-nopaste-perl/current/lib/App/Nopaste.pm Tue Jan  4 07:24:42 2011
@@ -7,7 +7,7 @@
 use base 'Exporter';
 our @EXPORT_OK = 'nopaste';
 
-our $VERSION = '0.24';
+our $VERSION = '0.25';
 
 sub nopaste {
     # process arguments {{{

Modified: branches/upstream/libapp-nopaste-perl/current/lib/App/Nopaste/Service/Gist.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libapp-nopaste-perl/current/lib/App/Nopaste/Service/Gist.pm?rev=66897&op=diff
==============================================================================
--- branches/upstream/libapp-nopaste-perl/current/lib/App/Nopaste/Service/Gist.pm (original)
+++ branches/upstream/libapp-nopaste-perl/current/lib/App/Nopaste/Service/Gist.pm Tue Jan  4 07:24:42 2011
@@ -33,7 +33,15 @@
 sub _get_auth {
     my ($self) = @_;
 
-    if (eval "require Git; 1") {
+    if ($ENV{GITHUB_USER} && $ENV{GITHUB_TOKEN}) {
+        my $user  = $ENV{GITHUB_USER};
+        my $token = $ENV{GITHUB_TOKEN};
+
+        return (
+            login => $user,
+            token => $token,
+        );
+    } elsif (eval "require Git; 1") {
         my $user  = Git::config('github.user');
         my $token = Git::config('github.token');
 




More information about the Pkg-perl-cvs-commits mailing list