eac_config 0.8.0 → 0.8.1

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: 1a03da4e24715d7384e6de3cd61bb33bf9d1668234675059be4afb39355d82e1
4
- data.tar.gz: 0f97dd63aae43cb52748f17ce8bc15488a11eaaa0ff65ccf2b15b0ee0ef0b16e
3
+ metadata.gz: 6bdff961fb028eac14cca56c7fa1bb9a14bc360c57fca532df4fc71d8711ef1b
4
+ data.tar.gz: e295fe2003758ae1d6cea311e5fc3b4fc15dde36ce65dd12a6ba85304f087cab
5
5
  SHA512:
6
- metadata.gz: 91b13a3a78a6fc3029584d1942d4977beea8d7c213ac9a56721cd3aae15a8492c3491bd9d7a33f095049f8389d165322949750121c70dffdc114af8a753b540d
7
- data.tar.gz: 060bd6ef9c82bfc29418e16ea2985bc120a5e2759e7ae2dc787b683d6d912818207417694bdb26b345e5a1298a8915006a6541f8fa51c70c437be7de48770d3e
6
+ metadata.gz: 36bdfa528f5dab7de44549c202fca7294cb9aeb4b1d37e716f7e432e189eefebf30aeb4d740471052e5dbfa0d1b5e7889cb23897ccf04d4770f2030c570319e9
7
+ data.tar.gz: b806238018633952079123cb59fa426d23b14734b62d8670c74c9867738a2f866e946028a9acf9f06606e4f340b9c55e195751b2f10f74151060ef6c0109d338
@@ -42,7 +42,7 @@ module EacConfig
42
42
 
43
43
  def node_entry_from_load_path_uncached
44
44
  root_node.recursive_loaded_nodes.lazy.map { |loaded_node| loaded_node.self_entry(path) }
45
- .find(&:found?)
45
+ .find(&:found?)
46
46
  end
47
47
 
48
48
  def node_entry_from_root_uncached
@@ -12,7 +12,7 @@ module EacConfig
12
12
  class << self
13
13
  def entry_path_to_envvar_name(path)
14
14
  ::EacConfig::EntryPath.assert(path).parts.join('_').gsub(/[^a-z0-9_]/i, '')
15
- .gsub(/\A_+/, '').gsub(/_+\z/, '').gsub(/_{2,}/, '_').upcase
15
+ .gsub(/\A_+/, '').gsub(/_+\z/, '').gsub(/_{2,}/, '_').upcase
16
16
  end
17
17
 
18
18
  def from_value(string)
@@ -34,7 +34,7 @@ module EacConfig
34
34
  end
35
35
 
36
36
  def to_h
37
- data.map { |k, v| [k, v.is_a?(Node) ? v.to_h : v] }.to_h
37
+ data.transform_values { |v| v.is_a?(Node) ? v.to_h : v }
38
38
  end
39
39
 
40
40
  def read_entry(path_search)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacConfig
4
- VERSION = '0.8.0'
4
+ VERSION = '0.8.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-17 00:00:00.000000000 Z
11
+ date: 2022-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.3'
47
+ version: 0.5.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.3'
54
+ version: 0.5.1
55
55
  description:
56
56
  email:
57
57
  executables: []