Thread: [CS-Project-svn_notify] SF.net SVN: cs-project:[899] trunk/1.2/lib/globalFunctions.php
Brought to you by:
crazedsanity
From: <cra...@us...> - 2008-07-21 02:18:22
|
Revision: 899 http://cs-project.svn.sourceforge.net/cs-project/?rev=899&view=rev Author: crazedsanity Date: 2008-07-21 02:17:54 +0000 (Mon, 21 Jul 2008) Log Message: ----------- Update cs-content to 0.10.12. Modified Paths: -------------- trunk/1.2/lib/globalFunctions.php Modified: trunk/1.2/lib/globalFunctions.php =================================================================== --- trunk/1.2/lib/globalFunctions.php 2008-05-20 19:03:51 UTC (rev 898) +++ trunk/1.2/lib/globalFunctions.php 2008-07-21 02:17:54 UTC (rev 899) @@ -17,9 +17,9 @@ function get_required_external_lib_versions($projectName=NULL) { //format: {className} => array({projectName} => {exactVersion}) $requirements = array( - 'contentSystem' => array('cs-content', '0.10.11'), + 'contentSystem' => array('cs-content', '0.10.12'), 'XMLParser' => array('cs-phpxml', '0.5.6'), - 'arrayToPath' => array('cs-arrayToPath', '0.2.2') + 'arrayToPath' => array('cs-arrayToPath', '0.2.2') ); if(!is_null($projectName)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cra...@us...> - 2009-02-03 18:51:34
|
Revision: 915 http://cs-project.svn.sourceforge.net/cs-project/?rev=915&view=rev Author: crazedsanity Date: 2009-02-03 18:51:29 +0000 (Tue, 03 Feb 2009) Log Message: ----------- First round of updates to cope with new versions of external libs. /lib/globalFunctions.php: * get_required_external_lib_versions(): -- changed some class names. -- changed required versions: + cs-content: 1.0.0-ALPHA3 + cs-phpxml: 1.0.0-ALPHA2 + cs-arrayToPath: 1.0.0 * check_external_lib_versions(): -- do the get_project() and get_version() calls in a try/catch block -- if an exception is caught, throw another exception to more easily find & fix the problem encountered. Modified Paths: -------------- trunk/1.2/lib/globalFunctions.php Modified: trunk/1.2/lib/globalFunctions.php =================================================================== --- trunk/1.2/lib/globalFunctions.php 2009-02-03 17:31:32 UTC (rev 914) +++ trunk/1.2/lib/globalFunctions.php 2009-02-03 18:51:29 UTC (rev 915) @@ -17,9 +17,9 @@ function get_required_external_lib_versions($projectName=NULL) { //format: {className} => array({projectName} => {exactVersion}) $requirements = array( - 'contentSystem' => array('cs-content', '0.10.12'), - 'XMLParser' => array('cs-phpxml', '0.5.6'), - 'arrayToPath' => array('cs-arrayToPath', '0.2.2') + 'contentSystem' => array('cs-content', '1.0.0-ALPHA3'), + 'cs_phpxmlParser' => array('cs-phpxml', '1.0.0-ALPHA2'), + 'cs_arrayToPath' => array('cs-arrayToPath', '1.0.0') ); if(!is_null($projectName)) { @@ -61,8 +61,13 @@ if($obj->isTest === TRUE) { //okay, get version & project names. if(method_exists($obj, 'get_version') && method_exists($obj, 'get_project')) { - $realVersion = $obj->get_version(); - $realProject = $obj->get_project(); + try { + $realVersion = $obj->get_version(); + $realProject = $obj->get_project(); + } + catch(exception $e) { + throw new exception(__METHOD__ .": unable to get project name or version for (". $className ."), DETAILS::: ". $e->getMessage()); + } if($realVersion === $matchVersion && $realProject === $matchProject) { //all looks good. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cra...@us...> - 2009-02-03 19:55:21
|
Revision: 920 http://cs-project.svn.sourceforge.net/cs-project/?rev=920&view=rev Author: crazedsanity Date: 2009-02-03 19:55:17 +0000 (Tue, 03 Feb 2009) Log Message: ----------- Update to use cs-phpxml v1.0.0-ALPHA3 Modified Paths: -------------- trunk/1.2/lib/globalFunctions.php Modified: trunk/1.2/lib/globalFunctions.php =================================================================== --- trunk/1.2/lib/globalFunctions.php 2009-02-03 19:30:55 UTC (rev 919) +++ trunk/1.2/lib/globalFunctions.php 2009-02-03 19:55:17 UTC (rev 920) @@ -18,7 +18,7 @@ //format: {className} => array({projectName} => {exactVersion}) $requirements = array( 'contentSystem' => array('cs-content', '1.0.0-ALPHA4'), - 'cs_phpxmlParser' => array('cs-phpxml', '1.0.0-ALPHA2'), + 'cs_phpxmlParser' => array('cs-phpxml', '1.0.0-ALPHA3'), 'cs_arrayToPath' => array('cs-arrayToPath', '1.0.0') ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cra...@us...> - 2009-02-04 18:37:24
|
Revision: 921 http://cs-project.svn.sourceforge.net/cs-project/?rev=921&view=rev Author: crazedsanity Date: 2009-02-04 18:37:17 +0000 (Wed, 04 Feb 2009) Log Message: ----------- Updated to use CS-Content v1.0-ALPHA6 Modified Paths: -------------- trunk/1.2/lib/globalFunctions.php Modified: trunk/1.2/lib/globalFunctions.php =================================================================== --- trunk/1.2/lib/globalFunctions.php 2009-02-03 19:55:17 UTC (rev 920) +++ trunk/1.2/lib/globalFunctions.php 2009-02-04 18:37:17 UTC (rev 921) @@ -17,7 +17,7 @@ function get_required_external_lib_versions($projectName=NULL) { //format: {className} => array({projectName} => {exactVersion}) $requirements = array( - 'contentSystem' => array('cs-content', '1.0.0-ALPHA4'), + 'contentSystem' => array('cs-content', '1.0.0-ALPHA6'), 'cs_phpxmlParser' => array('cs-phpxml', '1.0.0-ALPHA3'), 'cs_arrayToPath' => array('cs-arrayToPath', '1.0.0') ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cra...@us...> - 2009-02-06 20:41:37
|
Revision: 939 http://cs-project.svn.sourceforge.net/cs-project/?rev=939&view=rev Author: crazedsanity Date: 2009-02-06 20:41:33 +0000 (Fri, 06 Feb 2009) Log Message: ----------- Update to use cs-content v1.0-ALPHA7 Modified Paths: -------------- trunk/1.2/lib/globalFunctions.php Modified: trunk/1.2/lib/globalFunctions.php =================================================================== --- trunk/1.2/lib/globalFunctions.php 2009-02-06 20:23:18 UTC (rev 938) +++ trunk/1.2/lib/globalFunctions.php 2009-02-06 20:41:33 UTC (rev 939) @@ -17,7 +17,7 @@ function get_required_external_lib_versions($projectName=NULL) { //format: {className} => array({projectName} => {exactVersion}) $requirements = array( - 'contentSystem' => array('cs-content', '1.0.0-ALPHA6'), + 'contentSystem' => array('cs-content', '1.0.0-ALPHA7'), 'cs_phpxmlParser' => array('cs-phpxml', '1.0.0-ALPHA3'), 'cs_arrayToPath' => array('cs-arrayToPath', '1.0.0') ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cra...@us...> - 2009-02-06 21:19:11
|
Revision: 947 http://cs-project.svn.sourceforge.net/cs-project/?rev=947&view=rev Author: crazedsanity Date: 2009-02-06 21:19:05 +0000 (Fri, 06 Feb 2009) Log Message: ----------- Upgrade cs-phpxml to v1.0-ALPHA4 Modified Paths: -------------- trunk/1.2/lib/globalFunctions.php Modified: trunk/1.2/lib/globalFunctions.php =================================================================== --- trunk/1.2/lib/globalFunctions.php 2009-02-06 21:15:47 UTC (rev 946) +++ trunk/1.2/lib/globalFunctions.php 2009-02-06 21:19:05 UTC (rev 947) @@ -18,7 +18,7 @@ //format: {className} => array({projectName} => {exactVersion}) $requirements = array( 'contentSystem' => array('cs-content', '1.0.0-ALPHA7'), - 'cs_phpxmlParser' => array('cs-phpxml', '1.0.0-ALPHA3'), + 'cs_phpxmlParser' => array('cs-phpxml', '1.0.0-ALPHA4'), 'cs_arrayToPath' => array('cs-arrayToPath', '1.0.0') ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cra...@us...> - 2009-08-18 14:21:40
|
Revision: 978 http://cs-project.svn.sourceforge.net/cs-project/?rev=978&view=rev Author: crazedsanity Date: 2009-08-18 14:21:28 +0000 (Tue, 18 Aug 2009) Log Message: ----------- Use cs-content > v1.0.0-ALPHA10, drop cs-arrayToPath (part of cs-phpxml). Modified Paths: -------------- trunk/1.2/lib/globalFunctions.php Modified: trunk/1.2/lib/globalFunctions.php =================================================================== --- trunk/1.2/lib/globalFunctions.php 2009-08-18 14:19:54 UTC (rev 977) +++ trunk/1.2/lib/globalFunctions.php 2009-08-18 14:21:28 UTC (rev 978) @@ -17,9 +17,8 @@ function get_required_external_lib_versions($projectName=NULL) { //format: {className} => array({projectName} => {exactVersion}) $requirements = array( - 'contentSystem' => array('cs-content', '1.0.0-ALPHA8'), - 'cs_phpxmlParser' => array('cs-phpxml', '1.0.0-ALPHA4'), - 'cs_arrayToPath' => array('cs-arrayToPath', '1.0.0') + 'contentSystem' => array('cs-content', '1.0.0-ALPHA10'), + 'cs_phpxmlParser' => array('cs-phpxml', '1.0.0-ALPHA4') ); if(!is_null($projectName)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cra...@us...> - 2009-09-21 02:58:58
|
Revision: 985 http://cs-project.svn.sourceforge.net/cs-project/?rev=985&view=rev Author: crazedsanity Date: 2009-09-21 02:58:51 +0000 (Mon, 21 Sep 2009) Log Message: ----------- Update versions to the most recent. Modified Paths: -------------- trunk/1.2/lib/globalFunctions.php Modified: trunk/1.2/lib/globalFunctions.php =================================================================== --- trunk/1.2/lib/globalFunctions.php 2009-09-21 02:56:35 UTC (rev 984) +++ trunk/1.2/lib/globalFunctions.php 2009-09-21 02:58:51 UTC (rev 985) @@ -18,7 +18,7 @@ //format: {className} => array({projectName} => {exactVersion}) $requirements = array( 'contentSystem' => array('cs-content', '1.0.0-ALPHA10'), - 'cs_phpxmlParser' => array('cs-phpxml', '1.0.0-ALPHA4') + 'cs_phpxmlParser' => array('cs-phpxml', '1.0.0-RC1') ); if(!is_null($projectName)) { @@ -57,32 +57,28 @@ if(class_exists($className)) { //hopefully, this initializes each of them as a TEST class. $obj = new $className('unit_test'); - if($obj->isTest === TRUE) { - //okay, get version & project names. - if(method_exists($obj, 'get_version') && method_exists($obj, 'get_project')) { - try { - $realVersion = $obj->get_version(); - $realProject = $obj->get_project(); - } - catch(exception $e) { - throw new exception(__METHOD__ .": unable to get project name or version for (". $className ."), DETAILS::: ". $e->getMessage()); - } - - if($realVersion === $matchVersion && $realProject === $matchProject) { - //all looks good. - $retval++; - } - else { - throw new exception(__FUNCTION__ .": version mismatch (". $realVersion ." != ". $matchVersion .") or " . - "invalid project name (". $realProject ." != ". $matchProject .")"); - } + + //okay, get version & project names. + if(method_exists($obj, 'get_version') && method_exists($obj, 'get_project')) { + try { + $realVersion = $obj->get_version(); + $realProject = $obj->get_project(); } + catch(exception $e) { + throw new exception(__METHOD__ .": unable to get project name or version for (". $className ."), DETAILS::: ". $e->getMessage()); + } + + if($realVersion === $matchVersion && $realProject === $matchProject) { + //all looks good. + $retval++; + } else { - throw new exception(__FUNCTION__ .": required checking method(s) for (". $className .") missing"); + throw new exception(__FUNCTION__ .": version mismatch (". $realVersion ." != ". $matchVersion .") or " . + "invalid project name (". $realProject ." != ". $matchProject .")"); } } else { - throw new exception(__FUNCTION__ .": ". $className ."::isTest isn't set, something is broken"); + throw new exception(__FUNCTION__ .": required checking method(s) for (". $className .") missing"); } } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cra...@us...> - 2009-09-21 14:40:21
|
Revision: 990 http://cs-project.svn.sourceforge.net/cs-project/?rev=990&view=rev Author: crazedsanity Date: 2009-09-21 14:40:14 +0000 (Mon, 21 Sep 2009) Log Message: ----------- Update to allow cs-content v1.0-BETA1. Modified Paths: -------------- trunk/1.2/lib/globalFunctions.php Modified: trunk/1.2/lib/globalFunctions.php =================================================================== --- trunk/1.2/lib/globalFunctions.php 2009-09-21 03:28:26 UTC (rev 989) +++ trunk/1.2/lib/globalFunctions.php 2009-09-21 14:40:14 UTC (rev 990) @@ -17,7 +17,7 @@ function get_required_external_lib_versions($projectName=NULL) { //format: {className} => array({projectName} => {exactVersion}) $requirements = array( - 'contentSystem' => array('cs-content', '1.0.0-ALPHA10'), + 'contentSystem' => array('cs-content', '1.0.0-BETA1'), 'cs_phpxmlParser' => array('cs-phpxml', '1.0.0-RC1') ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |