Compare commits
2 commits
7ce8559481
...
1af2120452
| Author | SHA1 | Date | |
|---|---|---|---|
| 1af2120452 | |||
| 881cdea72b |
16 changed files with 69 additions and 3 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
## 0.2.0a11 (2025-05-26)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- do not load yaml has YAML object
|
||||||
|
|
||||||
## 0.2.0a10 (2025-05-14)
|
## 0.2.0a10 (2025-05-14)
|
||||||
|
|
||||||
### Feat
|
### Feat
|
||||||
|
|
|
||||||
|
|
@ -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.0a10"
|
version = "0.2.0a11"
|
||||||
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"
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ class RougailUserDataYaml:
|
||||||
def run(
|
def run(
|
||||||
self,
|
self,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.yaml = YAML()
|
self.yaml = YAML(typ='safe', pure=True)
|
||||||
user_datas = []
|
user_datas = []
|
||||||
for idx, filename in enumerate(self.filenames):
|
for idx, filename in enumerate(self.filenames):
|
||||||
filename = Path(filename)
|
filename = Path(filename)
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.2.0a10"
|
__version__ = "0.2.0a11"
|
||||||
|
|
|
||||||
5
tests/directory/result.txt
Normal file
5
tests/directory/result.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"variable1": "value1",
|
||||||
|
"variable2": "value2",
|
||||||
|
"variable3": null
|
||||||
|
}
|
||||||
11
tests/directory/structure/rougail/file.yaml
Normal file
11
tests/directory/structure/rougail/file.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
version: 1.1
|
||||||
|
|
||||||
|
variable1:
|
||||||
|
mandatory: false
|
||||||
|
|
||||||
|
variable2:
|
||||||
|
mandatory: false
|
||||||
|
|
||||||
|
variable3:
|
||||||
|
mandatory: false
|
||||||
2
tests/directory/yaml/file1.txt
Normal file
2
tests/directory/yaml/file1.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
variable3: value3
|
||||||
2
tests/directory/yaml/file1.yaml
Normal file
2
tests/directory/yaml/file1.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
variable2: value2
|
||||||
2
tests/directory/yaml/file1.yml
Normal file
2
tests/directory/yaml/file1.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
variable1: value1
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"rougail": {
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1",
|
||||||
|
"var3": "string1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"rougail": {
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1",
|
||||||
|
"var3": "string1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"rougail": {
|
||||||
|
"var1": "string1",
|
||||||
|
"var3": "string1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"rougail.var1": "string1",
|
||||||
|
"rougail.var2": "string1",
|
||||||
|
"rougail.var3": "string1"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"rougail.var1": "string1",
|
||||||
|
"rougail.var2": "string1",
|
||||||
|
"rougail.var3": "string1"
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue