Compare commits

...

2 commits

4 changed files with 13 additions and 7 deletions

View file

@ -1,3 +1,9 @@
## 0.2.0a14 (2025-11-21)
### Fix
- ExtentionError => ExtensionError
## 0.2.0a13 (2025-11-06)
### Feat

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail.output_json"
version = "0.2.0a13"
version = "0.2.0a14"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md"
description = "Rougail output json"

View file

@ -21,7 +21,7 @@ from typing import Any, List, Optional
from json import dumps
from tiramisu.error import PropertiesOptionError, ConfigError
from rougail.error import ExtentionError
from rougail.error import ExtensionError
from .i18n import _
from .__version__ import __version__
@ -45,7 +45,7 @@ class RougailOutputJson:
rougailconfig = RougailConfig
rougailconfig["step.output"] = self.output_name
if rougailconfig["step.output"] != self.output_name:
raise ExtentionError(
raise ExtensionError(
_('the "step.output" is not set to "{0}"').format(self.output_name)
)
self.rougailconfig = rougailconfig
@ -58,9 +58,6 @@ class RougailOutputJson:
self.warnings = user_data_warnings
else:
self.warnings = []
self.is_mandatory = self.rougailconfig["json.mandatory"]
self.get = self.rougailconfig["json.get"]
self.dico = {}
def run(self) -> None:
ret = self.exporter()
@ -76,6 +73,9 @@ class RougailOutputJson:
return ret
def exporter(self) -> None:
self.is_mandatory = self.rougailconfig["json.mandatory"]
self.get = self.rougailconfig["json.get"]
self.dico = {}
if self.is_mandatory:
ori_properties = self.config.property.exportation()
self.config.property.read_write()

View file

@ -1 +1 @@
__version__ = "0.2.0a13"
__version__ = "0.2.0a14"