Skip Menu |

This queue is for tickets about the REST-Neo4p CPAN distribution.

Report information
The Basics
Id: 91752
Status: resolved
Priority: 0/
Queue: REST-Neo4p

People
Owner: maj.fortinbras [...] gmail.com
Requestors: gavin [...] openfusion.com.au
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.2230
Fixed in: 0.2231



Subject: Allow build prompts to be circumvented
Hi Mark, Nice job with this module - I'm finding it very useful so far. For packaging (RPMs etc.) it would be nice if the test prompts in Build.PL could be circumvented. Suggested patch attached. Thanks much, Gavin
Subject: REST-Neo4p-0.2230-build-noninteractive.patch
From e137d7d2824400c196c160614e280db34b7f0392 Mon Sep 17 00:00:00 2001 From: Gavin Carr <gavin@openfusion.com.au> Date: Tue, 31 Dec 2013 14:41:12 +1100 Subject: [PATCH] Tweak Build.PL to check env for test server. --- Build.PL | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Build.PL b/Build.PL index d28af4c..db61f73 100644 --- a/Build.PL +++ b/Build.PL @@ -32,7 +32,7 @@ my $build = Module::Build->new perl => 5.010 ); -$build->notes( test_server => $build->prompt("Server for live tests:", "http://127.0.0.1:7474")); -$build->notes( user => $build->prompt("Username:", "") ); -$build->notes( pass => $build->prompt("Pass:", "") ); +$build->notes( test_server => $ENV{REST_NEO4P_TEST_SERVER} // $build->prompt("Server for live tests:", "http://127.0.0.1:7474")); +$build->notes( user => $ENV{REST_NEO4P_TEST_USER} // $build->prompt("Username:", "") ); +$build->notes( pass => $ENV{REST_NEO4P_TEST_PASS} // $build->prompt("Pass:", "") ); $build->create_build_script; -- 1.7.1
Thanks a lot Gavin- done, look for v0.2231 MAJ On Mon Dec 30 22:49:47 2013, GAVINC wrote: Show quoted text
> Hi Mark, > > Nice job with this module - I'm finding it very useful so far. > > For packaging (RPMs etc.) it would be nice if the test prompts in > Build.PL could be circumvented. Suggested patch attached. > > Thanks much, > Gavin