[cmclasses] r1225 committed - Updated Go classes.

0 views
Skip to first unread message

cmcl...@googlecode.com

unread,
May 23, 2015, 3:21:29 AM5/23/15
to cmcl...@googlegroups.com
Revision: 1225
Author: christian.wuerker
Date: Sat May 23 07:21:07 2015 UTC
Log: Updated Go classes.
https://code.google.com/p/cmclasses/source/detail?r=1225

Added:
/trunk/autoload.php5
Modified:
/trunk/Go/Benchmark.php
/trunk/Go/ClassSyntaxTester.php
/trunk/Go/Configurator.php
/trunk/Go/DocCreator.php
/trunk/Go/Installer.php
/trunk/Go/Library.php
/trunk/Go/SelfTester.php
/trunk/Go/UnitTestCreator.php
/trunk/Go/UnitTester.php
/trunk/Go/Updater.php

=======================================
--- /dev/null
+++ /trunk/autoload.php5 Sat May 23 07:21:07 2015 UTC
@@ -0,0 +1,1 @@
+link autoload.php
=======================================
--- /trunk/Go/Benchmark.php Sat May 23 07:04:12 2015 UTC
+++ /trunk/Go/Benchmark.php Sat May 23 07:21:07 2015 UTC
@@ -1,12 +1,12 @@
<?php
-require_once dirname( __FILE__ ).'/Library.php5';
+require_once dirname( __FILE__ ).'/Library.php';
class Go_Benchmark
{
public function __construct()
{
define( 'LB', "\n" );
$path = Go_Library::getLibraryPath();
- require_once( $path.'autoload.php5' );
+ require_once( $path.'autoload.php' );
$path = Go_Library::getSourcePath();

echo LB.'Memory Usage on start:';
=======================================
--- /trunk/Go/ClassSyntaxTester.php Sat May 23 07:04:12 2015 UTC
+++ /trunk/Go/ClassSyntaxTester.php Sat May 23 07:21:07 2015 UTC
@@ -1,5 +1,5 @@
<?php
-require_once dirname( __FILE__ ).'/Library.php5';
+require_once dirname( __FILE__ ).'/Library.php';
class Go_ClassSyntaxTester
{
public function __construct( $arguments )
=======================================
--- /trunk/Go/Configurator.php Sat May 23 07:04:12 2015 UTC
+++ /trunk/Go/Configurator.php Sat May 23 07:21:07 2015 UTC
@@ -9,9 +9,9 @@
if( !defined( 'CM_CLASS_PATH' ) )
define( 'CM_CLASS_PATH', $pwd );
ini_set( 'include_path',
CM_CLASS_PATH.PATH_SEPARATOR.ini_get( "include_path" ) );
-# if( !@include_once( "autoload.php5" ) )
-# die( 'Installation of "cmClasses" seems to be
corrupt: '.$pwd.'import.php5 is missing.' );
- require_once( dirname( dirname( __FILE__ ) ).'/src/UI/DevOutput.php5' );
+# if( !@include_once( "autoload.php" ) )
+# die( 'Installation of "cmClasses" seems to be
corrupt: '.$pwd.'import.php is missing.' );
+ require_once( dirname( dirname( __FILE__ ) ).'/src/UI/DevOutput.php' );

$files = array(
"cmClasses.ini.dist" => "cmClasses.ini",
=======================================
--- /trunk/Go/DocCreator.php Sat May 23 07:04:12 2015 UTC
+++ /trunk/Go/DocCreator.php Sat May 23 07:21:07 2015 UTC
@@ -4,7 +4,7 @@
public function __construct( $arguments )
{
$config = Go_Library::getConfigData();
- require_once dirname( dirname( __FILE__ ) ).'/autoload.php5';
+ require_once dirname( dirname( __FILE__ ) ).'/autoload.php';
$path = $config['docCreator']['pathTool'];
if( !file_exists( $path ) )
throw new Exception( 'Tool "DocCreator" is not installed' );
=======================================
--- /trunk/Go/Installer.php Sat May 23 07:04:12 2015 UTC
+++ /trunk/Go/Installer.php Sat May 23 07:21:07 2015 UTC
@@ -1,6 +1,6 @@
<?php
-require_once dirname( __FILE__ ).'/Library.php5';
-require_once dirname( __FILE__ ).'/Configurator.php5';
+require_once dirname( __FILE__ ).'/Library.php';
+require_once dirname( __FILE__ ).'/Configurator.php';
class Go_Installer
{
public function __construct( $arguments )
=======================================
--- /trunk/Go/Library.php Sat May 23 07:04:12 2015 UTC
+++ /trunk/Go/Library.php Sat May 23 07:21:07 2015 UTC
@@ -89,7 +89,7 @@
else if( $entry->isFile() )
{
$info = pathinfo( $pathName );
- if( $info['extension'] !== "php5" )
+ if( $info['extension'] !== "php" )
continue;
if( !preg_match( '/^[A-Z]/', $info['basename'] ) )
continue;
@@ -98,13 +98,13 @@
$count++;
}
}
- }
-
+ }
+
public static function runSvn( $command )
{
passthru( "svn ".$command, $return );
}
-
+
public static function showMemoryUsage()
{
$number = ceil( memory_get_usage() / 1024 );
@@ -171,7 +171,6 @@
}
else
echo ".";
-
$count++;
}
echo " ".$count."/".count( $files )."\n";
=======================================
--- /trunk/Go/SelfTester.php Sat May 23 07:04:12 2015 UTC
+++ /trunk/Go/SelfTester.php Sat May 23 07:21:07 2015 UTC
@@ -1,5 +1,5 @@
<?php
-require_once dirname( __FILE__ ).'/Library.php5';
+require_once dirname( __FILE__ ).'/Library.php';
class Go_SelfTester
{
public function __construct( $arguments )
@@ -10,10 +10,10 @@

$path = dirname( __FILE__ );
$data = Go_Library::listClasses( $path );
-
+
Go_Library::testSyntax( $data['files'] );
Go_Library::testImports( $data['files'] );
-
+
remark( "create random numbers with 3 digits: " );
import( 'de.ceus-media.alg.Randomizer' );
import( 'de.ceus-media.math.RomanNumbers' );
=======================================
--- /trunk/Go/UnitTestCreator.php Sat May 23 07:04:12 2015 UTC
+++ /trunk/Go/UnitTestCreator.php Sat May 23 07:21:07 2015 UTC
@@ -3,7 +3,7 @@
{
public function __construct( $arguments )
{
- require_once dirname( dirname( __FILE__ ) ).'/autoload.php5';
+ require_once dirname( dirname( __FILE__ ) ).'/autoload.php';

$force = in_array( "-f", $arguments ) || in_array( "--force", $arguments
);
if( in_array( "-f", $arguments ) )
=======================================
--- /trunk/Go/UnitTester.php Sat May 23 07:04:12 2015 UTC
+++ /trunk/Go/UnitTester.php Sat May 23 07:21:07 2015 UTC
@@ -1,5 +1,5 @@
<?php
-require_once dirname( __FILE__ ).'/Library.php5';
+require_once dirname( __FILE__ ).'/Library.php';
class Go_UnitTester
{
public function __construct( $className = NULL )
=======================================
--- /trunk/Go/Updater.php Sat May 23 07:04:12 2015 UTC
+++ /trunk/Go/Updater.php Sat May 23 07:21:07 2015 UTC
@@ -1,5 +1,5 @@
<?php
-require_once dirname( __FILE__ ).'/Library.php5';
+require_once dirname( __FILE__ ).'/Library.php';
class Go_Updater
{
public function __construct( $arguments )
Reply all
Reply to author
Forward
0 new messages