Compare commits

..

No commits in common. "5072fd4efb4ae9c8cdd8104e0adddac242494e43" and "51be10e39f0e0ae0ec0933deadd469e0949e2933" have entirely different histories.

4 changed files with 5 additions and 11 deletions

View file

@ -1,9 +1,3 @@
## 0.2.0a17 (2025-12-22)
### Fix
- user_datas => user_data
## 0.2.0a16 (2025-11-21) ## 0.2.0a16 (2025-11-21)
### Feat ### Feat

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project] [project]
name = "rougail.user_data_yaml" name = "rougail.user_data_yaml"
version = "0.2.0a17" version = "0.2.0a16"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}] authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md" readme = "README.md"
description = "Rougail user_data yaml" description = "Rougail user_data yaml"

View file

@ -55,7 +55,7 @@ class RougailUserDataYaml:
self, self,
) -> None: ) -> None:
self.yaml = YAML(typ='safe', pure=True) self.yaml = YAML(typ='safe', pure=True)
user_data = [] user_datas = []
if self.file_with_secrets == "last": if self.file_with_secrets == "last":
last_filename_idx = len(self.filenames) - 1 last_filename_idx = len(self.filenames) - 1
for idx, filename in enumerate(self.filenames): for idx, filename in enumerate(self.filenames):
@ -90,7 +90,7 @@ class RougailUserDataYaml:
allow_secrets_variables = idx == last_filename_idx allow_secrets_variables = idx == last_filename_idx
else: else:
allow_secrets_variables = True allow_secrets_variables = True
user_data.append( user_datas.append(
{ {
"source": _('the YAML file "{0}"').format(filename), "source": _('the YAML file "{0}"').format(filename),
"errors": self.errors, "errors": self.errors,
@ -101,7 +101,7 @@ class RougailUserDataYaml:
}, },
} }
) )
return user_data return user_datas
def open(self, filename: str) -> dict: def open(self, filename: str) -> dict:
with filename.open() as fh_config: with filename.open() as fh_config:

View file

@ -1 +1 @@
__version__ = "0.2.0a17" __version__ = "0.2.0a16"