Skip to content

Commit

Permalink
Merge branch 'release/v3.1.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
enfoqueNativo committed Jan 15, 2019
2 parents b708a05 + 49e814b commit cf3908e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 22 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

[CURRENT](https://github.com/SIU-Toba/framework/compare/master...develop)

[3.1.6](https://github.com/SIU-Toba/framework/releases/tag/v3.1.6) (2019-01-15)
- Modifica el hook de Toba para Registry, remueve codigo no necesario (merge @develop)
- Modifica toba_version quitando la opcion pre-alpha y agregando la opcion dev (merge @develop)

[3.1.5](https://github.com/SIU-Toba/framework/releases/tag/v3.1.5) (2018-12-07)
- Fix en verificacion de versiones compatibles de Arai (merge desde develop)
- Acualizacion de seguridad de librerias:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.5
3.1.6
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "siu-toba-framework",
"version": "3.1.5",
"version": "3.1.6",
"description": "Framework para desarrollo rápido de aplicaciones web",
"license": "SEE LICENSE IN licencia.txt",
"repository": "https://github.com/SIU-Toba/framework.git",
Expand Down
21 changes: 6 additions & 15 deletions php/modelo/lib/toba_version.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class toba_version
protected $build;
protected $path_migraciones;
protected $inestable;
protected $inestables = array('pre-alpha', 'alpha', 'beta', 'rc');
protected $inestables = array('dev', 'alpha', 'beta', 'rc');

function __construct($numero)
{
Expand All @@ -31,19 +31,13 @@ function __construct($numero)
if (! is_numeric($digito)) {
throw new toba_error("El número de versión $numero es incorrecto. Las partes deben ser numéricas. ".$formato);
}
$extra = trim(str_replace(array('(',')'), '', substr($this->partes[2], strlen($digito))));
$extra = trim(str_replace(array('(', ')', '-'), '', substr($this->partes[2], strlen($digito))));
$this->partes[2] = $digito;
$extra = explode('-', $extra);
$build = '';
if (count($extra) == 2) {
$inestable = $extra[0];
$build = $extra[1];
if (is_numeric($extra)) {
$build = $extra;
} else {
if (is_numeric($extra[0])) {
$build = $extra[0];
} else {
$inestable = $extra[0];
}
$inestable = $extra;
}
if (isset($inestable)) {
if (! in_array($inestable, $this->inestables)) {
Expand Down Expand Up @@ -316,9 +310,6 @@ function ejecutar_migracion($prefijo, $elemento, $metodo_part = null, $interface
static function inicial()
{
return new toba_version("0.8.3");
}

}
}


?>
9 changes: 4 additions & 5 deletions src/SIUToba/Arai/RegistryHooksProyectoToba.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,10 @@ protected function inicializarEntorno()
*/
protected function cargarToba()
{
//--Carga nucleo toba
$dir = $this->getTobaDir()."/php";
$separador = (substr(PHP_OS, 0, 3) == 'WIN') ? ';.;' : ':.:';
ini_set('include_path', ini_get('include_path'). $separador . $dir);
require_once("nucleo/toba_nucleo.php");
//--Carga nucleo para registrar todos los autoloaders y tener acceso a las clases del modelo / funciones globales desde arai-cli
$dir = realpath($this->getTobaDir()."/php");
require_once("$dir/nucleo/toba_nucleo.php");
//Inicio desde consola para procesar el contexto de ejecucion (puede ser necesario para JWT)
\toba_nucleo::instancia()->iniciar_contexto_desde_consola($this->getInstanciaId(), $this->getProyectoId());
return \toba_modelo_catalogo::instanciacion()->get_instalacion(null);
}
Expand Down

0 comments on commit cf3908e

Please sign in to comment.