tty-config 0.4.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -1
- data/LICENSE.txt +1 -1
- data/README.md +220 -152
- data/lib/tty/config/dependency_loader.rb +1 -1
- data/lib/tty/config/generator.rb +109 -36
- data/lib/tty/config/marshaller.rb +13 -3
- data/lib/tty/config/marshaller_registry.rb +4 -2
- data/lib/tty/config/marshallers/hcl_marshaller.rb +5 -0
- data/lib/tty/config/marshallers/ini_marshaller.rb +5 -2
- data/lib/tty/config/marshallers/java_props_marshaller.rb +3 -0
- data/lib/tty/config/marshallers/json_marshaller.rb +3 -0
- data/lib/tty/config/marshallers/toml_marshaller.rb +3 -0
- data/lib/tty/config/marshallers/xml_marshaller.rb +30 -0
- data/lib/tty/config/marshallers/yaml_marshaller.rb +3 -0
- data/lib/tty/config/version.rb +3 -3
- data/lib/tty/config.rb +313 -66
- data/lib/tty-config.rb +1 -1
- metadata +41 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caebad5a11c843f7436887a74a9c69bb19bc0303b52078daf9e1504ba3306f79
|
4
|
+
data.tar.gz: 61db32809d542344928572cba720baeb132be4b0e0a5ff8f2661d44825bc151b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 768fb85c76d3d68a4c29240c8d557c29ffe4482773131b5ce3cf24d6a3e355d2480dfee921781f6a28013f60b5132e2bb30d09751680546691bff9378e9cccaf
|
7
|
+
data.tar.gz: 5e59beca53007689060f817cd73bb0684bce1cb3ffc72bcd0b4c8eb10fe1d8fd5a937037378e04f2f0666badb3abfeb22abd97d3e69904022bc489092e0a89b6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,36 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## [v0.6.0] - 2022-06-18
|
4
|
+
|
5
|
+
### Added
|
6
|
+
* Add the ability to persist configuration settings in an XML format
|
7
|
+
|
8
|
+
### Changed
|
9
|
+
* Change the INI file format generator to improve maintainability
|
10
|
+
* Change gemspec to update toml version constraint
|
11
|
+
|
12
|
+
## [v0.5.1] - 2022-02-04
|
13
|
+
|
14
|
+
### Fixed
|
15
|
+
* Fix reading configuration from an INI file without global properties
|
16
|
+
* Fix reading an empty config file with hcl extension to return an empty hash
|
17
|
+
|
18
|
+
## [v0.5.0] - 2021-05-23
|
19
|
+
|
20
|
+
### Added
|
21
|
+
* Add :create option to the #write method to control creating any missing directories
|
22
|
+
* Add :path option to the #write method to specify a custom file path to write to
|
23
|
+
* Add ability to specify a default value for a missing key in the #delete method
|
24
|
+
* Add #env_separator for setting a string to separate parts in environment variable name
|
25
|
+
|
26
|
+
### Changed
|
27
|
+
* Change #delete to allow removing any subkey of a deeply nested key
|
28
|
+
* Change #remove to require from keyword
|
29
|
+
* Change #set_if_empty to use nested key fetching to check for value presence
|
30
|
+
|
31
|
+
### Fixed
|
32
|
+
* Fix Marshaller interface to copy extension names to a subclass
|
33
|
+
|
3
34
|
## [v0.4.0] - 2020-01-25
|
4
35
|
|
5
36
|
### Added
|
@@ -55,9 +86,12 @@
|
|
55
86
|
|
56
87
|
* Initial implementation and release
|
57
88
|
|
89
|
+
[v0.6.0]: https://github.com/piotrmurach/tty-config/compare/v0.5.1...v0.6.0
|
90
|
+
[v0.5.1]: https://github.com/piotrmurach/tty-config/compare/v0.5.0...v0.5.1
|
91
|
+
[v0.5.0]: https://github.com/piotrmurach/tty-config/compare/v0.4.0...v0.5.0
|
58
92
|
[v0.4.0]: https://github.com/piotrmurach/tty-config/compare/v0.3.2...v0.4.0
|
59
93
|
[v0.3.2]: https://github.com/piotrmurach/tty-config/compare/v0.3.1...v0.3.2
|
60
94
|
[v0.3.1]: https://github.com/piotrmurach/tty-config/compare/v0.3.0...v0.3.1
|
61
95
|
[v0.3.0]: https://github.com/piotrmurach/tty-config/compare/v0.2.0...v0.3.0
|
62
96
|
[v0.2.0]: https://github.com/piotrmurach/tty-config/compare/v0.1.0...v0.2.0
|
63
|
-
[v0.1.0]: https://github.com/piotrmurach/tty-config/compare/v0.1.0
|
97
|
+
[v0.1.0]: https://github.com/piotrmurach/tty-config/compare/19cd277...v0.1.0
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2018 Piotr Murach
|
3
|
+
Copyright (c) 2018 Piotr Murach (piotrmurach.com)
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|