simple-config 0.7.2 → 0.7.3

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: f31bf5d219d6041190571af4825c8b6453c961ed5a564d91ed44ba1d51c98bfc
4
- data.tar.gz: 24dff310f8873c6d7981cc73c190d7b35f1034b40e86cb04e5db3807a27638ee
3
+ metadata.gz: d132c138bd6a68e1eab2f6326908e740a39c34c9c21077aeb8e2a8a7075960b0
4
+ data.tar.gz: 7577d85d6ab7746f74403b7ca0278db28c660c6d83e0569bdf810cc52c3de524
5
5
  SHA512:
6
- metadata.gz: c58ce83f8700841ee34bf89d2858a6abba6c4d6869c70600f76c7d7d6ed113cfd3b3266472a54e91740881dbee843ce68e5ea0203d30ed39b6291c9f832431f8
7
- data.tar.gz: 6395327c2c0e08afd2ec5b0900cd16510ab43789ddc5a7524d0d4fdeb2c9e2f7e18c5f57089a8e9c3a51be8231c5d1cf122ada990b88fb8160d5234becaf4881
6
+ metadata.gz: 78c26a0fa99dedfca6ecadfa7e9640d16de6fb2798188b7949dc346adad8382a81fc72740dcbb973b456ba38609ae47c3c473b6f16e378f7f2272f259e9733d9
7
+ data.tar.gz: dd58e9c5f0d6073cfa47f08d92a1068715c02e0b7f7584ec5553db7b6a9fa610355d9c32fb0471ffba198ebe3c96c2ebd5ffd3e24d7859f7a6ce49b902a757b9
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/simple-config.rb CHANGED
@@ -8,7 +8,8 @@ require 'kvx'
8
8
  class SimpleConfig < Kvx
9
9
 
10
10
 
11
- def initialize(x, attributes: {}, auto_detect_type: true, debug: false)
11
+ def initialize(x, attributes: {}, auto_detect_type: true, comment_char: '#',
12
+ debug: false)
12
13
 
13
14
  @ignore_blank_lines = true
14
15
  @auto_detect_type = auto_detect_type
@@ -16,7 +17,7 @@ class SimpleConfig < Kvx
16
17
  if x.is_a? SimpleConfig then
17
18
  @to_h = x.to_h
18
19
  elsif x
19
- super(x, attributes: attributes, debug: debug)
20
+ super(x, attributes: attributes, comment_char: comment_char, debug: debug)
20
21
  end
21
22
 
22
23
  @identifier = 'simple-config'
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  7fTseCWoJ+htGaGmF2XGa4vzno4Hrx46xtH5bMZXjJrZI5kAQ3q/rrwGTRAlhKXN
36
36
  ohnGnEdpQlxOgeVD510QNHR5
37
37
  -----END CERTIFICATE-----
38
- date: 2022-01-26 00:00:00.000000000 Z
38
+ date: 2022-09-27 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: kvx
@@ -43,20 +43,20 @@ dependencies:
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.0'
46
+ version: '1.1'
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 1.0.1
49
+ version: 1.1.3
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: '1.0'
56
+ version: '1.1'
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: 1.0.1
59
+ version: 1.1.3
60
60
  description:
61
61
  email: digital.robertson@gmail.com
62
62
  executables: []
@@ -83,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubyforge_project:
87
- rubygems_version: 2.7.10
86
+ rubygems_version: 3.3.7
88
87
  signing_key:
89
88
  specification_version: 4
90
89
  summary: Simple-config makes it convenient to read or write a config file as simple
metadata.gz.sig CHANGED
Binary file