Skip to content

Commit

Permalink
0.0601 Wed Apr 20 12:17:43 CEST 2011
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Henning Thorsen committed Apr 20, 2011
1 parent 2f148d5 commit b6af2eb
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Revision history for Transmission-Client

0.0601 Wed Apr 20 12:17:43 CEST 2011
- Fix fail to load json, with json-any
http://www.cpantesters.org/cpan/report/f1e67256-36b4-11e0-afb0-adca6bb533f3

0.06 Sun Feb 6 18:33:13 CET 2011
- Fix RT62805: location to the rpc-spec is updated:
https://trac.transmissionbt.com/browser/trunk/extras/rpc-spec.txt
Expand Down
18 changes: 18 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@ use inc::Module::Install;
name q(Transmission-Client);
all_from q(lib/Transmission/Client.pm);

# copy/paste from JSON-Any/Makefile.PL
sub has_json () {
our @order = qw(XS JSON DWIW);
foreach my $testmod (@order) {
$testmod = "JSON::$testmod" unless $testmod eq "JSON";
eval "require $testmod";
return 1 unless $@;
}
return 0;
}

unless (has_json) {
requires 'JSON' => '2.02';
}
else {
feature 'JSON', -default => 0, 'JSON' => '2.02';
}

requires q(DateTime) => 0.50;
requires q(JSON::Any) => 1.20;
requires q(LWP::UserAgent) => 5.8;
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ NAME
Transmission::Client - Interface to Transmission

VERSION
0.06
0.0601

DESCRIPTION
Transmission::Client is the main module in a collection of modules to
Expand Down
4 changes: 2 additions & 2 deletions lib/Transmission/Client.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Transmission::Client - Interface to Transmission
=head1 VERSION
0.06
0.0601
=head1 DESCRIPTION
Expand Down Expand Up @@ -83,7 +83,7 @@ use Transmission::Torrent;
use Transmission::Session;
use constant RPC_DEBUG => $ENV{'TC_RPC_DEBUG'};

our $VERSION = eval '0.06';
our $VERSION = eval '0.0601';
our $SESSION_ID_HEADER_NAME = 'X-Transmission-Session-Id';
my $JSON = JSON::Any->new;

Expand Down
1 change: 0 additions & 1 deletion t/00-load.t
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use lib qw(lib);
use Test::More;
plan tests => 8;
Expand Down

0 comments on commit b6af2eb

Please sign in to comment.