Skip to content

Commit

Permalink
YAMLParser now supports YAML lists not parsed by the parser itself.
Browse files Browse the repository at this point in the history
This means that list of type
```yaml
list:
  - test: "Hello"
  - test: "Hi"
```
will be parsed as a list of (ConfigurationSection)[src/main/java/it/fulminazzo/yamlparser/configuration/ConfigurationSection].
Totally reworked classes separation to respect packaging conventions.
Reworked FileConfiguration#addParsers method.
Renamed `it.fulminazzo.yamlparser.configurations` package to `it.fulminazzo.yamlparser.configuration`.
Made FileConfiguration and ConfigurationSection final.
Added support for escaped dot characters: now it will be able to use `\.` in paths to allow for dotted strings to be parsed.
Added support for BigDecimal notation when getting Number types.
Added `unquote` method to remove quoted strings when saving or loading.
Now IConfiguration extends Serializable.
Fixed dotted test error.
Fixed `IConfiguration#getKeys` not returning an ordered set.
Updated README.md.
Updated FulmiCollection.
  • Loading branch information
fulminazzo committed Mar 2, 2024
1 parent 124158a commit 0afa2e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = 'it.fulminazzo'
version = '1.5.7'
version = '1.5.8'

repositories {
mavenCentral()
Expand All @@ -19,7 +19,7 @@ dependencies {
compileOnly 'org.jetbrains:annotations:24.1.0'

implementation 'org.yaml:snakeyaml:2.2'
api 'it.fulminazzo:FulmiCollection:1.3.2'
api 'it.fulminazzo:FulmiCollection:1.3.7'

testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public interface IConfiguration extends Serializable {
.map(c -> entry.getKey() + "." + c).collect(Collectors.toList()));
}
}
return new HashSet<>(keys);
return new LinkedHashSet<>(keys);
}

/**
Expand Down

0 comments on commit 0afa2e2

Please sign in to comment.