configurability 2.0.1 → 2.0.2

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: 596cf385713fa2d3514e97356a8db87226376c1f
4
- data.tar.gz: ce6bb21fbbbe30c0ea88f11bb5cf4fda7b74f2d1
3
+ metadata.gz: dcbf8e77d923a5ec95be628f03c79c1fa1e2b778
4
+ data.tar.gz: 0c1a8adda3938b47948a4fe192ab30039b9b0a67
5
5
  SHA512:
6
- metadata.gz: 28f218852150e64724a1691d647e76aef8d81570859739a83b99a9fba4fec577b154107b7cea79115712ace7fc6ed2c4e917730aa3213329a5076d939ee75acc
7
- data.tar.gz: 2e63a1bdd90477ffb35d9269782294e55740d74718c1c4419e14104fd204f1cf76ed5c2837063db6e149fff5415b03ba9c1f48308623a2335d1a01f8c59c99c4
6
+ metadata.gz: 5194373054a7d8d4ef615f7fa0a24f65f01389efdda7315635d7a6759ff6b1fdf0381c96d25e8af59a66c0ee7bc4080da2f6860e2af51b8a00aac3b97d4a9316
7
+ data.tar.gz: 6c1905c42901a5020190bb5f25d2e6eed93ee42995cc125e79f8c8c8381be6fd733bc99191500e441cf9b96bac60754e9093c68ac23a8e1693ae41639172a05f
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,8 @@
1
+ == v2.0.2 [2013-06-14] Mahlon E. Smith <mahlon@martini.nu>
2
+
3
+ - Load YAML safely if the safe_yaml gem is present.
4
+
5
+
1
6
  == v2.0.1 [2013-06-07] Mahlon E. Smith <mahlon@martini.nu>
2
7
 
3
8
  - Repair relationship with Loggability.
@@ -18,10 +18,10 @@ module Configurability
18
18
 
19
19
 
20
20
  # Library version constant
21
- VERSION = '2.0.1'
21
+ VERSION = '2.0.2'
22
22
 
23
23
  # Version-control revision constant
24
- REVISION = %q$Revision: bbf0ba1d6deb $
24
+ REVISION = %q$Revision: e53b53d65079 $
25
25
 
26
26
  require 'configurability/deferredconfig'
27
27
 
@@ -245,7 +245,11 @@ class Configurability::Config
245
245
  def make_configstruct_from_source( source, defaults=nil )
246
246
  defaults ||= {}
247
247
  mergefunc = Configurability::Config.method( :merge_complex_hashes )
248
- hash = YAML.load( source )
248
+ hash = if defined?( SafeYAML ) then
249
+ YAML.load( source, :safe => true )
250
+ else
251
+ YAML.load( source )
252
+ end
249
253
  ihash = symbolify_keys( untaint_values(hash) )
250
254
  mergedhash = defaults.merge( ihash, &mergefunc )
251
255
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configurability
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -30,7 +30,7 @@ cert_chain:
30
30
  y6OINF+5NC1urZxUuigosLovVORYgTgN6tQnSvWY9S7naik9dua9effTi2EHy8ws
31
31
  AEFC60d6kv25P7lS7WUuIQ==
32
32
  -----END CERTIFICATE-----
33
- date: 2013-06-07 00:00:00.000000000 Z
33
+ date: 2013-06-14 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: loggability
metadata.gz.sig CHANGED
Binary file