tiny_dot 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tiny_dot.rb +7 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1169cfdc1aed2c5eaccfed576b02bc83edaccf412ccc5e6483c96f50d600289c
4
- data.tar.gz: 7271fa3f476a9164bd4029a147989c96bce3d3c9c29f90950e23b1fab88274e4
3
+ metadata.gz: 43431e5a7057bc2f6cf613a04764ebffc73888e179a410e584175a82deec7c95
4
+ data.tar.gz: 2cd49f38c092aaf60dcd54fc6050aa74daa20d018e0b67d5b7ac29feaf0f7130
5
5
  SHA512:
6
- metadata.gz: f4335fce958e9f98890834776ee69ceeed0a370d04d3f42fcf2b32b0f063e35b8c86494ead9a06d44e19af758cc90e2e75cbc7dfe5cc5ce17a4d680efd5865f9
7
- data.tar.gz: 435c7cc3bee8efcd932e58d4250258624804f28d457fe3e5739c8111acd34300170da0c377c9f5387d75d78b9cd97afc1cc8705db8c2d0a49744f326b147c07f
6
+ metadata.gz: 4fc483e2b724ae9280106ac16eb95579638f1209a41f2d5a7f8a65c0113355376c35040fc498ac4e8ee9b4837e6e4823640ae4170f45b181c92243d1a2d60ffd
7
+ data.tar.gz: ffa636fb014db58d0cac5095af7a1f0737489482524c12facd792540f320984d26e79eb713cffdda89bd9530397b26889757281e4caedc935914f6d753ef8786
data/lib/tiny_dot.rb CHANGED
@@ -70,6 +70,13 @@ class TinyDot
70
70
  @data.to_json
71
71
  end
72
72
 
73
+ # NOTE: this returns the raw hash inside of the TinyDot instance, which means
74
+ # if you modify anything here you're modifying the internal data in this
75
+ # TinyDot instance
76
+ def to_hash
77
+ @data
78
+ end
79
+
73
80
  def to_yaml
74
81
  @data.to_yaml
75
82
  end
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: 1.2.0
4
+ version: 1.3.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-25 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: a tiny read-only, dot notation wrapper for Hash, JSON, YAML, and ENV
14
14
  email: jefflunt@gmail.com