AnyEvent-Net-Amazon-S3

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

      (patch by Joey Hess)
    - make it possible to store empty files (patch by BDOLAN)
    - add Copy support (patch by BDOLAN)
    - add s3cl for command-line access (patch by Leo Lapworth)

0.44 Thu Mar 27 08:35:59 GMT 2008
    - fix bug with storing files consisting of "0" (thanks to
      Martin Atkins)

0.43 Sat Mar  1 10:55:54 GMT 2008
     - add binmode() to support Windows (thanks to Gabriel Weinberg)

0.42 Thu Feb 28 06:39:59 GMT 2008
     - add exponential backoff upon temporary errors with the new
       retry option

0.41 Fri Nov 30 10:42:26 GMT 2007
     - fix the expensive tests (patch by BDOLAN)
     - added support for EU buckets (patch by BDOLAN)

0.40 Tue Oct 30 11:40:42 GMT 2007

bin/s3cl_ae  view on Meta::CPAN

        print '- ' . $bucket->bucket . "\n";
    }
}

sub terminal {
    my $encoding = eval {
        require Term::Encoding;
        Term::Encoding::get_encoding();
    } || "utf-8";

    binmode STDOUT, ":encoding($encoding)";
}

# TODO: Replace with AppConfig this is ick!
sub get_options {
    my $help   = 0;
    my $man    = 0;
    my $force  = 0;
    my $loc    = "US";
    my $bucket = "";
    GetOptions(

t/00-compile.t  view on Meta::CPAN


open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!";

my @warnings;
for my $lib (@module_files)
{
    # see L<perlfaq8/How can I capture STDERR from an external command?>
    my $stderr = IO::Handle->new;

    my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q[$lib]");
    binmode $stderr, ':crlf' if $^O eq 'MSWin32';
    my @_warnings = <$stderr>;
    waitpid($pid, 0);
    is($?, 0, "$lib loaded ok");

    if (@_warnings)
    {
        warn @_warnings;
        push @warnings, @_warnings;
    }
}

t/00-compile.t  view on Meta::CPAN

{ SKIP: {
    open my $fh, '<', $file or warn("Unable to open $file: $!"), next;
    my $line = <$fh>;

    close $fh and skip("$file isn't perl", 1) unless $line =~ /^#!\s*(?:\S*perl\S*)((?:\s+-\w*)*)(?:\s*#.*)?$/;
    my @flags = $1 ? split(' ', $1) : ();

    my $stderr = IO::Handle->new;

    my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, @flags, '-c', $file);
    binmode $stderr, ':crlf' if $^O eq 'MSWin32';
    my @_warnings = <$stderr>;
    waitpid($pid, 0);
    is($?, 0, "$file compiled ok");

   # in older perls, -c output is simply the file portion of the path being tested
    if (@_warnings = grep { !/\bsyntax OK$/ }
        grep { chomp; $_ ne (File::Spec->splitpath($file))[2] } @_warnings)
    {
        warn @_warnings;
        push @warnings, @_warnings;



( run in 0.265 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )