Result:
found more than 1024 distributions - search limited to the first 2001 files matching your query ( run in 0.614 )


App-GitHooks-Plugin-RequireTicketID

 view release on metacpan or  search on metacpan

t/10-run.t  view on Meta::CPAN

				files      => $test->{'files'},
				repository => $repository,
			);

			# Try to commit.
			my $stderr;
			lives_ok(
				sub
				{
					$stderr = Capture::Tiny::capture_stderr(
						sub
						{
							$repository->run( 'commit', '-m', $test->{'commit_message'} );
						}
					);
					note( $stderr );
				},
				'Commit the changes.',
			);

			like(
				$stderr,
				$test->{'expected'},
				"The output matches expected results.",
			);
		}
	);

 view all matches for this distribution


App-GitHooks-Plugin-RubyCompile

 view release on metacpan or  search on metacpan

lib/App/GitHooks/Plugin/RubyCompile.pm  view on Meta::CPAN

    return $PLUGIN_RETURN_SKIPPED
        if $git_action eq 'D';

    # Execute ruby -c.
    my $path = $repository->work_tree() . '/' . $file;
    my ( $pid, $stdin, $stdout, $stderr ) = System::Command->spawn( 'ruby', '-W0', '-c', $path );

    # Retrieve the output.
    chomp( my $message_out = do { local $/ = undef; <$stdout> } );

    # Raise an exception if we didn't get "syntax OK".
    if ( $message_out !~ /^Syntax\ OK$/x ) {
            my @warnings = <$stderr>;
            foreach my $warning ( @warnings ) {
                    chomp( $warning );
                    $warning =~ s/^\Q$path\E:/Line /;
            }
            die join( "\n", @warnings ) . "\n";

 view all matches for this distribution


App-GitHooks-Plugin-ValidateChangelogFormat

 view release on metacpan or  search on metacpan

t/10-run.t  view on Meta::CPAN

				files      => $test->{'files'},
				repository => $repository,
			);

			# Try to commit.
			my $stderr;
			lives_ok(
				sub
				{
					$stderr = Capture::Tiny::capture_stderr(
						sub
						{
							$repository->run( 'commit', '-m', 'Test message.' );
						}
					);
					note( $stderr );
				},
				'Commit the changes.',
			);

			like(
				$stderr,
				$test->{'expected'},
				"The output matches expected results.",
			);
		}
	);

 view all matches for this distribution


App-GitHooks-Plugin-ValidatePODFormat

 view release on metacpan or  search on metacpan

t/10-run.t  view on Meta::CPAN

				files      => $test->{'files'},
				repository => $repository,
			);

			# Try to commit.
			my $stderr;
			lives_ok(
				sub
				{
					$stderr = Capture::Tiny::capture_stderr(
						sub
						{
							$repository->run( 'commit', '-m', 'Test message.' );
						}
					);
					note( $stderr );
				},
				'Commit the changes.',
			);

			like(
				$stderr,
				$test->{'expected'},
				"The output matches expected results.",
			);
		}
	);

 view all matches for this distribution


( run in 0.614 second using v1.01-cache-2.11-cpan-85f18b9d64f )