Compare commits
2 commits
35a801a3ab
...
5f17a1f086
| Author | SHA1 | Date | |
|---|---|---|---|
| 5f17a1f086 | |||
| f8dd47c4c8 |
4 changed files with 13 additions and 7 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
## 0.2.0a14 (2025-11-21)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- ExtentionError => ExtensionError
|
||||||
|
|
||||||
## 0.2.0a13 (2025-11-06)
|
## 0.2.0a13 (2025-11-06)
|
||||||
|
|
||||||
### Feat
|
### Feat
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rougail.output_json"
|
name = "rougail.output_json"
|
||||||
version = "0.2.0a13"
|
version = "0.2.0a14"
|
||||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "Rougail output json"
|
description = "Rougail output json"
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ from typing import Any, List, Optional
|
||||||
from json import dumps
|
from json import dumps
|
||||||
|
|
||||||
from tiramisu.error import PropertiesOptionError, ConfigError
|
from tiramisu.error import PropertiesOptionError, ConfigError
|
||||||
from rougail.error import ExtentionError
|
from rougail.error import ExtensionError
|
||||||
|
|
||||||
from .i18n import _
|
from .i18n import _
|
||||||
from .__version__ import __version__
|
from .__version__ import __version__
|
||||||
|
|
@ -45,7 +45,7 @@ class RougailOutputJson:
|
||||||
rougailconfig = RougailConfig
|
rougailconfig = RougailConfig
|
||||||
rougailconfig["step.output"] = self.output_name
|
rougailconfig["step.output"] = self.output_name
|
||||||
if 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)
|
_('the "step.output" is not set to "{0}"').format(self.output_name)
|
||||||
)
|
)
|
||||||
self.rougailconfig = rougailconfig
|
self.rougailconfig = rougailconfig
|
||||||
|
|
@ -58,9 +58,6 @@ class RougailOutputJson:
|
||||||
self.warnings = user_data_warnings
|
self.warnings = user_data_warnings
|
||||||
else:
|
else:
|
||||||
self.warnings = []
|
self.warnings = []
|
||||||
self.is_mandatory = self.rougailconfig["json.mandatory"]
|
|
||||||
self.get = self.rougailconfig["json.get"]
|
|
||||||
self.dico = {}
|
|
||||||
|
|
||||||
def run(self) -> None:
|
def run(self) -> None:
|
||||||
ret = self.exporter()
|
ret = self.exporter()
|
||||||
|
|
@ -76,6 +73,9 @@ class RougailOutputJson:
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def exporter(self) -> None:
|
def exporter(self) -> None:
|
||||||
|
self.is_mandatory = self.rougailconfig["json.mandatory"]
|
||||||
|
self.get = self.rougailconfig["json.get"]
|
||||||
|
self.dico = {}
|
||||||
if self.is_mandatory:
|
if self.is_mandatory:
|
||||||
ori_properties = self.config.property.exportation()
|
ori_properties = self.config.property.exportation()
|
||||||
self.config.property.read_write()
|
self.config.property.read_write()
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.2.0a13"
|
__version__ = "0.2.0a14"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue