qonfig 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48f718feaf6da5ef0dd8e81bad25fa58b7b06c2eb120b692c6111b745a507c4d
4
- data.tar.gz: ad50f7258506db6837c0d08c9c6efaf003f12291427ec33c5b0f8c15124bfdfc
3
+ metadata.gz: 00007ac8bbe4ff23e06817dc5c30baac54ea36f60c5b5b08cccb85108e6b1b57
4
+ data.tar.gz: 393b03500de77eeefc8f9617603d4a0eeb183ad2da598d107cca25929ab999ff
5
5
  SHA512:
6
- metadata.gz: eb496fb435d1c6a203960ad98a36f2afac9efe5efd0d8a2466187f89c8df3a87af7a7c3678cd07fc73bacd10ca1ae1430a555d396d5783fcad58931cd2f08a1d
7
- data.tar.gz: 926c610a00683e0a4cdbd2663777f95579a02c5a11e8548bdfb990a2c962e518e3797c5814a321be2cdc1e531e7855a20913d66bf0c6927f115b0106b30b050a
6
+ metadata.gz: 1d5dfc6dfbb9a8c142f1a98eb9a4c9650c460f29a689adf619c6f71ca579f049ad418dbb2cf0ee2eb5e9f4feae7ca425334fc973b3da466fbcc44e58e58af953
7
+ data.tar.gz: 46c85ca1393f7db4bf06534e14ef6418e313ed46acfb13226d8a957d43b5d12824e0631c2579ca8cb612b598671143f0c91f268713351424104fb543a44c651e
@@ -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 (`setting`, `validate`, `add_validator`, `load_from_x`/`expose_x` and etc);
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)`;
@@ -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]
@@ -19,7 +19,7 @@ class Qonfig::Commands::Definition::ExposeTOML < Qonfig::Commands::Base
19
19
  # @since 0.12.0
20
20
  EMPTY_TOML_DATA = {}.freeze
21
21
 
22
- # @return [String]
22
+ # @return [String, Pathname]
23
23
  #
24
24
  # @api private
25
25
  # @since 0.12.0
@@ -7,7 +7,7 @@ class Qonfig::Commands::Definition::LoadFromTOML < Qonfig::Commands::Base
7
7
  # @since 0.20.0
8
8
  self.inheritable = true
9
9
 
10
- # @return [String]
10
+ # @return [String, Pathname]
11
11
  #
12
12
  # @api private
13
13
  # @since 0.12.0
@@ -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
@@ -5,5 +5,5 @@ module Qonfig
5
5
  #
6
6
  # @api public
7
7
  # @since 0.1.0
8
- VERSION = '0.22.0'
8
+ VERSION = '0.23.0'
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qonfig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov