Compare commits
No commits in common. "5f17a1f086ec65528f6ed53e26133d5e0b45fb18" and "35a801a3ab65eb4314acf46067b3e0123418e0f1" have entirely different histories.
5f17a1f086
...
35a801a3ab
4 changed files with 7 additions and 13 deletions
|
|
@ -1,9 +1,3 @@
|
|||
## 0.2.0a14 (2025-11-21)
|
||||
|
||||
### Fix
|
||||
|
||||
- ExtentionError => ExtensionError
|
||||
|
||||
## 0.2.0a13 (2025-11-06)
|
||||
|
||||
### Feat
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail.output_json"
|
||||
version = "0.2.0a14"
|
||||
version = "0.2.0a13"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "Rougail output json"
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ from typing import Any, List, Optional
|
|||
from json import dumps
|
||||
|
||||
from tiramisu.error import PropertiesOptionError, ConfigError
|
||||
from rougail.error import ExtensionError
|
||||
from rougail.error import ExtentionError
|
||||
|
||||
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 ExtensionError(
|
||||
raise ExtentionError(
|
||||
_('the "step.output" is not set to "{0}"').format(self.output_name)
|
||||
)
|
||||
self.rougailconfig = rougailconfig
|
||||
|
|
@ -58,6 +58,9 @@ 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()
|
||||
|
|
@ -73,9 +76,6 @@ 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()
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
__version__ = "0.2.0a14"
|
||||
__version__ = "0.2.0a13"
|
||||
|
|
|
|||
Loading…
Reference in a new issue