jsoncfg 1.1.5 → 1.2.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jsoncfg.rb +4 -0
  3. metadata +9 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10dd9edade04ab7d07c57520c43ad61e228f017ec62ec87ff511957c08b3f188
4
- data.tar.gz: 9e28b89de1165d66a297e197f5079c46fa6bccdd0129f853ba951dd5cfa1a9c7
3
+ metadata.gz: 5fc4bfbec226df601e6f25d0876a2d2ab33e4221deebdad87e0008a51ac7de6b
4
+ data.tar.gz: e8ea3d114ec8e723838f1ed8f9da5b7b0e9eac24c92d964f086fac6ee5b733b5
5
5
  SHA512:
6
- metadata.gz: dfb17d2a39a6af7babd42b269f4cac6834337b0a3e1208d2d26dccdbe582d7eb486e2b1f6a9269aec0e481734b1a7fde6994886bd4e2ac6fd81953c872dcd3e1
7
- data.tar.gz: 376aed23c27b3231ad087084dec1337f165bdaee8539b3ec1a32b229da160a9504093ecfdced28c977b0d5100e4b2da16ad3f21679dced5784f77678bafd643f
6
+ metadata.gz: ca36b279d9beefd344465cc98b562f36c1906d358a27343f843909c53b1df238f2b979b6a642d97f035b8d6ed25a6d57688067993e3a3b9299adb4be522ef9ae
7
+ data.tar.gz: 65a0fe41921de2681cdf393bb2d0297e69f9d94b35976ab86ed3f595c592b5cb0290292555ddba34a082d79d737712a6369e1220d4da1942bbba3569efe79829
data/lib/jsoncfg.rb CHANGED
@@ -130,6 +130,10 @@ class JSONConfig
130
130
  write_config
131
131
  end
132
132
 
133
+ def to_s
134
+ return JSON.pretty_generate(@config)
135
+ end
136
+
133
137
  def unsetbool(key)
134
138
  @config[key] = false
135
139
  @diff[key] = false
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsoncfg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-14 00:00:00.000000000 Z
11
+ date: 2020-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 13.0.0
20
17
  - - "~>"
21
18
  - !ruby/object:Gem::Version
22
19
  version: '13.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 13.0.0
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 13.0.0
30
27
  - - "~>"
31
28
  - !ruby/object:Gem::Version
32
29
  version: '13.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 13.0.0
33
33
  description: Read/write from/to a JSON config file.
34
34
  email: mj@whitta.dev
35
35
  executables: []
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  - !ruby/object:Gem::Version
58
58
  version: '0'
59
59
  requirements: []
60
- rubygems_version: 3.0.6
60
+ rubygems_version: 3.1.2
61
61
  signing_key:
62
62
  specification_version: 4
63
63
  summary: Read/write from/to a JSON config file