App-cpanminus-reporter

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN


0.11  2014-06-24
    BUG FIXES:
      - Github #11 - Proper handling of vstrings on parser log (KENTNL)
      - Ignoring modules from the LOCAL user (PLICEASE)
      - Ignoring modules from the 'Local::' namespace (ETHER)
      - Avoid 'deep recursion' warning

    OTHER:
      - several more tests written.
      - documenting PERL_MM_USE_DEFAULT behaviour on prompts.

0.10  2013-07-16
    NEW FEATURES:
      - new command line option, 'only' to enable just one
        dist, or a group of comma-separated dists, for reporting (BBUSS)
      - new command line option, 'exclude' to disable a dist, or
        a group of comma-separated dists, for reporting (BBUSS)

    BUG FIXES:
      - works even on systems that don't support symlinks.

    OTHER:
      - catch errors happening when trying to send the report, showing
        a nice error message instead of a confusing trace (BBUSS)

0.09  2013-05-18
    BUG FIXES:
      - prevents prompt from being affected by PERL_MM_USE_DEFAULT
        (thanks Marcel "hanekomu" Grünauer for reporting!)

    OTHER:
      - Metabase transport now marked as a dependency (previously it was
        only a recommendation). Some clients do not trust recommendations
        and the vast majority of cpanm-reporter users are probably
        sending stuff via Metabase anyway, so I rather "punish" the
        minority with an extra dependency than the majority with a runtime
        error :)
      - improved docs

bin/cpanm-reporter  view on Meta::CPAN

folder (if you're running Windows).

=item * PERL_CPAN_REPORTER_CONFIG

In case you don't want to change just the base directory but the entire file's
path and name, you can set this variable to point at the new 'config.ini' file.

=back

If you called C<cpanm-reporter --setup>, you can also set C<PERL_MM_USE_DEFAULT>
to true and it will answer any prompted question automatically with its default
value, if possible.

=head1 CAVEATS

=over 4

=item * This is a standalone tool that reads cpanm's C<build.log> file,
meaning it can potentially be run any time after cpanm has done its thing.
As such, you must be cautious to only run this tool I<right after> you run
cpanm, otherwise your whole environment may have changed, rendering the

lib/App/cpanminus/reporter.pm  view on Meta::CPAN

use Metabase::Resource;
use Capture::Tiny qw(capture);
use IO::Prompt::Tiny ();

sub new {
  my ($class, %params) = @_;
  my $self = bless {}, $class;

  $self->config(
    CPAN::Testers::Common::Client::Config->new(
      prompt => sub { local %ENV; IO::Prompt::Tiny::prompt(@_) },
    )
  );

  if ($params{cpanm}) {
    my $cpanm = $self->_cpanm( $params{cpanm} );
    $params{only} =~ s/-\d+(\.\d+)*$//; # strip version from cpanm's "only" data

    # FIXME: cpanm doesn't provide an accessor here, so
    # we break encapsulation in order to make sure we
    # always have the right paths.

lib/App/cpanminus/reporter.pm  view on Meta::CPAN

  my $config   = $self->config;
  my $filename = $config->get_config_filename;

  if (-e $filename) {
    if (!$config->read) {
      print "Error reading CPAN Testers configuration file '$filename'. Aborting.";
      return;
    }
  }
  else {
    my $answer = IO::Prompt::Tiny::prompt("CPAN Testers configuration file '$filename' not found. Would you like to set it up now? (y/n)", 'y');

    if ( $answer =~ /^y/i ) {
      $config->setup;
    }
    else {
      print "The CPAN Testers configuration file is required. Aborting.\n";
      return;
    }
  }
  return 1;

t/data/build.fresh.log  view on Meta::CPAN

Checking if you have Capture::Tiny 0.12 ... Yes (0.28)
Checking if you have File::Temp 0 ... Yes (0.2304)
Checking if you have strict 0 ... Yes (1.09)
Checking if you have File::Spec 0 ... Yes (3.56)
Checking if you have Exporter 0 ... Yes (5.72)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.04)
Checking if you have warnings 0 ... Yes (1.32)
Building and testing IO-Prompt-Tiny-0.003
Manifying 1 pod document
PERL_DL_NONLAZY=1 "/Volumes/amaretto/Users/ether/perl5/perlbrew/perls/21.11/bin/perl5.21.11" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/prompt.t ............. ok
# 
# Versions for all modules listed in MYMETA.json (including optional ones):
# 
# === Configure Requires ===
# 
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker 6.17 7.04
# 
# === Build Requires ===



( run in 1.496 second using v1.01-cache-2.11-cpan-0b5f733616e )