r69600 - in /trunk/libapp-nopaste-perl: Changes META.yml Makefile.PL debian/changelog debian/control lib/App/Nopaste.pm lib/App/Nopaste/Command.pm
carnil at users.alioth.debian.org
carnil at users.alioth.debian.org
Fri Feb 25 06:49:40 UTC 2011
Author: carnil
Date: Fri Feb 25 06:49:22 2011
New Revision: 69600
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=69600
Log:
WAITS-FOR: libbrowser-open-perl
* New upstream release
* debian/control: Add libbrowser-open-perl to (Build-)Depends(-Indep).
Modified:
trunk/libapp-nopaste-perl/Changes
trunk/libapp-nopaste-perl/META.yml
trunk/libapp-nopaste-perl/Makefile.PL
trunk/libapp-nopaste-perl/debian/changelog
trunk/libapp-nopaste-perl/debian/control
trunk/libapp-nopaste-perl/lib/App/Nopaste.pm
trunk/libapp-nopaste-perl/lib/App/Nopaste/Command.pm
Modified: trunk/libapp-nopaste-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapp-nopaste-perl/Changes?rev=69600&op=diff
==============================================================================
--- trunk/libapp-nopaste-perl/Changes (original)
+++ trunk/libapp-nopaste-perl/Changes Fri Feb 25 06:49:22 2011
@@ -1,4 +1,7 @@
Revision history for App-Nopaste
+
+0.26 Wed Feb 23 2011
+ Add --open (-o) for opening the nopaste in your browser (Thomas Sibley)
0.25 Mon Jan 3 2011
Add support for $GITHUB_USER/$GITHUB_TOKEN to Gist service (Maximilian Gass)
Modified: trunk/libapp-nopaste-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapp-nopaste-perl/META.yml?rev=69600&op=diff
==============================================================================
--- trunk/libapp-nopaste-perl/META.yml (original)
+++ trunk/libapp-nopaste-perl/META.yml Fri Feb 25 06:49:22 2011
@@ -18,6 +18,7 @@
- inc
- t
requires:
+ Browser::Open: 0
Clipboard: 0
Config::GitLike: 0.00
File::Spec: 0
@@ -32,4 +33,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.25
+version: 0.26
Modified: trunk/libapp-nopaste-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapp-nopaste-perl/Makefile.PL?rev=69600&op=diff
==============================================================================
--- trunk/libapp-nopaste-perl/Makefile.PL (original)
+++ trunk/libapp-nopaste-perl/Makefile.PL Fri Feb 25 06:49:22 2011
@@ -26,6 +26,9 @@
'File::Temp',
'File::Spec'
],
+ 'open URLs in a browser' => [
+ 'Browser::Open',
+ ],
);
install_script 'bin/nopaste';
Modified: trunk/libapp-nopaste-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapp-nopaste-perl/debian/changelog?rev=69600&op=diff
==============================================================================
--- trunk/libapp-nopaste-perl/debian/changelog (original)
+++ trunk/libapp-nopaste-perl/debian/changelog Fri Feb 25 06:49:22 2011
@@ -1,3 +1,12 @@
+libapp-nopaste-perl (0.26-1) UNRELEASED; urgency=low
+
+ WAITS-FOR: libbrowser-open-perl
+
+ * New upstream release
+ * debian/control: Add libbrowser-open-perl to (Build-)Depends(-Indep).
+
+ -- Salvatore Bonaccorso <carnil at debian.org> Fri, 25 Feb 2011 07:48:26 +0100
+
libapp-nopaste-perl (0.25-1) unstable; urgency=low
* New upstream release
Modified: trunk/libapp-nopaste-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapp-nopaste-perl/debian/control?rev=69600&op=diff
==============================================================================
--- trunk/libapp-nopaste-perl/debian/control (original)
+++ trunk/libapp-nopaste-perl/debian/control Fri Feb 25 06:49:22 2011
@@ -2,7 +2,9 @@
Section: perl
Priority: optional
Build-Depends: debhelper (>= 7.2.13)
-Build-Depends-Indep: libmoose-perl (>= 0.74), libmoosex-getopt-perl (>= 0.17),
+Build-Depends-Indep: libbrowser-open-perl,
+ libmoose-perl (>= 0.74),
+ libmoosex-getopt-perl (>= 0.17),
libwww-mechanize-perl, perl
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Ryan Niebur <ryan at debian.org>, Jonathan Yu <jawnsy at cpan.org>,
@@ -15,8 +17,11 @@
Package: libapp-nopaste-perl
Architecture: all
-Depends: ${misc:Depends}, ${perl:Depends}, libmoose-perl (>= 0.74),
- libmoosex-getopt-perl (>= 0.17), libwww-mechanize-perl
+Depends: ${misc:Depends}, ${perl:Depends},
+ libbrower-open-perl,
+ libmoose-perl (>= 0.74),
+ libmoosex-getopt-perl (>= 0.17),
+ libwww-mechanize-perl
Suggests: git (>= 1:1.7.0.4-2~) | git-core | libconfig-gitlike-perl
Provides: nopaste
Description: application for easy access to any pastebin
Modified: trunk/libapp-nopaste-perl/lib/App/Nopaste.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapp-nopaste-perl/lib/App/Nopaste.pm?rev=69600&op=diff
==============================================================================
--- trunk/libapp-nopaste-perl/lib/App/Nopaste.pm (original)
+++ trunk/libapp-nopaste-perl/lib/App/Nopaste.pm Fri Feb 25 06:49:22 2011
@@ -7,7 +7,7 @@
use base 'Exporter';
our @EXPORT_OK = 'nopaste';
-our $VERSION = '0.25';
+our $VERSION = '0.26';
sub nopaste {
# process arguments {{{
Modified: trunk/libapp-nopaste-perl/lib/App/Nopaste/Command.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapp-nopaste-perl/lib/App/Nopaste/Command.pm?rev=69600&op=diff
==============================================================================
--- trunk/libapp-nopaste-perl/lib/App/Nopaste/Command.pm (original)
+++ trunk/libapp-nopaste-perl/lib/App/Nopaste/Command.pm Fri Feb 25 06:49:22 2011
@@ -67,6 +67,14 @@
isa => 'Bool',
cmd_aliases => ['p'],
documentation => "If specified, use only the clipboard as input.",
+);
+
+has open_url => (
+ traits => ['Getopt'],
+ is => 'rw',
+ isa => 'Bool',
+ cmd_aliases => ['open', 'o'],
+ documentation => "If specified, automatically open the URL using Browser::Open.",
);
has quiet => (
@@ -119,6 +127,11 @@
Clipboard->copy($url);
}
+ if ($self->open_url) {
+ require Browser::Open;
+ Browser::Open::open_browser($url);
+ }
+
return $url;
}
@@ -199,6 +212,11 @@
If specified, use only the clipboard as input, using the L<Clipboard> module.
+=head2 -o, --open
+
+If specified, automatically open the URL using L<Browser::Open>. Browser::Open
+tries a number of different browser commands depending on your OS.
+
=head2 -q, --quiet
If specified, do not warn or complain about broken services.
More information about the Pkg-perl-cvs-commits
mailing list