qonfig 0.22.0 → 0.23.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 +5 -1
- data/lib/qonfig/data_set.rb +2 -2
- data/lib/qonfig/plugins/toml/commands/definition/expose_toml.rb +1 -1
- data/lib/qonfig/plugins/toml/commands/definition/load_from_toml.rb +1 -1
- data/lib/qonfig/plugins/toml/data_set.rb +2 -2
- data/lib/qonfig/plugins/toml/dsl.rb +2 -2
- data/lib/qonfig/uploaders/file.rb +2 -2
- data/lib/qonfig/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00007ac8bbe4ff23e06817dc5c30baac54ea36f60c5b5b08cccb85108e6b1b57
|
4
|
+
data.tar.gz: 393b03500de77eeefc8f9617603d4a0eeb183ad2da598d107cca25929ab999ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d5dfc6dfbb9a8c142f1a98eb9a4c9650c460f29a689adf619c6f71ca579f049ad418dbb2cf0ee2eb5e9f4feae7ca425334fc973b3da466fbcc44e58e58af953
|
7
|
+
data.tar.gz: 46c85ca1393f7db4bf06534e14ef6418e313ed46acfb13226d8a957d43b5d12824e0631c2579ca8cb612b598671143f0c91f268713351424104fb543a44c651e
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
## [0.23.0] - 2019-12-12
|
5
|
+
### Added
|
6
|
+
- Support for `Pathname` file path in `.load_from_json`, `.load_from_yaml`, `.load_from_toml`, `.expose_yaml`, `.expose_json`, `.expose_toml`;
|
7
|
+
|
4
8
|
## [0.22.0] - 2019-12-12
|
5
9
|
### Added
|
6
10
|
- Support for `Pathname` file path in `.values_file`, `#load_from_file`, `#load_from_yaml`, `#load_from_json` and `#load_from_toml`;
|
@@ -11,7 +15,7 @@ All notable changes to this project will be documented in this file.
|
|
11
15
|
- represents the compacted config object with setting readers and setting writers only;
|
12
16
|
- setting keys are represented as direct instace methods (`#settings` invokation does not need);
|
13
17
|
- no any other useful instance-based functionality;
|
14
|
-
- full support of `Qonfig::DataSet` DSL commands (
|
18
|
+
- full support of `Qonfig::DataSet` DSL commands (`.setting`, `.validate`, `.add_validator`, `.load_from_x`/`.expose_x` and etc);
|
15
19
|
- can be instantiated by:
|
16
20
|
- by existing config object: `Qonfig::DataSet#compacted` or `Qonfig::Compacted.build_from(config, &configuration)`
|
17
21
|
- by direct instantiation: `Qonfig::Compacted.new(settings_values = {}, &configuration)`;
|
data/lib/qonfig/data_set.rb
CHANGED
@@ -203,7 +203,7 @@ class Qonfig::DataSet # rubocop:disable Metrics/ClassLength
|
|
203
203
|
end
|
204
204
|
alias_method :to_hash, :to_h
|
205
205
|
|
206
|
-
# @option path [String]
|
206
|
+
# @option path [String, Pathname]
|
207
207
|
# @option options [Hash<Symbol|String,Any>] Native (ruby-stdlib) ::JSON#generate attributes
|
208
208
|
# @param value_processor [Block]
|
209
209
|
# @return [void]
|
@@ -217,7 +217,7 @@ class Qonfig::DataSet # rubocop:disable Metrics/ClassLength
|
|
217
217
|
end
|
218
218
|
alias_method :dump_to_json, :save_to_json
|
219
219
|
|
220
|
-
# @option path [String]
|
220
|
+
# @option path [String, Pathname]
|
221
221
|
# @option symbolize_keys [Boolean]
|
222
222
|
# @option options [Hash<Symbol|String,Any>] Native (ruby-stdlib) ::YAML#dump attributes
|
223
223
|
# @param value_processor [Block]
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# @api public
|
4
4
|
# @since 0.12.0
|
5
5
|
class Qonfig::DataSet
|
6
|
-
# @option path [String]
|
6
|
+
# @option path [String, Pathname]
|
7
7
|
# @option options [Hash<Symbol,Any>] Nothing, just for compatability and consistency
|
8
8
|
# @param value_processor [Block]
|
9
9
|
# @return [void]
|
@@ -17,7 +17,7 @@ class Qonfig::DataSet
|
|
17
17
|
end
|
18
18
|
alias_method :dump_to_toml, :save_to_toml
|
19
19
|
|
20
|
-
# @param file_path [String]
|
20
|
+
# @param file_path [String, Pathmame]
|
21
21
|
# @option strict [Boolean]
|
22
22
|
# @option expose [NilClass, String, Symbol] Environment key
|
23
23
|
# @param configuration [Block]
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# @api private
|
4
4
|
# @since 0.12.0
|
5
5
|
module Qonfig::DSL
|
6
|
-
# @param file_path [String]
|
6
|
+
# @param file_path [String, Pathname]
|
7
7
|
# @option strict [Boolean]
|
8
8
|
# @return [void]
|
9
9
|
#
|
@@ -18,7 +18,7 @@ module Qonfig::DSL
|
|
18
18
|
)
|
19
19
|
end
|
20
20
|
|
21
|
-
# @param file_path [String]
|
21
|
+
# @param file_path [String, Pathname]
|
22
22
|
# @option strict [Boolean]
|
23
23
|
# @option via [Symbol]
|
24
24
|
# @option env [Symbol, String]
|
@@ -23,9 +23,9 @@ class Qonfig::Uploaders::File < Qonfig::Uploaders::Base
|
|
23
23
|
|
24
24
|
class << self
|
25
25
|
# @param settings [Qonfig::Settings]
|
26
|
-
# @param options [Hash<Symbol|String,Any>]
|
27
26
|
# @param value_processor [Block]
|
28
|
-
# @option path [String]
|
27
|
+
# @option path [String, Pathname]
|
28
|
+
# @option options [Hash<Symbol|String,Any>]
|
29
29
|
# @return [void]
|
30
30
|
#
|
31
31
|
# @api private
|
data/lib/qonfig/version.rb
CHANGED