k_config 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29acae4b3b93be3b2f682d783634c24f0bc9b6350f4ec62ff2cdc7dd66aef5b2
4
- data.tar.gz: 4ee04847aac6dd11a21108835f0b2040a9bd88c5cd1668f2296e4e6ba4536e68
3
+ metadata.gz: be6c1f47d8c6aaf2d67dbab345553d77b26d2bbc501dc12f8e756c7c833db264
4
+ data.tar.gz: 82dda6d6aa206e3d3e6a6c56481b3519a38069c27155c3a9decadaea2a2b79fd
5
5
  SHA512:
6
- metadata.gz: 3f1bda2d981ad6a02e34a2c56792e60dac755f36c929edbd837f092e89cf37ea909c1b47dd02d07501bbfe358e699bd73de8b4ba64a552b6fc28bc3148dd363c
7
- data.tar.gz: 85e9ae1e7fa10e326ef1eedccd76d2d71657b56bc96635433fe5a5d0b9ef4602f525fff0d9813b5d629fd95da00ecac0b1400fa5a034fa7c9faba781147c6118
6
+ metadata.gz: 8ce80196bebde6e003279ee8b911b248da17842af31fc3848c7699888d908794a40b0de4cd4fd37f7116f276b7f18d3a45873edc3f66042d224cfd765ffbadb0
7
+ data.tar.gz: d79ec61cbf83797f0dbc60e13fc01c3a4ba3b415cd7a113575154453929d47e1ae2544d48d703ca5789f83240a3542a5d4fabb4e2220f0bd28ecf45b98c7d292
data/docs/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [0.0.5](https://github.com/klueless-io/k_config/compare/v0.0.4...v0.0.5) (2022-02-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add registered extensions and support for debug and initialize_copy inside of registered extensions ([da0d62d](https://github.com/klueless-io/k_config/commit/da0d62dcd6b4d1c4f556e2bccf6bde56a06baf8c))
7
+ * add registered extensions and support for debug and initialize_copy inside of registered extensions ([ce35adb](https://github.com/klueless-io/k_config/commit/ce35adb700c16e189da7a70d9aa206a91f629f99))
8
+ * flakey test ([ca87322](https://github.com/klueless-io/k_config/commit/ca873225580d406c0a2dc8709f04a9dd223b5c23))
9
+
1
10
  ## [0.0.4](https://github.com/klueless-io/k_config/compare/v0.0.3...v0.0.4) (2022-02-04)
2
11
 
3
12
 
@@ -2,12 +2,28 @@
2
2
 
3
3
  module KConfig
4
4
  # Configuration object for all k_* GEMs.
5
+ #
6
+ # Hooks:
7
+ # You can use hooks to add your own customizations to configuration extensions.
5
8
  class Configuration
6
9
  include KUtil::Data::InstanceVariablesToH
7
10
  include KLog::Logging
8
11
 
9
12
  attr_accessor :config_name
10
13
 
14
+ # Initialize configuration.
15
+ #
16
+ # Will call #{configuration_key}_initialize method if it exists.
17
+ def initialize
18
+ self.class.registered_keys.each do |key|
19
+ method = "#{key}_initialize".to_sym
20
+ send(method) if respond_to?(method)
21
+ end
22
+ end
23
+
24
+ # Debug configuration is used for debugging.
25
+ #
26
+ # Will call #{configuration_key}_debug method if it exists.
11
27
  def debug
12
28
  log.section_heading(config_name) if config_name
13
29
 
@@ -17,6 +33,9 @@ module KConfig
17
33
  end
18
34
  end
19
35
 
36
+ # Initialize_copy, used during clone.
37
+ #
38
+ # Will call #{configuration_key}_initialize_copy method if it exists.
20
39
  def initialize_copy(orig)
21
40
  self.class.registered_keys.each do |key|
22
41
  method = "#{key}_initialize_copy".to_sym
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KConfig
4
- VERSION = '0.0.5'
4
+ VERSION = '0.0.6'
5
5
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "k_config",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "k_config",
9
- "version": "0.0.5",
9
+ "version": "0.0.6",
10
10
  "devDependencies": {
11
11
  "@klueless-js/semantic-release-rubygem": "github:klueless-js/semantic-release-rubygem",
12
12
  "@semantic-release/changelog": "^6.0.1",
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "k_config",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Command line and CI/CD tools for K Config",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-04 00:00:00.000000000 Z
11
+ date: 2022-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: k_log