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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tiny_dot.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf92a8ea45b7ed4335f67ffab70f92ca2efd160d9a8da66cdc43d564eabb96b0
4
- data.tar.gz: 0a8b2e174a87b622a325a778d9bb72b3bcc5d135727b276beca108903f729edb
3
+ metadata.gz: daabefd0e51ec88e1b04e614302475de2a5f80187016b376eff9608ff3704d70
4
+ data.tar.gz: dbe6a1bc4a1557ff3e51362230396b82079cf61b043055043ac5f9570c125bfd
5
5
  SHA512:
6
- metadata.gz: ec1da307f393de8ffe0177cde26cbe84ad10e71d1283e1f7a4dff1de06c4884b3676cdd0240419f1c44c0c0372d0049824c2a1ce4a46bcda2dd1a234cfea7dd0
7
- data.tar.gz: 60131e3677e280eeb03bce59fbefcaca4e188b0330c9ed600e5b9b55019c828b1d0e2f38a1f51f5e4fd97f4d853ed9671223110f5ec818efb1d02846f28a66d7
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.0.0
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-28 00:00:00.000000000 Z
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