bogo-config 0.1.6 → 0.1.8

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
  SHA1:
3
- metadata.gz: 5c87e489d7f5e98f3b7e217441233a7eebeff576
4
- data.tar.gz: 9fa263ded146de9170464dc5479afd21887b5e92
3
+ metadata.gz: 3eac8636a0c35a8050a41370f8a2725dc4a273a6
4
+ data.tar.gz: b9f525728165da1b94e73f771d6bf2310ab0d094
5
5
  SHA512:
6
- metadata.gz: f9b7fc1f135514ec82a39afd689beffa1880298db778d276e4576297335bf4ca6fb910c72eef41969785160a827ab5542e2e1d104ec341101cb41ab6917addbe
7
- data.tar.gz: 6df814abc69e071815f8c75785e248f241b1cfb3f21a336a185845c535e765c0dc2a8a954afb0d93e00ae64078b60a3fb3a483e77f7af8a2334e34434140b05a
6
+ metadata.gz: 6f4213490283133c9ecb73bc37ecb6861c7b51cd866c3c1dce6c934da8287000b42fbddadb2a7d9cbd5202645ac657aefd39408fe7f6902f210158fd24a4a336
7
+ data.tar.gz: 9561ac1e95acc189263bcbf3b98fe743e0a1d4763119501db89e3d2d45ea56f19d58ce2de1b2c5d3c9a05ff0f4391c6dbf16dc23359daa57b5d58f368037bde1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v0.1.8
2
+ * Support JSON serialization of configurations
3
+
1
4
  ## v0.1.6
2
5
  * Remove dirty functionality to retain consistent data access
3
6
  * Allow setting configuration as immutable
@@ -143,6 +143,11 @@ module Bogo
143
143
  data
144
144
  end
145
145
 
146
+ # @return [String]
147
+ def to_json(*args)
148
+ MultiJson.dump(data, *args)
149
+ end
150
+
146
151
  # Load configuration from file(s)
147
152
  #
148
153
  # @return [self]
@@ -1,6 +1,6 @@
1
1
  module Bogo
2
2
  class Config
3
3
  # Current library version
4
- VERSION = Gem::Version.new('0.1.6')
4
+ VERSION = Gem::Version.new('0.1.8')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bogo-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-17 00:00:00.000000000 Z
11
+ date: 2015-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo