Skip to content

Commit

Permalink
XML::Feed is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Oct 17, 2010
1 parent 96daee7 commit f2ef152
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .shipit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# auto-generated shipit config file.
steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist
steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist, UploadCPAN

# svn.tagpattern = MyProj-%v
# svn.tagpattern = http://code.example.com/svn/tags/MyProj-%v
Expand Down
1 change: 0 additions & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ requires 'LWP::Simple';
requires 'Exporter::Lite';
requires 'URI';
requires 'Text::Wrap';
requires 'XML::Atom::Feed';
requires 'URI';
requires 'JSON';
requires 'JSON::XS';
Expand Down
9 changes: 9 additions & 0 deletions lib/App/gh/Command/Recent.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ sub options {

sub run {
my ($self) = shift;


eval {
require XML::Atom::Feed;
};
die 'Please install XML::Atom::Feed to enable this command.' if $@;



my $config = parse_config $ENV{HOME} . "/.gitconfig";
my $token = $config->{github}->{token};
my $user = $config->{github}->{user};
Expand Down

0 comments on commit f2ef152

Please sign in to comment.