tiny_dot 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tiny_dot.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: daabefd0e51ec88e1b04e614302475de2a5f80187016b376eff9608ff3704d70
|
4
|
+
data.tar.gz: dbe6a1bc4a1557ff3e51362230396b82079cf61b043055043ac5f9570c125bfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb25c08dbdea5e7cb1540f5b72289b36a3cf6bbc28fe9008ab2e90406c8cee37887562aa4dc3e8848d6036aae6d76ac741f7ed02f6995df463b59ccc070c3346
|
7
|
+
data.tar.gz: 872c51a7be5fc3baf4e572323636728ec1d9a6be38871fb675b1decd0fd5fbc2cc33573a2a5010145998d49b47288992cc42ce6565097a058a764ef16df6d385
|
data/lib/tiny_dot.rb
CHANGED
@@ -33,8 +33,8 @@ class TinyDot
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# returns a TinyDot instance after parsing the YAML in the named filename
|
36
|
-
def self.from_yaml_file(filename)
|
37
|
-
TinyDot.new(YAML.safe_load_file(filename))
|
36
|
+
def self.from_yaml_file(filename, permitted_classes: [])
|
37
|
+
TinyDot.new(YAML.safe_load_file(filename, permitted_classes: permitted_classes))
|
38
38
|
end
|
39
39
|
|
40
40
|
# returns a TinyDot instance after parsing the JSON in the named filename
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiny_dot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Lunt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: a tiny read/write dot notation wrapper for Hash, JSON, YAML, and ENV
|
14
14
|
email: jefflunt@gmail.com
|