nested_objects 0.1.17 → 0.1.18
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.
- checksums.yaml +4 -4
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +8 -0
- data/README.md +8 -4
- data/lib/nested_objects/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b66e6f931bd1c3210be80d713fe4496620b09f8182c5933552fc698aae03f67a
|
|
4
|
+
data.tar.gz: de45fbee0beecf353d08c46063f93ac97535c1f3f839897ad9e58b97fc7f3fa8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d65e4dfa7a9c77122e67b0ba7be8c024e774d332bae191a4003e51a30be4a471cf9a6454913f4f2f8cf5b275621fac3726a8e9fe18fa0e098b207ff0d1091c0c
|
|
7
|
+
data.tar.gz: 0a2531ee5d534f442f94d70ee23ad4f0a1386da8895619b924db8e24bc302b9f01a308e7f302b2f3f661f4e6ff22b0b5e89b38a65ca8349da04ae27c24d4e160
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.18](https://github.com/main-branch/nested_objects/compare/v0.1.17...v0.1.18) (2026-04-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Other Changes
|
|
7
|
+
|
|
8
|
+
* Correct syntax error in example data and improve formatting in README ([64dc3b9](https://github.com/main-branch/nested_objects/commit/64dc3b9e804c801733d003c0c7eb54af3f644786))
|
|
9
|
+
* **dependencies:** Update dependencies for all GitHub Actions workflows ([ead4d20](https://github.com/main-branch/nested_objects/commit/ead4d2054bdc65bbf6d39559d69612463466d041))
|
|
10
|
+
|
|
3
11
|
## [0.1.17](https://github.com/main-branch/nested_objects/compare/v0.1.16...v0.1.17) (2025-04-27)
|
|
4
12
|
|
|
5
13
|
|
data/README.md
CHANGED
|
@@ -22,7 +22,7 @@ Here is an example of using the `dig` method:
|
|
|
22
22
|
```Ruby
|
|
23
23
|
require 'nested_objects'
|
|
24
24
|
|
|
25
|
-
data = { 'people' => [{ 'name' => 'John'}, { 'name'
|
|
25
|
+
data = { 'people' => [{ 'name' => 'John'}, { 'name' => 'Jane' }] }
|
|
26
26
|
path = 'people/0/name'.split('/')
|
|
27
27
|
NestedObjects.dig(data, path) #=> 'John'
|
|
28
28
|
```
|
|
@@ -32,14 +32,18 @@ See documentation and examples of the full API in
|
|
|
32
32
|
|
|
33
33
|
### Object Mixin
|
|
34
34
|
|
|
35
|
-
As a convenience, these methods can be mixed into other classes by including the
|
|
35
|
+
As a convenience, these methods can be mixed into other classes by including the
|
|
36
|
+
`NestedObjects::Mixin` module.
|
|
36
37
|
|
|
37
|
-
In order to reduce the possibility of method name conflicts, all methods are prefixed
|
|
38
|
+
In order to reduce the possibility of method name conflicts, all methods are prefixed
|
|
39
|
+
with `nested_`.
|
|
38
40
|
|
|
39
41
|
```Ruby
|
|
42
|
+
require 'nested_objects'
|
|
43
|
+
|
|
40
44
|
Object.include NestedObjects::Mixin
|
|
41
45
|
|
|
42
|
-
data = { 'people' => [{ 'name' => 'John'}, { 'name'
|
|
46
|
+
data = { 'people' => [{ 'name' => 'John'}, { 'name' => 'Jane' }] }
|
|
43
47
|
path = 'people/0/name'.split('/')
|
|
44
48
|
data.nested_dig(path) #=> 'John'
|
|
45
49
|
```
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nested_objects
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Couball
|
|
@@ -218,8 +218,8 @@ metadata:
|
|
|
218
218
|
allowed_push_host: https://rubygems.org
|
|
219
219
|
homepage_uri: https://github.com/main-branch/nested_objects
|
|
220
220
|
source_code_uri: https://github.com/main-branch/nested_objects
|
|
221
|
-
documentation_uri: https://gemdocs.org/nested_objects/0.1.
|
|
222
|
-
changelog_uri: https://gemdocs.org/nested_objects/0.1.
|
|
221
|
+
documentation_uri: https://gemdocs.org/nested_objects/0.1.18
|
|
222
|
+
changelog_uri: https://gemdocs.org/nested_objects/0.1.18/file.CHANGELOG.md
|
|
223
223
|
rubygems_mfa_required: 'true'
|
|
224
224
|
rdoc_options: []
|
|
225
225
|
require_paths:
|
|
@@ -237,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
237
237
|
requirements:
|
|
238
238
|
- 'Platform: Mac, Linux, or Windows'
|
|
239
239
|
- 'Ruby: MRI 3.1 or later, TruffleRuby 24 or later, or JRuby 9.4 or later'
|
|
240
|
-
rubygems_version:
|
|
240
|
+
rubygems_version: 4.0.6
|
|
241
241
|
specification_version: 4
|
|
242
242
|
summary: Utilities for working with PORO structures arbitrarily nested with Hashes
|
|
243
243
|
and Arrays
|